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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Alegreya', Georgia, serif;
  background-color: hsl(45, 22%, 86%);
  color: #3b3526;
  line-height: 1.6;
  overflow-x: hidden;
}

/* HEADER */
header {
  position: relative;
}

/* NAV */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 3rem;
  background-color: #f5f0eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  width: 450px;
  height: auto;
  display: block;
}

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

.nav-link {
  text-decoration: none;
  color: hsl(23, 32%, 40%);
  font-family: 'Alegreya', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  border-bottom-color: hsl(23, 32%, 40%);
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  background-image: url('hero-bg.webp');
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

h1.hero-holistic {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.44rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: #f0ebe3;
  margin: 0 0 0.9rem 0;
  padding: 0;
  text-align: center;
  line-height: 1;
}

.hero-logo {
  width: min(580px, 78vw);
  height: auto;
  display: block;
}

.hero-btn {
  display: inline-block;
  background: #e3dfd3;
  color: #3b3526;
  text-decoration: none;
  font-family: 'Montserrat', 'Alegreya', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  padding: 1rem 2.8rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-btn:hover {
  background: #d4cfc3;
}

.hero-bottom-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 2;
}

.hero-bottom-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* WAVE TRANSITION — SERVICES TO DARK */
.wave-to-dark {
  background-color: #f0ebe3;
  line-height: 0;
  display: block;
}

.wave-to-dark svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* SERVICES SECTION */
.services {
  position: relative;
  z-index: 1;
  background-color: hsl(45, 22%, 86%);
  padding: 5rem 4rem 6rem;
  margin-top: -2px;
}

.services-pattern {
  display: block;
  position: absolute;
  inset: 0;
  background-image: url('kairos-pattern-new.webp');
  background-repeat: repeat;
  background-size: 1400px auto;
  background-position: center center;
  mix-blend-mode: screen;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.services-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.services-left {
  padding-top: 1rem;
}

.services-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: normal;
  font-size: 5.5rem;
  font-weight: 300;
  color: hsl(23, 32%, 40%);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.services-explore-btn {
  display: inline-block;
  background: #5d5746;
  color: #f0ebe3;
  text-decoration: none;
  font-family: 'Montserrat', 'Alegreya', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.services-explore-btn:hover {
  background: #4a4840;
}

.services-explore-btn--mobile {
  display: none;
}

/* ACCORDION */
.accordion-heading {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.accordion {
  width: 100%;
}

.accordion-item {
  border-top: 1px solid #c8bfb0;
}

.accordion-item:last-child {
  border-bottom: 1px solid #c8bfb0;
}

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

.accordion-title {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 100;
  color: #5d5746;
  letter-spacing: 0.01em;
}

.accordion-icon {
  font-size: 1.2rem;
  font-weight: 300;
  color: #6b5d4e;
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-body p {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.0625rem;
  color: #5d5746;
  line-height: 1.75;
  padding-bottom: 1.2rem;
}

.accordion-item.open .accordion-body {
  max-height: 400px;
}

/* KAIROS DIFFERENCE SECTION */
.kairos-diff {
  background-color: #5d5746;
  padding: 8rem 4rem 5rem;
  text-align: center;
  position: relative;
  margin-top: -80px;
  clip-path: polygon(0 0, 100% 80px, 100% 100%, 0 100%);
  z-index: 2;
}

.kairos-diff-inner {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.kairos-diff-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: normal;
  font-size: 4.26rem;
  font-weight: 100;
  color: #ede8e0;
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.kairos-diff-heading em {
  font-style: italic;
}

.kairos-diff-sub {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.0625rem;
  color: #efede6;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.kairos-diff-body {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.0625rem;
  color: #efede6;
  line-height: 1.9;
}

/* PILLARS SECTION */
.pillars {
  background-color: #f5f0eb;
  background-image: url('speckle-natural.webp');
  background-repeat: repeat;
  background-size: 600px auto;
  padding: 8rem 5rem 6rem;
  position: relative;
  margin-top: -80px;
  clip-path: polygon(0 0, 100% 80px, 100% 100%, 0 100%);
  z-index: 3;
}

.pillars-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 4rem;
}

.pillar-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.685rem;
  font-weight: 100;
  font-style: normal;
  color: #5d5746;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.pillar-body {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.0625rem;
  color: #875e45;
  line-height: 1.85;
}

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

@media (max-width: 600px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .pillars {
    padding: 6rem 2rem 5rem;
  }
}

/* BIO DENTISTRY SECTION */
.bio-dent {
  background-color: #5d5746;
  padding: 6rem 5rem 7rem;
}

.bio-dent-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.bio-dent-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.2rem;
  font-weight: 300;
  font-style: normal;
  color: #ede8e0;
  line-height: 1.15;
}

.bio-dent-body {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.0625rem;
  color: #efede6;
  line-height: 1.85;
  margin-bottom: 2rem;
}

.bio-dent-btn {
  display: inline-block;
  background: #cabdaa;
  border: none;
  color: #5d5746;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}

.bio-dent-btn:hover {
  background: #b8a994;
  color: #4a4234;
}

@media (max-width: 768px) {
  .bio-dent {
    padding: 4rem 2rem 5rem;
  }

  .bio-dent-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bio-dent-heading {
    font-size: 3rem;
  }
}

/* TESTIMONIALS SECTION */
.testimonials {
  background-color: #e3dfd3;
  padding: 5rem 2rem 6rem;
  text-align: center;
}

.testimonials-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  font-style: normal;
  color: #5d5746;
  margin-bottom: 3.5rem;
  letter-spacing: 0.02em;
}

.testimonials-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-controls {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.testimonials-track {
  flex: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

.testimonial.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.testimonial-quote {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.0625rem;
  color: #5c5040;
  line-height: 1.85;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.testimonial-name {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 0.9rem;
  color: #5c5040;
  letter-spacing: 0.06em;
}

.testimonials-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #4a4234;
  color: #e8e3db;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.testimonials-arrow:hover {
  background-color: #3a3228;
}

/* FOOTER */
footer {
  background-color: #ede8e0;
  padding: 4rem 4rem 3rem;
  color: #5c5040;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col--center {
  align-items: center;
  text-align: center;
}

.footer-col--right {
  align-items: flex-end;
  text-align: right;
}

.footer-col-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 300;
  font-style: normal;
  line-height: 1.6;
  color: #4a4234;
  margin-bottom: 0.8rem;
}

.footer-col-heading--spaced {
  margin-top: 1.8rem;
}

.footer-link {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.0625rem;
  color: #7a6a58;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #4a4234;
}

.footer-link--small {
  font-size: 0.78rem;
  text-decoration: underline;
}

.footer-logo-img {
  width: 330px;
  max-width: 100%;
  margin-bottom: 1.8rem;
  display: block;
}

.footer-become-btn {
  display: inline-block;
  background: #875e45;
  color: #ede8e0;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  transition: background 0.2s;
  margin-bottom: 1.5rem;
}

.footer-become-btn:hover {
  background: #6e4d37;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.footer-social-link {
  color: #875e45;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social-link svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.footer-social-link:hover {
  color: #6e4d37;
}

.footer-hours-label {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: #7a6a58;
  margin-bottom: 0.3rem;
}

.footer-hours-time {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.0625rem;
  color: #7a6a58;
}

.footer-legal {
  margin-top: auto;
  padding-top: 2rem;
  font-family: 'Alegreya', Georgia, serif;
  font-size: 0.75rem;
  color: #9a8d7e;
  line-height: 1.6;
}

@media (max-width: 768px) {
  footer {
    padding: 3rem 2rem;
  }

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

  .footer-col--right,
  .footer-col--center {
    align-items: center;
    text-align: center;
  }

  .footer-col--center {
    order: -1;
  }
}

/* THANK YOU PAGE */
.thankyou-section {
  position: relative;
  background-color: #5d5746;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thankyou-pattern {
  display: none;
}

.thankyou-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 2rem;
  max-width: 720px;
}

.thankyou-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.5rem;
  font-weight: 300;
  font-style: normal;
  color: #ede8e0;
  line-height: 1.15;
  margin-bottom: 1.8rem;
  letter-spacing: 0.01em;
}

.thankyou-body {
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.125rem;
  color: #f0ebe3;
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.thankyou-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.thankyou-btn {
  display: inline-block;
  background: #cabdaa;
  color: #4a4234;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}

.thankyou-btn:hover {
  background: #b8a994;
  color: #3a3228;
}

@media (max-width: 768px) {
  .thankyou-heading {
    font-size: 2.8rem;
  }

  .thankyou-body {
    font-size: 1rem;
  }
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #5c4a32;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE MENU DROPDOWN */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #f5f0eb;
  border-top: 1px solid #d8d0c4;
  z-index: 99;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

.mobile-nav-links {
  list-style: none;
  padding: 0.5rem 0 1rem;
}

.mobile-nav-link {
  display: block;
  text-decoration: none;
  color: hsl(23, 32%, 40%);
  font-family: 'Alegreya', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.85rem 2rem;
  border-bottom: 1px solid #e8e0d4;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-links li:last-child .mobile-nav-link {
  border-bottom: none;
}

.mobile-nav-link:hover {
  background-color: #ede8e2;
  color: #4a4234;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .logo-img {
    width: 250px;
  }

  .navbar {
    padding: 0.6rem 1.2rem;
  }

  .hero-logo {
    width: 75vw;
  }

  .hero {
    height: 65vh;
    background-position: center center;
  }

  .services {
    padding: 3rem 2rem 6rem;
    margin-top: -5px;
  }

  .kairos-diff {
    padding: 7rem 2rem 8rem;
  }

  .services-explore-btn--desktop {
    display: none;
  }

  .services-explore-btn--mobile {
    display: inline-block;
    margin-top: 2rem;
  }

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

  .services-heading {
    font-size: 3.5rem;
  }
}
