/*
Theme Name: Inflect Advisory v4
Description: Inflect Advisory - Fractional CFO & Finance Advisory
Version: 4.0
*/

:root {
  --teal: #1D9E75;
  --teal-mid: #5DCAA5;
  --teal-light: #E1F5EE;
  --teal-dark: #085041;
  --dark: #111111;
  --mid: #3D3D3D;
  --muted: #777777;
  --light: #F8F8F5;
  --rule: #E2E2D8;
  --white: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1140px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.site-logo span { color: var(--teal); }

.site-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--teal); text-decoration: none; }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--teal-dark); color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  padding: 96px 0 80px;
  background: var(--white);
}

.hero-inner {
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--teal);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--teal-dark); color: var(--white); text-decoration: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mid);
  padding: 14px 0;
  border: none;
  background: none;
  cursor: pointer;
  gap: 6px;
}

.btn-secondary:hover { color: var(--teal); text-decoration: none; }

/* Trust bar */
.trust-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 36px;
  height: 36px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg { width: 16px; height: 16px; }

.trust-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mid);
}

.trust-label strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

/* ── AUDIENCE BANNER ── */
.audience-banner {
  background: var(--dark);
  padding: 20px 0;
}

.audience-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.audience-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.audience-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.audience-chip {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 6px 14px;
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  line-height: 1.2;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 600px;
  line-height: 1.7;
}

/* ── PROBLEM SECTION ── */
.problem-section {
  padding: 88px 0;
  background: var(--light);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}

.problem-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.problem-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.problem-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── SERVICES ── */
.services-section {
  padding: 88px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card.featured {
  background: var(--teal-light);
  border-color: var(--teal-mid);
}

.service-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.service-card ul li {
  font-size: 0.88rem;
  color: var(--mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-card ul li:last-child { border-bottom: none; }

.service-card ul li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

.service-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── WHY ME ── */
.why-section {
  padding: 88px 0;
  background: var(--dark);
  color: var(--white);
}

.why-section .section-header h2 { color: var(--white); }
.why-section .section-header p { color: rgba(255,255,255,0.65); }
.why-section .section-eyebrow { color: var(--teal-mid); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-item {}

.why-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal-mid);
  line-height: 1;
  margin-bottom: 12px;
}

.why-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ── RESULTS ── */
.results-section {
  padding: 88px 0;
  background: var(--light);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.result-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.result-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 8px;
  line-height: 1;
}

.result-label {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.5;
}

/* ── FM HIGHLIGHT CARD ── */
.fm-section {
  padding: 72px 0;
  background: var(--white);
}

.fm-card {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  border-radius: 12px;
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  color: var(--white);
}

.fm-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.fm-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.fm-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 520px;
}

.fm-bullets {
  list-style: none;
  margin-bottom: 32px;
}

.fm-bullets li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  padding: 5px 0;
  display: flex;
  gap: 8px;
}

.fm-bullets li::before {
  content: '→';
  color: var(--teal-mid);
  font-weight: 700;
}

.fm-action { flex-shrink: 0; text-align: center; }

.fm-action .btn-light {
  display: inline-block;
  background: var(--white);
  color: var(--teal-dark);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.fm-action .btn-light:hover { background: var(--teal-light); text-decoration: none; }

/* ── HOW WE WORK ── */
.engagement-section {
  padding: 88px 0;
  background: var(--light);
}

.how-we-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.hww-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}

.hww-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.hww-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.hww-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.hww-card p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.65;
}

.hww-connector {
  display: none;
}

.engagement-cta {
  text-align: center;
}

.engagement-cta p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 16px;
}

/* ── CONTACT ── */
.contact-section {
  padding: 88px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  font-size: 0.9rem;
  color: var(--mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 12px;
}

.contact-details li:last-child { border-bottom: none; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit { width: 100%; }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 56px 0 32px;
}

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

.footer-brand .site-logo {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--teal-mid); text-decoration: none; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; }

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  transition: background 0.2s;
}

.footer-socials a:hover { background: var(--teal); color: var(--white); text-decoration: none; }

/* ── PAGE LAYOUT ── */
.page-hero {
  padding: 72px 0 56px;
  background: var(--light);
  border-bottom: 1px solid var(--rule);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 560px;
  line-height: 1.7;
}

.page-content {
  padding: 64px 0;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 16px;
}

.prose p {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 18px;
}

.prose ul {
  margin: 0 0 18px 20px;
}

.prose ul li {
  font-size: 0.95rem;
  color: var(--mid);
  margin-bottom: 8px;
}

/* ── SERVICES DETAIL PAGE ── */
.svc-detail-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}

.svc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.svc-detail-content h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin: 12px 0 16px;
  line-height: 1.2;
}

.svc-detail-content p {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 18px;
}

.svc-detail-content .btn-primary {
  margin-top: 8px;
}

.svc-detail-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
}

.svc-detail-card.featured {
  background: var(--teal-light);
  border-color: var(--teal-mid);
}

.svc-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.service-card-list {
  list-style: none;
  margin-bottom: 0;
}

.service-card-list li {
  font-size: 0.88rem;
  color: var(--mid);
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.service-card-list li:last-child { border-bottom: none; }

.service-card-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

.svc-engagement-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.svc-engagement-note p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .svc-detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── UTILITIES ── */
.section-divider {
  height: 1px;
  background: var(--rule);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .how-we-work-grid { grid-template-columns: 1fr; }
  .fm-card { grid-template-columns: 1fr; }
  .fm-action { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .problem-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .trust-bar { flex-direction: column; gap: 16px; }
  .fm-card { padding: 36px 28px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 16px 24px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 10px 0; }
}
