/* ==========================================================================
   All Smiles Dentistry — Stylesheet
   Dr. Liza Feliciano, DMD | Fruitland Park, FL

   Organization (top-down):
     1. Variables (colors, fonts, spacing)
     2. Reset & base typography
     3. Layout (nav, sections, footer)
     4. Components (buttons, cards, chips, forms)
     5. Page-specific sections (home, about, services, etc.)
     6. Utilities
     7. Responsive
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES
   ========================================================================== */

:root {
  /* Brand colors */
  --teal-dark:   #2A7A6F;
  --teal:        #3A9A8A;
  --teal-mid:    #4ABAAA;
  --teal-light:  #D0EFEB;
  --teal-pale:   #EAF8F6;

  /* Neutrals */
  --charcoal:    #2A3535;
  --soft-gray:   #5A6868;
  --gray:        #7A8A8A;
  --gray-light:  #F2F5F5;
  --cream:       #FAFCFC;
  --white:       #FFFFFF;

  /* Accent */
  --warm-accent: #E8A878;

  /* Typography */
  --font-sans:   'Lato', system-ui, -apple-system, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-script: 'Cormorant Garamond', Georgia, serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --nav-height: 72px;
  --max-width:  1200px;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(42, 122, 111, 0.08);
  --shadow-md:  0 8px 24px rgba(42, 122, 111, 0.12);
  --shadow-lg:  0 16px 40px rgba(42, 122, 111, 0.15);
}


/* ==========================================================================
   2. RESET & BASE TYPOGRAPHY
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--teal);
  font-family: var(--font-script);
}

p {
  font-weight: 300;
  line-height: 1.7;
  color: var(--soft-gray);
}

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--teal);
}

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


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  padding: 0 var(--space-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58, 154, 138, 0.15);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__logo img {
  height: 52px;
  object-fit: contain;
}

.site-nav__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.site-nav__links a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft-gray);
}

.site-nav__links a:hover,
.site-nav__links a.active {
  color: var(--teal-dark);
}

.site-nav__cta {
  background: var(--teal-dark);
  color: var(--white) !important;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
}

.site-nav__cta:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

.site-nav__phone {
  font-size: 0.9rem;
  color: var(--soft-gray);
  font-weight: 400;
}

.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--charcoal);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* --- Main content wrapper --- */
.page {
  min-height: calc(100vh - var(--nav-height));
}

.section {
  padding: var(--space-2xl) var(--space-lg);
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.section__title {
  margin-bottom: var(--space-sm);
}

.section__intro {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  text-align: center;
}

.site-footer__logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0 auto var(--space-md);
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
}

.site-footer__copy {
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__address {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}


/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal-dark);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn--light {
  background: var(--white);
  color: var(--teal-dark);
}

.btn--light:hover {
  background: var(--teal-pale);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

/* --- Cards (generic) --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(58, 154, 138, 0.08);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Service card --- */
.service-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.service-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--soft-gray);
  line-height: 1.65;
}

/* --- Service item (detailed list on services page) --- */
.service-item {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-light);
}

.service-item__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
  display: block;
}

.service-item__desc {
  font-size: 0.9rem;
  color: var(--soft-gray);
}

/* --- Review card --- */
.review-card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid rgba(58, 154, 138, 0.08);
}

.review-card__quote {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--teal-light);
  position: absolute;
  top: var(--space-sm);
  left: var(--space-md);
  opacity: 0.6;
}

.review-card__stars {
  color: #F4B942;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.review-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border-top: 1px solid var(--gray-light);
  padding-top: var(--space-sm);
}

.review-card__avatar {
  width: 42px; height: 42px;
  background: var(--teal-pale);
  color: var(--teal-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-card__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
}

.review-card__info {
  display: block;
  font-size: 0.8rem;
  color: var(--soft-gray);
}

/* Review card variants */
.review-card--cta {
  background: var(--teal-pale);
  border: 1px dashed var(--teal-light);
  text-align: center;
}

.review-card__stars--muted {
  opacity: 0.35;
}

.review-card__author--centered {
  justify-content: center;
  border-top: none;
  padding-top: 0;
}

/* --- Trust item --- */
.trust-item {
  text-align: center;
  padding: var(--space-sm);
}

.trust-item__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--teal-dark);
  margin-bottom: 0.25rem;
  font-weight: 400;
}

