/* ===========================================================
   PRISM DENTAL — Design tokens   
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  /* Palette */
  --navy-950: #0A1220;
  --navy-900: #0F1B2E;
  --navy-800: #16233C;
  --navy-700: #22314F;
  --gold-600: #A9821E;
  --gold-500: #C9A227;
  --gold-400: #DBB94A;
  --gold-300: #E8CD7A;
  --ivory-100: #F7F2E4;
  --ivory-050: #FBF8F1;
  --ink-900: #14171C;
  --ink-700: #3B4048;
  --line: rgba(201,162,39,0.22);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm */
  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--ivory-050);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; font-weight:600; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family: inherit; cursor:pointer; }

.container{
  width:100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

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

/* ══ BANNER CAROUSEL ══ */
.banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;      /* prevents images from spilling/cutting outside the box */
  aspect-ratio: 1400 / 580; /* match your image dimensions so nothing crops oddly */
}

.banner-track {
  display: flex;         /* THIS is usually the missing piece — without it, slides stack vertically ("one after another") instead of sliding side by side */
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.banner-slide {
  flex: 0 0 100%;         /* each slide takes exactly one full-width "page" */
  width: 100%;
  height: 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fills the box without distorting or cropping unexpectedly */
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-600);
}
.eyebrow::before{
  content:"";
  width: 22px; height:1px;
  background: var(--gold-500);
}
.eyebrow.on-dark{ color: var(--gold-300); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-gold{
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
}
.btn-gold:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(201,162,39,.55); }
.btn-line{
  border-color: rgba(247,242,228,0.4);
  color: var(--ivory-100);
}
.btn-line:hover{ border-color: var(--gold-400); color: var(--gold-300); transform: translateY(-2px); }
.btn-line.on-light{ border-color: rgba(20,23,28,0.25); color: var(--ink-900); }
.btn-line.on-light:hover{ border-color: var(--gold-600); color: var(--gold-600); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  /* Solid colour, no backdrop-filter: backdrop-filter on an ancestor
     creates a new containing block for position:fixed descendants,
     which breaks the fixed mobile nav below. Keep this header filter-free. */
  background: rgba(10,18,32,0.98);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px;
  padding: 12px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand{ display:flex; align-items:center; gap:12px; min-width:0; flex-shrink:1; }
.brand-mark{
  width:44px; height:44px; border-radius:50%;
  background: var(--ivory-050);
  border: 1px solid var(--gold-500);
  overflow:hidden;
  flex-shrink:0;
}
.brand-mark img{ width:100%; height:100%; object-fit:cover; }
.brand-text{ display:flex; flex-direction:column; line-height:1.2; min-width:0; }
.brand-text .name{
  font-family: var(--font-display);
  color: var(--ivory-100);
  font-size: 20px;
  font-weight:600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-text .sub{
  color: var(--gold-300);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight:700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-nav{ display:flex; align-items:center; gap: 34px; }
.main-nav a{
  color: rgba(247,242,228,0.82);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position:relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.main-nav a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:0;
  height:1px; background: var(--gold-400);
  transition: right .35s var(--ease);
}
.main-nav a:hover{ color: var(--ivory-100); }
.main-nav a:hover::after, .main-nav a.active::after{ right:0; }
.main-nav a.active{ color: var(--gold-300); }
.header-cta{ display:flex; align-items:center; gap:16px; flex-shrink:0; }
.header-phone{
  display:flex; align-items:center; gap:8px;
  color: var(--ivory-100); font-size: 13.5px; font-weight:700;
  white-space: nowrap;
}
.header-phone svg{ width:15px; height:15px; stroke: var(--gold-400); flex-shrink:0; }

.nav-toggle{
  display:none; background:none; border:none; padding:6px;
  flex-direction:column; gap:5px;
  flex-shrink:0;
  z-index: 160;
  position: relative;
}
.nav-toggle span{ width:24px; height:2px; background: var(--ivory-100); display:block; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
  /* Full-screen solid overlay, positioned relative to the viewport
     (not the header) so it fully covers the page instead of bleeding
     through onto whatever section is behind it. */
  .main-nav{
    position: fixed; inset: 0; z-index: 150;
    background: var(--navy-950);
    flex-direction:column; align-items:flex-start;
    padding: 100px 28px 30px; gap: 22px;
    transform: translateY(-14px);
    opacity:0; visibility:hidden; pointer-events:none;
    overflow-y: auto;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .main-nav.open{
    opacity:1; visibility:visible; pointer-events:auto; transform:none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .main-nav a{ font-size: 20px; }
  .header-phone span{ display:none; }
  .nav-toggle{ display:flex; }
  .header-cta .btn-gold{ padding: 11px 16px; font-size: 13px; }
}

@media (max-width: 480px){
  .header-inner{ padding: 10px 14px; gap: 10px; }
  .brand-mark{ width:36px; height:36px; }
  .brand-text .name{ font-size: 16px; }
  .brand-text .sub{ display:none; }
  .header-phone{ display:none; }
  .header-cta .btn-gold{ padding: 9px 12px; font-size: 12px; }
}

/* ---------- Hero facet backdrop ---------- */
.facet-field{
  position:absolute; inset:0; overflow:hidden; z-index:0;
}
.facet-field svg{ width:100%; height:100%; }

/* ---------- Hero grid + video card ---------- */
.hero-grid{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,440px);
  gap: 56px;
  align-items: center;
}
.hero-copy{ max-width: 560px; }

.hero-video-card{
  position: relative;
  aspect-ratio: 6 / 5;
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  background: var(--navy-950);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.hero-video, .hero-video-fallback{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit: cover;
}
.hero-video-fallback svg{ width:100%; height:100%; display:block; }
.hero-pulse{
  transform-origin: 300px 230px;
  animation: heroPulse 5s ease-in-out infinite;
}
.hero-drift{
  transform-origin: 300px 260px;
  animation: heroDrift 14s ease-in-out infinite;
}
@keyframes heroPulse{
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes heroDrift{
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(2.5deg) scale(1.03); }
}
.play-btn{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:72px; height:72px; border-radius:50%;
  background: rgba(10,18,32,0.55);
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  display:flex; align-items:center; justify-content:center;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.play-btn svg{ width:26px; height:26px; margin-left:3px; }
.play-btn:hover{ transform:translate(-50%,-50%) scale(1.08); background: rgba(201,162,39,0.18); }
.hero-video-caption{
  position:absolute; left:22px; bottom:20px;
  font-size: 12px; letter-spacing:.04em;
  color: rgba(247,242,228,0.75);
  background: rgba(10,18,32,0.55);
  padding: 7px 12px;
  border: 1px solid rgba(201,162,39,0.3);
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; gap: 40px; }
  .hero-video-card{ max-width: 440px; margin: 0 auto; width:100%; }
  .hero-copy{ max-width: none; }
}
@media (prefers-reduced-motion: reduce){
  .hero-pulse, .hero-drift{ animation: none; }
}

/* ---------- Sections ---------- */
.section{ padding: 96px 0; position:relative; }
.section.tight{ padding: 70px 0; }
.section-dark{ background: var(--navy-900); color: var(--ivory-100); }
.section-dark .eyebrow{ color: var(--gold-300); }
.section-panel{ background: var(--navy-800); }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 42px); margin-top:14px; }
.section-head p{ margin-top: 16px; color: var(--ink-700); font-size: 16.5px; }
.section-dark .section-head p{ color: rgba(247,242,228,0.72); }

/* ---------- Cards ---------- */
.card{
  background: var(--ivory-050);
  border: 1px solid rgba(20,23,28,0.08);
  padding: 34px 30px;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.card::before{
  content:"";
  position:absolute; top:0; left:0; width:0%; height:3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transition: width .45s var(--ease);
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(15,27,46,.35); }
.card:hover::before{ width:100%; }
.card .icon{ width:44px; height:44px; margin-bottom: 20px; color: var(--gold-600); }
.card h3{ font-size: 19px; margin-bottom: 10px; }
.card p{ color: var(--ink-700); font-size: 14.8px; }

.card-dark{
  background: var(--navy-800);
  border: 1px solid rgba(201,162,39,0.18);
  color: var(--ivory-100);
}
.card-dark p{ color: rgba(247,242,228,0.7); }
.card-dark .icon{ color: var(--gold-400); }

.grid{ display:grid; gap: 26px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

/* ---------- Divider ---------- */
.divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: .5;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy-950);
  color: rgba(247,242,228,0.72);
  padding: 68px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom:16px; }
.footer-brand .brand-mark{ width:40px; height:40px; }
.footer-brand .name{ color: var(--ivory-100); font-family: var(--font-display); font-size:18px; }
.footer-col h4{
  color: var(--gold-300); font-size:12.5px; letter-spacing:.16em; text-transform:uppercase;
  margin-bottom: 18px; font-family: var(--font-body); font-weight:700;
}
.footer-col li{ margin-bottom: 11px; font-size: 14px; }
.footer-col a:hover{ color: var(--gold-300); }
.footer-bottom{
  border-top: 1px solid rgba(247,242,228,0.1);
  padding-top: 22px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-size: 12.5px; color: rgba(247,242,228,0.45);
}
.footer-reg{ font-size:12px; color: rgba(247,242,228,0.45); }
.social-row{ display:flex; gap:14px; margin-top:16px; }
.social-row a{
  width:36px; height:36px; border:1px solid rgba(201,162,39,0.4);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  color: var(--gold-300); transition: background .3s var(--ease), color .3s var(--ease);
}
.social-row a:hover{ background: var(--gold-500); color: var(--navy-950); }

/* ---------- Utility ---------- */
.text-center{ text-align:center; }
.mt-8{ margin-top:8px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-40{ margin-top:40px; }
.badge-strip{
  display:flex; flex-wrap:wrap; gap: 14px 34px; align-items:center;
}
.badge-strip .item{ display:flex; align-items:center; gap:10px; font-size:13.5px; font-weight:700; color: rgba(247,242,228,0.85); }
.badge-strip svg{ width:18px; height:18px; color: var(--gold-400); flex-shrink:0; }

.reveal{ opacity:0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }

.photo-row {
    position: relative;
    width: 100%;
    max-width: 620px;
    height: 520px;
    margin: 0 auto;
}

/* Main image - full photo, no cutting */
.photo-row img:first-child {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    border-radius: 0 16px 16px 16px;
    display: block;
}

/* Second image - full photo, NO FRAME */
.photo-row img:nth-child(2) {
    position: absolute;
    right: 0;
    bottom: 0;

    width: 50%;
    height: 50%;

    object-fit: contain;
    object-position: center;

    border-radius: 16px;

    display: block;
    z-index: 2;
}

.photo-row {
    position: relative;
    width: 100%;
    max-width: 620px;
    height: 520px;
    margin: 0 auto;
}

/* First image - large left image */
.photo-row img:first-child {
    position: absolute;
    top: 0;
    left: 0;

    width: 68%;
    height: 94%;

    object-fit: contain;
    object-position: center;

    border-radius: 16px;
    display: block;
}

/* Second image - small bottom-right image */
.photo-row img:nth-child(2) {
    position: absolute;
    right: 0;
    bottom: 0;

    width: 43%;
    height: 45%;

    object-fit: contain;
    object-position: center;

    border-radius: 16px;

    /* No frame */
    border: none;

    display: block;
    z-index: 2;
}

