/* ============================================
   GOMAND CONSULT — DESIGN SYSTEM
   Palette: paper white / graphite ink / cobalt / gold accent
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;1,400;1,500&display=swap');

:root {
  --paper: #F1F3F5;
  --paper-dim: #E4E9EC;
  --ink: #252A2B;
  --ink-soft: #5A6E73;
  --ink-faint: #859CA6;
  --cobalt: #324A59;
  --cobalt-light: #687E8C;
  --gold: #E86A4A;
  --gold-soft: #FBEAE3;
  --line: #D6DCDF;
  --white: #FFFFFF;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-voice: 'Lora', serif;

  --max-width: 1180px;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); text-wrap: balance; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); text-wrap: balance; }

body, p {
  font-weight: 300;
}
p { color: var(--ink-soft); text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
}

/* ============ THE SIGNATURE LINE ============
   A thin horizontal rule that "draws" across the section
   on scroll — the throughline motif for "Clarté". */
.clarity-line {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 64px 0;
  overflow: hidden;
}
.clarity-line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 1px;
  width: 0%;
  background: var(--gold);
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.clarity-line.drawn::after {
  width: 100%;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.site-footer .logo img {
  height: 28px;
}
.logo .mark {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 3px;
  display: inline-block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--ink);
}
.nav-desktop a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--cobalt);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ============ IMMERSIVE HERO (2026) ============ */
.hero-immersive {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -1px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1C2A33;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.hero-blob-1 {
  width: 54vw;
  max-width: 640px;
  height: 54vw;
  max-height: 640px;
  background: var(--gold);
  opacity: 0.58;
  top: -20%;
  right: -12%;
  animation: blobFloat 24s ease-in-out infinite;
}
.hero-blob-2 {
  width: 46vw;
  max-width: 560px;
  height: 46vw;
  max-height: 560px;
  background: var(--cobalt-light);
  opacity: 0.52;
  bottom: -24%;
  left: -10%;
  animation: blobFloat 28s ease-in-out infinite reverse;
}
.hero-blob-3 {
  width: 30vw;
  max-width: 380px;
  height: 30vw;
  max-height: 380px;
  background: var(--cobalt);
  opacity: 0.46;
  top: 32%;
  left: 30%;
  animation: blobFloat 32s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0%, 0%) scale(1); }
  50% { transform: translate(-3%, 3%) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,23,28,0.35) 0%, rgba(16,21,26,0.6) 45%, rgba(13,18,23,0.96) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-immersive-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 120px;
  width: 100%;
}
.hero-immersive-content .eyebrow {
  color: var(--gold);
}
.hero-immersive-content h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5rem);
  animation: heroRise 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-immersive-content .lede {
  color: rgba(255,255,255,0.82);
  max-width: 46ch;
  font-size: 1.15rem;
  animation: heroRise 0.9s cubic-bezier(0.16,1,0.3,1) 0.12s both;
}
.hero-immersive-content .hero-actions {
  animation: heroRise 0.9s cubic-bezier(0.16,1,0.3,1) 0.24s both;
}
.hero-immersive-content .eyebrow {
  animation: heroRise 0.9s cubic-bezier(0.16,1,0.3,1) 0s both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-immersive-content h1,
  .hero-immersive-content .lede,
  .hero-immersive-content .hero-actions,
  .hero-immersive-content .eyebrow {
    animation: none;
  }
}
.hero-immersive .btn-ghost {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.1);
}
.hero-immersive .btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.2);
}
.stat-float-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 760px;
  margin: -48px auto 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(20,26,31,0.18);
}
.stat-float {
  background: var(--white);
  padding: 22px 20px;
  text-align: center;
}
.stat-float .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cobalt);
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat-float .label {
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin-top: 4px;
}
@media (max-width: 720px) {
  .hero-immersive { min-height: 92vh; }
  .stat-float-row { grid-template-columns: 1fr; margin-top: -32px; max-width: 88%; }
}

/* ============ HERO (legacy, subpages) ============ */
.hero {
  padding: 64px 0 56px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
}
.hero h1 {
  margin-top: 20px;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 24px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 36px;
}
.hero-stat {
  background: var(--white);
  padding: 20px 18px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cobalt);
  display: block;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hero-stat .label {
  font-size: 0.76rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

.photo-card {
  background: var(--gold-soft);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255,255,255,0.92);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  z-index: 2;
}

/* ============ SECTIONS ============ */
section {
  padding: 64px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head h2 {
  margin-top: 14px;
}
.section-head p {
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ============ METHOD (process steps) ============ */
.method-list {
  display: grid;
  gap: 0;
}
.method-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.method-item:last-child {
  border-bottom: 1px solid var(--line);
}
.method-item .step-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-faint);
  padding-top: 4px;
}
.method-item h3 {
  margin-bottom: 10px;
}

/* ============ SERVICE CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--cobalt-light);
  transform: translateY(-2px);
}
.service-card.featured {
  border: 1.5px solid var(--gold);
  background: var(--gold-soft);
}
.service-card .tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.service-card h3 {
  margin: 14px 0 12px;
}
.service-card p {
  font-size: 0.94rem;
  margin-bottom: 18px;
}
.service-card .link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .link svg {
  transition: transform 0.2s ease;
}
.service-card:hover .link svg {
  transform: translateX(3px);
}

/* ============ TRUST STRIP ============ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.trust-item {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.trust-item h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.trust-item p {
  font-size: 0.92rem;
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--cobalt);
  color: var(--white);
  padding: 80px 0;
}
.cta-band h2 {
  color: var(--white);
  max-width: 20ch;
}
.cta-band p {
  color: #C9D5E3;
  margin-top: 16px;
  max-width: 48ch;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band .btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.cta-band .btn-primary:hover {
  background: var(--white);
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: var(--ink-faint);
}
.footer-bottom a:hover {
  color: var(--ink);
}

/* ============ QUOTE / VOICE BLOCK ============ */
.quote-block {
  border-radius: var(--radius);
  background: var(--cobalt);
  color: var(--white);
  padding: 48px 56px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.quote-block::before {
  content: '"';
  font-family: var(--font-voice);
  font-style: italic;
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.quote-block p {
  font-family: var(--font-voice);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: #D7E0E4;
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 auto;
}
.quote-block .who {
  font-family: var(--font-body);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 20px;
}

/* ============ BREADCRUMB (service pages) ============ */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  padding: 24px 0 0;
}
.breadcrumb a:hover {
  color: var(--ink);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .method-item { grid-template-columns: 60px 1fr; }
}

@media (max-width: 720px) {
  .site-header .container { flex-wrap: wrap; height: auto; padding: 24px 32px; }
  .logo { order: 1; }
  .nav-toggle { display: flex; order: 2; }
  .site-header .btn-primary { display: none; }
  .nav-desktop {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0 8px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }
  .nav-desktop.nav-open { display: flex; }
  .nav-desktop a { width: 100%; padding: 10px 4px; }
  .nav-desktop.nav-open ~ .btn-primary {
    display: inline-flex;
    order: 4;
    width: 100%;
    justify-content: center;
    margin: 4px 0 16px;
  }
  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Several pages set a 2-column split-content grid via inline style; force it to stack on mobile */
  .container[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

/* ============ COOKIE CONSENT BANNER ============ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--ink);
  color: rgba(255,255,255,0.88);
  padding: 20px 32px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
}
.cookie-banner p {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  max-width: 62ch;
  margin: 0;
}
.cookie-banner p a {
  color: var(--white);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-banner .btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.cookie-banner .btn-ghost:hover {
  border-color: var(--white);
}
@media (max-width: 720px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px 24px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}
