/* ==========================================================
   Dental Care DOA – styles

   1. Settings (colors, fonts, sizes)  ← change the look here
   2. Base
   3. Buttons
   4. Header / navbar
   5. Hero
   6. Floating WhatsApp button
   7. Intro (homepage welcome)
   8. Why us
   9. Doctor
   10. Animations and hover effects
   11. Services
   12. Before / after
   13. Patient reviews
   14. Location and contact
   15. Footer
   16. Service pages
   ========================================================== */


/* ========== 1. SETTINGS ========== */
:root {
  /* Colors */
  --green: #4E6B3F;        /* main olive green (client's choice): buttons, boxes */
  --green-dark: #3E5631;   /* hover, overlays */
  --cream: #FEFEF4;        /* page background */
  --text: #111111;         /* titles and body text: black */
  --text-soft: #1E1E1E;    /* paragraphs: black */
  --text-muted: #4D4D4D;   /* small grey labels */
  --line: #E4E6D6;         /* borders and dividers */
  --gold: #A9823F;         /* accent word in titles */
  --gold-light: #E8CB88;   /* same gold, lighter for olive backgrounds */
  --forest: #1F2B24;       /* deep forest green: footer */
  --whatsapp: #1FA855;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
  --header-h: 84px;
  --radius-pill: 999px;
}

@media (max-width: 1024px) {
  :root {
    --gutter: 16px;
    --header-h: 68px;
  }
}


/* ========== 2. BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Highlighted words in titles: same font, not slanted */
h1 em,
h2 em {
  font-style: normal;
  font-weight: inherit;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Text only for screen readers (hidden on screen) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}


/* ========== 3. BUTTONS ========== */

/* Small solid button (navbar) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn:hover {
  background: var(--green-dark);
}

/* Big pill button with round arrow (hero) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 5px 5px 5px 26px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.btn-pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--cream);
  transition: transform 0.2s;
}

.btn-pill:hover .btn-pill__icon {
  transform: translateX(3px);
}


/* ========== 4. HEADER / NAVBAR ========== */
.site-header {
  position: fixed;          /* sits on top of the hero photo */
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.logo__icon {
  width: 44px;
  height: 38px;
  flex: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* "DENTALCARE DOA" lettering from the logo */
.logo__name {
  display: block;
  width: 172px;
  height: auto;
}

/* "DENTAL CLINIC" with a short line on each side, like the logo */
.logo__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-muted);
}

.logo__sub::before,
.logo__sub::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Menu links */
.main-nav ul {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding-block: 4px;
  border-bottom: 1.5px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* Right side: language, call, menu button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  color: var(--text-muted);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--green);
}

/* Small flag with rounded corners */
.lang-switch__flag {
  display: block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(31, 43, 36, 0.15);
  transition: transform 0.2s ease;
}

.lang-switch a:hover .lang-switch__flag {
  transform: scale(1.08);
}

.header-call .icon {
  display: none;            /* icon only shows on phones */
}

.menu-toggle {
  display: none;            /* only shows on phones and tablets */
}

/* Phones and tablets */
@media (max-width: 1024px) {
  .header-actions {
    gap: 8px;
  }

  .logo {
    gap: 10px;
  }

  .logo__icon {
    width: 38px;
    height: 33px;
  }

  .logo__name {
    width: 140px;
  }

  .logo__sub {
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .lang-switch__code {
    display: none;          /* phones: flag only */
  }

  .lang-switch a {
    padding: 10px 6px;
  }

  /* Call button becomes a round icon */
  .header-call {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    background: transparent;
    color: var(--green);
    border: 1px solid #C9CFBD;
  }

  .header-call:hover {
    background: #F1F3E6;
  }

  .header-call .icon {
    display: block;
  }

  .header-call__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  /* Menu button */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--green);
    color: var(--cream);
    cursor: pointer;
  }

  .menu-toggle__close,
  .site-header.is-open .menu-toggle__open {
    display: none;
  }

  .site-header.is-open .menu-toggle__close {
    display: block;
  }

  /* Dropdown menu */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px max(var(--gutter), env(safe-area-inset-left)) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(38, 57, 46, 0.08);
  }

  .site-header.is-open .main-nav {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 16px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    border-bottom-color: var(--line);
  }
}


/* ----- Header colors: see-through over the photo, solid after scrolling ----- */

/* Over the photo (top of the page): light text */
.site-header .logo {
  color: var(--cream);
}

.site-header .logo__sub {
  color: rgba(254, 254, 244, 0.75);
}

.site-header .lang-switch a {
  color: rgba(254, 254, 244, 0.7);
}

.site-header .lang-switch a:hover {
  color: var(--cream);
}

.site-header .header-call {
  background: var(--cream);
  color: var(--green);
}

.site-header .header-call:hover {
  background: #E9ECDD;
}

@media (min-width: 1025px) {
  .site-header .main-nav a {
    color: var(--cream);
  }

  .site-header .main-nav a:hover,
  .site-header .main-nav a.is-active {
    color: var(--cream);
    border-bottom-color: var(--cream);
  }
}

