/* A. Klein Advocacia — site styles
   Brand: deep navy, gold, off-white. Fonts: Cormorant Garamond (display), EB Garamond (text). */

:root {
  --navy: #1B2A4A;
  --navy-deep: #131F38;
  --gold: #C9A85C;
  --gold-dark: #B08D3F;
  --cream: #F7F5F0;
  --white: #FFFFFF;
  --ink: #1B2A4A;
  --ink-85: rgba(27, 42, 74, 0.85);
  --ink-80: rgba(27, 42, 74, 0.80);
  --ink-75: rgba(27, 42, 74, 0.75);
  --ink-70: rgba(27, 42, 74, 0.70);
  --ink-55: rgba(27, 42, 74, 0.55);
  --ink-50: rgba(27, 42, 74, 0.50);
  --line: rgba(27, 42, 74, 0.15);
  --line-soft: rgba(27, 42, 74, 0.12);
  --cream-85: rgba(247, 245, 240, 0.85);
  --cream-80: rgba(247, 245, 240, 0.80);
  --cream-70: rgba(247, 245, 240, 0.70);
  --cream-60: rgba(247, 245, 240, 0.60);
  --cream-50: rgba(247, 245, 240, 0.50);
  --cream-40: rgba(247, 245, 240, 0.40);
  --cream-15: rgba(247, 245, 240, 0.15);
  --display: 'Cormorant Garamond', Garamond, Georgia, serif;
  --text: 'EB Garamond', Garamond, Georgia, serif;
  --gutter: 48px;
  --container: 1180px;
  --narrow: 920px;
  --medium: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--navy); text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
a:hover { color: var(--gold-dark); }

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

h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: var(--container); margin: 0 auto; }
.container--narrow { max-width: var(--narrow); margin: 0 auto; }
.container--medium { max-width: var(--medium); margin: 0 auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px; font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

/* Shared ornaments */
.rule { width: 56px; height: 1px; background: var(--gold); }
.rule--sm { width: 32px; }
.rule--xs { width: 28px; }
.eyebrow { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); }
.eyebrow--light { color: var(--gold); }

/* Buttons & text links */
.btn {
  display: inline-block; padding: 16px 38px; font-size: 15px; letter-spacing: .14em;
  text-transform: uppercase; font-family: var(--text); border: 1px solid transparent; cursor: pointer;
  text-align: center; line-height: 1.2;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--gold); color: var(--navy); }
.btn--outline-light { border-color: var(--cream-40); color: var(--cream); }
.btn--outline-light:hover { border-color: var(--gold); color: var(--gold); }

.link-more {
  display: inline-block; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dark); border-bottom: 1px solid var(--gold); padding-bottom: 4px; align-self: flex-start;
}
.link-more:hover { color: var(--navy); }
.link-arrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.link-arrow:hover { color: var(--cream); }

/* Header */
.site-header { background: var(--navy); padding: 0 var(--gutter); position: relative; z-index: 20; }
.site-header__inner {
  max-width: var(--container); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; height: 88px;
}
.brand { display: flex; align-items: center; gap: 16px; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand__logo { width: 52px; height: 52px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: .06em; color: var(--gold); line-height: 1.1; }
.brand__tag { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-70); }

.nav { display: flex; gap: 36px; align-items: center; }
.nav a { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .nav__cta { border: 1px solid var(--gold); padding: 10px 22px; }
.nav .nav__cta:hover { background: var(--gold); color: var(--navy); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--gold); color: var(--gold);
  width: 44px; height: 44px; padding: 0; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor; transition: transform .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Page title band */
.band {
  background: var(--navy); color: var(--cream); padding: 72px var(--gutter) 80px; text-align: center;
}
.band__inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.band h1 { font-size: 52px; font-weight: 500; }
.band .lede { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--cream-85); line-height: 1.5; }

/* Hero (home) */
.hero {
  background: var(--navy); color: var(--cream); padding: 110px var(--gutter) 130px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(201, 168, 92, 0.10), transparent 55%);
}
.hero__inner {
  max-width: var(--container); margin: 0 auto; position: relative; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 28px;
}
.hero h1 { font-size: 64px; font-weight: 500; line-height: 1.15; max-width: 820px; }
.hero .lede { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--cream-85); max-width: 640px; line-height: 1.5; }
.hero__actions { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }

