/*
Theme Name: OpIntel Strategy Partners
Theme URI: https://opintelstrategy.com
Author: OpIntel Strategy Partners
Author URI: https://opintelstrategy.com
Description: Clean, branded WordPress theme for OpIntel Strategy Partners — operational data intelligence consultancy.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: opintel
*/

/* ============================================================
   DESIGN TOKENS — OpIntel Brand
   ============================================================ */
:root {
  /* Core palette from logo */
  --navy:         #1a3a5c;
  --navy-dark:    #0f2340;
  --navy-mid:     #1e4068;
  --teal:         #2e8b8b;
  --teal-light:   #3aadad;
  --teal-pale:    #d0eeee;
  --slate:        #3a4a5c;
  --slate-light:  #5a6a7c;
  --muted:        #8a9aaa;
  --ink:          #0d1a26;
  --cream:        #f6f8fa;
  --cream-dark:   #edf1f5;
  --white:        #ffffff;
  --accent:       #d4813a;
  --good:         #27ae60;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing */
  --max-w:        1160px;
  --section-pad:  96px 0;
  --section-pad-sm: 64px 0;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-dark);
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: var(--section-pad); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-dark); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: var(--teal-light); }
.section--navy .eyebrow::before { background: var(--teal-light); }

.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center .eyebrow { justify-content: center; }
.section-header--center .eyebrow::before { display: none; }
.section-header p { font-size: 1.1rem; color: var(--slate-light); max-width: 600px; margin-top: 16px; }
.section-header--center p { margin: 16px auto 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
}
.btn--primary:hover { background: var(--teal-light); }

.btn--navy {
  background: var(--navy-dark);
  color: var(--white);
}
.btn--navy:hover { background: var(--navy-mid); }

.btn--ghost {
  background: transparent;
  color: var(--navy-dark);
  border: 1.5px solid var(--navy-dark);
}
.btn--ghost:hover { background: var(--navy-dark); color: var(--white); }

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy-dark);
  border-bottom: 2px solid var(--teal);
  height: 68px;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 38px;
  width: auto;
}
.site-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.03em;
}
.site-logo-text span { color: var(--teal-light); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.main-nav a:hover,
.main-nav li.current-menu-item a {
  color: var(--white);
  border-color: var(--slate);
}

.nav-cta .btn {
  font-size: 0.6rem;
  padding: 10px 18px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.2s;
}

/* ============================================================
   PAGE OFFSET (fixed header)
   ============================================================ */
.page-content { padding-top: 68px; }

/* ============================================================
   HERO — HOME
   ============================================================ */
.hero {
  background: var(--navy-dark);
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-left {
  padding: 80px 64px 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-h1 {
  color: var(--white);
  margin-bottom: 24px;
}
.hero-h1 em {
  font-style: normal;
  color: var(--teal-light);
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--cream); font-weight: 500; }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* right panel */
.hero-right {
  background: var(--navy-mid);
  border-left: 1px solid rgba(46,139,139,0.2);
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border: 1px solid rgba(46,139,139,0.15);
  border-radius: 50%;
}
.hero-right::after {
  content: '';
  position: absolute;
  bottom: -90px; right: -90px;
  width: 360px; height: 360px;
  border: 1px solid rgba(46,139,139,0.08);
  border-radius: 50%;
}

.panel-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}

.advantage-list { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }

.advantage-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.advantage-icon {
  width: 36px;
  height: 36px;
  background: rgba(46,139,139,0.15);
  border: 1px solid rgba(46,139,139,0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.advantage-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 4px;
}
.advantage-text p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   HERO — INNER PAGES
   ============================================================ */
.page-hero {
  background: var(--navy-dark);
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(46,139,139,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 16px auto 0; }
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::before { display: none; }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  background: var(--teal);
  padding: 48px 0;
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.stat-item {
  background: var(--teal);
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 8px;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--cream-dark);
  border: 1px solid var(--cream-dark);
}

.service-card {
  background: var(--white);
  padding: 40px 36px;
  transition: background 0.2s;
}
.service-card:hover { background: var(--cream); }

.service-price {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.service-card h3 { margin-bottom: 16px; color: var(--navy-dark); }
.service-card p { font-size: 0.9rem; color: var(--slate-light); margin-bottom: 20px; }

.service-deliverables { display: flex; flex-direction: column; gap: 8px; }
.service-deliverables li {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--slate);
  align-items: flex-start;
}
.service-deliverables li::before {
  content: '→';
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   METHODOLOGY / DIO PROCESS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--cream-dark);
  margin-top: 48px;
}

.process-step {
  background: var(--white);
  padding: 36px 28px;
  position: relative;
}
.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 36px; right: -10px;
  z-index: 1;
  font-size: 0.9rem;
  color: var(--teal);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.process-step h3 { font-size: 1rem; margin-bottom: 10px; color: var(--navy-dark); }
.process-step p { font-size: 0.82rem; color: var(--slate-light); margin: 0; }

.step-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-pale);
  padding: 4px 10px;
  border-radius: 2px;
  margin-top: 14px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-body p { color: var(--slate); font-size: 1rem; line-height: 1.8; }