@media (max-width: 1024px) {
  .site-header .header-call {
    background: transparent;
    color: var(--cream);
    border-color: rgba(254, 254, 244, 0.6);
  }

  .site-header .header-call:hover {
    background: rgba(254, 254, 244, 0.12);
  }

  .site-header .menu-toggle {
    background: var(--cream);
    color: var(--green);
  }
}

/* After scrolling (or with the phone menu open): solid cream bar, dark text */
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--cream);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(38, 57, 46, 0.08);
}

.site-header.is-scrolled .logo,
.site-header.is-open .logo {
  color: var(--text);
}

.site-header.is-scrolled .logo__sub,
.site-header.is-open .logo__sub {
  color: var(--text);
}

.site-header.is-scrolled .lang-switch a,
.site-header.is-open .lang-switch a {
  color: #7E8A80;
}

.site-header.is-scrolled .lang-switch a:hover,
.site-header.is-open .lang-switch a:hover {
  color: var(--green);
}

.site-header.is-scrolled .header-call,
.site-header.is-open .header-call {
  background: var(--green);
  color: var(--cream);
}

.site-header.is-scrolled .header-call:hover,
.site-header.is-open .header-call:hover {
  background: var(--green-dark);
}

@media (min-width: 1025px) {
  .site-header.is-scrolled .main-nav a {
    color: var(--text);
  }

  .site-header.is-scrolled .main-nav a:hover,
  .site-header.is-scrolled .main-nav a.is-active {
    color: var(--green);
    border-bottom-color: var(--green);
  }
}

@media (max-width: 1024px) {
  .site-header.is-scrolled .header-call,
  .site-header.is-open .header-call {
    background: transparent;
    color: var(--green);
    border-color: #C9CFBD;
  }

  .site-header.is-scrolled .header-call:hover,
  .site-header.is-open .header-call:hover {
    background: #F1F3E6;
  }

  .site-header.is-scrolled .menu-toggle,
  .site-header.is-open .menu-toggle {
    background: var(--green);
    color: var(--cream);
  }
}


/* ========== 5. HERO ========== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* Desktop: fill the whole screen, the menu sits on top of it (at least 820px tall) */
  min-height: max(820px, 100vh);
  overflow: hidden;
  color: var(--cream);
  /* Hero photo. Until the real photo is added, the soft green gradient shows. */
  background:
    url("../images/clinic/hero.jpg") center right / cover no-repeat,
    linear-gradient(120deg, #A9B1A2 0%, #C9CEBF 45%, #B4BBAB 100%);
}

/* Olive fade so the text is readable on any photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(62, 86, 49, 0.92) 0%,
    rgba(78, 107, 63, 0.78) 38%,
    rgba(78, 107, 63, 0.15) 72%,
    rgba(78, 107, 63, 0) 100%);
}

/* Soft shade at the top so the see-through menu stays readable */
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background: linear-gradient(180deg, rgba(20, 32, 25, 0.45), rgba(20, 32, 25, 0));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(96px + var(--header-h));   /* room for the menu on top */
  padding-bottom: 96px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 620px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D8DEC9;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero h1 em {
  font-weight: inherit;
}

.hero-text {
  max-width: 480px;
  font-size: 19px;
  color: #E9ECDD;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-top: 10px;
}

.link-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(254, 254, 244, 0.5);
  color: var(--cream);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s;
}

.link-whatsapp:hover {
  border-bottom-color: var(--cream);
}

/* Phones: text sits at the bottom, photo visible at the top */
@media (max-width: 700px) {
  .hero {
    align-items: flex-end;
    min-height: 620px;
    min-height: 100svh;
    /* photo fills the top part so the teeth model stays above the text */
    background:
      url("../images/clinic/hero.jpg") 82% top / auto 64% no-repeat,
      var(--green-dark);
  }

  .hero::before {
    background: linear-gradient(180deg,
      rgba(62, 86, 49, 0) 22%,
      rgba(62, 86, 49, 0.8) 46%,
      rgba(62, 86, 49, 1) 63%,
      rgba(62, 86, 49, 1) 100%);
  }

  .hero-inner {
    padding-top: calc(40px + var(--header-h));
    padding-bottom: 96px;   /* room for the floating WhatsApp button */
  }

  .hero-content {
    gap: 18px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-pill {
    justify-content: space-between;
  }

  .link-whatsapp {
    align-self: center;
    border-bottom: 0;
    padding-block: 6px;
  }
}


/* ========== 6. FLOATING WHATSAPP BUTTON ========== */
.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(38, 57, 46, 0.3);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}


/* ========== 7. INTRO (homepage welcome) ========== */
.intro {
  position: relative;
  overflow: hidden;         /* background details stay inside the section */
  padding-top: 104px;
  padding-bottom: 48px;
}

.intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

/* Small label above section titles (reused in later sections) */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.intro-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 620px;
}

/* Desktop only: a soft grid of olive dots in the empty space under the text */
@media (min-width: 901px) {
  .intro-text.has-dots::after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(100% + 40px);
    width: 270px;
    height: 126px;
    background-image: radial-gradient(rgba(78, 107, 63, 0.3) 1.6px, transparent 1.8px);
    background-size: 18px 18px;
    pointer-events: none;
  }
}

/* keep the text above the background details */
.intro-inner {
  position: relative;
  z-index: 0;
}