/* Sections */
.section { padding: 96px var(--gutter); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--flush-top { padding-top: 0; }
.section--grow { flex: 1; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section__head h2 { font-size: 42px; }
.section__intro { font-size: 19px; color: var(--ink-75); max-width: 640px; margin: 0 0 48px; line-height: 1.6; }

/* Areas grid (home) */
.areas-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.area-card { background: var(--cream); padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.area-card:hover { background: var(--white); color: var(--ink); }
.area-card__num { font-family: var(--display); font-size: 16px; color: var(--gold-dark); letter-spacing: .1em; }
.area-card__name { font-family: var(--display); font-size: 27px; font-weight: 600; color: var(--navy); }
.area-card__text { font-size: 16px; line-height: 1.6; color: var(--ink-70); }
.area-card--quote { background: var(--navy); justify-content: flex-end; gap: 12px; }
.area-card--quote:hover { background: var(--navy); }
.area-card--quote .quote { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--cream); line-height: 1.4; }

/* Areas list (areas page) */
.area-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 36px; padding: 52px 0; border-bottom: 1px solid var(--line);
}
.area-row__num { display: flex; flex-direction: column; gap: 6px; }
.area-row__num span { font-family: var(--display); font-size: 44px; color: var(--gold); line-height: 1; }
.area-row__body { display: flex; flex-direction: column; gap: 14px; }
.area-row h2 { font-size: 32px; }
.area-row p { font-size: 18px; line-height: 1.75; color: var(--ink-80); }
.center-cta { padding: 56px 0 0; display: flex; justify-content: center; }

/* Profile */
.profile { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: center; }
.profile--top { grid-template-columns: 360px 1fr; align-items: start; }
.profile__media { display: flex; flex-direction: column; gap: 20px; }
.portrait {
  aspect-ratio: 3 / 4; background: var(--navy); display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.portrait::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201, 168, 92, 0.5); pointer-events: none; }
.portrait__initials { font-family: var(--display); font-size: 64px; color: var(--gold); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.credentials { display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--gold); padding-left: 16px; }
.credentials span { font-size: 16px; color: var(--ink-80); }
.profile__body { display: flex; flex-direction: column; gap: 22px; }
.profile__body--loose { gap: 24px; }
.profile__body h2 { font-size: 40px; }
.profile__body p { font-size: 18px; line-height: 1.7; color: var(--ink-80); }
.profile__body--loose p { line-height: 1.75; color: var(--ink-85); }
.pull-quote {
  font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--navy);
  border-left: 2px solid var(--gold); padding-left: 20px;
}

/* Mission / vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mv-cell { padding: 52px 44px; display: flex; flex-direction: column; gap: 16px; }
.mv-cell--navy { background: var(--navy); color: var(--cream); }
.mv-cell--white { background: var(--white); color: var(--navy); }
.mv-cell p { font-family: var(--display); font-size: 23px; line-height: 1.5; }

/* Values */
.values { display: flex; flex-direction: column; gap: 48px; }
.values__head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.values__head h2 { font-size: 40px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 56px; }
.value { display: flex; flex-direction: column; gap: 10px; }
.value__name { font-family: var(--display); font-size: 23px; font-weight: 600; color: var(--navy); }
.value p { font-size: 16.5px; line-height: 1.65; color: var(--ink-75); }

/* CTA band */
.cta { background: var(--navy); color: var(--cream); padding: 88px var(--gutter); text-align: center; }
.cta--compact { padding: 72px var(--gutter); }
.cta__inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta h2 { font-size: 40px; font-weight: 500; }
.cta--compact h2 { font-size: 36px; }
.cta p { font-size: 18px; color: var(--cream-80); line-height: 1.6; }