.trust-item__value--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.25rem;
}

.trust-item__value--icon svg {
  width: 100%;
  height: 100%;
}

.trust-item__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft-gray);
  font-weight: 700;
}

/* --- Chip --- */
.chip {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--teal-pale);
  border: 1px solid var(--teal-light);
  color: var(--teal-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0.25rem;
}

/* --- Form elements --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74, 186, 170, 0.15);
}

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

.form-intro {
  font-size: 0.95rem;
  color: var(--soft-gray);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--soft-gray);
  margin-top: var(--space-sm);
  line-height: 1.5;
}


/* ==========================================================================
   5. PAGE-SPECIFIC SECTIONS
   ========================================================================== */

/* --- Hero (used on home) --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-mid) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero__title em {
  color: var(--teal-light);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.hero__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- Doctor card (on hero) --- */
.doctor-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  color: var(--white);
}

.doctor-card__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  border: 4px solid rgba(255, 255, 255, 0.3);
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--teal-dark);
  overflow: hidden;
}

.doctor-card__name {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.doctor-card__title {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.doctor-card__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* --- Trust row --- */
.trust-row {
  background: var(--teal-pale);
  padding: var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--teal-light);
}

.trust-row__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* --- Services grid --- */
.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

/* --- Reviews grid --- */
.reviews-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.reviews-cta {
  text-align: center;
  font-size: 0.9rem;
  color: var(--soft-gray);
  padding: var(--space-lg) var(--space-md);
}

.reviews-source {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: var(--space-lg);
  padding: 0 var(--space-lg);
}

/* --- About page --- */
.about-bio {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-bio__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--teal-pale);
  overflow: hidden;
}

.about-bio__body h2 {
  margin-bottom: var(--space-md);
}

.about-bio__body p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.hobbies-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

/* --- Contact page --- */
.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-detail {
  margin-bottom: var(--space-md);
}

.contact-detail__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-detail__value {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.6;
}

.hours-grid {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-light);
}

.hours-grid h3 {
  margin-bottom: var(--space-md);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.95rem;
}

.hours-row__day {
  font-weight: 700;
  color: var(--charcoal);
}

.appointment-form {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--teal-light);
}

/* --- Gallery --- */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.gallery-tab {
  padding: 0.6rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--teal-light);
  color: var(--teal-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--teal-dark);
  color: var(--white);
  border-color: var(--teal-dark);
}

.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--teal-pale);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-panel {
  display: none;
}

.gallery-panel.active {
  display: block;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox.active {
  display: flex;
}

.lightbox__image {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}


/* ==========================================================================
   6. UTILITIES
   ========================================================================== */

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.mt-0         { margin-top: 0; }
.mt-sm        { margin-top: var(--space-sm); }
.mt-md        { margin-top: var(--space-md); }
.mt-lg        { margin-top: var(--space-lg); }
.mb-0         { margin-bottom: 0; }
.mb-sm        { margin-bottom: var(--space-sm); }
.mb-md        { margin-bottom: var(--space-md); }
.mb-lg        { margin-bottom: var(--space-lg); }
.container    { max-width: var(--max-width); margin: 0 auto; }
.bg-pale      { background: var(--teal-pale); }
.bg-light     { background: var(--gray-light); }


/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
  :root {
    --space-2xl: 4rem;
    --space-xl:  2.5rem;
  }

  .site-nav {
    padding: 0 var(--space-md);
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    gap: var(--space-sm);
  }

  .site-nav__links.is-open {
    display: flex;
  }

  .site-nav__toggle {
    display: block;
  }

  .site-nav__phone {
    display: none;
  }

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

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .trust-row__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .services-grid,
  .service-list,
  .reviews-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-bio,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-bio__photo {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .section {
    padding: var(--space-xl) var(--space-md);
  }

  .services-grid,
  .service-list,
  .reviews-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .trust-row__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}


/* ==========================================================================
   8. V1 RESTORATION — Cinematic hero, dr strip, ornaments, page heroes
   ========================================================================== */

/* --- Cinematic Hero (replaces flat gradient) ------------------------------ */
.cinematic-hero {
  position: relative;
  width: 100%;
  min-height: 78vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0d3330 0%, #1a5a50 30%, #2A7A6F 60%, #1a4040 100%);
}

/* Film grain */
.cinematic-hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.4;
  animation: grainShift 0.5s steps(1) infinite;
  pointer-events: none;
  z-index: 1;
}