.intro h2 {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}

.intro h2 em {
  font-weight: inherit;
}

.intro-text p:not(.section-label) {
  font-size: 18px;
  color: var(--text-soft);
}

/* Text link with arrow (reused in later sections) */
.link-arrow {
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.link-arrow:hover {
  color: var(--green-dark);
}

/* Opening hours box under the welcome text */
.info-card {
  position: relative;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(38, 57, 46, 0.08);
}

.info-card {
  max-width: 560px;
  margin-top: 14px;
}

.info-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px;
  color: var(--cream);
}


.info-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
}

.hours {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid rgba(254, 254, 244, 0.16);
  font-size: 15px;
  color: #E4E9D8;
  font-variant-numeric: tabular-nums;
}

.hours li:last-child {
  border-bottom: 0;
}

.hours__closed {
  color: #E9EDE2;
}

/* Link inside the olive card */
.info-card .link-arrow {
  color: var(--cream);
}

.info-card .link-arrow:hover {
  color: #D8DEC9;
}

/* Phones and tablets: card goes under the text */
@media (max-width: 900px) {
  .intro {
    padding-top: 64px;
    padding-bottom: 32px;
  }

  .intro-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-text p:not(.section-label) {
    font-size: 17px;
  }

  .info-card__body {
    padding: 24px;
  }
}


/* Clinic photos on the right: reception big, corridor and equipment smaller with a cream frame */
.intro-inner {
  align-items: center;
}

.intro-photos {
  position: relative;
  height: 640px;
}

.intro-photos::before {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 50%;
  height: 46%;
  border: 1px solid rgba(78, 107, 63, 0.35);
  border-radius: 24px;
}

.intro-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
}

.intro-photo--main {
  right: 0;
  top: 0;
  width: 88%;
  height: 66%;
  box-shadow: 0 24px 50px rgba(31, 43, 36, 0.12);
}

.intro-photo:nth-child(2),
.intro-photo:nth-child(3) {
  bottom: 0;
  height: 44%;
  border: 6px solid var(--cream);
  border-radius: 20px;
  box-shadow: 0 22px 44px rgba(31, 43, 36, 0.18);
}

.intro-photo:nth-child(2) {
  left: 0;
  width: 46%;
}

.intro-photo:nth-child(3) {
  right: 6%;
  width: 44%;
  bottom: 36px;
}

.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.intro-photo:hover img {
  transform: scale(1.05);
}

.intro-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(254, 254, 244, 0.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

/* the big photo's label sits at the top, the small photos cover its bottom */
.intro-photo--main figcaption {
  top: 14px;
  bottom: auto;
  left: 14px;
}

@media (max-width: 1100px) {
  .intro-photos {
    height: 560px;
  }
}

@media (max-width: 900px) {
  .intro-photos {
    height: 440px;
    margin-right: 12px;
  }

  .intro-photos::before {
    right: -12px;
    top: -12px;
  }

  .intro-photo--main {
    width: 92%;
    height: 62%;
  }

  .intro-photo:nth-child(2),
  .intro-photo:nth-child(3) {
    height: 42%;
    border-width: 5px;
  }

  .intro-photo:nth-child(2) {
    width: 50%;
  }

  .intro-photo:nth-child(3) {
    right: 0;
    width: 48%;
    bottom: 22px;
  }
}


/* ========== 8. WHY US ========== */
.why {
  padding-top: 104px;
  padding-bottom: 104px;
  background: #FFFFFF;
}

/* Layout: title on the left, points on the right */
.why-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 56px;
  align-items: center;
}

/* Left: label, title, text, button */
.why-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.why-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.why-label::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--gold);
}

.why h2 {
  font-size: clamp(32px, 3.2vw, 46px);
  color: var(--text);
  text-wrap: balance;
}

.why-accent {
  color: var(--green);      /* "na zgjedhin?" in olive */
}

.why-lead {
  max-width: 380px;
  font-size: 17px;
  color: var(--text-soft);
}

/* Dark version of the pill button */
.btn-pill--dark {
  margin-top: 6px;
  background: var(--green);
  color: var(--cream);
}

.btn-pill--dark .btn-pill__icon {
  background: var(--cream);
  color: var(--green);
}

/* Right: two columns of points with lines */
.why-points {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.why-col {
  display: flex;
  flex-direction: column;
  padding-left: 36px;
  border-left: 1px solid #D9DDCB;     /* vertical line in the middle */
}

.why-col--low {
  padding-top: 72px;                  /* left column sits lower */
  padding-left: 0;
  padding-right: 36px;
  border-left: 0;
}

.why-point {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 26px;
}

.why-point + .why-point {
  border-top: 1px solid #D9DDCB;      /* line between the two points */
}

.why-point__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.why-point__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
}

.why-point__icon .icon {
  width: 21px;
  height: 21px;
}

.why-point h3 {
  font-size: 25px;
  line-height: 1.15;
  color: var(--text);
}

.why-point p {
  padding-left: 60px;
  font-size: 15px;
  color: var(--text-soft);
}

