/* Color Variables */
:root {
  --lion: hsla(32, 27%, 59%, 1);
  --coffee: hsla(26, 37%, 35%, 1);
  --isabelline: hsla(51, 26%, 95%, 1);
  --bistre: hsla(26, 42%, 15%, 1);
  --alabaster: hsla(46, 24%, 89%, 1);
  --forest: hsla(150, 60%, 25%, 1);
  --coral: hsla(15, 75%, 55%, 1);

  /* NEW: Aesthetic Enhancements */
  --warm-beige: hsla(43, 30%, 89%, 1);
  --sepia-overlay: rgba(220, 200, 180, 0.5);
  --chocolate: hsla(25, 40%, 20%, 1);
  --terracotta: hsla(15, 50%, 60%, 1);
  --warm-overlay: rgba(220, 200, 180, 0.03);
  --professional-blue: hsla(200, 50%, 50%, 1);
  --trust-teal: hsla(180, 45%, 40%, 1);
  
  /* Overlay base color (dark bistre) */
  --overlay-dark: hsla(26, 42%, 12%, 1);

  --lion-button: hsla(32, 27%, 59%, var(--button-alpha));
  --coffee-button: hsla(26, 37%, 35%, var(--button-alpha));
  --isabelline-button: hsla(51, 26%, 95%, var(--button-alpha));
  --bistre-button: hsla(26, 42%, 15%, var(--button-alpha));
  --alabaster-button: hsla(46, 24%, 89%, var(--button-alpha));
  --forest-button: var(--forest);
  --coral-button: var(--coral);

  --lion-button-hover: hsla(32, 27%, 59%, var(--button-alpha-hover));
  --coffee-button-hover: hsla(26, 37%, 35%, var(--button-alpha-hover));
  --isabelline-button-hover: hsla(51, 26%, 95%, var(--button-alpha-hover));
  --bistre-button-hover: hsla(26, 42%, 15%, var(--button-alpha-hover));
  --alabaster-button-hover: hsla(46, 24%, 89%, var(--button-alpha-hover));
  --forest-button-hover: hsla(150, 60%, 25%, var(--button-alpha-hover));
  --coral-button-hover: hsla(15, 75%, 55%, var(--button-alpha-hover));

  --button-alpha: 0.8;
  --button-alpha-hover: 0.9;
  --button-blur: 10px;
  --button-blur-hover: 10px;

  --section-blur: 15px;

  /* Typography */
  --font-primary: "Duru Sans", sans-serif;
  --font-heading: "Playfair Display", serif;
  --font-body: "Libre Baskerville", serif;
  
  /* Wave Transition Variables */
  --wave-amplitude: 40px;
  --wave-count: 1; /* Number of full waves across viewport */
}

/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

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

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* Base Styles after Reset */
html {
  overflow-x: hidden;
  background-color: var(--isabelline);
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  color: var(--bistre);
  background-color: var(--isabelline);
  text-wrap: pretty;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Layout */
/* Remove padding-top from main since hero sections should go under the header */

/* Base Typography */
h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--coffee);
}

h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--coffee);
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--coffee);
  margin-bottom: 1rem;
}

h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  line-height: 1.4;
  color: var(--coffee);
}

h5 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  line-height: 1.4;
  color: var(--coffee);
}

p {
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  line-height: 1.8;
  color: var(--bistre);
}

/* ===================================== */
/* GENERAL PURPOSE COMPONENTS            */
/* ===================================== */

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: 80px 20px;
  position: relative;
}

.section--fullheight {
  min-height: 100vh;
}

.section--fullwidth {
  padding-left: 40px;
  padding-right: 40px;
}

/* Typography Components */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--alabaster);
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-dark {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.text-intro {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 50px;
}

/* Heading Components */
.heading-decorated {
  position: relative;
  padding-bottom: 0.5rem;
}

.heading-decorated::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--lion);
  border-radius: 2px;
}

.heading-shadow {
  position: relative;
  padding: 30px 40px;
  display: inline-block;
  overflow: visible;
}

