/* ============================================
   Sterling & Associates — Stylesheet
   Palette: Deep navy, warm gold, off-white,
            slate grey, charcoal
   ============================================ */

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

/* --- Custom properties --- */
:root {
  --navy:    #12213B;
  --navy-dk: #0C1827;
  --gold:    #B89848;
  --gold-lt: #D4B96A;
  --cream:   #F8F5EF;
  --slate:   #6B7A8D;
  --charcoal:#2C2C2C;
  --white:   #FFFFFF;
  --border:  #DDD6C8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1200px;
  --section-pad: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
}

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

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

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Layout helpers --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section { padding: var(--section-pad); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1.5px solid transparent;
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

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

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: var(--navy-dk);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo .logo-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo .logo-tag {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-lt); }

.nav-cta { margin-left: 1rem; }

/* 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: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-dk);
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold-lt); }
.mobile-nav .btn { margin-top: 1.25rem; width: 100%; text-align: center; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-dk);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&h=1000&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

/* Gold vertical rule — the signature element */
.hero-rule {
  position: absolute;
  left: clamp(1.25rem, 5vw, 3rem);
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem clamp(1.25rem, 5vw, 3rem) 5rem calc(clamp(1.25rem, 5vw, 3rem) + 2.5rem);
  width: 100%;
}

.hero-content h1 {
  color: var(--white);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

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

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}

.hero-stat .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-lt);
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.3rem;
}

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

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header p {
  color: var(--slate);
  max-width: 560px;
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.area-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.25s;
}
.area-card:hover { background: var(--white); }

.area-icon {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.area-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.area-card p {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.area-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.area-link:hover { gap: 0.7rem; }

/* ============================================
   ABOUT / THE FIRM
   ============================================ */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

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

.about-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-image-caption {
  position: absolute;
  bottom: -1px;
  right: -1px;
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
}
.about-image-caption strong {
  display: block;
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-lt);
  line-height: 1;
}

.about-body p {
  color: var(--slate);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.about-features {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.94rem;
  color: var(--charcoal);
}
.about-features li::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  margin-top: 0.65rem;
  flex-shrink: 0;
}

/* ============================================
   TEAM
   ============================================ */
.team-section {
  background: var(--navy);
}
.team-section .section-header h2 { color: var(--white); }
.team-section .section-header p { color: rgba(255,255,255,0.55); }
.team-section .eyebrow { color: var(--gold-lt); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: center;
}
.team-card-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.3s;
  margin-bottom: 1.1rem;
}
.team-card:hover .team-card-photo { filter: grayscale(0%); }

.team-card h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.team-card .partner-role {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.team-card .partner-area {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.3rem;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-section {
  background: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.why-item {}
.why-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.why-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.why-item p {
  font-size: 0.91rem;
  color: var(--slate);
  line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  border-left: 3px solid var(--gold);
  padding: 2rem 1.75rem;
  background: var(--cream);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.testimonial-author {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.testimonial-matter {
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 0.2rem;
}

/* ============================================
   BOOKING SECTION
   ============================================ */
.booking-section {
  background: var(--navy-dk);
  position: relative;
  overflow: hidden;
}
.booking-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.booking-intro h2 { color: var(--white); }
.booking-intro .eyebrow { color: var(--gold-lt); }
.booking-intro p {
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
  font-size: 0.97rem;
  line-height: 1.8;
}

.booking-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.booking-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.booking-detail-icon {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 0.05rem;
  flex-shrink: 0;
}

/* Form */
.booking-form-wrap {
  background: var(--white);
  padding: 2.5rem;
}

.booking-form-wrap h3 {
  font-size: 1.35rem;
  margin-bottom: 1.75rem;
  color: var(--navy);
}

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

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--charcoal);
  border-radius: 2px;
  transition: border-color 0.2s;
  appearance: none;
}

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

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A8D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.form-submit { width: 100%; padding: 1rem; font-size: 0.85rem; }

#booking-msg {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 500;
}
#booking-msg.success { background: #d4edda; color: #155724; }
#booking-msg.error   { background: #f8d7da; color: #721c24; }

/* Time slots loading state */
#time-slot option[disabled] { color: var(--slate); }

/* ============================================
   CONTACT BAR
   ============================================ */
.contact-bar {
  background: var(--navy);
  padding: 3rem clamp(1.25rem, 5vw, 3rem);
}

.contact-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-bar h3 {
  color: var(--white);
  font-size: 1.5rem;
}
.contact-bar p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.contact-details {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  flex-direction: column;
}
.contact-item .label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 0.2rem;
}
.contact-item .value {
  font-size: 0.95rem;
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-dk);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem clamp(1.25rem, 5vw, 3rem) 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.5rem;
}

.footer-brand .logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 600;
}
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  margin-top: 0.5rem;
  max-width: 260px;
  line-height: 1.6;
}

.footer-links h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 0.85rem;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}
.footer-bottom a {
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image-wrap img {
    height: 320px;
  }
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-rule { display: none; }
  .hero-content { padding-left: clamp(1.25rem, 5vw, 3rem); }

  .hero-meta { gap: 1.75rem; }

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

  .contact-bar-inner { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .areas-grid { gap: 1px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-form-wrap { padding: 1.75rem 1.25rem; }
}