/* Tablets: title on top, points below */
@media (max-width: 1024px) {
  .why-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Phones: title on top, points in a 2 x 2 grid with lines, button at the bottom */
@media (max-width: 700px) {
  .why {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .why-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .why-intro {
    display: contents;        /* lets the button move below the points */
  }

  .why h2 {
    font-size: 36px;
  }

  .why-lead {
    font-size: 16px;
  }

  .why-points {
    order: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }

  .why-col,
  .why-col--low {
    display: contents;
  }

  .why-point {
    gap: 8px;
    padding: 18px 14px 18px 0;
  }

  .why-point + .why-point {
    border-top: 0;
  }

  /* right-hand items: vertical line */
  .why-point:nth-child(2) {
    padding-left: 14px;
    padding-right: 0;
    border-left: 1px solid #D9DDCB;
  }

  /* bottom row: horizontal line */
  .why-col:not(.why-col--low) .why-point {
    border-top: 1px solid #D9DDCB;
  }

  .why-point__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .why-point__icon {
    width: 40px;
    height: 40px;
  }

  .why-point__icon .icon {
    width: 19px;
    height: 19px;
  }

  .why-point h3 {
    font-size: 19px;
  }

  .why-point p {
    padding-left: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .btn-pill--dark {
    order: 2;
    align-self: stretch;
    justify-content: space-between;
    margin-top: 12px;
  }
}


/* ========== 9. DOCTOR ========== */
/* Photo on the left, name + points with lines on the right.
   Phones: name first, then the photo, then the points. */
.doctor {
  position: relative;
  overflow: hidden;
  padding-block: 96px;
  /* starts white like "Why us" above, ends cream like "Services" below: no visible edge */
  background: linear-gradient(180deg, #FFFFFF 0%, var(--cream) 40%, var(--cream) 100%);
}

/* Faint olive shapes and lines in the background */
.doctor-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* the shapes and lines fade out at the top and bottom of the section */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
}

.doctor-lines__shape { fill: var(--green); opacity: 0.05; }
.doctor-lines__shape--strong { opacity: 0.07; }
.doctor-lines__shape--soft { opacity: 0.03; }

.doctor-lines__curves path,
.doctor-lines__gold {
  fill: none;
  stroke-width: 1;
}

.doctor-lines__curves path { stroke: var(--green); opacity: 0.2; }
.doctor-lines__gold { stroke: var(--gold); opacity: 0.25; }

.doctor-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  grid-template-areas:
    "photo head"
    "photo body";
  grid-template-rows: auto 1fr;
  column-gap: 88px;
  row-gap: 30px;
  align-items: start;
}

.doctor-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: end;
}

.doctor-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.doctor-head h2 {
  font-size: clamp(24px, 2.6vw, 38px);   /* the name always fits on one line */
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .doctor-head h2 {
    font-size: min(6.2vw, 30px);
  }
}

.doctor-name {
  color: var(--gold);
}

.doctor-intro {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
}

/* Photos, used as they are: big portrait, with two smaller framed photos overlapping its right edge */
.doctor-photo {
  grid-area: photo;
  position: relative;
  height: 680px;
  margin: 0;
}

.doctor-photo::before {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 50%;
  height: 54%;
  border: 1px solid rgba(78, 107, 63, 0.35);
  border-radius: 24px;
}

.doctor-photo img {
  position: relative;
  object-fit: cover;
  border-radius: 20px;
}

.doctor-photo__main {
  width: 76%;
  height: 100%;
  object-position: center 30%;
  box-shadow: 0 24px 50px rgba(31, 43, 36, 0.12);
}

/* the two small photos: cream frame, stacked on the right, slightly overlapping */
.doctor-photo .doctor-photo__small {
  position: absolute;
  right: 0;
  width: 42%;
  height: 290px;
  border: 6px solid var(--cream);
  object-position: center 25%;
  box-shadow: 0 22px 44px rgba(31, 43, 36, 0.2);
}

.doctor-photo__small:nth-of-type(2) {
  top: 56px;
}

.doctor-photo__small:nth-of-type(3) {
  bottom: 48px;
  right: 6%;
}

.doctor-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.doctor-points {
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #E1E5D6;
}

.doctor-point {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid #E1E5D6;
}

.doctor-point h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.doctor-point p {
  font-size: 15.5px;
  line-height: 1.65;
}

/* Tablets */
@media (max-width: 1024px) {
  .doctor-inner {
    column-gap: 48px;
  }

  .doctor-photo {
    height: 560px;
  }

  .doctor-photo .doctor-photo__small {
    height: 230px;
  }
}

/* Phones: one column, photo between the name and the points */
@media (max-width: 800px) {
  .doctor {
    padding-block: 56px;
  }

  .doctor-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "photo"
      "body";
    grid-template-rows: auto;
    row-gap: 28px;
  }

  .doctor-head {
    gap: 12px;
  }

  .doctor-label {
    font-size: 12px;
  }

  .doctor-intro {
    font-size: 16px;
  }

  .doctor-photo {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
    margin-right: 10px;      /* room for the outline */
  }

  .doctor-photo::before {
    left: auto;
    right: -10px;
    bottom: -10px;
    width: 62%;
  }

  .doctor-photo__main {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }

  /* the small photos sit side by side, overlapping the bottom of the big one */
  .doctor-photo .doctor-photo__small,
  .doctor-photo .doctor-photo__small:nth-of-type(2),
  .doctor-photo .doctor-photo__small:nth-of-type(3) {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-top: -64px;
    border-width: 5px;
    border-radius: 16px;
  }

  .doctor-photo .doctor-photo__small:nth-of-type(2) {
    margin-left: 14px;
  }

  .doctor-photo .doctor-photo__small:nth-of-type(3) {
    margin-right: 14px;
  }

  .doctor-body {
    gap: 24px;
  }

  .doctor-point {
    padding: 16px 0;
  }

  .doctor-point h3 {
    font-size: 18px;
  }

  .doctor-point p {
    font-size: 15px;
  }

  .doctor-call {
    width: 100%;
    justify-content: space-between;
  }

  /* keep the text area clean on small screens */
  .doctor-lines__curves,
  .doctor-lines__gold {
    display: none;
  }
}