.heading-shadow::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -80%;
  right: -80%;
  bottom: -100%;
  background: radial-gradient(ellipse at center, 
    rgba(0, 0, 0, 0.35) 0%, 
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.05) 50%,
    transparent 70%);
  z-index: -1;
}

.heading-shadow-dark::before {
  background: radial-gradient(ellipse at center, 
    rgba(0, 0, 0, 0.4) 0%, 
    rgba(0, 0, 0, 0.25) 30%,
    rgba(0, 0, 0, 0.08) 50%,
    transparent 70%);
}

/* Button Components */
.button {
  padding: 15px 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: 2px solid var(--lion);
  cursor: pointer;
}

.button-primary {
  background: var(--coffee);
  color: var(--alabaster);
  border-color: var(--coffee);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.button-primary:hover {
  background: var(--alabaster);
  border-color: var(--bistre);
  color: var(--bistre);
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.button-accent {
  background: var(--coral-button);
  color: var(--alabaster);
  border-color: var(--coral);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.button-accent:hover {
  background: var(--alabaster);
  color: var(--coral);
  border-color: var(--coral);
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.button-glass {
  backdrop-filter: blur(var(--button-blur));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.button-glass:hover {
  backdrop-filter: blur(var(--button-blur-hover));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.button-group--spaced {
  margin-top: 50px;
}

/* Enhanced shadows for CTA buttons in dark sections */
.bg-overlay-dark .button-accent,
.services .button-accent,
.bg-overlay-dark .button-primary,
.services .button-primary {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.bg-overlay-dark .button-accent:hover,
.services .button-accent:hover,
.bg-overlay-dark .button-primary:hover,
.services .button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.5);
}

/* Hero Components */
.hero {
  min-height: 600px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 70px; /* Account for fixed header */
}

.hero-fullheight {
  min-height: 100vh;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 55px;
  }
}

.hero-overlay {
  width: 100%;
  padding: 140px 0 120px;
  display: flex;
  align-items: center;
}

/* Hero overlay with gradient - can be used as modifier */
.hero-overlay-gradient {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 120px 0 0 0;
  position: relative;
  background: linear-gradient(
    to right,
    hsla(26, 42%, 12%, 0.95) 0%,
    hsla(26, 42%, 12%, 0.94) 8.1%,
    hsla(26, 42%, 12%, 0.92) 15.5%,
    hsla(26, 42%, 12%, 0.89) 22.5%,
    hsla(26, 42%, 12%, 0.85) 29%,
    hsla(26, 42%, 12%, 0.8) 35.3%,
    hsla(26, 42%, 12%, 0.74) 41.2%,
    hsla(26, 42%, 12%, 0.67) 47.1%,
    hsla(26, 42%, 12%, 0.59) 52.9%,
    hsla(26, 42%, 12%, 0.5) 58.8%,
    hsla(26, 42%, 12%, 0.41) 64.7%,
    hsla(26, 42%, 12%, 0.32) 71%,
    hsla(26, 42%, 12%, 0.24) 77.5%,
    hsla(26, 42%, 12%, 0.17) 84.5%,
    hsla(26, 42%, 12%, 0.11) 91.9%,
    hsla(26, 42%, 12%, 0.05) 100%
  );
}

.hero-overlay-gradient .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.hero-content {
  color: var(--alabaster);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1,
.hero-content h2,
.hero-content h3 {
  color: var(--alabaster);
}

/* Hero content split layout modifier */
.hero-content-split {
  text-align: left;
  width: 50%;
  max-width: none;
  padding-left: 5vw;
  padding-right: 5vw;
  margin: 0;
}

.hero-content-split h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1.1;
  margin-bottom: 25px;
  color: var(--alabaster);
}

/* Hero text variations */
.hero-expand {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: none;
  color: var(--alabaster);
  opacity: 0.9;
}

.subtitle {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  margin-bottom: 20px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--lion);
}

/* Subtitle in hero sections uses the accent color */
.hero .subtitle {
  color: var(--lion);
  opacity: 1;
}

/* Hero overlay with gradient - light variant for standard pages */
.hero-overlay-gradient-light {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 120px;
  position: relative;
  background: linear-gradient(
    135deg,
    hsla(26, 42%, 12%, 0.5) 0%,
    hsla(26, 42%, 12%, 0.4) 20%,
    hsla(26, 42%, 12%, 0.3) 40%,
    hsla(26, 42%, 12%, 0.2) 60%,
    hsla(26, 42%, 12%, 0.1) 80%,
    transparent 100%
  );
}


/* Hero buttons positioning */
.hero-buttons {
  margin-top: 30px;
}

/* Hero buttons split layout positioning */
.hero-buttons-split {
  position: absolute;
  right: 10vw;
  top: 50%;
  transform: translateY(-50%);
}

.hero-buttons-split .button-accent {
  padding: clamp(14px, 1.5vw, 20px) clamp(30px, 3vw, 50px);
  border-radius: clamp(30px, 3vw, 40px);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.hero-buttons-split .button-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Banner Components */
.banner {
  padding: 15px 0;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.banner-gradient {
  background: linear-gradient(
    45deg,
    var(--lion) 0%,
    var(--lion-button) 100%
  );
  color: var(--alabaster);
}

.banner-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* Card Components */
.card {
  padding: 30px 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
  min-width: 0; /* Prevent grid blowout */
}

.card-glass {
  background: hsla(46, 24%, 89%, 0.25);
  border: 1px solid hsla(46, 24%, 89%, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(var(--section-blur));
}

.card-glass:hover {
  background: hsla(46, 24%, 89%, 0.35);
  border: 1px solid hsla(46, 24%, 89%, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Service card specific styling */
.service-card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: var(--isabelline);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Add subtle accent colors to different service cards */
.service-category:nth-child(1) .service-card:nth-child(1) .service-image { border-bottom: 3px solid var(--forest); }
.service-category:nth-child(1) .service-card:nth-child(2) .service-image { border-bottom: 3px solid var(--lion); }
.service-category:nth-child(1) .service-card:nth-child(3) .service-image { border-bottom: 3px solid var(--coral); }
.service-category:nth-child(1) .service-card:nth-child(4) .service-image { border-bottom: 3px solid var(--trust-teal); }
.service-category:nth-child(1) .service-card:nth-child(5) .service-image { border-bottom: 3px solid var(--coffee); }
.service-category:nth-child(1) .service-card:nth-child(6) .service-image { border-bottom: 3px solid var(--professional-blue); }

.service-category:nth-child(2) .service-card:nth-child(1) .service-image { border-bottom: 3px solid var(--coral); }
.service-category:nth-child(2) .service-card:nth-child(2) .service-image { border-bottom: 3px solid var(--professional-blue); }
.service-category:nth-child(2) .service-card:nth-child(3) .service-image { border-bottom: 3px solid var(--lion); }
.service-category:nth-child(2) .service-card:nth-child(4) .service-image { border-bottom: 3px solid var(--forest); }
.service-category:nth-child(2) .service-card:nth-child(5) .service-image { border-bottom: 3px solid var(--trust-teal); }

.service-category:nth-child(3) .service-card:nth-child(1) .service-image { border-bottom: 3px solid var(--trust-teal); }
.service-category:nth-child(3) .service-card:nth-child(2) .service-image { border-bottom: 3px solid var(--forest); }
.service-category:nth-child(3) .service-card:nth-child(3) .service-image { border-bottom: 3px solid var(--coffee); }
.service-category:nth-child(3) .service-card:nth-child(4) .service-image { border-bottom: 3px solid var(--lion); }
.service-category:nth-child(3) .service-card:nth-child(5) .service-image { border-bottom: 3px solid var(--coral); }

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card .service-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--warm-beige);
}

.service-card .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card .service-content {
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card .service-content h4 {
  color: var(--coffee);
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-family: var(--font-heading);
}

.service-card .service-content p {
  color: var(--bistre);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.service-card .service-benefits {
  color: var(--lion);
  font-size: 0.9rem;
  font-style: italic;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 15px;
  margin-top: auto;
}

/* Service Category Styling */
.service-category {
  margin-bottom: 80px;
  padding: 60px;
  border-radius: 20px;
}

.service-category:nth-child(odd) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(246, 240, 227, 0.3) 100%);
}

.service-category:nth-child(even) {
  background: linear-gradient(135deg, rgba(246, 240, 227, 0.3) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.service-category:last-child {
  margin-bottom: 0;
}

.service-category-header {
  text-align: center;
  margin-bottom: 50px;
}

.service-category-header h2 {
  /* Inherits from base h2 styles */
  margin-bottom: 20px;
}

.service-category-header p {
  font-size: 1.2rem;
  color: var(--coffee);
  font-style: italic;
  opacity: 0.9;
}

/* Services overview specific */
.services-overview {
  padding: 80px 0;
  background-size: 400px 400px;
  background-repeat: repeat;
  background-position: 0 0;
  position: relative;
}

.services-overview .container {
  position: relative;
  z-index: 1;
}

/* Appointment section styling */
.appointment-section {
  margin-top: 80px;
  padding: 60px;
  background: linear-gradient(135deg, var(--warm-beige) 0%, var(--alabaster) 100%);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.appointment-content h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--coffee);
  margin-bottom: 15px;
}

.appointment-content p {
  font-size: 1.2rem;
  color: var(--bistre);
  margin-bottom: 30px;
}

.appointment-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .service-category {
    padding: 30px 20px;
  }
  
  .appointment-section {
    padding: 40px 20px;
  }
  
  .appointment-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .appointment-buttons .button {
    width: 100%;
    max-width: 300px;
  }
}

.card-glass-dark {
  background: hsla(46, 24%, 89%, 0.2);
  backdrop-filter: blur(var(--section-blur));
  color: var(--alabaster);
  text-align: left;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid hsla(46, 24%, 89%, 0.25);
  transition: all 0.3s ease;
}

.card-glass-dark:hover {
  background: hsla(46, 24%, 89%, 0.3);
  border: 1px solid hsla(46, 24%, 89%, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-svg {
  width: 48px;
  height: 48px;
  filter: brightness(0) saturate(100%) invert(12%) sepia(42%) saturate(633%) hue-rotate(15deg) brightness(93%) contrast(94%);
}

.icon-svg:hover {
  filter: brightness(0) saturate(100%) invert(23%) sepia(75%) saturate(855%) hue-rotate(15deg) brightness(85%) contrast(94%);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Grid Components */
.grid {
  display: grid;
  gap: 40px;
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: row;
}

.grid-center {
  max-width: 1000px;
  margin: 0 auto;
}

/* List Components */
.list-styled {
  list-style: none;
  padding: 0;
}

.list-styled li {
  padding: 10px 0;
  border-bottom: 1px solid var(--alabaster);
  position: relative;
  padding-left: 20px;
}

.list-styled li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--lion);
}

.list-styled li:last-child {
  border-bottom: none;
}

.list-styled-glow li {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  color: var(--alabaster);
}

/* Background Utilities */
.bg-overlay-dark {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    linear-gradient(var(--warm-overlay), var(--warm-overlay));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-gradient-warm {
  background: linear-gradient(
    135deg,
    var(--warm-beige) 0%,
    rgba(220, 200, 180, 0.8) 50%,
    var(--alabaster) 100%
  );
}

.bg-gradient-dark {
  background: linear-gradient(
    135deg,
    rgba(99, 69, 40, 0.35) 0%,
    rgba(99, 69, 40, 0.25) 100%
  );
  position: relative;
}

/* Add darker overlay for better text contrast */
.bg-gradient-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.3)
  );
  pointer-events: none;
  z-index: 1;
}

.bg-gradient-dark > * {
  position: relative;
  z-index: 2;
}

/* Special Effects */
.text-glow {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  color: var(--lion);
}

/* Text glow on dark backgrounds should use light color */
.bg-overlay-dark .text-glow,
.card-glass-dark .text-glow {
  color: var(--alabaster);
}

.text-overlay {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Section-specific heading colors */
.bg-gradient-dark h2,
.bg-overlay-dark h2 {
  color: var(--alabaster);
}

.bg-gradient-dark h3,
.bg-overlay-dark h3 {
  color: var(--alabaster);
}

/* Specific section heading overrides */
.bg-gradient-warm h2 {
  color: var(--coffee);
}

.text-white.text-shadow {
  color: var(--alabaster) !important;
}

/* Card heading colors */
.card h3 {
  color: var(--coffee);
}

.card-glass h3 {
  color: var(--coffee);
  word-wrap: break-word;
  hyphens: auto;
}

/* Light text for glass cards on dark backgrounds */
.bg-gradient-dark .card-glass h3,
.bg-overlay-dark .card-glass h3,
.text-white .card-glass h3 {
  color: var(--alabaster);
}

.bg-gradient-dark .card-glass p,
.bg-overlay-dark .card-glass p,
.text-white .card-glass p {
  color: var(--alabaster);
  opacity: 0.9;
}

/* Style SVG icons to match text color */
.bg-gradient-dark .card-glass .icon-svg,
.bg-overlay-dark .card-glass .icon-svg,
.text-white .card-glass .icon-svg {
  filter: invert(1) brightness(0.95);
  opacity: 0.9;
}

/* Default icon styling for light backgrounds */
.icon-svg {
  width: 48px;
  height: 48px;
  filter: brightness(0.3) sepia(1) saturate(2) hue-rotate(10deg);
  transition: filter 0.3s ease;
}

.card:hover .icon-svg {
  filter: brightness(0.4) sepia(1) saturate(3) hue-rotate(15deg);
}

/* Contact method icons - match coffee color */
.contact-method .icon-svg {
  filter: brightness(0) saturate(100%) invert(26%) sepia(15%) saturate(1558%) hue-rotate(7deg) brightness(92%) contrast(87%);
}

.contact-method:hover .icon-svg {
  filter: brightness(0) saturate(100%) invert(21%) sepia(17%) saturate(1458%) hue-rotate(7deg) brightness(87%) contrast(87%);
}

/* Info section icons - match lion color */
.info-section .icon-svg {
  filter: brightness(0) saturate(100%) invert(58%) sepia(15%) saturate(719%) hue-rotate(6deg) brightness(94%) contrast(86%);
}

/* Social link icons - match coffee color */
.social-link .icon-svg {
  filter: brightness(0) saturate(100%) invert(26%) sepia(15%) saturate(1558%) hue-rotate(7deg) brightness(92%) contrast(87%);
}

.social-link:hover .icon-svg {
  filter: brightness(0) saturate(100%) invert(21%) sepia(17%) saturate(1458%) hue-rotate(7deg) brightness(87%) contrast(87%);
}

/* Maintain light icons on hover for dark backgrounds */
.bg-gradient-dark .card-glass:hover .icon-svg,
.bg-overlay-dark .card-glass:hover .icon-svg,
.text-white .card-glass:hover .icon-svg {
  filter: invert(1) brightness(1);
  opacity: 1;
}

.card-glass-dark h3 {
  color: var(--alabaster);
}

/* Contact page sections */
.contact-methods {
  padding: 80px 20px;
}

.practice-info {
  padding: 80px 20px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 500px;
  background-color: var(--alabaster);
}

/* Add pseudo-element for edge blending on wide viewports */
.practice-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    var(--alabaster) 0%,
    transparent 20%,
    transparent 80%,
    var(--alabaster) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Activate edge blending on wide viewports */
@media (min-width: 1920px) {
  .practice-info {
    background-size: contain;
    background-position: center center;
  }
  
  .practice-info::before {
    opacity: 1;
  }
}

/* Contact page card styling */
.contact-method {
  padding: 40px;
  text-align: center;
  border-radius: 15px;
  transition: all 0.3s ease;
  background: var(--alabaster);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.method-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.contact-method h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--coffee);
}

.contact-method p {
  color: var(--bistre);
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-link {
  display: inline-block;
  color: var(--lion);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--coffee);
}

.method-note {
  display: block;
  font-size: 0.9rem;
  color: var(--lion);
  font-style: italic;
  margin-top: 10px;
}

/* Info section cards */
.info-section {
  padding: 30px;
  border-radius: 15px;
  text-align: center;
}

.info-section h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--coffee);
  margin-bottom: 15px;
}

.info-section p {
  color: var(--bistre);
  line-height: 1.6;
  margin-bottom: 20px;
}

.info-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.info-highlights span {
  background: var(--lion);
  color: var(--alabaster);
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Contact page grids */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.social-links-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Hours and Location Section */
.hours-location {
  background: linear-gradient(135deg, var(--coffee) 0%, var(--bistre) 100%);
  padding: 80px 20px;
  color: var(--alabaster);
}

.hours-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  margin-top: 40px;
}

.hours-section h3,
.location-section h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--alabaster);
  margin-bottom: 30px;
}

.hours-list {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-item .day {
  font-weight: 600;
  color: var(--alabaster);
}

.hours-item .time {
  color: var(--alabaster);
  opacity: 0.9;
}

.hours-item.closed .time {
  color: var(--lion);
  font-style: italic;
}

.hours-note {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.hours-note p {
  color: var(--alabaster);
  line-height: 1.6;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
  border: none;
  display: block;
}

.location-details {
  margin-top: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.location-details h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--alabaster);
  margin-bottom: 20px;
}

.location-details ul {
  list-style: none;
  padding: 0;
}

.location-details li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: var(--alabaster);
  opacity: 0.9;
}

.location-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--lion);
  font-weight: bold;
}