/* Floating bokeh orbs */
.cinematic-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 200px 200px at 15% 70%, rgba(74,186,170,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 300px 200px at 80% 20%, rgba(42,122,111,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 150px 150px at 60% 80%, rgba(208,239,235,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 250px 300px at 30% 30%, rgba(26,90,80,0.25) 0%, transparent 70%);
  animation: orbDrift 15s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes grainShift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%, -1%); }
  50%  { transform: translate(1%, 2%); }
  75%  { transform: translate(2%, -2%); }
  100% { transform: translate(-1%, 1%); }
}

@keyframes orbDrift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(20px, -15px); }
}

/* Scanlines */
.cinematic-hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Vignette */
.cinematic-hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.4) 100%);
  z-index: 3;
  pointer-events: none;
}

/* Hero content */
.cinematic-hero__inner {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: var(--space-2xl) var(--space-lg);
}

.cinematic-hero__text {
  flex: 1 1 auto;
  max-width: 560px;
}

.cinematic-hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-mid);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  display: block;
  animation: titleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cinematic-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: titleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cinematic-hero__title em {
  font-style: italic;
  color: var(--teal-light);
  font-family: var(--font-script);
  font-weight: 400;
}

.cinematic-hero__subtitle {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  max-width: 500px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
  animation: titleReveal 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cinematic-hero__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  animation: titleReveal 0.9s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* --- Doctor card (glassmorphism floating) --------------------------------- */
.doctor-card-v1 {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: cardFloat 7s ease-in-out infinite, titleReveal 0.9s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  width: 280px;
}

.doctor-card-v1__photo {
  width: 220px;
  height: 250px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.doctor-card-v1__info { text-align: center; }

.doctor-card-v1__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.doctor-card-v1__title {
  font-size: 0.78rem;
  color: var(--teal-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.doctor-card-v1__badge {
  background: var(--teal-dark);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* --- Trust row enhancement ------------------------------------------------ */
.trust-row {
  position: relative;
  overflow: hidden;
}

.trust-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 186, 170, 0.6), transparent);
  animation: scanLine 4s linear infinite;
}

@keyframes scanLine {
  from { left: -60%; }
  to   { left: 140%; }
}

/* --- Service card icons --------------------------------------------------- */
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--teal-dark);
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-card:hover .service-card__icon {
  transform: scale(1.08);
  color: var(--teal-accent, var(--teal-dark));
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover::after { transform: scaleX(1); }

/* --- Section title underline animation ----------------------------------- */
.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal-mid));
  margin: 0.75rem auto 0;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.section__header:hover .section__title::after { width: 120px; }

/* --- Dr Strip (horizontal photo + bio + CTA band) ------------------------ */
.dr-strip {
  background: linear-gradient(135deg, var(--teal-pale) 0%, rgba(208, 239, 235, 0.4) 50%, var(--teal-pale) 100%);
  padding: var(--space-xl) var(--space-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  border-top: 1px solid var(--teal-light);
  border-bottom: 1px solid var(--teal-light);
  position: relative;
  overflow: hidden;
}

.dr-strip::before {
  content: '✦';
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  color: rgba(74, 186, 170, 0.06);
  pointer-events: none;
  animation: starRotate 20s linear infinite;
}

@keyframes starRotate {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

.dr-strip__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--teal);
  animation: ringPulse 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--teal), 0 0 0 6px rgba(74, 186, 170, 0.15); }
  50%      { box-shadow: 0 0 0 3px var(--teal), 0 0 0 12px rgba(74, 186, 170, 0.25); }
}

