/* ============ Tokens ============ */
:root {
  --navy: #0B1B2B;
  --navy-70: rgba(11,27,43,.75);
  --ink: #14161A;
  --ink-70: rgba(20,22,26,.7);
  --ink-50: rgba(20,22,26,.52);
  --gold: #B8912E;
  --gold-bright: #D4A93B;
  --cream: #F7F3EA;
  --bg: #FFFFFF;
  --border: rgba(20,22,26,.14);
  --border-light: rgba(255,255,255,.16);
  --font-head: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --container: 1180px;
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 18px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; color: var(--navy); }
p { margin: 0 0 1em; color: var(--ink-70); }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; color: var(--gold); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); }
.section-navy p, .section-navy h3 { color: rgba(255,255,255,.78); }
.h2-light { color: #fff; }

.eyebrow {
  font-family: var(--font-display); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .22em; font-weight: 600; color: var(--gold); margin: 0 0 14px;
}
.eyebrow-light { color: var(--gold-bright); }
.section-head-center { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-lead { margin-top: 16px; }

/* ============ Ornamental rules ============ */
.rule-gold { width: 64px; height: 2px; background: var(--gold); margin: 20px 0 26px; }
.rule-center { margin-left: auto; margin-right: auto; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; color: var(--gold); }
.ornament span { width: 46px; height: 1px; background: var(--gold); }
.ornament i { font-style: normal; font-size: .8rem; }
.ornament-light span { background: var(--gold-bright); }

/* ============ Scroll progress ============ */
.progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--gold); z-index: 9998; transition: width .1s linear; }

/* ============ Fade-in ============ */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-in.in-view { opacity: 1; transform: translateY(0); }