/* ========== 10. ANIMATIONS AND HOVER EFFECTS ========== */

/* Buttons: lift a little on hover, press in on click */
.btn,
.btn-pill {
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 43, 36, 0.18);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active,
.btn-pill:active,
.menu-toggle:active,
.whatsapp-float:active {
  transform: scale(0.97);
}

/* Text links with an arrow: the link fades to the darker green */
.link-arrow {
  transition: color 0.2s, opacity 0.2s;
}

.link-arrow:hover {
  opacity: 0.75;
}

/* Opening hours card: lifts on hover */
.info-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(38, 57, 46, 0.16);
}

/* Why us points: the icon turns gold and tilts */
.why-point__icon {
  transition: background-color 0.25s, transform 0.25s;
}

.why-point:hover .why-point__icon {
  background: var(--gold);
  transform: rotate(-8deg) scale(1.06);
}

.why-point h3 {
  transition: color 0.25s;
}

.why-point:hover h3 {
  color: var(--green);
}

/* Doctor photo: zooms in a little on hover */
.doctor-photo {
  border-radius: 20px;
}

.doctor-photo img {
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

@media (hover: hover) {
  .doctor-photo img:hover {
    transform: translateY(-4px);
    box-shadow: 0 36px 64px rgba(31, 43, 36, 0.18);
  }
}

/* Doctor points: the heading slides right and turns gold on hover */
.doctor-point h3 {
  transition: color 0.25s, transform 0.25s;
}

.doctor-point:hover h3 {
  color: var(--gold);
  transform: translateX(4px);
}

/* WhatsApp button: a soft pulse every few seconds */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: wa-pulse 2.8s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

/* Hero: text rises in when the page opens */
.hero-content > * {
  animation: rise-in 0.8s ease both;
}

.hero-content > *:nth-child(2) { animation-delay: 0.1s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Doctor ---------- */
/* The outline behind the photo slides in a moment after the photo */
.doctor-photo::before {
  transition: opacity 0.8s ease 0.4s, translate 0.8s ease 0.4s;
}

html.js-reveal .doctor-photo:not(.is-visible)::before {
  opacity: 0;
  translate: -16px 16px;
}

/* ---------- Small touches in other sections ---------- */

/* The short gold/grey lines next to section labels draw in */
.why-label::after,
.services-label::after,
.section-label::before {
  transform-origin: left;
  transition: transform 0.7s ease 0.3s;
}

html.js-reveal .reveal:not(.is-visible) .why-label::after,
html.js-reveal .reveal:not(.is-visible) .services-label::after,
html.js-reveal .reveal:not(.is-visible) .section-label::before {
  transform: scaleX(0);
}

/* Footer links nudge right on hover */
.footer-col a:hover {
  transform: translateX(4px);
}

/* Logo: the tooth tilts a little on hover */
.logo__icon,
.footer-logo__icon {
  transition: transform 0.35s ease;
}

.logo:hover .logo__icon,
.footer-logo:hover .footer-logo__icon {
  transform: rotate(-8deg);
}

/* Section titles (all h2s on light backgrounds) rise in a touch after their label */
html.js-reveal .reveal h2 {
  transition: opacity 0.8s ease 0.1s, translate 0.8s ease 0.1s;
}

html.js-reveal .reveal:not(.is-visible) h2 {
  opacity: 0;
  translate: 0 12px;
}

/* Sections fade up as you scroll to them (set up by js/main.js, section 3).
   Uses "translate" so it doesn't clash with the hover effects above. */
html.js-reveal .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.8s ease, translate 0.8s ease, transform 0.35s ease, box-shadow 0.35s ease;
  transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s, 0s;
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}


/* ========== 11. SERVICES ========== */
.services {
  padding-block: 80px;
}

.services-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

/* Left: title, text and photo. Stays in view while the list scrolls (desktop). */
.services-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.services-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.services-label::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--gold);
}

.services h2 {
  font-size: clamp(32px, 3.2vw, 44px);
  color: var(--text);
  text-wrap: balance;
}

.services-lead {
  max-width: 420px;
  font-size: 17px;
  color: var(--text-soft);
}