.dr-strip__body { position: relative; z-index: 1; }

.dr-strip__body h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.dr-strip__body h3 em {
  color: var(--teal-dark);
  font-style: italic;
  font-family: var(--font-script);
}

.dr-strip__body p {
  font-size: 1rem;
  color: var(--soft-gray);
  line-height: 1.7;
  font-weight: 300;
  max-width: 600px;
}

.dr-strip__cta { position: relative; z-index: 1; }

/* --- Page hero bands (About / Services / Contact / Reviews / Gallery) --- */
.page-hero {
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--teal-light) 100%);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.page-hero__tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3rem);
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}

.page-hero__title em {
  color: var(--teal-dark);
  font-style: italic;
  font-family: var(--font-script);
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--soft-gray);
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Implants highlight block (for services page) ----------------------- */
.implants-highlight {
  background: linear-gradient(135deg, var(--teal-dark) 0%, #1A5A50 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) auto;
  max-width: var(--max-width);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 20px 60px rgba(42,122,111,0.3);
  position: relative;
  overflow: hidden;
}

.implants-highlight::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,186,170,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.implants-highlight__content { position: relative; z-index: 1; }

.implants-highlight h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.implants-highlight h3 em {
  font-style: italic;
  color: var(--teal-light);
  font-family: var(--font-script);
}

.implants-highlight p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  margin-bottom: var(--space-md);
}

.implants-highlight .btn--primary {
  background: var(--white);
  color: var(--teal-dark);
}
.implants-highlight .btn--primary:hover { background: var(--teal-pale); }

.implant-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.implant-step {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.implant-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-mid);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  animation: stepGlow 2s ease-in-out infinite alternate;
}

.implant-step:nth-child(2) .implant-step__num { animation-delay: 0.5s; }
.implant-step:nth-child(3) .implant-step__num { animation-delay: 1s; }
.implant-step:nth-child(4) .implant-step__num { animation-delay: 1.5s; }

@keyframes stepGlow {
  from { box-shadow: 0 0 0 0 rgba(74,186,170,0.5); }
  to   { box-shadow: 0 0 0 8px rgba(74,186,170,0); }
}

.implant-step__text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  padding-top: 0.4rem;
  line-height: 1.5;
}

/* --- About page: floating bubble decorations ---------------------------- */
.about-bio__photo-wrap {
  position: relative;
}

.float-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,186,170,0.3), rgba(74,186,170,0.05));
  pointer-events: none;
  animation: bubbleFloat 9s ease-in-out infinite;
}

.float-bubble--1 {
  width: 80px; height: 80px;
  top: -20px; left: -30px;
  animation-delay: 0s;
}

.float-bubble--2 {
  width: 50px; height: 50px;
  bottom: 10%; right: -20px;
  animation-delay: 3s;
  background: radial-gradient(circle, rgba(232,168,120,0.25), rgba(232,168,120,0.05));
}

.float-bubble--3 {
  width: 110px; height: 110px;
  bottom: -35px; left: 30%;
  animation-delay: 5s;
  background: radial-gradient(circle, rgba(208,239,235,0.4), rgba(208,239,235,0.05));
}

@keyframes bubbleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50%      { transform: translate(12px, -14px) scale(1.1); opacity: 0.9; }
}

/* --- V1 Gallery System (gthumb, tabs, badges) --------------------------- */

.gthumb-gallery-section {
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
  background: var(--cream);
}

.gthumb-tabs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.gthumb-tab {
  background: var(--white);
  border: 2px solid var(--teal-light);
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft-gray);
  cursor: pointer;
  transition: all 0.2s;
}

