/* ============================================
   smileshuffl.live — Modern Dental Studio
   Palette: soft porcelain, muted teal, warm sand
   ============================================ */

:root {
  --bg: #f7f5f1;
  --bg-soft: #efece5;
  --surface: #ffffff;
  --ink: #1f2a2e;
  --ink-soft: #4f5d61;
  --ink-muted: #8a9498;
  --line: #e6e2d8;
  --accent: #4a8a86;
  --accent-deep: #2e615e;
  --accent-soft: #d6e7e3;
  --sand: #e8dec8;
  --cream: #faf7f0;
  --shadow-sm: 0 2px 8px rgba(31, 42, 46, 0.04);
  --shadow-md: 0 12px 32px rgba(31, 42, 46, 0.07);
  --shadow-lg: 0 24px 60px rgba(31, 42, 46, 0.1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--accent-deep); }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }

h1 em, h2 em { font-style: italic; color: var(--accent-deep); font-weight: 400; }

p { color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.4rem;
}
.eyebrow.light { color: var(--accent-soft); }

.lede {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 620px;
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--accent-deep);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--cream);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 241, 0.95);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 32px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 50%;
}
.logo-text { letter-spacing: -0.01em; }
.logo-dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.93rem;
  color: var(--ink-soft);
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-deep);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-cta { font-size: 0.88rem; padding: 0.7rem 1.4rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 2rem 32px;
  gap: 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.1rem; color: var(--ink); }
.mobile-menu .btn { align-self: flex-start; }

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 140px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}
.orb-1 {
  width: 400px; height: 400px;
  background: var(--accent-soft);
  top: -100px; right: -80px;
}
.orb-2 {
  width: 350px; height: 350px;
  background: var(--sand);
  bottom: -100px; left: -100px;
  animation-delay: -5s;
}
.orb-3 {
  width: 250px; height: 250px;
  background: var(--accent-soft);
  top: 40%; left: 50%;
  opacity: 0.3;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 1.6rem; }
.hero-copy .lede { margin-bottom: 2.4rem; }

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
}
.hero-meta span {
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.hero-visual { position: relative; }
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}
.hero-image-wrap img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.floating-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.card-rating {
  bottom: 40px;
  left: -30px;
  max-width: 280px;
}
.rating-stars { color: #d4a84b; margin-bottom: 0.5rem; font-size: 0.9rem; }
.card-rating p { font-size: 0.88rem; color: var(--ink); margin-bottom: 0.5rem; line-height: 1.5; }
.card-rating span { font-size: 0.78rem; color: var(--ink-muted); }

.card-stat {
  top: 30px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation-delay: -3s;
}
.card-stat .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 4px rgba(76,175,80,0.2);
}
.card-stat strong { display: block; font-size: 0.88rem; color: var(--ink); }
.card-stat span { font-size: 0.78rem; color: var(--ink-muted); }

/* Trust */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.4rem;
}
.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
}

/* Sections */
section { padding: 120px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}
.section-head h2 { margin-bottom: 1.2rem; }
.section-head p { font-size: 1.05rem; }

/* Services */
.services { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: all 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.service-card h3 { margin-bottom: 0.6rem; }

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-visual img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.why-list {
  list-style: none;
  margin-top: 2rem;
}
.why-list li {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list h4 { margin-bottom: 0.4rem; }

/* Gallery */
.gallery { background: var(--bg-soft); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-grid figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.06); }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-grid blockquote {
  background: var(--surface);
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.testimonial-grid p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.testimonial-grid footer strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}
.testimonial-grid footer span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* CTA Banner */
.cta-banner {
  padding: 100px 0;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--accent-deep);
  filter: blur(120px);
  opacity: 0.4;
  top: -200px; right: -100px;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-inner h2 { color: var(--cream); }
.cta-inner h2 em { color: var(--accent-soft); }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.92rem;
  max-width: 280px;
}
.site-footer h5 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 600;
}
.site-footer p, .site-footer a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Page hero */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.page-hero h1 {
  max-width: 900px;
  margin: 0 auto 1.4rem;
}
.page-hero .lede {
  margin: 0 auto;
}

/* About */
.about-story { padding-top: 60px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-grid img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.about-grid p { margin-bottom: 1.2rem; }

.values { background: var(--bg-soft); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--surface);
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
}
.value-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-card { text-align: left; }
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}
.team-card h4 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; margin-bottom: 0.2rem; }
.team-card span { font-size: 0.85rem; color: var(--ink-muted); }

/* Services detail */
.services-detail { padding-top: 40px; }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
}
.service-row.reverse .service-row-img { order: 2; }
.service-row-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.service-row-copy h2 { margin-bottom: 1.2rem; }
.check-list {
  list-style: none;
  margin-top: 1.6rem;
}
.check-list li {
  padding: 0.7rem 0;
  padding-left: 1.8rem;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent-deep);
}

/* Contact */
.contact-section { padding-top: 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}
.contact-form {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button { align-self: flex-start; margin-top: 0.5rem; }
.form-note { font-size: 0.88rem; color: var(--accent-deep); }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.info-card {
  background: var(--bg-soft);
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.info-card h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.info-card p, .info-card a { color: var(--ink); font-size: 0.98rem; }

.map-section { padding-top: 40px; }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}

/* Legal */
.legal-section { padding-top: 40px; }
.legal-wrap {
  max-width: 820px;
}
.legal {
  background: var(--surface);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.legal h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.8rem;
}
.legal h2:first-of-type { margin-top: 1.2rem; }
.legal p { margin-bottom: 1rem; }
.legal .muted { color: var(--ink-muted); font-size: 0.85rem; font-style: italic; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  section { padding: 80px 0; }
  .hero { padding: 60px 0 100px; }
  .hero-grid, .why-grid, .about-grid, .service-row, .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .service-row.reverse .service-row-img { order: 0; }
  .services-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .values-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-image-wrap img, .why-visual img, .about-grid img { height: 480px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  .nav-wrap { padding: 1rem 20px; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 1.6rem; }
  .floating-card { display: none; }
  .hero-image-wrap img { height: 380px; border-radius: var(--radius-lg); }
  .services-grid, .testimonial-grid, .values-grid, .team-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form, .legal { padding: 2rem; }
  .section-head { margin-bottom: 50px; }
}