/* ===========================================================
   Mauchline Dental Surgery
   Luxury black / white / gold theme
   =========================================================== */

:root {
  /* Palette — tinted darks, desaturated gold (no pure black) */
  --ink:        #0d0d0f;
  --ink-soft:   #16161a;
  --ink-2:      #1d1d22;
  --paper:      #fbf9f5;
  --paper-2:    #f3efe7;
  --white:      #ffffff;
  --line:       #e6e0d4;
  --text:       #2a2a2e;
  --text-soft:  #5c5b58;
  --text-light: rgba(255, 255, 255, 0.78);

  --gold:       #c4a052;
  --gold-deep:  #a9863c;
  --gold-soft:  #e7d6a6;
  --gold-grad:  linear-gradient(135deg, #e7d6a6 0%, #c4a052 45%, #a9863c 100%);

  --fb:         #1877f2;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 4px 14px rgba(13, 13, 15, 0.06);
  --shadow-md: 0 16px 40px rgba(13, 13, 15, 0.10);
  --shadow-lg: 0 30px 70px rgba(13, 13, 15, 0.18);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--soft { background: var(--paper-2); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: 0.01em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
  position: relative;
  padding-left: 38px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 28px; height: 1px; background: var(--gold);
}
.eyebrow--light { color: var(--gold-soft); }
.eyebrow--light::before { background: var(--gold-soft); }

.section__title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  color: var(--ink);
  margin-bottom: 8px;
}
.section__title--light { color: var(--white); }

.section__head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__lead { font-size: 1.08rem; color: var(--text-soft); margin-top: 14px; }
.section--dark .section__lead { color: var(--text-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 17px; height: 17px; fill: currentColor; }
.btn--lg { padding: 17px 36px; font-size: 0.86rem; }

.btn--gold { background: var(--gold-grad); color: var(--ink); box-shadow: 0 10px 26px rgba(169, 134, 60, 0.32); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(169, 134, 60, 0.42); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: var(--white); color: var(--ink); transform: translateY(-3px); }

.btn--facebook { background: var(--fb); color: #fff; box-shadow: 0 10px 26px rgba(24, 119, 242, 0.32); }
.btn--facebook:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(24, 119, 242, 0.42); }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: var(--text-light); font-size: 0.78rem; letter-spacing: 0.04em; }
.topbar__inner { display: flex; align-items: center; gap: 14px; padding-block: 9px; flex-wrap: wrap; }
.topbar__divider { color: var(--gold); }
.topbar__phone { margin-left: auto; color: var(--gold-soft); font-weight: 500; letter-spacing: 0.08em; }
.topbar__phone:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 245, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-sm); background: rgba(251, 249, 245, 0.96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; gap: 18px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-size: 1.34rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.brand__sub { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 0.84rem; font-weight: 400; letter-spacing: 0.08em; color: var(--text);
  position: relative; padding: 4px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 92vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13,13,15,0.92) 0%, rgba(13,13,15,0.66) 42%, rgba(13,13,15,0.22) 100%),
    linear-gradient(0deg, rgba(13,13,15,0.55), rgba(13,13,15,0));
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 660px; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5rem); margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.hero__title { background: none; }
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.32rem); color: var(--text-light); max-width: 520px; margin-bottom: 36px; font-weight: 300; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; }
.hero__scroll span { display: block; width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 12px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; background: var(--gold-soft); border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* ---------- Trust strip ---------- */
.strip { background: var(--ink-soft); color: #fff; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 30px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 4px; }
.strip__item:last-child { border-right: 0; }
.strip__label { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-soft); font-weight: 600; }
.strip__desc { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__media { position: relative; }
.about__img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.about__media::before {
  content: ""; position: absolute; inset: -16px -16px 32px 32px; border: 1px solid var(--gold);
  border-radius: var(--radius-lg); z-index: -1; opacity: 0.6;
}
.about__content p { margin-bottom: 16px; color: var(--text-soft); }
.about__list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.about__list li { display: flex; align-items: center; gap: 12px; font-weight: 400; color: var(--text); }

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.icon--gold { fill: var(--gold-deep); }

/* ---------- Treatments ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--ink-soft); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 38px 32px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: rgba(196,160,82,0.4); box-shadow: var(--shadow-lg); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 22px;
  background: radial-gradient(circle at 30% 30%, rgba(231,214,166,0.18), rgba(196,160,82,0.06));
  border: 1px solid rgba(196,160,82,0.35);
}
.card__icon svg { width: 30px; height: 30px; fill: var(--gold-soft); }
.card__title { font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.card__text { font-size: 0.96rem; color: var(--text-light); font-weight: 300; }
.card--cta { background: var(--gold-grad); border: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.card--cta .card__title { color: var(--ink); }
.card--cta .card__text { color: rgba(13,13,15,0.78); margin-bottom: 22px; }
.card--cta::after { display: none; }
.card--cta .btn--gold { background: var(--ink); color: #fff; box-shadow: none; }
.card--cta .btn--gold:hover { background: var(--ink-2); }

/* ---------- Practice ---------- */
.practice-feature {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.practice-feature__media {
  min-height: clamp(340px, 38vw, 520px); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.practice-feature__media img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.practice-feature__content {
  max-width: 560px; padding-block: 18px;
}
.practice-feature__content h3 {
  margin: 10px 0 18px; font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; color: var(--ink);
}
.practice-feature__content p {
  font-size: 1.06rem; line-height: 1.85; color: var(--text); font-weight: 300;
}
.practice-feature__content p + p { margin-top: 16px; }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 28px; position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.why__card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.why__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-size: 2.2rem; color: var(--paper-2); font-weight: 700; }
.why__icon { width: 46px; height: 46px; fill: var(--gold-deep); margin-bottom: 20px; }
.why__title { font-size: 1.42rem; color: var(--ink); margin-bottom: 8px; }
.why__text { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: stretch; }
.contact__details { list-style: none; margin: 36px 0; display: grid; gap: 26px; }
.contact__details li { display: flex; gap: 16px; }
.contact__details .icon { width: 24px; height: 24px; margin-top: 4px; }
.contact__label { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px; }
.contact__value { color: #fff; font-weight: 300; }
.contact__value--link { color: var(--gold-soft); font-size: 1.3rem; font-family: var(--font-display); }
.contact__value--link:hover { color: #fff; }
.contact__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.1); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; filter: grayscale(0.3) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--text-light); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: clamp(50px, 6vw, 80px); }
.footer__logo { width: 70px; height: 70px; object-fit: contain; margin-bottom: 14px; }
.footer__tagline { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-soft); font-style: italic; }
.footer__heading { font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 500; }
.footer__col p { margin-bottom: 12px; font-size: 0.94rem; line-height: 1.7; }
.footer__col a:hover { color: var(--gold-soft); }
.footer__links { list-style: none; display: grid; gap: 10px; }
.footer__links a:hover { color: var(--gold-soft); }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.08); }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 22px; font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ---------- Mobile sticky call bar ---------- */
.callbar {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  align-items: center; justify-content: center; gap: 10px;
  background: var(--gold-grad); color: var(--ink); font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 0.84rem; padding: 15px; border-radius: 100px;
  box-shadow: 0 12px 30px rgba(13,13,15,0.35);
}
.callbar .icon { width: 18px; height: 18px; fill: currentColor; }

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

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1024px) {
  .cards, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin-inline: auto; }
  .practice-feature { grid-template-columns: 1fr; }
  .practice-feature__media { min-height: 420px; }
  .practice-feature__content { max-width: 680px; }
}

@media (max-width: 820px) {
  .topbar__inner { justify-content: center; }
  .topbar__item:nth-child(3), .topbar__divider { display: none; }
  .topbar__phone { margin-left: 0; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82%, 340px); height: 100vh;
    flex-direction: column; align-items: flex-start; gap: 8px;
    background: var(--paper); padding: 100px 32px 40px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .45s var(--ease); z-index: 95;
  }
  .nav.open { transform: translateX(0); }
  .nav__link { font-size: 1.1rem; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 16px; width: 100%; }
  .nav-toggle { display: flex; z-index: 96; }

  .contact__grid { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(2) { border-right: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .callbar { display: flex; }
  body { padding-bottom: 70px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .cards, .why__grid { grid-template-columns: 1fr; }
  .practice-feature__media { min-height: 280px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.1rem; }
  .brand__logo { width: 44px; height: 44px; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__img { transform: none; }
}
