:root {
  --navy: #0D1B2A;
  --sage: #B9C5AE;
  --dark-sage: #7A8F6E;
  --cream: #F5F3EE;
  --bg-soft: #F7F8F6;
  --border: #E6E9E6;
  --muted: #A6ADA6;
  --ink: #2B2F2E;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.04), 0 1px 3px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(13, 27, 42, 0.08);

  --font-head: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Montserrat Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1120px;
}

/* Metric-adjusted fallbacks to minimize CLS when web fonts swap in. */
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Georgia");
  size-adjust: 96%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Helvetica"), local("Arial");
  size-adjust: 104%;
  ascent-override: 90%;
  descent-override: 24%;
  line-gap-override: 0%;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

img, svg { max-width: 100%; height: auto; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

a { color: var(--navy); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 180ms ease, color 180ms ease; }
a:hover, a:focus-visible { border-color: currentColor; }

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

.skip-link {
  position: absolute; left: -9999px; top: -9999px;
  background: var(--navy); color: var(--cream);
  padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus-visible { left: 16px; top: 16px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 243, 238, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  border: 0; color: var(--navy);
}
.brand-mark {
  display: block;
  width: 44px; height: 44px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.08), 0 2px 6px rgba(13, 27, 42, 0.06);
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.brand:hover .brand-mark { transform: rotate(-3deg) scale(1.04); }
.brand-name {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 500; line-height: 1;
  color: var(--navy);
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 13px; letter-spacing: 0.08em;
}
.lang-btn {
  background: transparent; border: 0; padding: 10px 10px; cursor: pointer;
  font-family: inherit; font-size: inherit; letter-spacing: inherit;
  color: var(--muted); font-weight: 600;
  border-radius: 6px;
  min-height: 44px; min-width: 44px;
}
.lang-btn.is-active { color: var(--navy); }
.lang-btn:hover { color: var(--navy); }
.lang-btn:focus-visible { outline: 2px solid var(--dark-sage); outline-offset: 2px; }
.lang-sep { color: var(--muted); user-select: none; }

/* Hero */
.hero {
  position: relative;
  padding: 84px 0 72px;
  background:
    radial-gradient(1000px 420px at 80% -10%, rgba(185, 197, 174, 0.45), transparent 60%),
    radial-gradient(700px 360px at 0% 10%, rgba(122, 143, 110, 0.12), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.hero-inner { max-width: 820px; }

.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dark-sage); font-weight: 600;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 6.2vw, 72px);
  margin-bottom: 20px;
  font-weight: 500;
}
.hero-title span { display: block; }
.hero-title-accent { font-style: italic; color: var(--dark-sage); }

.hero-lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }

.hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dark-sage);
  box-shadow: 0 0 0 4px rgba(122, 143, 110, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  padding: 14px 22px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent;
  transition: transform 120ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  text-decoration: none; line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--dark-sage); outline-offset: 2px; }
.btn-primary {
  background: var(--navy); color: var(--cream); border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #142740; border-color: #142740; }
.btn-ghost {
  background: transparent; color: var(--navy); border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

.btn-spinner {
  display: none;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Services */
.services {
  background: var(--bg-soft);
  padding: 84px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 10px;
}
.section-lead {
  color: var(--ink); font-size: 17px; max-width: 620px; margin-bottom: 40px;
}

.service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--sage); color: var(--navy);
  margin-bottom: 18px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-name { font-size: 26px; margin-bottom: 8px; }
.service-desc { color: var(--ink); font-size: 15px; }

.bilingual-banner {
  margin-top: 48px;
  background: var(--navy); color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.bilingual-banner p { font-size: 16px; color: var(--cream); }
.bilingual-badge {
  background: var(--sage); color: var(--navy);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
}

/* Contact */
.contact {
  padding: 84px 0; background: var(--cream);
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}
.contact-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px;
  align-items: start;
}
.contact-copy .section-title { margin-bottom: 12px; }
.contact-points {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 12px;
}
.contact-points li {
  position: relative; padding-left: 26px;
  font-size: 15px; color: var(--ink);
}
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 14px; height: 2px; background: var(--dark-sage); border-radius: 2px;
}

.contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field-row .field { margin-bottom: 16px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: 0.02em;
}
.field label .muted { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--dark-sage);
  box-shadow: 0 0 0 3px rgba(122, 143, 110, 0.2);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b14343;
  box-shadow: 0 0 0 3px rgba(177, 67, 67, 0.12);
}

