/* Alpine Documentation Services — styles.css */

:root {
  --petrol: #123F3A;
  --petrol-700: #0D302C;
  --bg: #F7F3EA;
  --surface: #FFFFFF;
  --line: #DDD7CC;
  --brass: #C58A2A;
  --brass-deep: #98671C;
  --text: #1F2623;
  --text-soft: #4A524D;
  --cream-soft: #EFE9DB;

  --maxw: 1120px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(18,63,58,0.04), 0 8px 30px rgba(18,63,58,0.06);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--petrol);
  margin: 0;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 18px;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-brass { background: var(--brass); color: #241a05; border-color: var(--brass); }
.btn-brass:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: #fff; }

.btn-petrol { background: var(--petrol); color: #F3F0E7; border-color: var(--petrol); }
.btn-petrol:hover { background: var(--petrol-700); }

.btn-outline { background: transparent; color: var(--petrol); border-color: var(--line); }
.btn-outline:hover { border-color: var(--petrol); }

.btn-ghost-light { background: transparent; color: #EFE9DB; border-color: rgba(239,233,219,0.35); }
.btn-ghost-light:hover { border-color: #EFE9DB; }

/* ---------- Utility bar (flags + language switch) ---------- */
.util-bar {
  background: var(--petrol-700);
  color: #C3CCC6;
}
.util-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.util-flags { display: flex; align-items: center; gap: 7px; font-size: 13px; letter-spacing: 0.02em; }
.util-flags .flag-sep { color: #5D6B65; }
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9FAAA3;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.lang-btn:hover { color: #EFE9DB; }
.lang-btn.active { color: #F3EFE4; border-color: rgba(197,138,42,0.5); background: rgba(197,138,42,0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,243,234,0.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--petrol);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--petrol);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--text-soft);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--petrol); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--petrol); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 76px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.15rem);
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 1.075rem;
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 14px;
}
.hero-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass-deep);
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Dossier signature card */
.dossier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 26px 26px 24px;
}
.dossier::before {
  content: "";
  position: absolute;
  top: -10px; left: 34px;
  width: 108px; height: 20px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.dossier-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.dossier-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--petrol); }
.dossier-ref { font-family: var(--font-mono); font-size: 11px; color: var(--text-soft); letter-spacing: 0.12em; }
.dossier-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.dossier-row:last-child { border-bottom: none; }
.dossier-check {
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  background: rgba(18,63,58,0.08);
  display: flex; align-items: center; justify-content: center;
}
.dossier-check svg { width: 12px; height: 12px; stroke: var(--petrol); }
.dossier-label { font-size: 14.5px; color: var(--text); flex: 1 1 auto; min-width: 0; }
.dossier-tag {
  margin-left: auto;
  flex: none;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--brass-deep);
  text-transform: uppercase;
}

/* ---------- Section shells ---------- */
.section { padding: 74px 0; }
.section-petrol { background: var(--petrol); color: #E9E3D6; }
.section-petrol h2, .section-petrol h3 { color: #F3EFE4; }
.section-petrol .eyebrow { color: var(--brass); }
.section-head { max-width: 62ch; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); margin-bottom: 14px; }
.section-head p { color: var(--text-soft); }
.section-petrol .section-head p { color: #C3BFB2; }

/* ---------- Arguments ---------- */
.arg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.arg {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.arg-ico {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--cream-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.arg-ico svg { width: 21px; height: 21px; stroke: var(--brass-deep); }
.arg h3 { font-size: 1.2rem; margin-bottom: 8px; }
.arg p { font-size: 15px; color: var(--text-soft); }

/* ---------- Packages ---------- */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.pkg {
  background: #FBFAF5;
  border: 1px solid rgba(239,233,219,0.18);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.pkg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pkg-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  background: rgba(197,138,42,0.12);
  padding: 4px 9px;
  border-radius: 5px;
}
.pkg h3 { color: var(--petrol); font-size: 1.35rem; }
.pkg p { font-size: 15px; color: var(--text-soft); }
.pkg p.pkg-lead { color: var(--text); margin-bottom: 8px; }

/* ---------- Note box (fees, language availability) ---------- */
.note-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #FBFAF5;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin-top: 26px;
}
.note-box svg { flex: none; width: 19px; height: 19px; stroke: var(--brass-deep); margin-top: 2px; }
.note-box p { font-size: 13.5px; line-height: 1.6; color: var(--text-soft); }
.section-petrol .note-box { background: rgba(255,255,255,0.05); border-color: rgba(239,233,219,0.16); border-left-color: var(--brass); }
.section-petrol .note-box p { color: #C3BFB2; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 46px;
  align-items: start;
}
.about-photo-wrap { position: sticky; top: 96px; }
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--petrol); margin-top: 14px; }
.about-role { font-size: 13px; color: var(--text-soft); margin-top: 3px; }
.about-copy p { font-size: 15px; line-height: 1.75; color: var(--text-soft); margin-bottom: 16px; }
.about-copy strong { color: var(--petrol); font-weight: 500; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brass-deep);
  line-height: 1;
  flex: none;
  width: 46px;
  padding-top: 2px;
  border-right: 1px solid var(--line);
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; color: var(--petrol); }
.step p { font-size: 14.5px; color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 30px 28px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: #FBFAF5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(18,63,58,0.10);
}
.field textarea { min-height: 120px; resize: vertical; }
.contact-info .eyebrow { color: var(--brass); }
.contact-info h2 { color: #F3EFE4; font-size: clamp(1.7rem,3vw,2.2rem); margin-bottom: 14px; }
.contact-info p { color: #C3BFB2; margin-bottom: 22px; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #EFE9DB;
  text-decoration: none;
  border-bottom: 1px solid rgba(197,138,42,0.6);
  padding-bottom: 3px;
}
.contact-mail svg { width: 16px; height: 16px; stroke: var(--brass); }

/* ---------- Footer / legal ---------- */
.site-footer { background: var(--petrol-700); color: #B9C2BC; padding: 54px 0 40px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(239,233,219,0.14);
  margin-bottom: 26px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #F3EFE4; }
.footer-brand .brand-sub { color: #93A099; }
.legal-note { font-size: 13.5px; line-height: 1.7; color: #9FAAA3; max-width: 60ch; }
.footer-legal h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 12px;
  font-weight: 400;
}
.footer-legal p { font-size: 13.5px; line-height: 1.65; color: #C3CCC6; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8C978F;
}
.footer-bottom a { color: #C3CCC6; text-decoration: none; }
.footer-bottom a:hover { color: #F3EFE4; }
.footer-links { display: flex; gap: 22px; }

/* ---------- Legal page ---------- */
.legal-page { padding: 60px 0 80px; }
.legal-page .container { max-width: 780px; }
.legal-page h1 { font-size: clamp(1.9rem,4vw,2.6rem); margin-bottom: 10px; }
.legal-page .lead { color: var(--text-soft); margin-bottom: 40px; }
.legal-block { margin-bottom: 34px; }
.legal-block h2 { font-size: 1.3rem; margin-bottom: 10px; }
.legal-block h3 { font-size: 1.05rem; margin: 18px 0 6px; color: var(--petrol); }
.legal-block p { color: var(--text-soft); margin-bottom: 12px; }
.legal-block ul { color: var(--text-soft); margin: 0 0 12px; padding-left: 20px; }
.legal-block li { margin-bottom: 6px; }
.legal-data {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 15px;
  line-height: 1.8;
}
.placeholder { color: var(--brass-deep); font-family: var(--font-mono); font-size: 13px; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; text-decoration: none; color: var(--petrol);
  margin-bottom: 30px;
}
.back-link svg { width: 16px; height: 16px; stroke: var(--petrol); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .dossier { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-photo-wrap { position: static; max-width: 220px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 28px 20px;
  }
  .nav.open .nav-links a { padding: 8px 0; }
  .nav.open .btn { display: inline-flex; margin-top: 8px; }
  .arg-grid, .pkg-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 52px; }
  .section { padding: 54px 0; }
  .util-inner { padding: 6px 16px; }
  .util-flags { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
