/* InnovaEarth — Site Styles
   Brand: deep navy + teal, off-white surfaces, generous whitespace */

:root {
  --ie-navy-900: #0F2742;
  --ie-navy-700: #163A5C;
  --ie-navy-500: #2A567E;
  --ie-teal-600: #2BA89E;
  --ie-teal-500: #3FBFB4;
  --ie-teal-400: #6FD3CB;
  --ie-bg: #F7F8FA;
  --ie-surface: #FFFFFF;
  --ie-text: #1F2937;
  --ie-muted: #64748B;
  --ie-border: #E5E7EB;
  --ie-border-strong: #CBD5E1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ie-text);
  background: var(--ie-bg);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Fraunces', 'Source Serif 4', Georgia, serif; font-weight: 600; color: var(--ie-navy-700); letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1rem; }
a { color: var(--ie-navy-700); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--ie-teal-600); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* Eyebrow text */
.eyebrow { font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ie-teal-600); margin-bottom: 1rem; display: inline-block; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--ie-border); background: rgba(255,255,255,0.95); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.5rem; max-width: 1280px; margin: 0 auto; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 56px; width: auto; display: block; }
@media (min-width: 1024px) { .brand img { height: 64px; } }
.nav-links { display: none; gap: 2rem; align-items: center; flex: 1; justify-content: center; }
.nav-links a { font-size: 0.9375rem; font-weight: 500; color: var(--ie-text); }
.nav-links a:hover, .nav-links a.active { color: var(--ie-teal-600); }
.nav-cta { display: none; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.5rem; border-radius: 6px; font-weight: 600; font-size: 0.9375rem; transition: all 0.18s ease; cursor: pointer; border: 1px solid transparent; line-height: 1; white-space: nowrap; }
.btn-primary { background: var(--ie-navy-700); color: #fff; }
.btn-primary:hover { background: var(--ie-navy-900); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,39,66,0.18); }
.btn-secondary { background: transparent; color: var(--ie-navy-700); border-color: var(--ie-border-strong); }
.btn-secondary:hover { border-color: var(--ie-navy-700); color: var(--ie-navy-900); }
.btn-teal { background: var(--ie-teal-500); color: var(--ie-navy-900); }
.btn-teal:hover { background: var(--ie-teal-400); color: var(--ie-navy-900); transform: translateY(-1px); }
.btn-arrow::after { content: "→"; font-weight: 400; transition: transform 0.18s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* Mobile menu */
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: none; cursor: pointer; color: var(--ie-navy-700); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.mobile-drawer { position: fixed; inset: 0; background: rgba(15,39,66,0.4); z-index: 100; opacity: 0; visibility: hidden; transition: opacity 0.2s ease; }
.mobile-drawer.open { opacity: 1; visibility: visible; }
.mobile-drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: 88%; max-width: 360px; background: #fff; padding: 1.5rem; transform: translateX(100%); transition: transform 0.25s ease; display: flex; flex-direction: column; }
.mobile-drawer.open .panel { transform: translateX(0); }
.mobile-drawer .close { align-self: flex-end; background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--ie-navy-700); margin-bottom: 1rem; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-drawer nav a { padding: 0.875rem 0; font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid var(--ie-border); color: var(--ie-text); }
.mobile-drawer nav a:hover, .mobile-drawer nav a.active { color: var(--ie-teal-600); }
.mobile-drawer .btn { margin-top: auto; justify-content: center; }

/* Sections */
section { padding: clamp(4rem, 8vw, 7rem) 0; }
section.tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }

/* Hero */
.hero { position: relative; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ie-muted); max-width: 580px; margin-bottom: 2rem; line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* Globe motif (SVG container) */
.globe-motif { aspect-ratio: 1; max-width: 460px; margin: 0 auto; opacity: 0.95; }
.globe-motif svg { width: 100%; height: 100%; }

/* Trust strip */
.trust-strip { padding: 1.25rem 0; background: var(--ie-surface); border-top: 1px solid var(--ie-border); border-bottom: 1px solid var(--ie-border); }
.trust-strip p { margin: 0; text-align: center; color: var(--ie-muted); font-size: 0.9375rem; letter-spacing: 0.01em; }

/* Section headers */
.section-head { text-align: left; max-width: 760px; margin-bottom: 3rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 1rem; }
.section-head .lead { color: var(--ie-muted); font-size: 1.0625rem; max-width: 640px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Service tile grid */
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--ie-surface); border: 1px solid var(--ie-border); border-top: 3px solid var(--ie-teal-500); padding: 1.75rem; border-radius: 4px; transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; display: flex; flex-direction: column; }
.tile:hover { border-top-color: var(--ie-teal-600); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,39,66,0.06); }
.tile h3 { margin-bottom: 0.625rem; font-size: 1.25rem; }
.tile p { color: var(--ie-muted); font-size: 0.9375rem; margin-bottom: 1rem; flex: 1; }
.tile .tile-link { font-size: 0.875rem; font-weight: 600; color: var(--ie-navy-700); }
.tile .tile-link::after { content: " →"; transition: padding-left 0.18s ease; }
.tile:hover .tile-link::after { padding-left: 4px; }

