/* ============================================
   SURREY DENTAL STUDIO - CLINOVA INSPIRED
   Shared stylesheet across all pages
   ============================================ */

:root {
  --bg: #f5f1ea;
  --bg-cream: #ede6d9;
  --bg-white: #fdfbf7;
  --ink: #1a1a1a;
  --ink-soft: #4a4a48;
  --ink-mute: #8a8782;
  --sage: #3d4a3c;
  --sage-soft: #556653;
  --terracotta: #c67c5f;
  --gold: #b8935a;
  --line: rgba(26, 26, 26, 0.08);
  --line-strong: rgba(26, 26, 26, 0.15);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ============ NAVIGATION ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(245, 241, 234, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

nav.scrolled {
  padding: 14px 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 234, 0.95);
}

.logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sage);
}

.logo-mark {
  width: 34px; height: 34px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 16px;
}

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--sage);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--sage);
  color: var(--bg);
  padding: 14px 26px;
  border: none;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.2);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-toggle span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s;
}

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--sage);
  color: var(--bg);
  padding: 18px 36px;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--ink);
  gap: 18px;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(61, 74, 60, 0.25);
}

.btn-ghost {
  color: var(--ink);
  padding: 18px 28px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ============ SECTION BASICS ============ */
.section { padding: 120px 48px; position: relative; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 24px;
}

.section-eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--sage);
  opacity: 0.4;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 900px;
}

.section-title em { font-style: italic; color: var(--sage); }

.section-header {
  max-width: 1400px;
  margin: 0 auto 80px;
}

.section-header-center {
  text-align: center;
  margin: 0 auto 80px;
  max-width: 800px;
}

.section-header-center .section-eyebrow::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--sage);
  opacity: 0.4;
}

.section-header-center .section-title { margin: 0 auto; }

.section-header-row {
  max-width: 1400px;
  margin: 0 auto 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.section-header-row .section-title { max-width: 640px; }

/* ============ PAGE HERO (sub-pages) ============ */
.page-hero {
  padding: 180px 48px 80px;
  background: var(--sage);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.page-hero-image {
  max-width: 1400px;
  margin: 0 auto;
  height: 460px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.page-hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.page-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(61,74,60,0.4));
}

.page-hero-content {
  position: absolute;
  bottom: 48px;
  left: 48px;
  right: 48px;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bg);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 12px;
  color: var(--bg);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--bg); }
.breadcrumb-sep { color: rgba(255,255,255,0.5); }

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  padding: 32px 0;
  background: var(--sage);
  color: var(--bg);
  white-space: nowrap;
}

.marquee-inner {
  display: inline-block;
  animation: scroll 40s linear infinite;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  font-style: italic;
}

.marquee-inner span { margin: 0 32px; color: var(--bg); }
.marquee-inner .dot { color: var(--gold); margin: 0 16px; }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 48px 40px;
  position: relative;
}

.footer-top {
  max-width: 1400px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--bg);
  margin: 40px 0 32px;
  letter-spacing: -0.02em;
}

.footer-tagline em { color: var(--gold); font-style: italic; }

.footer-brand .logo { color: var(--bg); }
.footer-brand .logo-mark { background: var(--gold); color: var(--ink); }

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  color: var(--gold);
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 14px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-socials { display: flex; gap: 12px; margin-top: 24px; }

.footer-social {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 14px;
  transition: all 0.3s;
}

.footer-social:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-3px);
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ FLOATING WHATSAPP ============ */
.whatsapp-float {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: wa-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .section { padding: 80px 24px; }
  .page-hero { padding: 140px 24px 60px; }
  .page-hero-content { left: 24px; right: 24px; bottom: 32px; }
  .page-hero-image { height: 380px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer { padding: 80px 24px 32px; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .marquee-inner { font-size: 32px; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .page-hero-image { height: 300px; border-radius: 20px; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
}
