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

:root {
  --navy: #1B2A4A;
  --navy-light: #243556;
  --navy-dark: #111D35;
  --gold: #C8A951;
  --gold-light: #D4BC72;
  --gold-dark: #A68B3C;
  --cream: #FAF8F5;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-600: #6B7280;
  --gray-700: #4B5563;
  --gray-800: #374151;
  --text: #2D2D2D;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.3;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ─────────────────────────────── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(200, 169, 81, 0.2);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, sans-serif;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ────────────────────────────────── */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 169, 81, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 169, 81, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  font-size: 2.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-lede {
  font-style: italic;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

/* ── Section Base ────────────────────────── */

.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-cream {
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header .accent-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto;
}

.section-header p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ── About ───────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  width: 240px;
  height: 300px;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
  border: 4px solid var(--cream);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text .accent-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

/* ── Practice Areas ──────────────────────── */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.practice-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}

.practice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.practice-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.practice-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.practice-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ── Why Fractional GC ───────────────────── */

.value-list {
  max-width: 750px;
  margin: 0 auto;
  list-style: none;
}

.value-list li {
  padding: 1.25rem 0 1.25rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.6rem;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}

.value-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(1.6rem + 6px);
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── FAQ ─────────────────────────────────── */

.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.faq-item + .faq-item {
  margin-top: 1rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.25rem 3rem 1.25rem 1.5rem;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dark);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ── Contact ─────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Netlify honeypot field — hidden from humans, visible to bots */
.contact-form .hidden-field {
  display: none;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: inherit;
  /* 16px minimum so iOS Safari doesn't zoom in on focus */
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
}

/* ── Footer ──────────────────────────────── */

.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 2.5rem 0;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  line-height: 2;
}

.footer p + p {
  margin-top: 0.25rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: var(--gold);
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 900px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    width: 200px;
    height: 250px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero {
    min-height: 80vh;
    padding: 7rem 1.5rem 4rem;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-lede {
    font-size: 1.15rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding: 4rem 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-top: 1px solid rgba(200, 169, 81, 0.15);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