/* Domain card grid (Solutions) */
.domain-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) { .domain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .domain-grid { grid-template-columns: repeat(3, 1fr); } }
.domain-card { background: var(--ie-surface); border: 1px solid var(--ie-border); padding: 2rem 1.75rem; border-radius: 6px; transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; }
.domain-card:hover { border-color: var(--ie-teal-500); box-shadow: 0 12px 28px rgba(15,39,66,0.07); transform: translateY(-2px); }
.domain-card .glyph { width: 48px; height: 48px; margin-bottom: 1.25rem; color: var(--ie-teal-600); }
.domain-card h3 { margin-bottom: 0.625rem; font-size: 1.25rem; }
.domain-card p { color: var(--ie-muted); font-size: 0.9375rem; margin: 0; }

/* Audience band (Who We Serve) */
.audience-band { padding: 3rem 0; border-bottom: 1px solid var(--ie-border); }
.audience-band:last-of-type { border-bottom: none; }
.audience-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 800px) { .audience-grid { grid-template-columns: 1fr 2fr; gap: 3rem; } }
.audience-grid h3 { font-size: 1.5rem; }
.audience-grid .meta { color: var(--ie-muted); font-size: 0.875rem; margin-top: 0.5rem; }
.audience-grid .triplet { display: grid; gap: 1.25rem; }
.audience-grid .triplet > div { padding-left: 1rem; border-left: 2px solid var(--ie-teal-500); }
.audience-grid .triplet h4 { font-family: 'Inter', sans-serif; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ie-teal-600); margin-bottom: 0.375rem; font-weight: 600; }
.audience-grid .triplet p { font-size: 0.9375rem; color: var(--ie-text); margin: 0; }

/* Three-step process */
.steps { display: grid; grid-template-columns: 1fr; gap: 2rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); position: relative; } }
.step { padding: 1.5rem 0; }
.step .num { font-family: 'Fraunces', serif; font-size: 2.5rem; color: var(--ie-teal-500); line-height: 1; margin-bottom: 1rem; font-weight: 600; }
.step h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.step p { color: var(--ie-muted); font-size: 0.9375rem; margin: 0; }

/* Proof bullets row */
.proof-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 700px) { .proof-row { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .proof-row { grid-template-columns: repeat(4, 1fr); } }
.proof { padding-top: 1.25rem; border-top: 2px solid var(--ie-teal-500); }
.proof h4 { font-family: 'Fraunces', serif; font-size: 1.125rem; margin-bottom: 0.5rem; color: var(--ie-navy-700); }
.proof p { color: var(--ie-muted); font-size: 0.9375rem; margin: 0; }

/* Dark CTA section */
.dark-cta { background: var(--ie-navy-900); color: #fff; padding: clamp(4rem, 7vw, 6rem) 0; position: relative; overflow: hidden; }
.dark-cta h2 { color: #fff; margin-bottom: 1rem; }
.dark-cta p { color: rgba(255,255,255,0.78); max-width: 580px; margin-bottom: 2rem; font-size: 1.0625rem; }
.dark-cta .container { position: relative; z-index: 2; }
.dark-cta::before { content: ''; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(63,191,180,0.18); }
.dark-cta::after { content: ''; position: absolute; right: -160px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(63,191,180,0.12); }

/* Inline mid-page CTA */
.cta-strip { background: var(--ie-surface); border: 1px solid var(--ie-border); border-radius: 8px; padding: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (min-width: 700px) { .cta-strip { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-strip p { margin: 0; font-size: 1.0625rem; color: var(--ie-text); }
.cta-strip strong { color: var(--ie-navy-700); }

/* Practice band (Services page) */
.practice { padding: 3rem 0; border-bottom: 1px solid var(--ie-border); }
.practice:last-of-type { border-bottom: none; }
.practice-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 800px) { .practice-grid { grid-template-columns: 80px 1fr; gap: 2rem; } }
.practice-num { font-family: 'Fraunces', serif; font-size: 2.5rem; color: var(--ie-teal-500); font-weight: 600; line-height: 1; }
.practice h3 { font-size: 1.625rem; margin-bottom: 1rem; }
.practice .chip { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.375rem 0.75rem; background: rgba(63,191,180,0.12); color: var(--ie-teal-600); border-radius: 100px; margin-bottom: 1rem; }
.practice p.body { color: var(--ie-text); font-size: 1rem; margin-bottom: 1rem; max-width: 720px; }
.practice .outcome { color: var(--ie-muted); font-size: 0.9375rem; margin-bottom: 1.25rem; }
.practice .outcome strong { color: var(--ie-navy-700); font-family: 'Inter', sans-serif; font-weight: 600; }

/* AI page — three layer stack */
.stack { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 720px; margin: 0 auto; }
.stack .layer { background: var(--ie-surface); border: 1px solid var(--ie-border); border-radius: 8px; padding: 1.5rem 1.75rem; display: flex; gap: 1.25rem; align-items: center; }
.stack .layer .badge { width: 56px; height: 56px; flex: none; border-radius: 8px; background: rgba(63,191,180,0.12); color: var(--ie-teal-600); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.25rem; }
.stack .layer h4 { font-family: 'Fraunces', serif; margin-bottom: 0.25rem; color: var(--ie-navy-700); font-size: 1.125rem; }
.stack .layer p { margin: 0; font-size: 0.9375rem; color: var(--ie-muted); }

/* Use-case scroll row */
.scroll-row { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; margin: 0 -1.5rem; padding: 0 1.5rem 1.5rem; }
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--ie-border-strong); border-radius: 3px; }
.use-case { flex: 0 0 320px; background: var(--ie-surface); border: 1px solid var(--ie-border); border-radius: 8px; padding: 1.5rem; scroll-snap-align: start; }
@media (min-width: 700px) { .use-case { flex: 0 0 360px; } }
.use-case .label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ie-teal-600); margin-bottom: 0.625rem; }
.use-case h4 { font-family: 'Fraunces', serif; font-size: 1.0625rem; margin-bottom: 0.625rem; color: var(--ie-navy-700); }
.use-case p { font-size: 0.9375rem; color: var(--ie-muted); margin: 0; }

/* Insight categories grid */
.insight-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .insight-grid { grid-template-columns: repeat(3, 1fr); } }
.insight-card { background: var(--ie-surface); border: 1px solid var(--ie-border); border-radius: 8px; overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.insight-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,39,66,0.08); }
.insight-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--ie-navy-700), var(--ie-teal-600)); display: flex; align-items: center; justify-content: center; }
.insight-card .thumb svg { width: 56px; height: 56px; color: rgba(255,255,255,0.85); }
.insight-card .body { padding: 1.5rem; }
.insight-card .label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ie-teal-600); margin-bottom: 0.625rem; }
.insight-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.insight-card p { font-size: 0.9375rem; color: var(--ie-muted); margin: 0; }

