/* CSS Reset & Base */
:where(*) {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

/* Design Tokens */
:root {
  /* Colors */
  --ivory: #F5F2ED;
  --paper: #FFFFFF;
  --sand: #EAE4DE;
  --beige: #CDB7A7;
  --bronze: #9A6A55;
  --bronze-700: #7E5643;
  --ash: #7A7774;
  --graphite: #3A3A3A;
  --charcoal: #1E1E1E;
  --line: #DDD5CD;
  --panel: #CAB6A6;
  --shadow: rgba(0,0,0,.08);
  
  /* Typography */
  --serif: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  --sans: "Inter", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  
  /* Type Scale */
  --h1-size: 64px;
  --h1-line: 72px;
  --h2-size: 44px;
  --h2-line: 52px;
  --h3-size: 28px;
  --h3-line: 36px;
  --eyebrow-size: 12px;
  --eyebrow-line: 16px;
  --body-size: 16px;
  --body-line: 28px;
  --small-size: 14px;
  --small-line: 22px;
}

/* Base Styles */
body {
  font-family: var(--sans);
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--graphite);
  background-color: var(--ivory);
  font-weight: 400;
  padding-top: 80px;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--bronze);
  line-height: 1.1;
}

h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-line);
  font-weight: 600;
}

h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-line);
}

h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-line);
}

h4 {
  font-size: 20px;
  line-height: 28px;
}

/* Utility Classes */
.eyebrow {
  font-size: var(--eyebrow-size);
  line-height: var(--eyebrow-line);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash);
  font-weight: 500;
}

.short {
  width: 64px;
  height: 1px;
  border: none;
  background-color: var(--line);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--sans);
  font-size: var(--eyebrow-size);
  line-height: var(--eyebrow-line);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 2px;
  transition: all 160ms ease;
  border: 1px solid var(--bronze);
  color: var(--bronze);
  background: transparent;
  cursor: pointer;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background-color: var(--bronze);
  color: var(--paper);
}

.btn.ghost {
  height: 36px;
  padding: 10px 16px;
}

.btn.light {
  border-color: #EDEAE6;
  color: #EDEAE6;
}

.btn.light:hover {
  background-color: var(--bronze);
  border-color: var(--bronze);
  color: var(--paper);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 242, 237, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  transition: all 160ms ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.nav-brand svg {
  color: var(--bronze);
}

.brand-text {
  font-family: var(--sans);
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
  color: var(--graphite);
  text-align: left;
}

.brand-text .line3 {
  font-size: 8px;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  font-family: var(--sans);
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--graphite);
  transition: color 160ms ease;
  position: relative;
}

.nav-menu li a:hover {
  color: var(--bronze);
}

.nav-menu li a:focus {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--graphite);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 1px;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-4px, -6px);
}

/* Hero Section */
#hero {
  height: 560px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 40% 60%;
  height: 100%;
  align-items: center;
}

.hero-content .copy {
  padding-top: 120px;
  max-width: 520px;
}

.hero-content h1 {
  margin-bottom: 16px;
}

.hero-content h3 {
  margin-bottom: 32px;
}

.btn-row {
  display: flex;
  gap: 12px;
}

.image-right {
  height: 560px;
  position: relative;
  margin-left: auto;
}

/* Value Proposition */
#value-prop {
  background: var(--paper);
  padding: 96px 0;
  text-align: center;
}

#value-prop .container {
  max-width: 760px;
}

#value-prop h2 {
  margin-bottom: 24px;
}

/* Feature Split */
#feature-split {
  display: grid;
  grid-template-columns: 58% 42%;
  margin: 0 auto 80px auto;
}

.image-left {
  height: 100%;
}

.image-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beige-panel {
  background: var(--beige);
  padding: 48px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.beige-panel h3 {
  margin-bottom: 24px;
  max-width: 150px;
}

.plan-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 32px 0;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
}

.details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.details p {
  font-size: var(--small-size);
  line-height: var(--small-line);
  color: var(--ash);
}

.beige-panel .meta {
  margin-top: auto;
  padding-bottom: 8px;
}

.beige-panel .eyebrow {
  margin-bottom: 12px;
}

.beige-panel p {
  font-size: var(--small-size);
  line-height: var(--small-line);
  color: var(--graphite);
}

