/* ============================================================
   DE VOCAȚIE AVOCAT — EDITORIAL DESIGN SYSTEM v2
   Premium boutique legal brand, not a template
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600&display=swap');

/* Hide all background watermark texts globally */
[class*="__watermark"], .dva-watermark { display: none !important; }

/* ── Custom Properties ───────────────────────────────────── */
:root {
  /* Brand Palette */
  --navy:          #0B1F3A;
  --navy-mid:      #152d52;
  --navy-dark:     #071428;
  --gold:          #C6A86B;
  --gold-light:    #d4bb84;
  --gold-dim:      #a8894e;
  --ivory:         #F4EFE6;
  --cream:         #FAF7F0;
  --white:         #FFFFFF;
  --charcoal:      #1D1D1D;
  --gray:          #6B6B6B;
  --gray-muted:    #9B9B9B;
  --border:        #E0D9CE;
  --border-light:  #EDE8DF;

  /* Typography */
  --serif:  'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans:   'Montserrat', system-ui, -apple-system, sans-serif;

  /* Type scale — Fluid */
  --t-xs:      clamp(0.75rem,  0.85vw, 0.8125rem); /* 12 → 13px */
  --t-sm:      clamp(0.875rem, 1vw,    0.9375rem); /* 14 → 15px */
  --t-base:    clamp(1rem,     1.1vw,  1.0625rem); /* 16 → 17px */
  --t-md:      clamp(1rem,     1.3vw,  1.125rem);  /* 16 → 18px */
  --t-lg:      clamp(1.125rem, 1.5vw,  1.25rem);   /* 18 → 20px */
  --t-xl:      clamp(1.25rem,  1.8vw,  1.5rem);    /* 20 → 24px */
  --t-2xl:     clamp(1.5rem,   2.2vw,  1.875rem);  /* 24 → 30px */
  --t-3xl:     clamp(1.75rem,  2.5vw,  2.25rem);   /* 28 → 36px */
  --t-4xl:     clamp(2.25rem,  3.5vw,  3rem);      /* 36 → 48px */
  --t-5xl:     clamp(2.75rem,  4.5vw,  4rem);      /* 44 → 64px */
  --t-6xl:     clamp(3.25rem,  5.5vw,  5rem);      /* 52 → 80px */
  --t-7xl:     clamp(4rem,     7vw,    6.5rem);    /* 64 → 104px */
  --t-display: clamp(4rem,     8vw,    8rem);      /* 64 → 128px */

  /* Aliases — header.css and footer.css use --fs-* prefix */
  --fs-xs:   var(--t-xs);
  --fs-sm:   var(--t-sm);
  --fs-base: var(--t-base);
  --fs-lg:   var(--t-lg);
  --fs-2xl:  var(--t-2xl);

  /* Spacing scale */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;
  --s-section: clamp(4.5rem, 9vw, 9rem);
  --s-section-sm: clamp(3rem, 6vw, 6rem);

  /* Layout */
  --max-w:      1320px;
  --max-w-text: 680px;
  --max-w-wide: 1500px;

  /* Transitions */
  --ease:        0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-fast:   0.2s ease;
  --ease-slow:   0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(11,31,58,0.04);
  --shadow-sm: 0 2px 8px rgba(11,31,58,0.06);
  --shadow-md: 0 6px 24px rgba(11,31,58,0.08);
  --shadow-lg: 0 16px 48px rgba(11,31,58,0.10);
  --shadow-xl: 0 32px 80px rgba(11,31,58,0.14);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease-fast); }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Core Typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
}
p { line-height: 1.8; color: var(--gray); }
p + p { margin-top: 1em; }
strong { font-weight: 600; color: var(--charcoal); }