/* Forms (Contact) */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.contact-form { background: var(--ie-surface); border: 1px solid var(--ie-border); border-radius: 8px; padding: 2rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--ie-navy-700); margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.field input, .field select, .field textarea { font-family: inherit; font-size: 1rem; padding: 0.875rem 1rem; border: 1px solid var(--ie-border-strong); border-radius: 6px; background: var(--ie-bg); transition: border-color 0.15s ease, box-shadow 0.15s ease; color: var(--ie-text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ie-teal-500); box-shadow: 0 0 0 3px rgba(63,191,180,0.18); background: #fff; }
.field textarea { resize: vertical; min-height: 140px; }
.field .helper { font-size: 0.8125rem; color: var(--ie-muted); margin-top: 0.375rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.contact-info { padding-top: 0.5rem; }
.contact-info h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.contact-info ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-info li { padding: 0.625rem 0; border-bottom: 1px solid var(--ie-border); font-size: 0.9375rem; color: var(--ie-text); }
.contact-info li strong { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ie-teal-600); margin-bottom: 0.25rem; }
.contact-info a { color: var(--ie-navy-700); }
.partnership-block { background: var(--ie-surface); border: 1px solid var(--ie-border); border-radius: 8px; padding: 2rem; margin-top: 4rem; }
.partnership-block h3 { margin-bottom: 0.75rem; }
.partnership-block p { color: var(--ie-muted); margin: 0; }

/* About page */
.values-grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--ie-border); border-radius: 8px; overflow: hidden; background: var(--ie-surface); }
@media (min-width: 700px) { .values-grid { grid-template-columns: 1fr 1fr; } }
.value { padding: 2rem; border-bottom: 1px solid var(--ie-border); border-right: 1px solid var(--ie-border); }
.value:last-child, .value:nth-child(3) { border-bottom: 0; }
@media (min-width: 700px) {
  .value:nth-child(2n) { border-right: 0; }
  .value:nth-child(3) { border-bottom: 0; }
}
.value h4 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--ie-navy-700); }
.value p { font-size: 0.9375rem; color: var(--ie-muted); margin: 0; }

/* Pull quote */
.pullquote { font-family: 'Fraunces', serif; font-size: clamp(1.375rem, 2.5vw, 1.875rem); line-height: 1.4; color: var(--ie-navy-700); border-left: 3px solid var(--ie-teal-500); padding-left: 1.5rem; margin: 2.5rem 0; max-width: 760px; }

/* Footer */
.site-footer { background: var(--ie-navy-900); color: rgba(255,255,255,0.85); padding: 4rem 0 2rem; }
.site-footer .container { padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 3rem; } }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand img { height: 72px; width: auto; margin-bottom: 1.25rem; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9375rem; max-width: 320px; }
.footer-col h5 { font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ie-teal-400); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.625rem; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 0.9375rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; justify-content: space-between; font-size: 0.8125rem; color: rgba(255,255,255,0.55); }
@media (min-width: 700px) { .footer-bottom { flex-direction: row; align-items: center; } }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');