/* Featured Services - Dark Section */
#featured-services {
  background: var(--ivory);
  padding: 80px 0;
}

#featured-services h3 {
  color: var(--bronze);
  margin-bottom: 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--paper);
  border-radius: 0;
  box-shadow: 0 10px 30px var(--shadow);
  overflow: hidden;
  transition: all 160ms ease;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-content {
  padding: 16px;
}

.card .eyebrow {
  margin-bottom: 8px;
}

.card h4 {
  margin-bottom: 12px;
}

.card .meta p {
  font-size: var(--small-size);
  line-height: var(--small-line);
  color: var(--ash);
}

/* Dark section card overrides */
#featured-services .card h4 {
  color: var(--graphite);
}

#featured-services .card .eyebrow {
  color: #BEB7B1;
}

/* About Section */
#about {
  background: var(--paper);
  padding: 80px 0;
}

#about .about-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
}

#about .about-text h3 {
  margin-bottom: 32px;
}

#about .about-bio p {
  margin-bottom: 24px;
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--ash);
}

#about .credentials {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

#about .credentials .eyebrow {
  margin-bottom: 8px;
}

#about .about-image img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

/* Assessment Section */
#assessment {
  height: 520px;
  position: relative;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#assessment .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding-top: 72px;
}

.overlay-card {
  width: 420px;
  background: #2A2A2A;
  padding: 24px;
  box-shadow: 0 14px 40px var(--shadow);
  color: #EDEAE6;
}

.overlay-card h3 {
  color: #EDEAE6;
  margin-bottom: 16px;
}

.overlay-card p {
  font-size: var(--small-size);
  line-height: var(--body-line);
  margin-bottom: 20px;
  color: #EDEAE6;
}

/* Client Reviews */
#reviews {
  background: var(--ivory);
  padding: 96px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 48px;
}

.title-col h3 {
  margin-bottom: 24px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.col .short {
  margin-bottom: 24px;
}

.col p {
  font-size: var(--small-size);
  line-height: var(--small-line);
  color: var(--ash);
  margin-bottom: 16px;
}

.col .name {
  font-size: var(--small-size);
  line-height: var(--small-line);
  color: var(--bronze);
  font-weight: 500;
}

/* Footer */
#footer {
  background: var(--paper);
}

.footer-hero-image {
  height: 220px;
  overflow: hidden;
}

.footer-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}

.contact-col h4 {
  font-family: var(--sans);
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--graphite);
  margin-bottom: 12px;
}

.contact-col p {
  font-size: var(--small-size);
  line-height: var(--small-line);
  color: var(--ash);
}

/* Contact Information Styling */
.contact-primary {
  background: rgba(154, 106, 85, 0.1);
  padding: 20px;
  border-left: 4px solid var(--beige);
}

.contact-link {
  color: var(--bronze);
  text-decoration: none;
  font-weight: 500;
  transition: all 160ms ease;
}

.contact-link:hover,
.contact-link:focus {
  color: var(--graphite);
  text-decoration: underline;
}

.email-link {
  font-size: 16px;
}

.office-hours {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.office-hours h4 {
  font-family: var(--sans);
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--graphite);
  margin-bottom: 16px;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 12px;
}

.hours-col p {
  font-size: var(--small-size);
  line-height: var(--small-line);
  color: var(--ash);
}

.footnote {
  font-size: var(--small-size);
  line-height: var(--small-line);
  color: var(--ash);
}

.social {
  padding: 32px 0 48px;
}

.social-label {
  font-size: var(--small-size);
  line-height: var(--small-line);
  color: var(--graphite);
  margin-bottom: 12px;
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: var(--ash);
  transition: color 160ms ease;
}

.social-icons a:hover {
  color: var(--bronze-700);
}

/* Focus States */
.btn:focus,
a:focus {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 1040px;
  }
  
  :root {
    --h1-size: 56px;
    --h1-line: 64px;
    --h2-size: 38px;
    --h2-line: 46px;
  }
}

