@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Cormorant+Garamond:wght@300;400;500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2e42;
  --gold: #b8963e;
  --gold-light: #d4b06a;
  --gold-pale: #f5ecd7;
  --cream: #faf8f4;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --border: rgba(184,150,62,0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 80px;
  background: rgba(13,27,42,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,150,62,0.2);
  transition: all 0.3s ease;
}

nav.scrolled {
  height: 64px;
  background: rgba(13,27,42,0.99);
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.nav-brand .firm-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav-brand .firm-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light);
}
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  transition: all 0.3s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://williamfairlaw.com/images/iStock-9245202321.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.45);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,27,42,0.6) 0%, rgba(13,27,42,0.2) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeUp 1s ease both;
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-content p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.25s ease;
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
}

/* ─── SECTION BASICS ─── */
section { padding: 7rem 2rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 580px;
}

/* ─── ABOUT STRIP ─── */
.about-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-strip .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  right: 20px; bottom: 20px;
  border: 2px solid var(--border);
  z-index: 0;
}

.about-img-wrap img { position: relative; z-index: 1; }

.about-text .section-body { max-width: 100%; }

.about-since {
  display: inline-block;
  margin-top: 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ─── SERVICES ─── */
.services-section { background: var(--navy); }

.services-section .section-label { color: var(--gold-light); }
.services-section .section-title { color: var(--white); }
.services-section .section-body { color: rgba(255,255,255,0.6); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  margin-top: 4rem;
  background: rgba(184,150,62,0.15);
}

.service-card {
  background: var(--navy-mid);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.service-card:hover { background: #1f3650; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(184,150,62,0.2);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.service-card:hover .service-number { color: rgba(184,150,62,0.4); }

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card p {
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ─── CONTACT CTA BAND ─── */
.cta-band {
  background-image: url('https://williamfairlaw.com/images/iStock-629098988.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.9) 0%, rgba(13,27,42,0.75) 100%);
}

.cta-band .section-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.cta-band .section-title { color: var(--white); margin-bottom: 0.5rem; }
.cta-band .section-label { color: var(--gold-light); }
.cta-band p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
}

.cta-phone {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.cta-phone:hover { color: var(--white); }

/* ─── CONTACT SECTION ─── */
.contact-section { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  margin-top: 3.5rem;
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

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

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-item-text {
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-item-text strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-item-text a { color: var(--text-light); text-decoration: none; }
.contact-item-text a:hover { color: var(--gold); }

/* ─── FORM ─── */
.contact-form-wrap {
  background: var(--white);
  padding: 3rem;
  border: 1px solid var(--border);
}

.contact-form-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-form-wrap .form-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: var(--white);
}

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

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--navy);
  color: var(--gold-light);
  border: 2px solid var(--navy);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}

.form-submit:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.form-notice {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  text-align: center;
}

.form-success {
  display: none;
  padding: 1rem;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 1rem;
}

/* ─── FAQs PAGE ─── */
.faqs-section { background: var(--white); }

.faq-list { margin-top: 3rem; max-width: 780px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}

.faq-question span {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.1rem;
  transition: all 0.25s;
}

.faq-item.open .faq-icon {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 0 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ─── ABOUT PAGE ─── */
.about-page-hero {
  padding: 10rem 2rem 6rem;
  background: var(--navy);
  text-align: center;
}

.about-page-hero .section-title { color: var(--white); margin-bottom: 1rem; }
.about-page-hero .section-body { color: rgba(255,255,255,0.6); margin: 0 auto; text-align: center; }

.about-content-section { background: var(--white); }

.about-content-section .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-img-full {
  position: sticky;
  top: 100px;
}

.about-img-full img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-text-content { padding: 1rem 0; }

.about-text-content p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ─── SERVICES PAGE ─── */
.services-page-hero {
  padding: 10rem 2rem 6rem;
  background: var(--navy);
  text-align: center;
}

.services-page-hero .section-title { color: var(--white); margin-bottom: 1rem; }
.services-page-hero .section-body { color: rgba(255,255,255,0.6); margin: 0 auto; text-align: center; }

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

.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.service-item:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 40px rgba(184,150,62,0.1);
}

.service-item-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-pale);
  line-height: 1;
}

.service-item-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-item-content p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ─── PAGE HERO (generic inner pages) ─── */
.page-hero {
  padding: 9rem 2rem 5rem;
  background: var(--navy);
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.page-hero .section-label { color: var(--gold-light); }
.page-hero .section-title { color: var(--white); margin-bottom: 0; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 4rem 2rem 2rem;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .firm-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-brand .firm-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--gold-light); }

.footer-col address {
  font-style: normal;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
}

.footer-col address a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-col address a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--navy);
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }

  .about-strip .section-inner,
  .contact-grid,
  .about-content-section .section-inner { grid-template-columns: 1fr; gap: 3rem; }

  .about-img-full { position: static; }

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

  .footer-inner { grid-template-columns: 1fr 1fr; }

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

  .service-item { grid-template-columns: 1fr; gap: 0.75rem; }

  .cta-band .section-inner { flex-direction: column; text-align: center; }
  .cta-phone { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  section { padding: 5rem 1.25rem; }
  .about-img-wrap::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 2rem 1.5rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
}