/* Articles list */
.article-list { display: flex; flex-direction: column; }
.article-item { display: flex; flex-direction: column; gap: 12px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.article-item__meta { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.article-item__meta .tag { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.article-item__meta time { font-size: 14px; color: var(--ink-50); }
.article-item__title { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.article-item__title:hover { color: var(--gold-dark); }
.article-item__summary { font-size: 17px; line-height: 1.7; color: var(--ink-75); max-width: 720px; }
.article-item .link-more { font-size: 14px; padding-bottom: 3px; }
.note { font-size: 15px; color: var(--ink-55); margin: 36px 0 0; font-style: italic; }

/* Article page */
.article-band .article-meta { display: flex; gap: 16px; align-items: baseline; justify-content: center; flex-wrap: wrap; }
.article-band .tag { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.article-band time { font-size: 14px; color: var(--cream-60); }
.article-band h1 { font-size: 46px; line-height: 1.2; }
.article-band .lede { font-size: 21px; }
.article-body { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.article-body p { font-size: 18.5px; line-height: 1.8; color: var(--ink-85); }
.article-body h2 { font-size: 30px; margin-top: 18px; }
.article-body ul { margin: 0; padding-left: 22px; font-size: 18px; line-height: 1.75; color: var(--ink-85); }
.article-body li + li { margin-top: 8px; }
.article-body blockquote {
  margin: 8px 0; font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.45;
  color: var(--navy); border-left: 2px solid var(--gold); padding-left: 22px;
}
.article-footer {
  max-width: 720px; margin: 56px auto 0; padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.byline { font-size: 15px; color: var(--ink-55); font-style: italic; }

/* Video embed (16:9) */
.video { margin: 8px 0; display: flex; flex-direction: column; gap: 12px; }
.video__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__frame--placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: var(--cream-70); }
.video__frame--placeholder::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201, 168, 92, 0.5); pointer-events: none; }
.video__play { width: 64px; height: 64px; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.video__play::after { content: ""; border-left: 16px solid var(--gold); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.video__frame--placeholder span { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.video figcaption { font-size: 15px; color: var(--ink-55); font-style: italic; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 380px; gap: 72px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: 48px; display: flex; flex-direction: column; gap: 22px; }
.form-card h2 { font-size: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-70); }
.field input, .field textarea {
  border: 1px solid rgba(27, 42, 74, 0.25); background: var(--cream); padding: 13px 14px; font-size: 16px;
  color: var(--ink); outline: none; font-family: var(--text); letter-spacing: 0; text-transform: none; width: 100%;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--ink-70); }
.consent input { margin-top: 3px; accent-color: var(--navy); flex: none; }
.consent a { color: var(--gold-dark); border-bottom: 1px solid var(--gold); }
.form-card .btn { align-self: flex-start; }
.form-status { font-size: 15px; color: var(--ink-70); min-height: 1em; }
.form-status--error { color: #8A2C2C; }
.form-success {
  background: var(--white); border: 1px solid var(--line); padding: 64px 48px; display: flex; flex-direction: column;
  align-items: center; gap: 18px; text-align: center;
}
.form-success h2 { font-size: 32px; }
.form-success p { font-size: 17px; line-height: 1.6; color: var(--ink-75); max-width: 420px; }
.form-success .link-more { align-self: center; padding-bottom: 3px; }
[hidden] { display: none !important; }

.contact__aside { display: flex; flex-direction: column; gap: 32px; }
.channels { background: var(--navy); color: var(--cream); padding: 40px 36px; display: flex; flex-direction: column; gap: 20px; }
.channels a { color: var(--cream); font-size: 18px; display: flex; align-items: center; gap: 10px; }
.channels a:hover { color: var(--gold); }
.lgpd { border: 1px solid rgba(27, 42, 74, 0.2); padding: 32px 30px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.lgpd p { font-size: 15px; line-height: 1.65; color: var(--ink-75); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--cream-70); padding: 56px var(--gutter) 40px; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.site-footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand img { width: 48px; height: 48px; }
.site-footer__brand .name { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--gold); }
.site-footer__brand .tag { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.site-footer__col--links { font-size: 15px; }
.site-footer a { color: var(--cream-85); }
.site-footer a:hover { color: var(--gold); }
.site-footer__bottom {
  border-top: 1px solid var(--cream-15); padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--cream-50);
}
.site-footer__bottom a { color: var(--cream-60); }

/* Responsive */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 54px; }
  .profile, .profile--top { grid-template-columns: 300px 1fr; gap: 48px; }
  .contact { grid-template-columns: 1fr 320px; gap: 40px; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 88px; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 20px; border-top: 1px solid var(--cream-15);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 16px var(--gutter); border-bottom: 1px solid var(--cream-15); }
  .nav .nav__cta { border: 0; margin: 12px var(--gutter) 0; border: 1px solid var(--gold); padding: 14px 22px; text-align: center; }
  .hero { padding: 80px var(--gutter) 96px; }
  .hero h1 { font-size: 42px; }
  .hero .lede { font-size: 21px; }
  .band { padding: 56px var(--gutter) 64px; }
  .band h1 { font-size: 40px; }
  .section { padding: 64px var(--gutter); }
  .section--flush-top { padding-top: 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section__head h2 { font-size: 34px; }
  .profile, .profile--top { grid-template-columns: 1fr; gap: 36px; }
  .profile .portrait, .profile__media { max-width: 320px; }
  .profile__body h2 { font-size: 34px; }
  .mv-grid { grid-template-columns: 1fr; }
  .mv-cell { padding: 40px 28px; }
  .mv-cell p { font-size: 21px; }
  .area-row { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .area-row__num span { font-size: 36px; }
  .area-row h2 { font-size: 28px; }
  .contact { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form-success { padding: 48px 24px; }
  .cta, .cta--compact { padding: 64px var(--gutter); }
  .cta h2 { font-size: 32px; }
  .article-band h1 { font-size: 34px; }
  .article-item__title { font-size: 26px; }
  .site-footer { padding: 44px var(--gutter) 32px; }
  .site-footer__top { flex-direction: column; }
}

@media (max-width: 480px) {
  .brand__name { font-size: 22px; }
  .brand__tag { font-size: 10px; }
  .hero h1 { font-size: 36px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .area-card { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