@media (max-width: 992px) {
  /* Mobile navbar */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--ivory);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 48px 0;
    transition: left 0.3s ease;
    border-top: 1px solid var(--line);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }
  
  .nav-menu li a {
    display: block;
    padding: 20px 32px;
    font-size: var(--body-size);
    border-bottom: none;
  }
  
  .nav-toggle {
    display: flex;
  }

  /* Fix navbar width constraint */
  .nav-container {
    padding: 0 20px;
  }

  /* About section mobile layout */
  #about .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  #about .about-image {
    order: -1;
  }
  
  #about .about-image img {
    height: 300px;
  }

  /* Hero stacks */
  #hero {
    height: auto;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .hero-content .copy {
    padding: 80px 0 40px;
    text-align: center;
    max-width: none;
  }
  
  .image-right {
    height: 300px;
    margin: 0;
  }
  
  /* Feature split stacks */
  #feature-split {
    height: auto;
    grid-template-columns: 1fr;
  }
  
  .image-left {
    height: 300px;
  }
  
  .plan-steps {
    margin: 24px 0;
  }
  
  /* Grids become 2 columns */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Overlay card becomes banner */
  #assessment .container {
    align-items: center;
    justify-content: center;
    padding-top: 0;
  }
  
  .overlay-card {
    width: 100%;
    max-width: 500px;
  }
  
  /* Reviews adjust */
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  /* Single column layouts */
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .cols {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hours-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Center headings */
  h1, h2, h3 {
    text-align: center;
  }
  
  /* Additional mobile navbar improvements */
  .nav-container {
    padding: 0 16px;
  }
  
  .nav-brand img {
    max-width: 100px;
    height: auto;
  }
  
  /* About section further mobile refinements */
  #about .about-content {
    gap: 24px;
  }
  
  #about .about-text h3 {
    margin-bottom: 24px;
  }
  
  #about .about-bio p {
    margin-bottom: 20px;
  }
  
  #about .credentials {
    margin-top: 24px;
    padding-top: 20px;
  }
  
  /* Center short dividers on mobile */
  .short {
    margin: 0 auto 24px auto;
  }
  
  #open-appointments h3,
  #featured-services h3 {
    text-align: left;
  }
  
  /* Full width buttons */
  .btn-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }
  
  /* Adjust padding */
  .container {
    padding: 0 20px;
  }
  
  .beige-panel {
    padding: 32px 24px;
  }
  
  .overlay-card {
    margin: 0 20px;
    width: calc(100% - 40px);
  }
  
  /* Typography scaling */
  :root {
    --h1-size: 48px;
    --h1-line: 56px;
    --h2-size: 32px;
    --h2-line: 40px;
    --h3-size: 24px;
    --h3-line: 32px;
  }
}

/* ===== 5-STEP PLAN CAROUSEL ============================================= */
:root{
  --bronze: #9A6A55;
  --bronze-700:#7E5643;
}

#feature-split.plan-carousel .carousel{
  position: relative;
  height: 520px;       /* matches your previous left image height */
  overflow: hidden;
  z-index: 1; /* keep carousel above background */
  box-shadow: 6px 0 12px rgba(0, 0, 0, 0.15); /* horizontal shadow to the right */
}

#feature-split.plan-carousel .beige-panel {
  position: relative;
  z-index: 0; /* sits under shadow */
}

#feature-split.plan-carousel .slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
}
#feature-split.plan-carousel .slide.is-active{
  opacity: 1;
  visibility: visible;
}

#feature-split.plan-carousel .slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Elegant H3 overlay with bottom scrim for legibility */
#feature-split.plan-carousel .slide .overlay{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 100%);
  color: #fff;
  pointer-events: none;
}
#feature-split.plan-carousel .slide .overlay h3{
  margin: 0;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
}

/* Number buttons in the beige panel become real tabs */
#feature-split.plan-carousel .plan-steps{
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
#feature-split.plan-carousel .step-number{
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--bronze);
  background: transparent;
  color: var(--bronze);
  font: 600 14px/1 "Inter", system-ui, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#feature-split.plan-carousel .step-number:hover,
#feature-split.plan-carousel .step-number:focus{
  border-color: var(--bronze-700);
  box-shadow: 0 0 0 3px rgba(154,106,85,.18);
  outline: none;
}
#feature-split.plan-carousel .step-number.is-active,
#feature-split.plan-carousel .step-number[aria-selected="true"]{
  background: var(--bronze);
  color: #fff;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(154,106,85,.22);
}

/* Responsive tweak */
@media (max-width: 900px){
  #feature-split.plan-carousel .carousel{ height: 420px; }
}