/* ============================================================
   Dr. Phil Dentist — one-page site
   Co-branded with Fraccaro Dental Group
   ============================================================ */

:root {
  /* Brand palette */
  --teal:        #0e8d8d;
  --teal-dark:   #0a6a6c;
  --teal-deep:   #084f52;
  --mint:        #eaf6f5;
  --mint-2:      #f4faf9;
  --accent:      #f2785c;   /* warm coral — CTAs / highlights */
  --accent-dark: #e05a3e;
  --ink:         #163037;   /* headings */
  --body:        #3f555c;   /* body text */
  --muted:       #6b7f85;
  --line:        #dceceb;
  --white:       #ffffff;

  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(16, 60, 64, .07);
  --shadow:    0 14px 40px rgba(16, 60, 64, .14);
  --header-h: 72px;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tint { background: var(--mint-2); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .9rem;
}
.lead { font-size: 1.12rem; color: var(--body); }
.text-center { text-align: center; }
.section__head { max-width: 680px; margin: 0 auto 48px; }
.section--tint .section__head, .section__head { }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(242,120,92,.32); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--teal-dark); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 700; color: var(--ink); font-size: 1.08rem; letter-spacing: -.01em; }
.brand__tag { font-size: .68rem; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  color: var(--ink); font-weight: 500; font-size: .98rem;
  padding: .5rem .8rem; border-radius: 8px; position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .32rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav__link:hover { color: var(--teal-dark); }
.nav__link.is-active { color: var(--teal-dark); }
.nav__link.is-active::after { transform: scaleX(1); }
.header__cta { margin-left: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 10px; border-radius: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 5px; }
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 80px));
  padding-bottom: clamp(50px, 8vw, 90px);
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--mint) 0, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--mint-2) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  letter-spacing: -.02em; margin-bottom: .5rem;
}
.hero h1 .hl { color: var(--teal); }
.hero__sub { font-size: 1.14rem; max-width: 46ch; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.4rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: var(--muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 17px; height: 17px; color: var(--teal); flex: none; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: 26px; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.hero__badge {
  position: absolute; left: -14px; bottom: 26px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; max-width: 260px;
}
.hero__badge .dot { width: 42px; height: 42px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; flex: none; }
.hero__badge .dot svg { width: 22px; height: 22px; color: var(--teal); }
.hero__badge b { color: var(--ink); font-size: .95rem; display: block; }
.hero__badge small { color: var(--muted); font-size: .8rem; }

/* ---------- Split rows (mission) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split__body h2 { margin-top: .2rem; }
.signoff { margin-top: 1.4rem; font-weight: 600; color: var(--ink); }
.signoff small { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; }

/* ---------- Pillars (about) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; margin-bottom: 16px; }
.pillar__icon svg { width: 28px; height: 28px; color: var(--teal); }
.pillar h3 { margin-bottom: .3rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Family band ---------- */
.band { position: relative; color: #fff; text-align: center; overflow: hidden; }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.band__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,79,82,.78), rgba(10,106,108,.82)); z-index: 1; }
.band .container { position: relative; z-index: 2; padding-top: clamp(60px,9vw,110px); padding-bottom: clamp(60px,9vw,110px); }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.92); max-width: 620px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }

/* ---------- Patient care / smiles ---------- */
.smiles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; margin: 0 auto 34px; }
.smiles span {
  background: var(--mint); color: var(--teal-deep); border-radius: 999px;
  padding: .4rem .95rem; font-size: .96rem; font-weight: 500;
  transition: transform .18s ease, background .2s ease, color .2s ease;
}
.smiles span:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.care-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 8px; }
.care-cta p { margin: 0; font-weight: 600; color: var(--ink); font-size: 1.15rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: start; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-row__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; flex: none; }
.info-row__icon svg { width: 22px; height: 22px; color: var(--teal); }
.info-row h3 { font-size: 1rem; margin: 0 0 .25rem; }
.info-row p, .info-row a { margin: 0; color: var(--body); }
.info-row a { color: var(--teal-dark); font-weight: 600; }
.hours-list { list-style: none; margin: .2rem 0 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-size: .98rem; }
.hours-list li span:last-child { color: var(--ink); font-weight: 600; }
.hours-list li.muted span:last-child { color: var(--muted); font-weight: 500; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
.contact__media { display: grid; gap: 20px; }

.fraccaro-note {
  margin-top: 22px; background: var(--mint); border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: .96rem; color: var(--teal-deep);
  display: flex; gap: 12px; align-items: center;
}
.fraccaro-note svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
.fraccaro-note a { font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-deep); color: rgba(255,255,255,.82); padding: 54px 0 26px; }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: #fff; }
.footer__top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer__brand { max-width: 320px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: rgba(255,255,255,.65); }
.footer__brand p { margin-top: 12px; font-size: .95rem; color: rgba(255,255,255,.72); }
.footer__col h4 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 9px; font-size: .96rem; }
.footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.6);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: block; }
  .header.nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 12px; box-shadow: var(--shadow); border-top: 1px solid var(--line);
  }
  .header.nav-open .nav__link { padding: .85rem 1rem; border-radius: 10px; font-size: 1.05rem; }
  .header.nav-open .nav__link::after { display: none; }
  .header.nav-open .nav__link.is-active { background: var(--mint); }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin: 0 auto; order: -1; }
  .hero__media img { aspect-ratio: 16/11; }
  .hero__badge { left: 10px; }

  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }

  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .hero__actions .btn, .care-cta .btn { flex: 1 1 auto; justify-content: center; }
  .info-card { padding: 22px; }
}