/* Connect section */
.connect-section {
  text-align: center;
  padding: 80px 20px;
}

.connect-section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--coffee);
  margin-bottom: 20px;
}

.connect-section > p {
  font-size: 1.2rem;
  color: var(--bistre);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Social link cards */
.social-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  text-decoration: none;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-icon {
  flex-shrink: 0;
}

.social-content {
  text-align: left;
}

.social-content h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--coffee);
  margin-bottom: 5px;
}

.social-content p {
  color: var(--bistre);
  line-height: 1.5;
  margin: 0;
}

/* Override for headings with shadow effects on dark backgrounds */
.heading-shadow.text-shadow {
  color: var(--alabaster);
}

.heading-shadow-dark.text-shadow-dark {
  color: var(--alabaster);
}

/* Team/Profile Components */
.dentist-profiles {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.dentist-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.dentist-profile:nth-child(even) {
  grid-template-columns: 1fr 300px;
}

.dentist-profile:nth-child(even) .dentist-image {
  order: 2;
}

.dentist-profile:nth-child(even) .dentist-info {
  order: 1;
}

.dentist-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  background: var(--alabaster);
}

.dentist-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* Soft artistic effect for watercolor portraits */
  filter: contrast(0.95) brightness(1.05);
}

/* Add subtle frame effect for watercolor portraits */
.dentist-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--alabaster);
  border-radius: 15px;
  pointer-events: none;
  opacity: 0.5;
}

