/* =========================================================
   Vanguard Dental — styles.css
   Structural system adapted from the Ellie Dee mock-up
   ========================================================= */

:root{
  --slate: #404E57;
  --slate-deep: #2E383F;
  --white: #FFFFFF;
  --amber: #E0A05F;
  --amber-deep: #C4732E;
  --warm-grey: #5C6B72;
  --grey-light: #B7C0C4;
  --amber-tint: #FBF1E4;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(224,160,95,0.2);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Nunito Sans', sans-serif;

  --header-h: 148px;
  --container-w: 1180px;
  --container-wide: 1440px;
  --header-container-w: 1440px;
}

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

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--warm-grey);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }

.container{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* Wider container for photo-led and third-party widget sections — image tiles and embeds
   benefit from more room; unlike body copy they don't need a narrow measure for readability. */
.featured-treatments .container,
.reviews-section .container,
.instagram-feed .container{
  max-width: var(--container-wide);
}

h1, h2, h3, h4{
  font-family: var(--font-heading);
  color: var(--slate-deep);
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 em, h2 em{
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
}

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

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary{
  background: var(--amber);
  color: var(--slate-deep);
}
.btn-primary:hover{
  background: var(--amber-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover{
  background: var(--white);
  color: var(--slate-deep);
  border-color: var(--white);
}

.btn-header{
  padding: 11px 24px;
  font-size: 0.82rem;
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(64,78,87,0);
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

.site-header.scrolled{
  background: rgba(46,56,63,0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  height: 88px;
}

.header-inner{
  position: relative;
  height: 100%;
  max-width: var(--header-container-w);
  margin: 0 auto;
  padding: 0 32px;
  display:flex;
  align-items:center;
  gap: 48px;
}

.logo-link{
  display:flex;
  align-items:center;
  flex-shrink: 0;
}

.logo{
  height: 88px;
  display:block;
  transition: height 0.35s ease;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35));
}

.site-header.scrolled .logo{ height: 54px; }

/* Phones — right, before the Register button */
.header-phones{
  display:flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 2;
  padding-right: 18px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.phone-link{
  display:flex;
  align-items:center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  transition: color 0.25s ease;
}
.phone-loc{ font-weight: 700; margin-right: 2px; }
.icon-phone{ font-size: 0.8rem; flex-shrink:0; }
.phone-link:hover{ color: var(--amber); }

.header-call-dropdown{ display:none; position:relative; }

@media (max-width: 1359px){
  .header-phones{ display:none; }
  .header-call-dropdown{ display:block; }
}

.header-call-toggle{
  display:flex; align-items:center; justify-content:center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.98rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.header-call-toggle:hover,
.header-call-toggle.is-open{ border-color: var(--amber); color: var(--amber); }

.header-call-panel{
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  background: var(--slate-deep);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
.header-call-panel.is-open{ opacity: 1; visibility: visible; transform: translateY(0); }

.header-call-panel a{
  display:flex; flex-direction:column; gap: 2px;
  padding: 10px 12px;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.header-call-panel a:hover{ background: rgba(255,255,255,0.08); }

.call-panel-loc{
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
}
.call-panel-number{
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}
.header-call-panel a:hover .call-panel-number{ color: var(--amber); }

.header-actions{
  display:flex;
  align-items:center;
  gap: 18px;
  position: relative;
  z-index: 2;
  margin-left: auto;
}

@media (max-width: 560px){
  .btn-header{ display:none; }
}

.hamburger{
  display:none;
  flex-direction: column;
  align-items:center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 1359px){
  .hamburger{ display:flex; }
}

.hamburger .bar{
  display:block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open .bar1{ transform: translateY(8px) rotate(45deg); }
.hamburger.open .bar2{ opacity: 0; }
.hamburger.open .bar3{ transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   Desktop horizontal nav + dropdowns / mega menu
   ========================================================= */
.desktop-nav{
  display: none;
  position: relative;
  z-index: 2;
}
@media (min-width: 1360px){
  .desktop-nav{ display:block; }
}

.desktop-nav > ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 30px;
}

.desktop-nav > ul > li{ position: relative; }

.desktop-nav > ul > li > a{
  display:inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  padding: 10px 0;
  transition: color 0.2s ease;
}
.desktop-nav > ul > li > a:hover{ color: var(--amber); }
.desktop-nav .nav-accent{ color: var(--amber) !important; }

/* Simple dropdown panel */
.ddown-panel{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  transform: translateY(6px);
  min-width: 230px;
  background: var(--slate-deep);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.ddown:hover .ddown-panel,
.ddown:focus-within .ddown-panel{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ddown-panel ul{ list-style:none; display:flex; flex-direction:column; gap: 4px; }
.ddown-panel a{
  display:block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-light);
  padding: 9px 12px;
  border-radius: 3px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.ddown-panel a:hover{ color: var(--white); background: rgba(255,255,255,0.06); }

/* Mega menu panel — anchors to its own li (inherits position:relative from base rule) */
.mega-panel{
  left: 0;
  transform: translateY(6px);
  min-width: 720px;
  display:flex;
  gap: 0;
  padding: 32px;
}
.ddown--mega:hover .mega-panel,
.ddown--mega:focus-within .mega-panel{ transform: translateY(0); }

.mega-col{
  flex: 1;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.mega-col:last-child{ border-right: none; }
.mega-col:first-child{ padding-left: 0; }

.mega-col h4{
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mega-col h4 a{
  display:inline;
  color: inherit;
  font-size: inherit;
  padding: 0;
  white-space: normal;
  transition: color 0.2s ease;
}
.mega-col h4 a:hover{ color: var(--white); }
.mega-col ul{ list-style:none; display:flex; flex-direction:column; gap: 2px; }
.mega-col a{
  display:block;
  font-size: 0.9rem;
  color: var(--grey-light);
  padding: 7px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
  white-space: nowrap;
}
.mega-col a:hover{ color: var(--white); padding-left: 4px; }

.mega-col--featured p{
  font-size: 0.88rem;
  color: var(--grey-light);
  line-height: 1.6;
  margin-bottom: 16px;
}
.mega-cta{
  display:inline-block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--amber);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 3px;
}
.mega-cta:hover{ color: var(--white); border-color: var(--white); }

.nav-close{
  position: absolute;
  top: 24px;
  right: 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-close .bar{
  position:absolute;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}
.nav-close .bar1{ transform: rotate(45deg); }
.nav-close .bar2{ transform: rotate(-45deg); }
.nav-close:hover .bar{ background: var(--amber); }

/* =========================================================
   Off-canvas nav drawer
   ========================================================= */
.nav-overlay{
  position: fixed;
  inset:0;
  background: rgba(46,56,63,0.6);
  backdrop-filter: blur(2px);
  z-index: 195;
  opacity:0;
  visibility:hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nav-overlay.open{ opacity:1; visibility:visible; }

.main-nav{
  position: fixed;
  top:0; right:0;
  height: 100vh;
  width: min(420px, 88vw);
  background: var(--slate-deep);
  z-index: 200;
  display:flex;
  flex-direction:column;
  padding: 80px 56px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,0.35);
  overflow-y: auto;
}
.main-nav.open{ transform: translateX(0); }

/* Centres the nav content vertically when it's short, but — unlike justify-content:center —
   still lets you scroll all the way to the top once an accordion expands past viewport height. */
.nav-scroll-wrap{
  margin: auto 0;
  width: 100%;
}

.main-nav ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.nav-scroll-wrap > ul > li > a,
.nav-sub-toggle{
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
  position: relative;
  transition: color 0.25s ease, padding-left 0.25s ease;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0;
}

.nav-scroll-wrap > ul > li > a::before{
  content:'';
  position:absolute;
  left: -28px; top:50%;
  transform: translateY(-50%);
  width: 16px; height:1px;
  background: var(--amber);
  opacity:0;
  transition: opacity 0.25s ease, width 0.25s ease;
}

.nav-scroll-wrap > ul > li > a:hover,
.nav-scroll-wrap > ul > li > a.active{
  color: var(--amber);
  padding-left: 28px;
}
.nav-scroll-wrap > ul > li > a:hover::before,
.nav-scroll-wrap > ul > li > a.active::before{ opacity:1; width:16px; }

.nav-accent{ color: var(--amber) !important; }

.nav-sub-toggle:hover{ color: var(--amber); }
.nav-sub-chevron{
  font-size: 0.89rem;
  transition: transform 0.25s ease;
  color: var(--amber);
  margin-left: 12px;
}
.nav-has-sub.is-open .nav-sub-chevron{ transform: rotate(90deg); }

.nav-sub{
  list-style:none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.12);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-has-sub.is-open .nav-sub{ max-height: 480px; margin-top: 14px; }

.nav-sub a{
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--grey-light);
  transition: color 0.2s ease;
}
.nav-sub a:hover{ color: var(--amber); }

.nav-footer{
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-phone{
  display:flex;
  align-items:center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--grey-light);
  transition: color 0.25s ease;
  margin-bottom: 8px;
}
.nav-phone:hover{ color: var(--amber); }
.nav-footer-ctas{
  display:flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.nav-footer-ctas .btn{ text-align:center; }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow:hidden;
  color: var(--white);
}

.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(115deg, rgba(46,56,63,0.5) 10%, rgba(64,78,87,0.3) 55%, rgba(64,78,87,0.14) 100%);
}

/* Darkens the top of the hero video so the logo and nav read clearly against it */
.hero-top-fade{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 260px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(46,56,63,0.72) 0%, rgba(46,56,63,0.35) 55%, transparent 100%);
  pointer-events: none;
}

/* Localised darkening behind the hero text, independent of the overall gradient wash above */
.hero-vignette{
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 1300px 800px at 8% 50%, rgba(46,56,63,0.9) 0%, rgba(46,56,63,0.7) 35%, rgba(46,56,63,0.35) 60%, transparent 85%);
}

.hero-content{
  position: absolute;
  z-index: 3;
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 5vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 640px;
}

.hero-eyebrow{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.hero-content h1{
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-content h1 em{ color: var(--amber); }

.hero-sub{
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  margin: 0 0 28px;
  line-height: 1.7;
  text-shadow: 0 1px 16px rgba(0,0,0,0.45);
  max-width: 46ch;
}
.hero-sub strong{ color: var(--amber); font-weight: 700; }

.hero-cta-row{ display:flex; gap: 14px; flex-wrap: wrap; }
.hero-cta-row .btn{ padding: 15px 28px; font-size: 0.89rem; letter-spacing: 0.05em; }

@media (max-width: 700px){
  .hero{ height:auto; min-height:0; display:flex; flex-direction:column; }
  .hero-video{ position:relative; height:56vh; min-height:320px; }
  .hero-overlay{ position:absolute; top:0; left:0; right:0; height:56vh; min-height:320px; }
  .hero-top-fade{ height: 140px; }
  .hero-vignette{ display:none; }
  .hero-content{
    position: relative; left:auto; right:auto; top:auto; bottom:auto; transform:none;
    max-width:none; width:100%;
    background: var(--slate-deep);
    padding: 32px 24px 40px;
  }
  .hero-content h1, .hero-sub{ text-shadow:none; }
  .hero-cta-row{ flex-wrap: nowrap; gap: 10px; }
  .hero-cta-row .btn{
    flex: 1;
    padding: 13px 10px;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
  }
}

/* =========================================================
   Manifesto
   ========================================================= */
.manifesto{
  padding: 110px 0 100px;
  text-align:center;
  background: var(--slate-deep);
  color: var(--white);
  position: relative;
  overflow:hidden;
}
.manifesto::before{
  content:'';
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse at 50% 0%, rgba(224,160,95,0.12), transparent 60%);
}
.manifesto .container{ position:relative; }

.manifesto .section-eyebrow{ margin-bottom: 36px; }

.manifesto-heading{
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.4;
  color: var(--white);
  letter-spacing: 0.01em;
  max-width: 780px;
  margin: 0 auto;
}

.manifesto-sub{
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.98rem;
  color: var(--grey-light);
  max-width: 660px;
  margin: 36px auto 0;
  line-height: 1.8;
}
.manifesto-sub a{ color: var(--amber); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s ease; }
.manifesto-sub a:hover{ color: var(--white); }
.manifesto-sub p{ margin-bottom: 18px; }
.manifesto-sub p:last-child{ margin-bottom: 0; }

/* =========================================================
   Section eyebrow / heading shared
   ========================================================= */
.section-eyebrow{
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  text-align:center;
  margin-bottom: 8px;
}
.on-dark .section-eyebrow{ color: var(--amber); }

section > .container > h2{
  text-align:center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 48px;
  color: var(--slate-deep);
}
.on-dark .container > h2,
.manifesto .container > h2,
.testimonials .container > h2,
.closing-cta .container > h2,
.referrals-cta .container > h2{ color: var(--white); }

/* =========================================================
   Opening hours rows (used in the footer)
   ========================================================= */
.hours-list{ display:flex; flex-direction:column; gap: 3px; }
.hours-row{ display:block; }

/* =========================================================
   Featured Treatments (image cards)
   ========================================================= */
.featured-treatments{ padding: 100px 0; background: var(--white); }
.featured-treatments .section-eyebrow,
.featured-treatments > .container > h2{
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.featured-treatments-intro{
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  color: var(--warm-grey);
  line-height: 1.75;
}

/* Full-bleed, edge-to-edge — deliberately outside .container so tiles span the full viewport width */
.treatment-row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.treatment-row--top{ margin-top: 56px; }
.treatment-row--bottom{ margin-top: 10px; }

.treatment-tile--lead{ grid-column: span 2; }

.treatment-tile{
  position: relative;
  display:block;
  height: 520px;
  overflow: hidden;
}
.treatment-row--bottom .treatment-tile{ height: 400px; }

.treatment-tile-img{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.treatment-tile:hover .treatment-tile-img{ transform: scale(1.06); }

.treatment-tile::after{
  content:'';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,26,30,0.85) 0%, rgba(20,26,30,0.1) 50%, transparent 70%);
}

.treatment-tile-caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 32px 36px;
}
.treatment-tile--lead .treatment-tile-caption{ padding: 44px 44px; }
.treatment-tile-caption strong{
  display:block;
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.treatment-tile--lead .treatment-tile-caption strong{ font-size: 1.9rem; }
.treatment-tile-subtitle{
  display:block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  color: var(--amber);
  font-size: 1rem;
  margin-bottom: 18px;
}
.treatment-tile--lead .treatment-tile-subtitle{ font-size: 1.1rem; }

.treatment-tile-cta{
  display:inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 12px 24px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.treatment-tile:hover .treatment-tile-cta{
  background: var(--amber);
  border-color: var(--amber);
  color: var(--slate-deep);
}

/* =========================================================
   Why Choose Us
   ========================================================= */
.why-choose-us{
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.why-choose-us-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.why-choose-us-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(251,241,228,0.72) 0%, rgba(251,241,228,0.65) 60%, rgba(251,241,228,0.58) 100%);
}
.why-choose-us .container{ position: relative; z-index: 1; }
.why-choose-us .container > h2{ text-shadow: 0 1px 20px rgba(251,241,228,0.8); }
.why-choose-us .section-eyebrow{ color: var(--amber-deep); }

.why-choose-us-intro{
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  color: var(--warm-grey);
  font-size: 1rem;
  line-height: 1.75;
  text-shadow: 0 1px 16px rgba(251,241,228,0.85);
}

.why-choose-us-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.why-card{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(64,78,87,0.1);
  border-radius: 4px;
  padding: 36px 30px;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.why-card:hover{
  border-color: rgba(224,142,69,0.5);
  background: rgba(255,255,255,0.92);
  transform: translateY(-4px);
}

.why-card-icon{
  width: 52px; height: 52px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--slate-deep);
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.why-card h3{ color: var(--slate-deep); font-size: 1.15rem; margin-bottom: 10px; text-shadow: 0 1px 12px rgba(255,255,255,0.6); }
.why-card p{ color: var(--warm-grey); font-size: 0.9rem; line-height: 1.65; margin: 0; text-shadow: 0 1px 12px rgba(255,255,255,0.6); }
.nhs-highlight{ font-weight: 700; }
.nhs-highlight a{ color: var(--slate-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nhs-highlight a:hover{ text-decoration-thickness: 2px; }

/* =========================================================
   A Different Approach (reassurance section)
   ========================================================= */
.different-approach{
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.different-approach-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.different-approach-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(251,241,228,0.85) 0%, rgba(251,241,228,0.78) 60%, rgba(251,241,228,0.7) 100%);
}
.different-approach .container{ position: relative; z-index: 1; }

.different-approach-grid{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}
.different-approach-grid > *{ min-width: 0; }

.different-approach-text .section-eyebrow{ color: var(--amber-deep); text-align:left; }
.different-approach-text h2{ text-align:left; text-shadow: 0 1px 20px rgba(251,241,228,0.8); }

.different-approach-body{ margin-top: 28px; }
.different-approach-body p{
  color: var(--warm-grey);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 18px;
  text-align: justify;
  text-shadow: 0 1px 16px rgba(251,241,228,0.85);
}
.different-approach-body p:last-child{ margin-bottom: 0; }

.different-approach-video-wrap{
  position: relative;
}

.different-approach-video-accent{
  position: absolute;
  inset: 0;
  background: var(--amber);
  border-radius: 4px;
  transform: translate(-18px, -18px);
  z-index: 0;
}

.different-approach-video{
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(46,56,63,0.3);
}
.different-approach-video video{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(224,160,95,0.95);
  border: 3px solid rgba(255,255,255,0.85);
  display:flex; align-items:center; justify-content:center;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-play-btn i{ margin-left: 4px; }
.video-play-btn:hover{ background: var(--amber-deep); transform: translate(-50%, -50%) scale(1.08); }
.video-play-btn.is-hidden{ opacity: 0; pointer-events: none; }

/* =========================================================
   Smile Gallery (class names are still testimonial-*, kept from the original build)
   ========================================================= */
.testimonials{ padding: 110px 0; background: var(--slate-deep); }

.testimonial-row{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.testimonial-card{
  display:flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow:hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover{ border-color: var(--glass-border); transform: translateY(-4px); }
.testimonial-card:nth-child(2){ transform: translateY(28px); }
.testimonial-card:nth-child(2):hover{ transform: translateY(24px); }

.testimonial-photo{ aspect-ratio: 4/5; overflow:hidden; position:relative; }
.testimonial-photo::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 50%, rgba(46,56,63,0.5) 100%);
}
.testimonial-photo img{ width:100%; height:100%; object-fit:cover; filter: grayscale(0.15) contrast(1.05); }

.testimonial-body{ padding: 28px 26px 32px; }
.quote{
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 1.08rem;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 16px;
}
.attribution{ font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; color: var(--amber); text-transform: uppercase; }
.placeholder-flag{ display:block; font-size: 0.7rem; font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--grey-light); opacity: 0.6; margin-top: 4px; }

.gallery-intro{
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.75;
}

.testimonials-more{ text-align:center; margin-top: 60px; }

/* =========================================================
   Google Reviews (Elfsight)
   ========================================================= */

.reviews-section{ padding: 100px 0; background: var(--white); }
.reviews-intro{
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  color: var(--warm-grey);
  font-size: 1rem;
}
.reviews-section .container > div{ margin: 44px auto 0; }

/* =========================================================
   Referrals CTA (not used on the home page; kept for the future referrals page)
   ========================================================= */
.referrals-cta{
  padding: 120px 0 110px;
  text-align:center;
  background-color: var(--slate-deep);
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
}
.referrals-cta-scrim{
  position:absolute; inset:0;
  z-index: 0;
  background: linear-gradient(160deg, rgba(46,56,63,0.93) 0%, rgba(46,56,63,0.82) 60%, rgba(46,56,63,0.75) 100%);
}
.referrals-cta::before{
  content:'';
  position:absolute; inset:0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 0%, rgba(224,160,95,0.2), transparent 60%);
}
.referrals-cta .container{ position:relative; z-index: 2; }

.referrals-cta-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom: 64px; }

.referrals-list{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align:left;
}
.referrals-list-item{
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 28px 26px;
}
.referrals-list-item h4{ font-size: 1.15rem; color: var(--amber); margin-bottom: 8px; }
.referrals-list-item p{ font-size: 0.92rem; color: var(--grey-light); line-height: 1.6; }

/* =========================================================
   Instagram feed (Elfsight embed)
   ========================================================= */
.instagram-feed{ padding: 100px 0; background: var(--white); }
.instagram-feed .section-eyebrow{ color: var(--amber-deep); }
.instagram-feed h2{ color: var(--slate-deep); }
.instagram-feed .container > div{ margin: 44px auto 0; }

/* =========================================================
   Closing CTA + Locations (combined)
   ========================================================= */
.closing-cta{
  padding: 120px 0;
  text-align:center;
  background: var(--slate);
  color: var(--white);
  position: relative;
}
.closing-cta::before{
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(ellipse at 50% 0%, rgba(224,160,95,0.18), transparent 60%);
}
.closing-cta .container{ position:relative; }

.cta-line{
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  margin: 0 auto 48px;
}

.closing-locations-row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}

.closing-location-card{
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.closing-location-card:hover{ border-color: var(--glass-border); transform: translateY(-4px); }

.closing-location-photo{ aspect-ratio: 16/9; overflow:hidden; }
.closing-location-photo img{ width:100%; height:100%; object-fit:cover; filter: grayscale(0.1) contrast(1.05); }

.closing-location-nhs-banner{
  background: var(--amber);
  color: var(--slate-deep);
  text-align:center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 12px;
  margin: 0;
}

.closing-location-body{ padding: 28px 26px 30px; }
.closing-location-body h3{ color: var(--white); font-size: 1.4rem; margin-bottom: 10px; }
.closing-location-body h3 a{ transition: color 0.2s ease; }
.closing-location-body h3 a:hover{ color: var(--amber); }
.closing-location-tagline{ font-size: 0.92rem; color: rgba(255,255,255,0.75); line-height: 1.6; margin-bottom: 16px; }
.closing-location-find-us{
  display:inline-block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--amber);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
  margin-bottom: 22px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.closing-location-find-us:hover{ color: var(--white); border-color: var(--white); }

.closing-location-meta{
  list-style:none;
  display:grid;
  gap: 9px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 22px;
}
.closing-location-meta li{ display:flex; align-items:flex-start; gap: 10px; }
.closing-location-meta i{ width: 15px; margin-top: 3px; color: var(--amber); flex-shrink:0; }
.closing-location-meta a{ color: rgba(255,255,255,0.75); }
.closing-location-meta a:hover{ color: var(--amber); }

.closing-location-ctas{ display:flex; gap: 10px; flex-wrap: wrap; }
.closing-location-ctas .btn{ padding: 12px 20px; font-size: 0.82rem; }

.referrals-cta .cta-line{ max-width: 620px; margin-left:auto; margin-right:auto; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background: var(--slate-deep); color: rgba(255,255,255,0.75); padding-top: 70px; }

.footer-top-grid{
  display:grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-locations-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo{ height: 62px; margin-bottom: 18px; }
.footer-brand p{ font-size: 0.92rem; max-width: 340px; margin-bottom: 22px; }

.social-links{ display:flex; gap: 16px; }
.social-links a{
  width: 36px; height:36px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.social-links i{ font-size: 15px; }
.social-links a:hover{ border-color: var(--amber); color: var(--amber); }

.footer-col h4{ color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-nav ul{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-nav a{ font-size: 0.92rem; transition: color 0.25s ease; }
.footer-nav a:hover{ color: var(--amber); }

.footer-contact p{
  font-size: 0.88rem;
  margin-bottom: 9px;
  line-height: 1.6;
}
.footer-contact p i{
  color: var(--amber);
  margin-right: 6px;
  width: 14px;
  text-align: center;
}
.footer-contact a:hover{ color: var(--amber); }

/* Dalmuir's hours are the one exception needing multiple rows, so it keeps the flex/top-aligned icon treatment */
.footer-hours{ display:flex; align-items:flex-start; gap: 9px; }
.footer-hours i{ margin-top: 3px; margin-right: 0; }

.footer-seo{ padding-top: 36px; padding-bottom: 36px; font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.45); text-align:center; max-width: 900px; }
.footer-bottom{ padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; text-align:center; color: rgba(255,255,255,0.45); }
.footer-bottom a{ color: rgba(255,255,255,0.55); }
.footer-bottom a:hover{ color: var(--amber); }

/* =========================================================
   Quick Actions (Register / Refer / Contact) sticky tab
   ========================================================= */
.quick-actions{
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 91;
}

.quick-actions-toggle{
  display:flex;
  align-items:center;
  gap: 9px;
  background: var(--amber);
  color: var(--slate-deep);
  border: none;
  border-radius: 8px;
  padding: 15px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(46,56,63,0.3);
  cursor: pointer;
  transition: background 0.2s ease;
}
.quick-actions-toggle:hover{ background: var(--amber-deep); color: var(--white); }
.quick-actions-toggle i{ font-size: 1rem; color: var(--slate-deep); transition: color 0.2s ease; }
.quick-actions-toggle:hover i{ color: var(--white); }
.qa-label-short{ display:none; }

.quick-actions-panel{
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display:flex;
  flex-direction: column;
  gap: 10px;
  min-width: 230px;
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(46,56,63,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.quick-actions.is-open .quick-actions-panel{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.quick-actions-panel .btn{ text-align:center; white-space:nowrap; }

.btn-secondary{
  background: var(--slate-deep);
  color: var(--white);
  border-color: var(--slate-deep);
}
.btn-secondary:hover{
  background: var(--slate);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark{
  background: transparent;
  color: var(--slate-deep);
  border-color: rgba(64,78,87,0.3);
}
.btn-outline-dark:hover{
  background: var(--slate-deep);
  color: var(--white);
  border-color: var(--slate-deep);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px){
  .why-choose-us-grid{ grid-template-columns: repeat(2, 1fr); }
  .different-approach-grid{ grid-template-columns: 1fr; gap: 40px; }
  .different-approach-body p{ text-align: left; }
  .video-play-btn{ display: none; }
  .different-approach-video-accent{ transform: translate(-12px, -12px); }
  .closing-locations-row{ grid-template-columns: 1fr; }
  .testimonial-row{ grid-template-columns: 1fr; gap: 24px; }
  .testimonial-card:nth-child(2){ transform:none; }
  .treatment-row--top{ grid-template-columns: 1fr 1fr; }
  .treatment-row--bottom{ grid-template-columns: repeat(3, 1fr); }
  .treatment-tile--lead{ grid-column: span 1; }
  .treatment-tile{ height: 340px; }
  .treatment-row--bottom .treatment-tile{ height: 300px; }
  .referrals-list{ grid-template-columns: 1fr; }
  .footer-top-grid{ grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-locations-grid{ grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 700px){
  :root{ --header-h: 108px; }
  .logo{ height: 68px; }
  .site-header.scrolled .logo{ height: 48px; }
  .main-nav{ padding: 70px 32px; }
  .nav-scroll-wrap > ul > li > a, .nav-sub-toggle{ font-size: 1.15rem; }

  /* Hidden until scroll clears the hero — on mobile the hero's own CTA row sits
     close to the bottom of the viewport and would otherwise collide with this tab. */
  .quick-actions{
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .quick-actions.visible{ opacity: 1; pointer-events: auto; }
}

@media (max-width: 600px){
  .header-inner{ padding: 0 20px; }
  .container{ padding: 0 20px; }
  .manifesto .section-eyebrow{ margin-bottom: 48px; }
  .why-choose-us-grid{ grid-template-columns: 1fr; }
  .treatment-row--top{ grid-template-columns: 1fr; }
  .treatment-row--bottom{ grid-template-columns: 1fr; }
  .treatment-tile--lead{ grid-column: span 1; }
  .treatment-tile{ height: 280px; }
  .treatment-row--bottom .treatment-tile{ height: 260px; }
  .treatment-tile::after{ background: linear-gradient(to top, rgba(20,26,30,0.92) 0%, rgba(20,26,30,0.3) 65%, transparent 88%); }
  .treatment-tile-caption{ padding: 22px 22px; }
  .treatment-tile--lead .treatment-tile-caption{ padding: 24px 24px; }
  .treatment-tile-cta{ padding: 10px 18px; font-size: 0.76rem; }
  .btn{ padding: 14px 28px; font-size: 0.8rem; }
  .closing-cta, .referrals-cta{ padding: 80px 0; }
  .footer-top-grid{ grid-template-columns: 1fr; padding-bottom: 32px; }
  .footer-locations-grid{ grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 60px; gap: 32px; }
  .footer-seo{ padding-top: 48px; padding-bottom: 40px; }
  .footer-bottom{ padding-top: 30px; }
  .quick-actions{ right: 20px; bottom: 20px; }
  .quick-actions-toggle{ padding: 12px 18px; }
  .qa-label-full{ display:none; }
  .qa-label-short{ display:inline; }
  .quick-actions-panel{ min-width: 200px; }
}