/* ── Display Typography ──────────────────────────────────── */
.t-display {
  font-family: var(--serif);
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.t-hero {
  font-family: var(--serif);
  font-size: var(--t-7xl);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.t-headline {
  font-family: var(--serif);
  font-size: var(--t-5xl);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.t-title {
  font-family: var(--serif);
  font-size: var(--t-4xl);
  font-weight: 300;
  line-height: 1.15;
  color: var(--navy);
}

.t-subtitle {
  font-family: var(--serif);
  font-size: var(--t-2xl);
  font-weight: 300;
  line-height: 1.3;
  color: var(--navy);
}

.t-serif-body {
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 300;
  line-height: 1.6;
  font-style: italic;
  color: var(--navy);
}

.t-eyebrow {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.t-label {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-muted);
}

.t-caption {
  font-size: var(--t-xs);
  color: var(--gray-muted);
  letter-spacing: 0.06em;
}

/* Italic serif accent */
em.accent,
.t-gold { color: var(--gold-dim); font-style: italic; }

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.container--wide { max-width: var(--max-w-wide); }
.container--text { max-width: var(--max-w-text); }
.container--full { max-width: 100%; }

/* ── Section Base ────────────────────────────────────────── */
.section { padding-block: var(--s-section); }
.section--sm { padding-block: var(--s-section-sm); }
.section--xs { padding-block: var(--s-section-sm); padding-block: clamp(2rem, 4vw, 4rem); }

.bg-ivory  { background: var(--ivory); }
.bg-cream  { background: var(--cream); }
.bg-white  { background: var(--white); }
.bg-navy   { background: var(--navy); }

/* ── Ornamental Elements ─────────────────────────────────── */

/* Gold rule lines */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
}

.rule--gold {
  background: linear-gradient(90deg, transparent 0%, var(--gold) 35%, var(--gold) 65%, transparent 100%);
  opacity: 0.45;
}

.rule--gold-short {
  width: 48px;
  height: 1px;
  background: var(--gold);
  display: block;
  opacity: 1;
}

.rule--vertical {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  opacity: 0.35;
}

/* DVA monogram watermark */
.dva-watermark {
  position: absolute;
  font-family: var(--serif);
  font-weight: 300;
  color: rgba(198,168,107,0.055);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

/* Vertical side label */
.vertical-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* Section counter */
.section-num {
  font-family: var(--serif);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 300;
  color: rgba(198,168,107,0.08);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  display: block;
}

/* ── DVA Logo ─────────────────────────────────────────────── */
.dva-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}
.dva-logo__mark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--navy);
  line-height: 1;
}
.dva-logo__sub {
  font-family: var(--sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.dva-logo--light .dva-logo__mark { color: var(--ivory); }
.dva-logo--light .dva-logo__sub  { color: rgba(198,168,107,0.7); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9em 2.2em;
  transition: all var(--ease);
  cursor: pointer;
  border-radius: 0;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}

/* Primary — navy fill */
.btn--primary {
  background: var(--navy);
  color: var(--ivory);
  border: 1px solid var(--navy);
}
.btn--primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--gold-light);
  transform: translateY(-1px);
}

/* Secondary — outline */
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--ivory);
}

/* Ghost — on dark */
.btn--ghost {
  background: transparent;
  color: rgba(244,239,230,0.85);
  border: 1px solid rgba(244,239,230,0.25);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Text arrow link */
.btn--link {
  padding: 0;
  border: none;
  background: none;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  gap: var(--s-3);
  border-bottom: 1px solid transparent;
  transition: gap var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
}
.btn--link:hover {
  color: var(--gold-dim);
  border-bottom-color: var(--gold);
  gap: var(--s-5);
}

/* Gold variant */
.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
  border: 1px solid var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

/* Arrow element */
.btn-arrow {
  display: inline-block;
  transition: transform var(--ease-fast);
  line-height: 1;
}
.btn:hover .btn-arrow { transform: translateX(5px); }

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal--left  { transform: translateX(-22px); }
.reveal--right { transform: translateX(22px); }
.reveal--scale { transform: scale(0.97); }
.reveal--fade  { transform: none; }

.reveal.in-view,
.reveal--left.in-view,
.reveal--right.in-view,
.reveal--scale.in-view,
.reveal--fade.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger.in-view > *:nth-child(1) { transition-delay: 0.04s; }
.stagger.in-view > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.in-view > *:nth-child(3) { transition-delay: 0.20s; }
.stagger.in-view > *:nth-child(4) { transition-delay: 0.28s; }
.stagger.in-view > *:nth-child(5) { transition-delay: 0.36s; }
.stagger.in-view > *:nth-child(6) { transition-delay: 0.44s; }
.stagger.in-view > * { opacity: 1; transform: none; }

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  padding: var(--s-6) 0; gap: var(--s-6);
  font-family: var(--serif); font-size: var(--t-xl); font-weight: 300;
  color: var(--navy); text-align: left; cursor: pointer; background: none; border: none;
  transition: color var(--ease-fast);
}
.faq-question:hover { color: var(--gold-dim); }
.faq-icon {
  flex-shrink: 0; width: 20px; height: 20px; position: relative;
  color: var(--gold); margin-top: 4px;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); background: currentColor;
  transition: opacity var(--ease-fast), transform var(--ease);
}
.faq-icon::before { width: 12px; height: 1px; }
.faq-icon::after  { width: 1px; height: 12px; }
.faq-item.open .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--ease-slow); }
.faq-answer__inner { padding-bottom: var(--s-6); font-size: var(--t-base); color: var(--gray); line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 500px; }

