/* ═══════════════════════════════════════════════════════
   POTOMITAN ADVISORY — light corporate theme
   Navy / off-white / restrained gold. Same font pairing as
   the studio so the two sites read as one family.
   ═══════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:         #F7F6F2;
  --surface:    #FFFFFF;
  --surface-2:  #EFEDE6;
  --border:     #E1DED5;
  --navy:       #0B1F3A;
  --navy-2:     #12294A;
  --text:       #14213D;
  --muted:      #5B6478;
  --accent:     #B8932F;
  --accent-soft:#F3EAD3;
  --accent-ink: #7E6320;
  --ok:         #1F7A4D;
  --err:        #A83A2A;

  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  --radius:    10px;
  --radius-lg: 18px;
  --max-w:     1120px;
  --nav-h:     70px;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.consent a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(184,147,47,0.4); }
.consent a:hover { text-decoration-color: var(--accent-ink); }

[data-lang="fr"] .en,
[data-lang="en"] .fr { display: none; }

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(247,246,242,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 44px; width: auto; }
.nav-wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.nav-cross {
  color: var(--accent-ink);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.nav-links a.nav-cross:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  display: flex;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--border);
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--muted);
  padding: 4px 12px; border-radius: 999px; transition: all .2s;
}
.lang-btn.active { background: var(--navy); color: #fff; }
.nav-hamburger { display: none; }

/* ─── SECTIONS ───────────────────────────────────────── */
section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem;
}
section:first-of-type { padding-top: calc(var(--nav-h) + 5rem); }
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 3rem; font-size: 1.05rem; }
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
h2 em { font-style: italic; color: var(--accent); }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.925rem; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-1px); }

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  position: relative;
  padding-bottom: 5rem;
}
#hero::before {
  /* faint engineering grid, fades toward the bottom */
  content: '';
  position: absolute; inset: 0 0 20% 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(11,31,58,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,58,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600;
  margin-bottom: 1.75rem;
}
.hero-tag::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 54ch;
  margin-bottom: 2.25rem;
}
.hero-cred { font-size: 0.9rem; letter-spacing: 0.02em; color: var(--navy); font-weight: 500; margin: 0 0 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); max-width: 54ch; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-copy { max-width: 760px; }

/* ─── EXPERTISE ──────────────────────────────────────── */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.exp-card:hover { border-color: var(--accent); box-shadow: 0 16px 40px -20px rgba(11,31,58,0.25); transform: translateY(-2px); }
.exp-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
}
.exp-icon svg { width: 22px; height: 22px; }
.exp-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--navy);
}
.exp-card > p { color: var(--muted); font-size: 0.95rem; }
.modules-line { margin-top: 1.5rem; font-size: 0.8rem; color: var(--muted); line-height: 1.6; max-width: 90ch; }

/* ─── FORMATS ───────────────────────────────────────── */
#formats { max-width: none; padding: 0; background: var(--navy); color: #E8E8E0; }
.approach-inner { max-width: var(--max-w); margin: 0 auto; padding: 6rem 2rem; }
#formats .section-label { color: #C9A84C; }
#formats h2 { color: #fff; margin-bottom: 3rem; }
#formats h2 em { color: #C9A84C; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 0.75rem; }
.step p { color: rgba(232,232,224,0.72); font-size: 0.95rem; }

/* ─── EXPERIENCE ─────────────────────────────────────── */
#experience .section-intro { max-width: 78ch; }
.xp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.xp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.xp-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.25; color: var(--navy); }
.xp-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* ─── CONTACT ────────────────────────────────────────── */
#contact { padding-top: 2rem; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
}
.contact-copy p { color: var(--muted); margin-bottom: 1.75rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 600; color: var(--navy);
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--border); border-radius: 999px;
  margin-bottom: 1.25rem;
  transition: border-color .2s;
}
.contact-email:hover { border-color: var(--navy); }
.contact-email svg { width: 18px; height: 18px; opacity: 0.6; }
.contact-meta { font-size: 0.82rem; color: var(--muted); margin: 0 !important; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6478' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.2rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,31,58,0.10);
}
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.82rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 0.25rem; accent-color: var(--navy); flex-shrink: 0; }
.btn-submit { align-self: flex-start; }
.form-status { font-size: 0.875rem; min-height: 1.4em; }
.form-status.is-ok      { color: var(--ok); }
.form-status.is-error   { color: var(--err); }
.form-status.is-pending { color: var(--muted); }
/* honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 2rem; background: var(--surface); }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.footer-logo img { height: 28px; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.8rem; color: var(--muted); }
.footer-links a:hover { color: var(--navy); }
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-note {
  max-width: var(--max-w); margin: 1.25rem auto 0;
  font-size: 0.72rem; color: var(--muted); opacity: 0.8; line-height: 1.5;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
  .exp-grid, .xp-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; padding: 2.5rem; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 4rem 1rem; }
  section:first-of-type { padding-top: calc(var(--nav-h) + 3rem); }
  .approach-inner { padding: 4rem 1rem; }
  .nav-inner { padding: 0 1rem; }
  .nav-hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-hamburger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0.5rem 1rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.8rem 0; font-size: 1rem; }
  .nav-links a.nav-cross { display: inline-block; margin-top: 0.5rem; }
  .exp-grid, .xp-grid { grid-template-columns: 1fr; }
  .exp-card { padding: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { padding: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
