/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  --navy:      #0d1b2a;
  --navy-mid:  #162236;
  --gold:      #c9a84c;
  --gold-light:#e0c070;
  --white:     #ffffff;
  --off-white: #f5f3ee;
  --text:      #2c3e50;
  --text-muted:#6b7a8d;
  --border:    #d9d0c0;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-w:        1100px;
  --section-pad:  5rem 1.5rem;
  --radius:       6px;
  --shadow:       0 4px 24px rgba(13,27,42,0.10);
  --transition:   0.2s ease;
  --header-h:     116px;
  --photo-overlay: linear-gradient(rgba(13,27,42,0.72), rgba(13,27,42,0.78));
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ===========================
   UTILITIES
   =========================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================
   PAGE TABS
   =========================== */
.page {
  display: none;
  opacity: 0;
}
.page.active {
  display: block;
  animation: pageFadeIn 0.35s ease forwards;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
}
.btn-outline:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; }
.logo img { height: 104px; width: auto; display: block; }

nav { display: flex; align-items: center; gap: 2rem; }

.nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link:not(.btn):hover  { color: var(--gold); }
.nav-link:not(.btn).active { color: var(--white); }

.nav-link:not(.btn).active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.nav-link.btn { padding: 0.75rem 1.75rem; line-height: 1; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===========================
   HERO
   =========================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(13,27,42,0.78), rgba(13,27,42,0.82)), url('assets/plateau.webp') center/cover no-repeat;
  background-attachment: fixed, fixed;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  text-align: center;
}

/* Shared eyebrow style */
.hero-eyebrow, .banner-eyebrow {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-eyebrow   { font-size: 0.78rem; margin-bottom: 1.2rem; }
.banner-eyebrow { font-size: 0.75rem; margin-bottom: 0.75rem; }

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: rgba(255,255,255,0.72);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.85;
}

/* ===========================
   FIRM INTRODUCTION
   =========================== */
#firm-intro {
  background: var(--off-white);
  padding: 3.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.firm-intro-text {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-muted);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
}

/* ===========================
   SECTION SHARED STYLES
   =========================== */
section { padding: var(--section-pad); }

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

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ===========================
   PRACTICE AREAS
   =========================== */
#practice-areas { background: var(--off-white); }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(13,27,42,0.14);
  border-color: var(--gold);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.card-icon svg { width: 22px; height: 22px; color: var(--gold); }

/* Shared heading + body text for cards and service cards */
.card h3, .service-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.card p, .service-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ===========================
   PAGE BANNER (inner pages)
   =========================== */
.page-banner {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: calc(var(--header-h) + 0.25rem) 1.5rem 0.75rem;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-banner .container { position: relative; z-index: 1; }

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}

/* Page-specific banner backgrounds */
#page-about .page-banner {
  background: var(--photo-overlay), url('assets/mesa.webp') center/cover no-repeat;
  background-attachment: fixed, fixed;
}

#page-services .page-banner {
  background: var(--photo-overlay), url('assets/gavel.webp') center/cover no-repeat;
  background-attachment: fixed, fixed;
}

#page-contact .page-banner {
  background: var(--photo-overlay), url('assets/scale.webp') center/cover no-repeat;
  background-attachment: fixed, fixed;
}

/* ===========================
   ABOUT
   =========================== */
#about { background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-content .btn { margin-top: 0.5rem; }

.about-stats { display: flex; flex-direction: column; gap: 1.25rem; }

.stat {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ===========================
   SERVICES
   =========================== */
#services { background: var(--off-white); }

.services-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.service-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(13,27,42,0.13);
}

.service-card-full { grid-column: 1 / -1; }

.service-icon {
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon svg { width: 20px; height: 20px; color: var(--gold); }

.services-cta {
  text-align: center;
  background: var(--photo-overlay), url('assets/gavel.webp') center/cover no-repeat;
  background-attachment: fixed, fixed;
  border-radius: var(--radius);
  padding: 3rem 2rem;
}

.services-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.services-cta p {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto 1.75rem;
  line-height: 1.8;
}

/* ===========================
   CONTACT
   =========================== */
#contact { background: var(--navy); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2,
.contact-message-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.75rem;
  position: relative;
  display: inline-block;
}

.contact-info h2::after,
.contact-message-box h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.contact-details { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }

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

.contact-details svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-details > li > div { display: flex; flex-direction: column; gap: 0.2rem; }

.detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-details a,
.contact-details span:not(.detail-label) { font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.5; }

.contact-details a:hover { color: var(--gold-light); }

.contact-message-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
}

.contact-message-box p {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.contact-message-box a:not(.btn) {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: #080f18;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.footer-inner { text-align: center; }

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }

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

  .about-stats { flex-direction: row; gap: 1rem; }

  .stat { flex: 1; }
}

@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 1.25rem; }

  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(201,168,76,0.2);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    z-index: 99;
  }

  nav.nav-open { display: flex; }

  .nav-link {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
  }

  .nav-link:not(.btn).active::after { display: none; }

  .nav-link.btn {
    margin-top: 1rem;
    text-align: center;
    border-color: rgba(201,168,76,0.5);
    color: var(--gold);
    padding: 0.75rem 1rem;
  }

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

  .service-card-full { grid-column: 1; }

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

  .about-stats { flex-direction: column; }

  /* Disable parallax on mobile (iOS Safari unsupported) */
  #hero,
  #page-about .page-banner,
  #page-services .page-banner,
  #page-contact .page-banner,
  .services-cta { background-attachment: scroll, scroll; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.4rem; }
  .page-banner h1  { font-size: 1.4rem; }
  .contact-message-box { padding: 1.75rem 1.5rem; }
}
