/* ==========================================================
   Reeve & Holt — Company Profile
   Pure HTML + CSS implementation of the Figma design
   ========================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #1a1a1a;
  --muted: #6b6560;
  --gold: #c8a96e;
  --line: #e2ddd6;
  --paper: #f4f2ee;
  --paper-light: #f9f8f6;
  --white: #ffffff;

  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: Consolas, "SFMono-Regular", Menlo, monospace;

  --container: 1152px;
  --gutter: 24px;
}

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

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

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

h1, h2, h3, p, ul, dl, dd, blockquote, figure {
  margin: 0;
  padding: 0;
}

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow { max-width: 768px; }

.section { padding-block: 112px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  color: var(--gold);
}

h2 {
  padding-top: 16px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 52.8px;
  color: var(--ink);
}

h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
}

.body-text {
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
}

.rule {
  height: 1px;
  background: var(--gold);
}
.rule-48 { width: 48px; margin-top: 32px; }
.rule-32 { width: 32px; margin-top: 32px; }
.rule-center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-light {
  padding: 14px 32px;
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover { background: var(--paper); }

.btn-outline-light {
  padding: 14px 32px;
  border-color: rgba(255, 255, 255, .5);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
}

.btn-outline-dark {
  padding: 10px 20px;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-dark {
  padding: 16px 32px;
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #000; }

.btn-block { width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 1033px;
  height: 100vh;
  max-height: 1100px;
  overflow: hidden;
  background: #3a3733; /* fallback while image loads */
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .7) 0%,
    rgba(0, 0, 0, .3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-content {
  position: relative;
  padding-bottom: 80px;
}

.hero-inner { max-width: 672px; }

.hero h1 {
  padding-top: 24px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 72px;
  line-height: 75.6px;
  color: var(--white);
}
.hero h1 em {
  display: block;
  font-style: italic;
}

.hero-lead {
  max-width: 512px;
  padding-top: 32px;
  font-size: 18px;
  line-height: 29.25px;
  color: rgba(255, 255, 255, .7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 40px;
}

/* ==========================================================
   STATS
   ========================================================== */
.stats { border-bottom: 1px solid var(--line); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }

.stat-number {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 40px;
  color: var(--ink);
}

.stat-label {
  padding-top: 4px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .body-text { padding-top: 32px; }
.about-text .body-text-2 { padding-top: 24px; }

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 40px;
}

.check-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}
.check-list span {
  color: var(--gold);
  font-size: 16px;
  line-height: 24px;
}

.about-media { position: relative; }

.about-photo {
  aspect-ratio: 1 / 1;
  background: var(--paper);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  left: -24px;
  bottom: -24px;
  width: 208px;
  padding: 32px;
  background: var(--ink);
}

.badge-number {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 36px;
  color: var(--white);
}

.badge-label {
  padding-top: 4px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

/* ==========================================================
   PRACTICE AREAS
   ========================================================== */
.practice { background: var(--paper-light); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-intro {
  max-width: 384px;
  font-size: 14px;
  line-height: 22.75px;
  color: var(--muted);
}

.practice-list {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice-list li + li { border-top: 1px solid var(--line); }

.practice-row {
  display: grid;
  grid-template-columns: 64px 1fr 200px;
  align-items: center;
  gap: 24px;
  margin-inline: -16px;
  padding: 28px 16px;
  transition: background-color .2s ease;
}
.practice-row:hover { background: var(--white); }

.practice-num {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  color: var(--gold);
}

.practice-body h3 { color: var(--ink); }

.practice-body p {
  padding-top: 4px;
  font-size: 14px;
  line-height: 22.75px;
  color: var(--muted);
}

.practice-more {
  text-align: right;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(26, 26, 26, .2);
  transition: color .2s ease;
}
.practice-row:hover .practice-more { color: var(--gold); }

/* ==========================================================
   TEAM
   ========================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 64px;
}

.attorney-photo {
  height: 288px;
  background: var(--paper);
  overflow: hidden;
}
.attorney-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attorney-info { padding-top: 20px; }

.attorney-role {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
}

.attorney-info h3 {
  padding-top: 4px;
  color: var(--ink);
}

.attorney-meta {
  padding-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

/* ==========================================================
   QUOTE
   ========================================================== */
.quote-band {
  padding-block: 96px;
  background: var(--ink);
  text-align: center;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 40px;
  color: var(--gold);
}

.quote-band blockquote {
  max-width: 720px;
  margin-inline: auto;
  padding-top: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  line-height: 48.75px;
  color: var(--white);
}

.quote-author {
  padding-top: 24px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
}

.contact-details dt {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details dd {
  padding-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}
.contact-details a:hover { color: var(--gold); }

/* ---------- Form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  transition: border-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field input,
.field select { height: 46px; }

.field textarea {
  height: 126px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(26, 26, 26, .5);
}

.field select {
  color: var(--ink);
  cursor: pointer;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 20px,
    calc(100% - 17px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field select:invalid { color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.contact-form .btn-block { margin-top: 8px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 28px;
  color: var(--ink);
}

.footer-copy,
.footer-links a {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.3px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a:hover { color: var(--ink); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .section { padding-block: 88px; }

  h2 { font-size: 40px; line-height: 44px; }

  .about-grid,
  .contact-grid { gap: 48px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .attorney-photo { height: 340px; }

  .practice-row { grid-template-columns: 48px 1fr 140px; }
}

/* Small tablet / large phone */
@media (max-width: 860px) {
  .nav-links a:not(.btn) { display: none; }

  .hero {
    min-height: 720px;
    height: 100svh;
  }
  .hero h1 { font-size: 56px; line-height: 60px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .about-media { margin-left: 24px; }
  .about-badge { left: -24px; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .quote-band blockquote {
    font-size: 26px;
    line-height: 40px;
  }
}

/* Phone */
@media (max-width: 600px) {
  :root { --gutter: 20px; }

  .section { padding-block: 72px; }

  h2 { font-size: 34px; line-height: 38px; }

  .hero-content { padding-bottom: 56px; }
  .hero h1 { font-size: 42px; line-height: 46px; }
  .hero-lead { font-size: 16px; line-height: 26px; }
  .hero-actions .btn { width: 100%; }

  .stat { padding: 28px 12px; }
  .stat-number { font-size: 30px; }
  .stat-label { letter-spacing: 1.6px; }

  .practice-row {
    grid-template-columns: 40px 1fr;
    gap: 16px;
    margin-inline: 0;
    padding-inline: 0;
  }
  .practice-more { display: none; }

  .team-grid { grid-template-columns: 1fr; }
  .attorney-photo { height: 360px; }

  .quote-band { padding-block: 72px; }
  .quote-band blockquote { font-size: 22px; line-height: 34px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

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