.gthumb-tab:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.gthumb-tab.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.gthumb-panel {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gthumb-panel.active {
  display: block;
  animation: pageIn 0.35s ease both;
}

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

.gthumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.gthumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--charcoal);
  box-shadow: 0 2px 12px rgba(42, 122, 111, 0.1);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gthumb:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(42, 122, 111, 0.22);
}

.gthumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: opacity 0.25s;
}

.gthumb:hover img { opacity: 0.88; }

/* Badge overlay */
.gthumb-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gthumb-badge.before {
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
}

.gthumb-badge.after {
  background: rgba(42, 122, 111, 0.88);
  color: var(--white);
}

.gthumb-badge.process {
  background: rgba(232, 168, 120, 0.92);
  color: var(--charcoal);
}

.gthumb-badge.result {
  background: rgba(42, 122, 111, 0.88);
  color: var(--white);
}

/* Expand icon on hover */
.gthumb-expand {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--teal-dark);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}

.gthumb:hover .gthumb-expand {
  opacity: 1;
  transform: scale(1);
}

/* Caption strip */
.gthumb-caption {
  padding: 0.6rem 0.75rem 0.7rem;
  background: var(--white);
  border-top: 2px solid var(--teal-light);
}

.gthumb-caption strong {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--charcoal);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.gthumb-caption span {
  font-size: 0.72rem;
  color: var(--soft-gray);
}

@media (max-width: 960px) {
  .gthumb-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .gthumb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gthumb-grid { grid-template-columns: 1fr; }
}

/* --- Responsive: v1 restoration breakpoints ---------------------------- */
@media (max-width: 960px) {
  .cinematic-hero__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }
  .cinematic-hero__subtitle { margin-left: auto; margin-right: auto; }
  .cinematic-hero__buttons  { justify-content: center; }

  .dr-strip {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .dr-strip__body p { margin: 0 auto; }

  .implants-highlight {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
}

@media (max-width: 600px) {
  .doctor-card-v1 {
    width: 230px;
    padding: 1rem;
  }
  .doctor-card-v1__photo {
    width: 180px;
    height: 200px;
  }

  .cinematic-hero {
    min-height: auto;
    padding: var(--space-xl) 0;
  }
}

/* --- About page: hover-to-play video on Dr. Feliciano's photo --------- */
.about-bio__photo--hover-video {
  position: relative;
  cursor: pointer;
  background: var(--teal-pale);
  aspect-ratio: 336 / 480;  /* match video's native 7:10 portrait ratio */
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.about-bio__photo--hover-video .about-bio__photo-img,
.about-bio__photo--hover-video .about-bio__photo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  transition: opacity 0.4s ease;
}

.about-bio__photo--hover-video .about-bio__photo-img {
  object-fit: cover;          /* still photo fills the frame */
  object-position: center top;
}

.about-bio__photo--hover-video .about-bio__photo-video {
  object-fit: contain;        /* video shown in full, no cropping */
  background: #0f2a2e;        /* dark letterbox color if there's empty space */
  opacity: 0;
  pointer-events: none;
}

.about-bio__photo--hover-video:hover .about-bio__photo-img {
  opacity: 0;
}

.about-bio__photo--hover-video:hover .about-bio__photo-video {
  opacity: 1;
}

.about-bio__photo-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.about-bio__photo--hover-video:hover .about-bio__photo-hint {
  opacity: 0;
}

/* --- About page: education & training timeline ------------------------- */
.about-bio__body h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--teal-dark);
  font-family: var(--font-serif);
}

.timeline {
  margin: 0 0 var(--space-lg);
  border-left: 2px solid var(--teal-light);
  padding-left: var(--space-md);
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-md);
  align-items: baseline;
  padding: 0.65rem 0;
  position: relative;
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--teal-pale);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(var(--space-md) * -1 - 6px);
  top: 1.1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-dark);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--teal-light);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--teal-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.timeline-desc {
  color: var(--charcoal, #333);
  line-height: 1.6;
  font-size: 0.95rem;
}

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