.dentist-info h3 {
  margin-bottom: 5px;
}

.dentist-info h4 {
  color: var(--lion);
  font-weight: 500;
  margin-bottom: 20px;
}

.dentist-specialties {
  margin-top: 25px;
  padding: 20px;
  background: var(--alabaster);
  border-radius: 10px;
}

.dentist-specialties h5 {
  color: var(--coffee);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.dentist-specialties ul {
  list-style: none;
  padding: 0;
}

.dentist-specialties li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.dentist-specialties li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lion);
}

/* Progressive Image Loading */
.progressive-image {
  filter: blur(5px);
  transition: filter 0.3s;
}

.progressive-image.loaded {
  filter: blur(0);
}

/* ===================================== */
/* SECTION TRANSITION COMPONENTS         */
/* ===================================== */

/* Wave Divider - Elegant curved transition */
.section-wave-divider {
  position: relative;
}

.section-wave-divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--alabaster);
  clip-path: ellipse(100% 100% at 50% 0%);
}

/* Sinusoidal Wave - Natural wave pattern */
.section-sine-wave {
  position: relative;
  padding-bottom: 60px;
}

.section-sine-wave::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--alabaster);
  clip-path: polygon(
    0% 30%,
    2.5% 35%, 5% 40%, 7.5% 42%, 10% 43%,
    12.5% 42%, 15% 40%, 17.5% 35%, 20% 30%,
    22.5% 25%, 25% 20%, 27.5% 18%, 30% 17%,
    32.5% 18%, 35% 20%, 37.5% 25%, 40% 30%,
    42.5% 35%, 45% 40%, 47.5% 42%, 50% 43%,
    52.5% 42%, 55% 40%, 57.5% 35%, 60% 30%,
    62.5% 25%, 65% 20%, 67.5% 18%, 70% 17%,
    72.5% 18%, 75% 20%, 77.5% 25%, 80% 30%,
    82.5% 35%, 85% 40%, 87.5% 42%, 90% 43%,
    92.5% 42%, 95% 40%, 97.5% 35%, 100% 30%,
    100% 100%, 0% 100%
  );
}

