/* ===========================================================
   Hartwell & Reed — Family & Estate Law
   Classic & authoritative: navy + gold, serif display
   =========================================================== */

:root {
  --navy:        #0e1f3d;
  --navy-deep:   #0a1730;
  --navy-soft:   #16294d;
  --gold:        #b8923f;
  --gold-bright: #c9a24a;
  --gold-soft:   #e7d9b8;
  --cream:       #f7f4ee;
  --cream-deep:  #efe9dd;
  --ink:         #1c2333;
  --ink-soft:    #4a5160;
  --line:        #ddd5c5;
  --white:       #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --radius: 4px;
  --shadow: 0 18px 40px -24px rgba(14, 31, 61, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(14, 31, 61, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.2px;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1rem; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--navy); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.4px; padding: 13px 26px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer; transition: all 0.2s ease;
  text-align: center;
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy-deep); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(231, 217, 184, 0.5); }
.btn-ghost:hover { background: rgba(231, 217, 184, 0.12); color: var(--white); border-color: var(--gold-soft); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 31, 61, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(184, 146, 63, 0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand:hover { color: var(--white); }
.brand-mark {
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  color: var(--navy-deep); background: var(--gold);
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius);
  letter-spacing: -0.5px;
}
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.5px; }
.brand-name .amp { color: var(--gold); }

.site-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--cream); font-size: 0.95rem; font-weight: 500; }
.nav-menu a:hover { color: var(--gold-bright); }
.nav-menu .nav-cta a { color: var(--navy-deep); }
.nav-menu .nav-cta a:hover { color: var(--navy-deep); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); transition: 0.25s; }

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(180deg, rgba(10, 23, 48, 0.92), rgba(14, 31, 61, 0.96)),
    radial-gradient(circle at 75% 20%, rgba(184, 146, 63, 0.22), transparent 55%);
  background-color: var(--navy);
  color: var(--cream);
  padding: clamp(72px, 12vw, 130px) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(231,217,184,0.04) 1px, transparent 1px);
  background-size: 100% 40px; opacity: 0.5; pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 { color: var(--white); margin-bottom: 0.35em; }
.hero-lead { font-size: 1.2rem; color: rgba(247, 244, 238, 0.85); max-width: 640px; margin-bottom: 2rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.78rem; font-weight: 600;
  color: var(--gold); margin-bottom: 1rem;
}
.eyebrow-light { color: var(--gold-bright); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 2.6rem; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 40px; list-style: none; margin: 0; padding: 2rem 0 0;
  border-top: 1px solid rgba(231, 217, 184, 0.18);
}
.hero-trust li { font-size: 0.92rem; color: rgba(247, 244, 238, 0.7); }
.hero-trust strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold-bright); font-weight: 600; }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--cream-deep); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2 { color: var(--white); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head h2 { position: relative; display: inline-block; padding-bottom: 0.4rem; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 3px; background: var(--gold);
}
.section-sub { color: var(--ink-soft); font-size: 1.1rem; margin-top: 1rem; }
.section-navy .section-sub { color: rgba(247, 244, 238, 0.75); }

/* ===== Grid + Cards ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card-icon {
  font-size: 1.5rem; width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px;
}
.card h3 { margin-bottom: 0.5rem; color: var(--navy); }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { margin: 0; position: relative; }
.about-photo {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about-media figcaption {
  margin-top: 14px; font-family: var(--serif); font-size: 1.15rem; color: var(--navy);
  letter-spacing: 0.3px;
}
.about-media figcaption::before {
  content: ""; display: inline-block; width: 26px; height: 2px; background: var(--gold);
  vertical-align: middle; margin-right: 10px;
}
.about-copy h2 { color: var(--navy); }
.about-copy p { color: var(--ink-soft); }

.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold);
  font-weight: 700; background: var(--cream-deep); width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%; font-size: 0.8rem;
}

/* ===== Process / Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.step-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--gold); display: block; margin-bottom: 6px; }
.step h3 { color: var(--navy); font-size: 1.2rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ===== Testimonials ===== */
.quote {
  margin: 0; background: var(--navy-soft); border: 1px solid rgba(184, 146, 63, 0.25);
  border-radius: var(--radius); padding: 32px 28px; position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--serif); font-size: 4rem; color: var(--gold);
  position: absolute; top: 6px; left: 18px; line-height: 1; opacity: 0.5;
}
.quote blockquote { margin: 18px 0 16px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--cream); }
.quote figcaption { font-size: 0.9rem; color: var(--gold-bright); font-weight: 600; }
.quote .quote-matter { display: inline-block; margin-top: 2px; font-weight: 400; font-size: 0.82rem; color: rgba(247, 244, 238, 0.6); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { color: var(--navy); }
.contact-info > p { color: var(--ink-soft); }
.contact-list { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-label { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.72rem; font-weight: 600; color: var(--gold); }
.contact-list a, .contact-list address, .contact-list span { font-style: normal; color: var(--ink); font-size: 1.05rem; }
.contact-list a:hover { color: var(--gold); }

.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.3px; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 63, 0.18); background: var(--white);
}
.field textarea { resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin: 14px 0 0; text-align: center; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: rgba(247, 244, 238, 0.75); padding: 56px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(231, 217, 184, 0.15); }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { margin: 4px 0 0; font-size: 0.9rem; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: rgba(247, 244, 238, 0.8); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--gold-bright); }
.footer-legal { padding-top: 24px; }
.footer-legal p { font-size: 0.82rem; margin: 0 0 8px; }
.disclaimer { color: rgba(247, 244, 238, 0.5); max-width: 760px; line-height: 1.6; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 380px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); border-bottom: 1px solid rgba(184,146,63,0.3);
    padding: 8px 24px 20px; display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: 10px 0; border-bottom: 1px solid rgba(231,217,184,0.08); }
  .nav-menu .nav-cta { padding-top: 14px; border-bottom: 0; }
  .nav-menu .nav-cta a { width: 100%; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-trust { gap: 28px; }
}

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