.services-photo {
  width: 100%;
  height: 400px;
  margin-top: 10px;
  border-radius: 24px;
  /* The clinic's own treatment room photo */
  background:
    url("../images/clinic/treatment-room.jpg") center / cover no-repeat,
    linear-gradient(135deg, #DCE2D3 0%, #C9D1BE 100%);
}

/* Right: the list of services with lines */
.services-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--text);
}

.service-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  gap: 20px;
  align-items: center;
  padding-block: 26px;
  border-bottom: 1px solid #D9DDCB;
  color: var(--text);
  text-decoration: none;
}

/* light olive band that sweeps in from the left on hover */
.service-row::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  border-radius: 14px;
  background: #F1F3E6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service-row__num {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.3s;
}

.service-row__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition: transform 0.35s ease;
}

.service-row__name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.service-row__desc {
  font-size: 15px;
  color: var(--text-soft);
}

.service-row__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #C9CFBD;
  border-radius: 50%;
  color: var(--green);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.35s ease;
}

/* Hover (and keyboard focus): band sweeps in, text slides, arrow fills and turns */
.service-row:hover::before,
.service-row:focus-visible::before {
  transform: scaleX(1);
}

.service-row:hover .service-row__text,
.service-row:focus-visible .service-row__text {
  transform: translateX(8px);
}

.service-row:hover .service-row__num,
.service-row:focus-visible .service-row__num {
  color: var(--green);
}

.service-row:hover .service-row__arrow,
.service-row:focus-visible .service-row__arrow {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
  transform: rotate(45deg);
}

.service-row:active .service-row__arrow {
  transform: rotate(45deg) scale(0.92);
}

/* Tablets and phones: one column, photo above the list */
@media (max-width: 900px) {
  .services {
    padding-block: 52px;
  }

  .services-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-intro {
    position: static;
    gap: 16px;
  }

  .services h2 {
    font-size: 34px;
  }

  .services-lead {
    font-size: 16px;
  }

  .services-photo {
    height: 240px;
    margin-top: 6px;
    border-radius: 20px;
  }

  .service-row {
    grid-template-columns: 30px minmax(0, 1fr) 36px;
    gap: 14px;
    padding-block: 20px;
  }

  .service-row::before {
    inset: 0 -8px;
    border-radius: 12px;
  }

  .service-row__num {
    font-size: 15px;
  }

  .service-row__name {
    font-size: 22px;
  }

  .service-row__desc {
    font-size: 14px;
  }

  .service-row__arrow {
    width: 36px;
    height: 36px;
  }

  .service-row__arrow .icon {
    width: 15px;
    height: 15px;
  }
}


/* ========== 12. BEFORE / AFTER ========== */
.results {
  padding-block: 80px;
  background: #FFFFFF;
}

.ba-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 64px;
  margin-bottom: 48px;
}

.ba-head__title {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.results h2 {
  font-size: clamp(32px, 3.2vw, 44px);
  color: var(--text);
  text-wrap: balance;
}

.ba-head__text {
  max-width: 380px;
  font-size: 16px;
  color: var(--text);
}

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

/* the homepage sliders: all three the same wide, short shape so the whole smile fits */
.ba-grid .ba-slider,
.ba-grid .ba-slider.ba-slider--whitening {
  aspect-ratio: 2.2 / 1;
}

/* on the service pages the whitening photos keep their own shape */
.ba-slider.ba-slider--whitening {
  aspect-ratio: 1269 / 487;
}

.ba-slider.ba-slider--whitening2 {
  aspect-ratio: 1280 / 431;
}

.ba-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

/* The slider: "before" photo underneath, "after" photo on top, cut at --pos */
.ba-slider {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;     /* wide frame: the whole smile fits */
  overflow: hidden;
  border-radius: 20px;
  user-select: none;
  /* placeholder until the "before" photo is added */
  background: linear-gradient(135deg, #B9B3A4, #9C9686);
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider img[hidden] {
  display: none;            /* missing photo: show the soft placeholder instead */
}

.ba-slider__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  /* placeholder until the "after" photo is added */
  background: linear-gradient(135deg, #E6EADD, #CFD7C3);
}

.ba-slider__tag {
  position: absolute;
  bottom: 14px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-slider__tag--after {
  left: 14px;
  background: var(--cream);
  color: var(--text);
}

.ba-slider__tag--before {
  right: 14px;
  background: rgba(31, 43, 36, 0.7);
  color: var(--cream);
}

.ba-slider__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 1;
  width: 2px;
  margin-left: -1px;
  background: #FFFFFF;
  pointer-events: none;
}

.ba-slider__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(31, 43, 36, 0.25);
  pointer-events: none;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

/* Invisible range input on top: makes the slider work with mouse, touch and keyboard */
.ba-slider__range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;      /* vertical swipes still scroll the page on phones */
}

.ba-slider:hover .ba-slider__handle,
.ba-slider__range:focus-visible ~ .ba-slider__handle {
  transform: scale(1.1);
  background: var(--green);
  color: var(--cream);
}

.ba-slider:has(.ba-slider__range:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.ba-card__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #D9DDCB;
}

.ba-card__name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.ba-card__detail {
  font-size: 14px;
  color: var(--text);
}

/* Tablets: smaller gaps */
@media (max-width: 1024px) {
  .ba-grid {
    gap: 18px;
  }
}

/* Phones: one slider per row, a bit wider than tall */
@media (max-width: 700px) {
  .results {
    padding-block: 52px;
  }

  .ba-head {
    margin-bottom: 32px;
  }

  .results h2 {
    font-size: 34px;
  }

  .ba-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ba-grid .ba-slider,
  .ba-grid .ba-slider.ba-slider--whitening {
    aspect-ratio: 2 / 1;
  }
}


/* ========== 13. PATIENT REVIEWS ========== */
.reviews {
  padding-block: 88px 72px;
  background: var(--green);
  color: var(--cream);
}

.reviews-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.reviews-head h2 {
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 400;              /* first half light ... */
  color: var(--cream);
  text-wrap: balance;
}

.reviews-head h2 strong {
  font-weight: 700;              /* ... second half bold */
}

.reviews-head p {
  margin-top: 16px;
  font-size: 17px;
  color: #DDE3D2;
}

/* Slider: a row of cards that scrolls sideways, arrows on both sides */
.reviews-slider {
  position: relative;
}

.reviews-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
  padding: 8px 0 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.reviews-track:focus-visible {
  outline-offset: 6px;
}

.review-card {
  flex: 0 0 calc((100% - 48px) / 3);   /* 3 cards on desktop */
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--text);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(20, 30, 24, 0.25);
}

.review-card__stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
}