/* Wave Clip - Clips the section itself */
.section-wave-clip {
  position: relative;
  z-index: 1;
  padding-bottom: calc(80px + var(--wave-amplitude) * 2);
  --wave-base: calc(100% - var(--wave-amplitude));
  --wave-peak: calc(100% - var(--wave-amplitude) * 2);
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% var(--wave-base),
    /* Single wave cycle with smooth sine curve */
    95% calc(var(--wave-base) + var(--wave-amplitude) * 0.31),
    90% calc(var(--wave-base) + var(--wave-amplitude) * 0.59),
    85% calc(var(--wave-base) + var(--wave-amplitude) * 0.81),
    80% calc(var(--wave-base) + var(--wave-amplitude) * 0.95),
    75% calc(var(--wave-base) + var(--wave-amplitude) * 1),
    70% calc(var(--wave-base) + var(--wave-amplitude) * 0.95),
    65% calc(var(--wave-base) + var(--wave-amplitude) * 0.81),
    60% calc(var(--wave-base) + var(--wave-amplitude) * 0.59),
    55% calc(var(--wave-base) + var(--wave-amplitude) * 0.31),
    50% var(--wave-base),
    45% calc(var(--wave-base) - var(--wave-amplitude) * 0.31),
    40% calc(var(--wave-base) - var(--wave-amplitude) * 0.59),
    35% calc(var(--wave-base) - var(--wave-amplitude) * 0.81),
    30% calc(var(--wave-base) - var(--wave-amplitude) * 0.95),
    25% calc(var(--wave-base) - var(--wave-amplitude) * 1),
    20% calc(var(--wave-base) - var(--wave-amplitude) * 0.95),
    15% calc(var(--wave-base) - var(--wave-amplitude) * 0.81),
    10% calc(var(--wave-base) - var(--wave-amplitude) * 0.59),
    5% calc(var(--wave-base) - var(--wave-amplitude) * 0.31),
    0% var(--wave-base)
  );
}