.about-body h3 { color: var(--navy-dark); margin: 32px 0 12px; }

.about-sidebar {}

.outsider-box {
  background: var(--navy-dark);
  color: var(--white);
  padding: 40px 36px;
  border-left: 3px solid var(--teal);
}
.outsider-box h3 { color: var(--white); margin-bottom: 24px; font-size: 1rem; }

.outsider-points { display: flex; flex-direction: column; gap: 20px; }
.outsider-point strong {
  display: block;
  color: var(--teal-light);
  font-size: 0.85rem;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.outsider-point p { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin: 0; }

/* ============================================================
   ARTICLES / BLOG
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  border-color: var(--teal-pale);
  box-shadow: 0 4px 24px rgba(26,58,92,0.08);
}

.article-card-inner { padding: 32px 28px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-tag {
  color: var(--teal);
  background: var(--teal-pale);
  padding: 3px 8px;
  border-radius: 2px;
}

.article-card h3 { font-size: 1rem; margin-bottom: 12px; }
.article-card h3 a:hover { color: var(--teal); }
.article-card p { font-size: 0.85rem; color: var(--slate-light); }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 16px;
  transition: gap 0.2s;
}
.read-more:hover { gap: 10px; }

/* ============================================================
   CTA BLOCK
   ============================================================ */
.cta-block {
  background: var(--navy-dark);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(46,139,139,0.15) 0%, transparent 60%);
}
.cta-block .container { position: relative; z-index: 1; }
.cta-block h2 { color: var(--white); margin-bottom: 16px; }
.cta-block p { color: var(--muted); max-width: 560px; margin: 0 auto 36px; font-size: 1rem; }
.cta-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h3 { font-size: 1rem; color: var(--navy-dark); margin-bottom: 24px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.contact-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.contact-detail-text strong { display: block; font-size: 0.78rem; color: var(--navy-dark); margin-bottom: 2px; }
.contact-detail-text span { font-size: 0.85rem; color: var(--slate-light); }

/* Forms */
.wpcf7-form label, .form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 8px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea,
.form-input {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.form-input:focus {
  outline: none;
  border-color: var(--teal);
}
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.form-group { margin-bottom: 20px; }

/* ============================================================
   ASSESSMENT PAGE
   ============================================================ */
.assessment-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.assessment-intro p { color: var(--slate-light); font-size: 1rem; }

.assessment-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 48px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  padding: 64px 0 32px;
  color: var(--muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand .site-logo img { height: 32px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.65; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--teal-light); }
.footer-trademark {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-teal { color: var(--teal); }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 80px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-step:nth-child(3)::after { display: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px 0; }

  .container { padding: 0 20px; }

  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }

  .main-nav.is-open {
    display: block;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.is-open ul { flex-direction: column; gap: 4px; }
  .main-nav.is-open a { display: block; padding: 12px 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  .assessment-form-wrap { padding: 28px 20px; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
}