.review-card__stars svg {
  width: 20px;
  height: 20px;
}

.review-card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

/* Long reviews: show 5 lines, the "Read more" button opens the rest (js/main.js, section 5) */
.review-card__text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

.review-card__more {
  align-self: flex-start;
  margin-top: -8px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--green);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.review-card__more[hidden] {
  display: none;
}

.review-card__more:hover {
  color: var(--green-dark);
}

.review-card__name {
  font-size: 14px;
  font-weight: 600;
}

.reviews-arrow {
  position: absolute;
  top: 120px;               /* fixed height, so it doesn't jump when a review opens */
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: 0;
  padding: 0;
  border: 1px solid rgba(31, 43, 36, 0.12);
  border-radius: 50%;
  background: var(--cream);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(20, 30, 24, 0.25);
  transition: background-color 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
}

.reviews-arrow .icon {
  width: 20px;
  height: 20px;
}

.reviews-arrow--prev { left: -23px; }
.reviews-arrow--next { right: -23px; }

.reviews-arrow:hover {
  background: var(--gold-light);
  transform: scale(1.06);
}

.reviews-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

/* Dots under the cards (filled by js/main.js, section 5) */
.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.reviews-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(254, 254, 244, 0.35);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.reviews-dots span.is-active {
  width: 24px;
  background: var(--cream);
}

.reviews-google {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin: 28px auto 0;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(254, 254, 244, 0.5);
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s;
}

.reviews-google .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.reviews-google:hover {
  border-bottom-color: var(--cream);
}

.reviews-google:hover .icon {
  transform: translate(2px, -2px);
}

/* Tablets: 2 cards */
@media (max-width: 1024px) {
  .review-card {
    flex-basis: calc((100% - 24px) / 2);
  }

  .reviews-arrow--prev { left: -12px; }
  .reviews-arrow--next { right: -12px; }
}

/* Phones: one card and a peek of the next, swipe to move */
@media (max-width: 700px) {
  .reviews {
    padding-block: 56px 52px;
  }

  .reviews-head {
    margin-bottom: 32px;
  }

  .reviews-head p {
    font-size: 16px;
  }

  .reviews-track {
    gap: 14px;
  }

  .review-card {
    flex-basis: 86%;
    padding: 26px 22px;
  }

  .reviews-arrow {
    display: none;
  }
}


/* ========== 14. LOCATION AND CONTACT ========== */
.location {
  padding-block: 80px;
}

.location-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
  text-align: center;
}

.location h2 {
  font-size: clamp(32px, 3.2vw, 46px);
  color: var(--text);
}

.location-head p {
  max-width: 520px;
  font-size: 17px;
  color: var(--text);
}

.location-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);   /* details left, map right */
  gap: 64px;
  align-items: stretch;
}

/* Map (shown on the right on desktop) */
.location-map {
  order: 2;
  min-height: 520px;
  overflow: hidden;
  border-radius: 24px;
  background: #E7EBDC;      /* shows while the map loads */
  box-shadow: 0 18px 40px rgba(38, 57, 46, 0.08);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

/* Details on the right, separated by thin lines */
.location-info {
  display: flex;
  flex-direction: column;
}

.location-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-block: 26px;
  border-bottom: 1px solid #D9DDCB;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.location-block:first-child {
  padding-top: 0;
}

.location-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.location-block h3 {
  font-size: 26px;
  color: var(--text);
}

.location-name {
  font-size: 30px !important;
}

.location-address {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.location-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.location-contact div {
  display: flex;
  gap: 10px;
  font-size: 16px;
}

.location-contact dt {
  min-width: 72px;
  color: var(--text-muted);
}

.location-contact dd {
  margin: 0;
}

.location-contact a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #C9CFBD;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.location-contact a:hover {
  text-decoration-color: var(--green);
}