/* Soft edge gradient overlay for wave using theme colors */
.section-wave-clip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: calc(var(--wave-amplitude) * 4);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    hsla(30, 20%, 45%, 0.2) 20%,
    hsla(30, 20%, 45%, 0.4) 40%,
    hsla(30, 20%, 45%, 0.6) 60%,
    hsla(30, 20%, 45%, 0.8) 80%,
    hsla(30, 20%, 45%, 0.9) 100%
  );
  pointer-events: none;
  z-index: 2;
  /* Clip to match parent */
  clip-path: inherit;
}


/* Next section after wave clip needs negative margin */
.section-after-wave {
  margin-top: calc(var(--wave-amplitude) * -2);
  position: relative;
  z-index: 0;
}

/* Continue the gradient at the top of the next section */
.section-after-wave::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--wave-amplitude) * 4);
  background: linear-gradient(
    to top,
    transparent 0%,
    hsla(30, 20%, 45%, 0.2) 20%,
    hsla(30, 20%, 45%, 0.4) 40%,
    hsla(30, 20%, 45%, 0.6) 60%,
    hsla(30, 20%, 45%, 0.8) 80%,
    hsla(30, 20%, 45%, 0.9) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Add extra padding to account for the wave overlap */
.section-after-wave .container {
  padding-top: calc(var(--wave-amplitude) * 2);
}

/* Fade Transition - Gradient overlay */
.section-fade-transition {
  position: relative;
}

.section-fade-transition::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--warm-overlay));
  pointer-events: none;
}

