/* ============================================================
   Sunshine & Treasure Denture Clinic — Single-page site
   Modern rebuild · 2026
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --brand:      #10a0a6;   /* teal */
  --brand-600:  #0c848a;
  --brand-700:  #0a6b70;
  --brand-900:  #0a3b40;   /* deep footer teal */
  --amber:      #f5a623;   /* sunshine accent */
  --amber-soft: #fde9c4;

  --ink:   #16303a;        /* headings / dark text */
  --body:  #40565f;        /* body text */
  --muted: #6a828b;
  --line:  #e5eef0;

  --mint:   #eef8f8;       /* section tint */
  --mint-2: #f5fbfb;
  --cream:  #fff8ec;       /* warm tint */
  --white:  #ffffff;

  --r-sm: 12px;
  --r:    20px;
  --r-lg: 30px;
  --shadow-sm: 0 4px 16px rgba(16,48,58,.06);
  --shadow:    0 14px 40px rgba(16,48,58,.10);
  --shadow-lg: 0 30px 70px rgba(16,48,58,.16);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1.1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--mint { background: var(--mint); }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--body); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; font-size: .78rem;
  color: var(--brand-600); background: var(--mint); padding: 7px 16px;
  border-radius: 100px; margin-bottom: 18px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.text-amber { color: var(--amber); }
.text-brand { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 15px 30px; border-radius: 100px; cursor: pointer;
  border: 2px solid transparent; transition: all .22s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(16,160,166,.34); }