/* "Open in Google Maps ↗" style links: the arrow slides up-right on hover */
.location-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.location-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
}

.location-link:hover .icon {
  transform: translate(3px, -3px);
}

.location-hours {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 6px;
  font-size: 16px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Tablets and phones: map on top, details below */
@media (max-width: 900px) {
  .location {
    padding-block: 52px;
  }

  .location-head {
    margin-bottom: 32px;
  }

  .location h2 {
    font-size: 34px;
  }

  .location-head p {
    font-size: 16px;
  }

  .location-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .location-map {
    order: 0;               /* phones: map on top */
  }

  .location-map,
  .location-map iframe {
    min-height: 320px;
    border-radius: 20px;
  }

  .location-block h3 {
    font-size: 23px;
  }

  .location-name {
    font-size: 26px !important;
  }
}


/* ========== 15. FOOTER ========== */
.site-footer {
  padding-top: 80px;
  padding-bottom: 32px;
  background: var(--forest);
  color: #C9D2C3;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(254, 254, 244, 0.14);
}

/* Logo, short text and social icons */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.footer-logo__icon {
  width: 50px;
  height: 44px;
  flex: none;
}

.footer-logo__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo__name {
  display: block;
  width: 196px;
  height: auto;
}

.footer-logo__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1;
  color: #B9C4B3;
}

.footer-logo__sub::before,
.footer-logo__sub::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.footer-brand p {
  max-width: 300px;
  font-size: 15px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(254, 254, 244, 0.22);
  border-radius: 50%;
  color: var(--cream);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.footer-social a:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--forest);
  transform: translateY(-2px);
}

/* Columns: pages, contact, hours */
.footer-col h3 {
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.footer-col a {
  display: inline-block;
  color: #C9D2C3;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 240px;
  font-variant-numeric: tabular-nums;
}

/* Bottom line: copyright and back to top */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  font-size: 14px;
  color: #9DAA98;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

.footer-top .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
}

.footer-top:hover .icon {
  transform: translateY(-3px);
}

/* Tablets: two columns */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
}

/* Phones: one column */
@media (max-width: 600px) {
  .site-footer {
    padding-top: 56px;
    padding-bottom: 96px;   /* room for the floating WhatsApp button */
  }

  /* brand on top, then "Pages" and "Contact" side by side, then hours */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 20px;
    padding-bottom: 40px;
  }

  .footer-brand,
  .footer-grid > .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-col ul {
    font-size: 14px;
  }

  .footer-col a,
  .footer-col li {
    overflow-wrap: anywhere;
  }

  .footer-col h3 {
    margin-bottom: 12px;
  }
}


/* ========== 16. SERVICE PAGES (sherbimet/*.html, en/services/*.html) ========== */
/* Clean and text-only: title band, two columns of details, then the location section */
.svc-page {
  background: var(--cream);
}

.svc-top {
  padding: calc(var(--header-h) + 48px) 0 56px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.svc-back {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.svc-back:hover {
  color: var(--green);
}

.svc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 80px;
  align-items: end;
}

.svc-label {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.svc-head h1 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08;
  text-wrap: balance;
}

.svc-lead {
  font-size: 19px;
  line-height: 1.65;
}

/* two columns */
.svc-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  padding-block: 72px 96px;
}

.svc-col {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.svc-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-block h2,
.svc-cta h2 {
  font-size: 24px;
}

.svc-block p {
  font-size: 17px;
  line-height: 1.75;
}

/* simple bullet list */
.svc-list {
  margin: 0;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.7;
}

.svc-list li + li {
  margin-top: 6px;
}

.svc-list li::marker {
  color: var(--green);
}

/* options (orthodontics) */
.svc-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-option h3 {
  font-size: 18px;
}

.svc-option p {
  margin-top: 4px;
}

/* steps */
.svc-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.svc-step:last-child {
  border-bottom: 1px solid var(--line);
}

.svc-step__num {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gold);
}

.svc-step h3 {
  font-size: 17px;
}

.svc-block .svc-step p {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.6;
}

/* call to action */
.svc-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid var(--line);
}

.svc-cta p {
  font-size: 16px;
}

.svc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 8px;
}

.svc-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.svc-wa .icon {
  width: 18px;
  height: 18px;
}

.svc-wa:hover {
  color: var(--green);
}

/* the location section on service pages: white, like the title band */
.svc-page .location {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .svc-head,
  .svc-cols {
    grid-template-columns: 1fr;
  }

  .svc-cols {
    gap: 40px;
  }
}

@media (max-width: 700px) {
  .svc-top {
    padding: calc(var(--header-h) + 24px) 0 36px;
  }

  .svc-back {
    margin-bottom: 20px;
  }

  .svc-head {
    gap: 14px;
  }

  .svc-lead {
    font-size: 17px;
  }

  .svc-cols {
    padding-block: 40px 56px;
  }

  .svc-col {
    gap: 36px;
  }

  .svc-block p,
  .svc-list {
    font-size: 16px;
  }

  .svc-cta {
    padding: 24px 20px;
  }

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

  .svc-actions .btn-pill {
    order: 1;
    justify-content: space-between;
  }

  .svc-actions .svc-wa {
    order: 2;
    align-self: center;
  }
}