/* Overlap Transition - For overlapping elements */
.section-overlap {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

/* Overlap with gradient blend */
.section-overlap-blend {
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

.section-overlap-blend::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* Diagonal Transition - Skewed edge */
.section-diagonal {
  position: relative;
  padding-bottom: 100px;
  overflow: hidden;
}

.section-diagonal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -50px;
  right: -50px;
  height: 100px;
  background: var(--alabaster);
  transform: skewY(-3deg);
  transform-origin: bottom left;
}

/* Shadow Separator - Depth between sections */
.section-shadow-separator {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

/* Soft Edge - Blurred transition */
.section-soft-edge {
  position: relative;
  overflow: visible;
}

.section-soft-edge::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, 0.05)
  );
}

/* Organic Mask - Natural shape transition */
.section-organic-mask {
  position: relative;
}

.section-organic-mask::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--alabaster);
  mask-image: radial-gradient(
    ellipse 120% 100% at 50% 0%,
    black 70%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 120% 100% at 50% 0%,
    black 70%,
    transparent 100%
  );
}

/* Responsive */
@media (max-width: 1400px) {
  :root {
    --wave-amplitude: 35px;
  }
}

@media (max-width: 1024px) {
  :root {
    --wave-amplitude: 30px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dentist-profile,
  .dentist-profile:nth-child(even) {
    grid-template-columns: 1fr;
  }
  
  .dentist-profile:nth-child(even) .dentist-image,
  .dentist-profile:nth-child(even) .dentist-info {
    order: unset;
  }
  
  .dentist-image {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-content-split {
    width: 60%;
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

@media (max-width: 768px) {
  :root {
    --wave-amplitude: 25px;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .section--fullwidth {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .grid-4,
  .grid-3,
  .grid-auto {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .dentist-profiles {
    gap: 40px;
  }
  
  .hero-overlay-gradient {
    background: linear-gradient(
      to bottom,
      hsla(26, 42%, 12%, 0.95) 0%,
      hsla(26, 42%, 12%, 0.94) 8.1%,
      hsla(26, 42%, 12%, 0.92) 15.5%,
      hsla(26, 42%, 12%, 0.89) 22.5%,
      hsla(26, 42%, 12%, 0.85) 29%,
      hsla(26, 42%, 12%, 0.8) 35.3%,
      hsla(26, 42%, 12%, 0.74) 41.2%,
      hsla(26, 42%, 12%, 0.67) 47.1%,
      hsla(26, 42%, 12%, 0.59) 52.9%,
      hsla(26, 42%, 12%, 0.5) 58.8%,
      hsla(26, 42%, 12%, 0.41) 64.7%,
      hsla(26, 42%, 12%, 0.32) 71%,
      hsla(26, 42%, 12%, 0.24) 77.5%,
      hsla(26, 42%, 12%, 0.17) 84.5%,
      hsla(26, 42%, 12%, 0.11) 91.9%,
      hsla(26, 42%, 12%, 0.05) 100%
    );
  }

  .hero-content-split {
    width: 100%;
    padding: 0 20px;
    text-align: center;
  }

  .hero-buttons-split {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 20px;
    text-align: center;
  }
}

/* Height-based responsive */
@media (max-height: 900px) {
  .hero-overlay-gradient {
    padding-top: 100px;
  }

  .hero-content-split h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    margin-bottom: 20px;
  }

  .subtitle {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    margin-bottom: 15px;
  }

  .hero-expand {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    margin-bottom: 25px;
    line-height: 1.5;
  }
}

@media (max-height: 700px) {
  .hero-overlay-gradient {
    min-height: auto;
    height: 100vh;
    padding-top: 80px;
  }

  .hero-content-split h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 8px;
  }

  .subtitle {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    margin-bottom: 5px;
  }

  .hero-expand {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    margin-bottom: 12px;
  }

  .hero-buttons-split .button-accent {
    padding: clamp(10px, 1.2vw, 15px) clamp(20px, 2.5vw, 35px);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  }
}