.btn--primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 14px 30px rgba(16,160,166,.42); }
.btn--amber { background: var(--amber); color: #4a3208; box-shadow: 0 10px 24px rgba(245,166,35,.34); }
.btn--amber:hover { background: #ec9c13; color: #4a3208; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn--light { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--light:hover { background: #fff; color: var(--brand-700); }
.btn--wide { padding: 16px 40px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  transition: all .3s ease; padding: 16px 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 6px 24px rgba(16,48,58,.07); padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: nowrap; max-width: 1320px; }
.brand { display: flex; align-items: center; }
.brand img { height: 56px; width: auto; transition: height .3s; }
.site-header.scrolled .brand img { height: 46px; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .9rem; position: relative; white-space: nowrap; }
.nav a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--brand); transition: width .25s; border-radius:2px; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a:hover { color: var(--brand-700); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { height: 56px; padding-top: 0; padding-bottom: 0; padding-left: 26px; padding-right: 26px; }
.lang { display: flex; gap: 8px; font-size: .82rem; align-items: center; }
.lang a { color: var(--muted); font-family: var(--font-head); font-weight: 500; }
.lang a.active, .lang a:hover { color: var(--brand-700); }
.lang .sep { color: var(--line); }

/* header not-scrolled sits over hero: keep text readable (hero is light mint, so dark text is fine) */

.lang--mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 210; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 150px 0 90px;
  background:
    radial-gradient(1100px 600px at 85% -5%, #d9f1f2 0%, transparent 55%),
    radial-gradient(900px 500px at 0% 30%, #fdeecb55 0%, transparent 55%),
    var(--mint-2);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .2em; }
.hero h1 .brandline { display:block; font-size:.42em; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color: var(--brand); margin-bottom:.7em; }
.hero .tagline { color: var(--amber); }
.hero-sub { font-size: 1.2rem; color: var(--body); max-width: 540px; margin: 8px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px 30px; }
.hero-trust div { display: flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 500; color: var(--ink); }
.hero-trust svg { flex: none; color: var(--brand); }

.hero-media { position: relative; }
.hero-media > img {
  width: 100%; height: auto; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -26px; bottom: 40px; background: #fff;
  border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.hero-badge .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; flex: none; }
.hero-badge strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; line-height: 1.1; }
.hero-badge span { font-size: .85rem; color: var(--muted); }
.hero-blob { position: absolute; z-index: 0; }

/* ---------- Trust / feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--mint); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .3em; }
.feature p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 40%; }
.about-media .exp {
  position: absolute; right: -18px; bottom: -18px; background: var(--brand);
  color: #fff; border-radius: var(--r); padding: 20px 24px; text-align: center; box-shadow: var(--shadow);
}
.about-media .exp b { display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1; }
.about-media .exp span { font-size: .82rem; opacity: .9; }
.about-body .free-note { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: var(--brand-700); background: var(--mint); padding: 12px 20px; border-radius: 100px; margin: 6px 0 24px; }
.signature { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-top: 10px; }
.signature span { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }

/* ---------- CDCP band ---------- */
.cdcp { background: linear-gradient(120deg, var(--brand-700), var(--brand)); color: #fff; border-radius: 0; overflow: hidden; position: relative; }
.cdcp::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 90% 10%, rgba(255,255,255,.14), transparent 60%); }
.cdcp .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 54px; align-items: center; }
.cdcp .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.cdcp h2 { color: #fff; }
.cdcp p { color: rgba(255,255,255,.9); margin-bottom: 0; }
.cdcp-text .btn { margin-top: 28px; }
.cdcp-poster { position: relative; display: block; justify-self: center; width: 100%; max-width: 360px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; transition: transform .3s ease; }
.cdcp-poster:hover { transform: translateY(-5px); }
.cdcp-poster img { width: 100%; height: auto; display: block; }
.cdcp-poster-hint { position: absolute; inset: auto 0 0 0; padding: 20px 14px 12px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .85rem; text-align: center; background: linear-gradient(180deg, transparent, rgba(10,59,64,.85)); opacity: 0; transition: opacity .3s; }
.cdcp-poster:hover .cdcp-poster-hint { opacity: 1; }

/* ---------- Services carousel ---------- */
.svc-carousel { position: relative; }
.svc-viewport { overflow: hidden; padding: 12px 8px 28px; margin: -12px -8px -28px; }
.svc-track {
  display: flex; gap: 24px;
  transition: transform .55s cubic-bezier(.45, 0, .2, 1);
  will-change: transform;
}
.svc-card {
  flex: 0 0 320px; background: #fff; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  cursor: pointer; transition: transform .25s, box-shadow .25s; text-align: left;
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.svc-card .thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .thumb img { transform: scale(1.07); }
.svc-card .num { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--brand-700); font-family: var(--font-head); font-weight: 700; font-size: .8rem; padding: 5px 11px; border-radius: 100px; }
.svc-card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { font-size: 1.18rem; margin-bottom: .35em; }
.svc-card p { font-size: .93rem; color: var(--muted); margin: 0 0 16px; flex: 1; }
.svc-card .more { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.svc-full { display: none; }

.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; }
.car-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.car-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.car-btn:disabled { opacity: .35; cursor: default; background: #fff; color: var(--ink); border-color: var(--line); }
.car-dots { display: flex; gap: 8px; }
.car-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: all .2s; }
.car-dots button.active { background: var(--brand); width: 26px; border-radius: 100px; }

/* Service modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(12,32,38,.6); backdrop-filter: blur(4px); z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .25s; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal { background: #fff; border-radius: var(--r-lg); max-width: 620px; width: 100%; max-height: 88vh; overflow: hidden; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .28s; display: flex; flex-direction: column; }
.modal-overlay.show .modal { transform: none; }
.modal img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.modal-body { padding: 30px 34px 34px; overflow-y: auto; }
.modal-body h3 { color: var(--brand-700); font-size: 1.7rem; margin-bottom: .5em; }
.modal-body p { color: var(--body); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); border: 0; cursor: pointer; font-size: 1.3rem; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 2; }
.modal-close:hover { background: #fff; }
.modal-wrap { position: relative; }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.why-item { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); }
.why-item .ico { width: 50px; height: 50px; flex: none; border-radius: 14px; background: var(--mint); color: var(--brand); display: grid; place-items: center; }
.why-item h3 { font-size: 1.12rem; margin-bottom: .2em; }
.why-item p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Information accordion ---------- */
.accordion { max-width: 900px; margin: 0 auto; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; overflow: hidden; transition: box-shadow .25s; }
.acc-item.open { box-shadow: var(--shadow); }
.acc-head { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.acc-head .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; transition: transform .3s, background .3s, color .3s; }
.acc-item.open .plus { background: var(--brand); color: #fff; transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.acc-panel-inner { padding: 0 26px 26px; color: var(--body); }
.acc-panel-inner img { border-radius: var(--r-sm); margin: 6px 0 18px; box-shadow: var(--shadow-sm); }
.acc-panel-inner h4 { color: var(--brand-700); margin: 1.1em 0 .3em; font-size: 1.05rem; }
.acc-panel-inner ul { padding-left: 1.2em; margin: 0 0 1em; }
.acc-panel-inner li { margin-bottom: .4em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.contact-info .hours-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.hours-card h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: .7em; }
.hours-card h3 svg { color: var(--brand); }
.hours-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.hours-row:last-child { border-bottom: 0; }
.hours-row .day { color: var(--muted); }
.contact-meta { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.contact-meta a { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.contact-meta a .ico { width: 58px; height: 58px; border-radius: 16px; background: var(--mint); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact-meta a .ico svg { width: 28px; height: 28px; }
.contact-meta a span small { display: block; color: var(--muted); font-weight: 400; font-size: 1.02rem; margin-top: 2px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow); }
form.appt label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .85rem; color: var(--ink); margin: 14px 0 6px; }
form.appt .req { color: #e0533c; }
form.appt input, form.appt textarea, form.appt select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 1rem; background: var(--mint-2); color: var(--ink); transition: all .2s;
}
form.appt input:focus, form.appt textarea:focus, form.appt select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(16,160,166,.12); }
form.appt .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.loc-stack { display: flex; flex-direction: column; gap: 24px; }
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.loc-card .map-embed { border: 0; width: 100%; height: 230px; display: block; }
.loc-card .loc-body { padding: 22px 26px 26px; }
.loc-card h3 { font-size: 1.2rem; margin-bottom: .3em; }
.loc-card p { font-size: .95rem; margin-bottom: .6em; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, var(--brand-900), #072a2e); color: #cfe4e6; padding: 76px 0 28px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-name { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.35rem; line-height: 1.3; margin-bottom: 16px; }
.footer-name .amp { color: var(--amber); }
.footer-brand p { color: #a9cccf; font-size: .95rem; }
.footer-brand .tag { color: var(--amber); font-family: var(--font-head); font-weight: 600; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b6d5d7; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: #a9cccf; font-size: .93rem; line-height: 1.65; }
.footer-hours { display: flex; justify-content: space-between; font-size: .85rem; color: #a9cccf; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; }
.social-row a:hover { background: var(--brand); }
.footer-bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #8fb4b7; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Wide logo needs room — collapse the inline nav to the menu button below this width */
@media (max-width: 1320px) {
  .nav, .header-cta .lang { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open {
    display: flex; position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: #fff; padding: 40px; box-shadow: -20px 0 60px rgba(16,48,58,.18); z-index: 205;
  }
  .site-nav.open a { font-size: 1.3rem; }
  .site-nav.open .m-cta { display: flex; }
  .site-nav.open .lang--mobile { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
  .site-nav.open .lang--mobile a { font-size: 1.1rem; }
}
@media (max-width: 880px) {
  .hero { padding: 130px 0 70px; }
  .hero-grid, .about-grid, .cdcp .wrap, .contact-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 460px; margin: 0 auto; }
  .about-media { max-width: 480px; }
}
/* Narrow screens: scale the wide logo by width so its aspect ratio is preserved (no squish) */
@media (max-width: 767px) {
  .brand img,
  .site-header.scrolled .brand img { height: auto; width: min(62vw, 360px); }
}
@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  form.appt .two { grid-template-columns: 1fr; }
  .svc-card { flex-basis: 82vw; }
  .hero-badge { left: 0; }
}