/* ── Forms ───────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field-label {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy);
}
.field-label .req { color: var(--gold); margin-left: 2px; }
.field-input, .field-select, .field-textarea {
  width: 100%; padding: 0.875rem 1.1rem;
  background: var(--white); border: 1px solid var(--border);
  font-family: var(--sans); font-size: var(--t-base); color: var(--charcoal);
  outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  border-radius: 0;
}
.field-input::placeholder, .field-textarea::placeholder { color: rgba(107,107,107,0.5); }
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,168,107,0.12);
}
.field-input.error { border-color: #c0392b; }
.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B6B6B'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer;
}
.field-textarea { resize: vertical; min-height: 130px; }
.field-check { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; }
.field-check input { flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--navy); margin-top: 3px; }
.field-check__label { font-size: var(--t-sm); color: var(--gray); line-height: 1.6; }
.field-check__label a { color: var(--navy); text-decoration: underline; }
.form-msg {
  padding: var(--s-4) var(--s-5); font-size: var(--t-sm); font-weight: 500;
  border-radius: 0; display: none;
}
.form-msg--ok    { background: rgba(198,168,107,0.1); border: 1px solid rgba(198,168,107,0.3); color: var(--gold-dim); display: block; }
.form-msg--error { background: rgba(200,80,80,0.07); border: 1px solid rgba(200,80,80,0.2); color: #b84040; display: block; }

/* ── Contact info atoms ──────────────────────────────────── */
.contact-atom { display: flex; align-items: flex-start; gap: var(--s-4); }
.contact-atom__icon {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.contact-atom__label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-muted); margin-bottom: var(--s-1); }
.contact-atom__value { font-size: var(--t-base); color: var(--charcoal); font-weight: 500; }
.contact-atom__value a:hover { color: var(--gold-dim); }

/* ── Accessibility ───────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: var(--s-4); z-index: 9999;
  background: var(--navy); color: var(--ivory); padding: var(--s-3) var(--s-5);
  font-size: var(--t-sm); font-weight: 600; transition: top var(--ease-fast);
}
.skip-link:focus { top: var(--s-4); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── WordPress content ───────────────────────────────────── */
.wp-prose h2 {
  font-family: var(--serif); font-size: var(--t-3xl); font-weight: 300; color: var(--navy);
  margin-top: var(--s-12); margin-bottom: var(--s-4); line-height: 1.2;
}
.wp-prose h3 {
  font-family: var(--serif); font-size: var(--t-xl); font-weight: 300; color: var(--navy);
  margin-top: var(--s-8); margin-bottom: var(--s-3);
}
.wp-prose p { margin-bottom: var(--s-5); color: var(--charcoal); line-height: 1.85; }
.wp-prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.wp-prose a:hover { color: var(--gold-dim); }
.wp-prose ul, .wp-prose ol { padding-left: 1.5em; margin-bottom: var(--s-5); list-style: revert; }
.wp-prose li { margin-bottom: var(--s-2); color: var(--charcoal); line-height: 1.75; }
.wp-prose blockquote {
  border-left: 2px solid var(--gold); padding: var(--s-4) var(--s-6);
  margin: var(--s-8) 0; font-family: var(--serif); font-style: italic;
  font-size: var(--t-xl); color: var(--navy); line-height: 1.55;
}
.wp-prose strong { color: var(--navy); font-weight: 600; }
.wp-prose img { margin-block: var(--s-6); }

/* ── Cormorant Garamond Light — global enforcement ───────── */
/* !important needed: components.css loads after main.css and
   would otherwise override these weight declarations.       */
h1, h2, h3, h4, h5, h6,
[class*="__title"],
[class*="__heading"],
[class*="__quote"],
[class*="__name"],
.t-display, .t-hero, .t-headline, .t-title, .t-subtitle, .t-serif-body,
.faq-question, .section-heading__title, .process-panel__title,
.home-manifesto__quote p, .home-cta__title,
.article-header__title, .jcard__title, .jcard--featured .jcard__title {
  font-weight: 300 !important;
}

/* Preserve intentional bold in body/UI context */
strong, b { font-weight: 600 !important; }
.btn { font-weight: 600 !important; }
.t-eyebrow, .t-label,
[class*="__label"], [class*="__tag"], [class*="__eyebrow"] {
  font-weight: 600;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal--left, .reveal--right, .reveal--scale, .reveal--fade,
  .stagger > * {
    opacity: 1 !important; transform: none !important;
  }
}