/* ============ Buttons ============ */
.btn {
  display: inline-block; padding: 15px 34px; font-family: var(--font-display);
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  border: 1.5px solid transparent; transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-line { color: var(--navy); border-bottom: 1.5px solid var(--gold); padding: 15px 4px; }
.btn-line:hover { color: var(--gold); }
.btn-block { width: 100%; text-align: center; }

/* ============ Utility bar ============ */
.utility-bar { background: var(--navy); color: rgba(255,255,255,.75); font-size: .8rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; padding: 9px 32px; flex-wrap: wrap; gap: 6px; }
.utility-right a:hover { color: var(--gold-bright); }
.utility-sep { margin: 0 10px; color: rgba(255,255,255,.3); }

/* ============ Header ============ */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 200; transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(11,27,43,.1); }
.site-header.is-scrolled .header-crest { padding-top: 14px; padding-bottom: 12px; }
.site-header.is-scrolled .brand-logo { height: 42px; }
.header-crest { display: flex; flex-direction: column; align-items: center; padding: 26px 32px 20px; text-align: center; transition: padding .3s ease; }
.brand-logo { height: 56px; width: auto; margin-bottom: 10px; transition: height .3s ease; }
.header-tagline { font-family: var(--font-display); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-50); margin: 0; }
.nav-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.nav-row { display: flex; align-items: center; justify-content: center; gap: 20px 36px; padding: 16px 32px; flex-wrap: wrap; }
.site-nav { display: flex; align-items: center; gap: 10px 28px; flex-wrap: wrap; justify-content: center; }
.site-nav a { font-family: var(--font-display); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--navy); padding-bottom: 4px; border-bottom: 1.5px solid transparent; transition: border-color .25s ease, color .25s ease; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { border-color: var(--gold); color: var(--gold); }
.nav-cta { flex-shrink: 0; padding: 11px 24px; white-space: nowrap; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,27,43,.72) 0%, rgba(11,27,43,.55) 45%, rgba(11,27,43,.88) 100%); }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; padding: 60px 32px; }
.hero-kicker { font-family: var(--font-display); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 22px; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero-sub { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 560px; margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero .btn-line { color: #fff; }
.hero .btn-line:hover { color: var(--gold-bright); }

/* ============ Credential strip ============ */
.credential-strip { background: var(--cream); border-bottom: 1px solid var(--border); }
.credential-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 44px 0; }
.credential { border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.credential:first-child { border-left: none; }
.credential-figure { font-family: var(--font-head); font-size: 2.2rem; font-weight: 600; color: var(--navy); }
.credential-label { font-family: var(--font-display); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); }

/* ============ Split layout ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.split-media { position: relative; aspect-ratio: 4/5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-frame { position: absolute; top: 18px; left: 18px; right: -18px; bottom: -18px; border: 1.5px solid var(--gold); z-index: -1; }
.drop-cap::first-letter { font-family: var(--font-head); font-size: 3.4rem; font-weight: 600; float: left; line-height: .8; margin: 6px 8px 0 0; color: var(--gold); }
.text-link { display: inline-block; font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--navy); border-bottom: 1.5px solid var(--gold); padding-bottom: 4px; }
.text-link:hover { color: var(--gold); }

/* ============ Philosophy ============ */
.philosophy { background: var(--bg); }
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; text-align: center; }
.philosophy blockquote { margin: 0; font-family: var(--font-head); font-style: italic; font-size: 1.35rem; color: var(--navy); font-weight: 500; }

/* ============ Vision & Mission ============ */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.vm-card { background: #fff; border: 1px solid var(--border); padding: 52px 44px; text-align: center; transition: border-color .25s ease, box-shadow .25s ease; }
.vm-card:hover { border-color: var(--gold); box-shadow: 0 12px 30px rgba(11,27,43,.08); }
.vm-seal { width: 56px; height: 56px; border: 1.5px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold); margin: 0 auto 18px; }

/* ============ Practice grid ============ */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.practice-card { background: #fff; padding: 44px 36px; text-align: center; transition: background .25s ease, transform .25s ease; }
.practice-card:hover { background: var(--cream); transform: translateY(-3px); }
.practice-card:hover .practice-icon { border-color: var(--navy); background: var(--navy); color: var(--gold-bright); }
.practice-icon { width: 54px; height: 54px; border: 1.5px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 20px; color: var(--navy); transition: background .25s ease, color .25s ease, border-color .25s ease; }
.practice-grid-dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); }
.practice-card-dark { background: var(--navy); transition: background .25s ease, transform .25s ease; }
.practice-card-dark:hover { background: #122238; transform: translateY(-3px); }
.practice-card-dark:hover .practice-icon-gold { background: var(--gold-bright); color: var(--navy); border-color: var(--gold-bright); }
.practice-card-dark h3 { color: #fff; }
.practice-icon-gold { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ============ Formal list (why us) ============ */
.formal-list li { padding: 24px 0; border-top: 1px solid var(--border); }
.formal-list li:last-child { border-bottom: 1px solid var(--border); }
.formal-list h4 { margin-bottom: 6px; }
.formal-list p { margin: 0; }

/* ============ Values ============ */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 44px; }
.value-card { border-top: 2px solid var(--gold); padding-top: 18px; }
.value-card p { margin: 0; }

/* ============ Team ============ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team-portrait { margin: 0; }
.team-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.25); }
.team-portrait figcaption { text-align: center; padding-top: 18px; border-top: 1px solid var(--border); margin-top: 18px; }
.team-portrait h4 { margin-bottom: 4px; }
.team-portrait span { font-family: var(--font-display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* ============ Testimonials ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.testimonial-card { border-top: 1px solid var(--border-light); padding-top: 26px; }
.testimonial-quote { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: rgba(255,255,255,.9); margin-bottom: 18px; }
.testimonial-attr { font-family: var(--font-display); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-bright); margin: 0; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-details { border-top: 1px solid var(--border); margin-bottom: 30px; }
.contact-details li { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-details li span { font-family: var(--font-display); color: var(--gold); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-details li strong { font-weight: 500; text-align: right; color: var(--navy); }
.contact-details a:hover { color: var(--gold); }
.map-placeholder { aspect-ratio: 16/8; background: repeating-linear-gradient(45deg, #ece7da, #ece7da 12px, #e1dccb 12px, #e1dccb 24px); display: flex; align-items: center; justify-content: center; color: var(--ink-50); font-size: .85rem; font-family: var(--font-body); }
.map-placeholder::before { content: attr(data-caption); }

.contact-form { background: #fff; border: 1px solid var(--border); padding: 46px; }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-family: var(--font-display); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); background: var(--cream);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); border-radius: 0;
}
.form-row select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B8912E' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }
.field-error { display: block; color: #9A2B2B; font-size: .8rem; margin-top: 6px; min-height: 1em; font-family: var(--font-body); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .92rem; transition: all .15s ease; font-family: var(--font-body); }
.form-status.visible { padding: 14px 18px; margin-bottom: 20px; border: 1px solid; }
.form-status.success { background: rgba(46,125,50,.08); color: #2E7D32; border-color: rgba(46,125,50,.3); }
.form-status.error { background: rgba(154,43,43,.08); color: #9A2B2B; border-color: rgba(154,43,43,.3); }
#submitBtn:disabled { opacity: .6; }

/* ============ Footer ============ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 70px 0 0; }
.footer-top { text-align: center; padding-bottom: 30px; }
.footer-logo { height: 44px; margin: 0 auto 14px; }
.footer-tagline { font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer-rule { max-width: var(--container); margin: 0 auto; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 50px 0; }
.footer-col h4 { color: #fff; font-family: var(--font-display); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.6); margin-bottom: 12px; font-size: .95rem; }
.footer-col a:hover { color: var(--gold-bright); }
.social-icons { display: flex; gap: 12px; }
.social-icons a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-family: var(--font-display); }
.social-icons a:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.footer-bottom { text-align: center; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { color: rgba(255,255,255,.45); font-size: .82rem; margin: 0; font-family: var(--font-body); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .split, .split-reverse, .contact-grid, .vm-grid { grid-template-columns: 1fr; direction: ltr; }
  .practice-grid, .practice-grid-dark, .team-grid, .testimonial-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .credential-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .credential:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .container { padding: 0 22px; }
  .utility-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 22px; }
  .nav-row { flex-wrap: wrap; gap: 14px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; flex-direction: column; align-items: center; gap: 0; width: 100%;
    order: 3; border-top: 1px solid var(--border); padding-top: 10px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; text-align: center; }
  .nav-cta { position: static; margin-left: auto; }
  .section { padding: 70px 0; }
  .practice-grid, .practice-grid-dark, .team-grid, .testimonial-grid, .values-grid, .philosophy-grid { grid-template-columns: 1fr; }
  .credential-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-icons { justify-content: center; }
}