.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.form-status {
  margin-top: 14px; font-size: 14px; min-height: 20px;
}
.form-status.is-success { color: var(--dark-sage); }
.form-status.is-error { color: #b14343; }
.form-fineprint { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--navy); color: var(--cream);
  padding: 40px 0 32px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px;
}
.site-footer a { color: var(--sage); }
.site-footer a:hover { color: #fff; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 20px; color: var(--cream);
}
.footer-mark { width: 28px; height: 28px; opacity: 0.95; }
.footer-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--sage); flex-wrap: wrap; }
.footer-copy { flex-basis: 100%; font-size: 12px; color: #a6adaa; margin-top: 12px; letter-spacing: 0.04em; }

/* Responsive */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 72px 0 60px; }
  .services, .contact { padding: 72px 0; }
}
@media (max-width: 680px) {
  .service-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .services, .contact { padding: 56px 0; }
  .bilingual-banner { padding: 22px; margin-top: 36px; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .field-row { grid-template-columns: 1fr; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 18px; }
  .contact-form { padding: 22px; }
  .hero-title { line-height: 1.1; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Animations & micro-interactions
   Compositor-only (opacity/transform) to keep CWV clean.
   Respects prefers-reduced-motion via the global override below.
============================================================ */

/* Hero ambient blobs */
.hero { isolation: isolate; }
.hero-blob {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.hero-blob-1 {
  width: 420px; height: 420px;
  top: -120px; right: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(185, 197, 174, 0.9), transparent 60%);
  animation: drift-a 18s ease-in-out infinite alternate;
}
.hero-blob-2 {
  width: 360px; height: 360px;
  bottom: -140px; left: -80px;
  background: radial-gradient(circle at 60% 40%, rgba(122, 143, 110, 0.45), transparent 60%);
  animation: drift-b 22s ease-in-out infinite alternate;
}
.hero-inner { position: relative; z-index: 1; }

@keyframes drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-40px, 30px, 0) scale(1.08); }
}
@keyframes drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(30px, -20px, 0) scale(1.1); }
}

/* Hero title brush-stroke */
.hero-title-line {
  position: relative;
  display: inline-block;
  padding-bottom: 0.12em;
}
.brush-stroke {
  position: absolute;
  left: 0; right: 0; bottom: -0.05em;
  width: 100%; height: 0.28em;
  overflow: visible;
  pointer-events: none;
}
.brush-stroke path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}
.js body.is-ready .brush-stroke path {
  animation: draw-stroke 1.3s cubic-bezier(0.22, 0.61, 0.36, 1) 500ms forwards;
}
@keyframes draw-stroke { to { stroke-dashoffset: 0; } }

/* Hero cascade entrance (skip title to protect LCP) */
.js [data-anim="fade-up"] {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}
.js body.is-ready [data-anim="fade-up"] {
  animation: fade-up 700ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--anim-delay, 0ms) forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Scroll-reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms),
    transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Dot — pulsing ring */
.hero-meta .dot { position: relative; }
.hero-meta .dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--dark-sage);
  opacity: 0;
  animation: dot-ripple 2.4s ease-out infinite;
}
@keyframes dot-ripple {
  0%   { transform: scale(0.6); opacity: 0.55; }
  80%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Button micro-interactions */
.btn { will-change: transform; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(13, 27, 42, 0.18); }

/* Service card icon lift on card hover */
.service-card .service-icon { transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1), background 280ms ease; }
.service-card:hover .service-icon {
  transform: translateY(-3px) scale(1.06);
  background: var(--dark-sage);
  color: var(--cream);
}

/* Bilingual banner shimmer */
.bilingual-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bilingual-banner::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(185, 197, 174, 0.18) 50%, transparent 60%);
  transform: translateX(-60%);
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
.bilingual-banner > * { position: relative; z-index: 1; }
@keyframes shimmer {
  0%, 20%   { transform: translateX(-60%); }
  60%, 100% { transform: translateX(60%); }
}

/* Lang-switch active underline */
.lang-btn { position: relative; }
.lang-btn::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 6px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lang-btn.is-active::after { transform: scaleX(1); }

/* Form field focus lift */
.field input, .field select, .field textarea { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero-blob { display: none; }
  .bilingual-banner::before { display: none; }
  .hero-meta .dot::after { display: none; }
  .brush-stroke path { stroke-dashoffset: 0 !important; }
}
