/*
Theme Name:  Sparkle Smiles
Theme URI:   https://sparklesmiles.com
Author:      Sparkle Smiles Studio
Author URI:  https://sparklesmiles.com
Description: A joyful, vibrant pediatric dentistry WordPress theme. Fun, animated, and built to delight kids and reassure parents. Fully responsive with scroll animations, floating bubbles, and a warm ocean-coral-sunshine palette.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sparkle-smiles
Tags:        medical, health, kids, dentist, colorful, animated, one-page, responsive
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --sky:      #E0F7FF;
  --mint:     #B8F0D8;
  --coral:    #FF6B6B;
  --sun:      #FFD166;
  --ocean:    #06A8C4;
  --deep:     #0A3D55;
  --lavender: #C9B8FF;
  --white:    #FFFFFF;
  --soft:     #F7FBFF;
  --text:     #1A2E3B;
  --muted:    #5A7A8A;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand {
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.5px;
}

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

/* ============================================================
   FLOATING BUBBLES BACKGROUND
   ============================================================ */
.bubbles-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(110vh) scale(0.8); opacity: 0.04; }
  50%  { opacity: 0.1; }
  100% { transform: translateY(-20vh) scale(1.1); opacity: 0; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--sky);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  box-shadow: 0 4px 24px rgba(6,168,196,0.08);
}

.brand {
  font-size: 1.7rem;
  color: var(--ocean);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-icon {
  width: 42px; height: 42px;
  background: var(--sun);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 3px 12px rgba(255,209,102,0.5);
  animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble {
  0%,100% { transform: rotate(-5deg) scale(1); }
  50%      { transform: rotate(5deg) scale(1.08); }
}

/* WordPress nav menu */
.main-navigation { display: flex; align-items: center; }
.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.main-navigation ul li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}
.main-navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 3px;
  background: var(--coral);
  border-radius: 2px;
  transition: width 0.3s;
}
.main-navigation ul li a:hover { color: var(--ocean); }
.main-navigation ul li a:hover::after { width: 100%; }

.nav-cta {
  background: var(--coral) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(255,107,107,0.35);
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(255,107,107,0.45) !important;
}
.nav-cta::after { display: none !important; }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ocean);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--ocean);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  background: linear-gradient(135deg, #E8F9FF 0%, #FFF7E6 55%, #F0FFF8 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 60px 7% 0;
  overflow: hidden;
}
.hero-waves {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 120px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lavender);
  color: var(--deep);
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 20px;
  animation: fadeSlideIn 0.6s ease both;
}
.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.1;
  color: var(--deep);
  margin-bottom: 20px;
  animation: fadeSlideIn 0.7s ease both;
  animation-delay: 0.1s;
}
.hero h1 span { color: var(--coral); position: relative; display: inline-block; }
.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 8px;
  background: var(--sun);
  border-radius: 4px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineReveal 0.6s ease 0.8s both;
}
@keyframes underlineReveal { to { transform: scaleX(1); } }

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 600;
  animation: fadeSlideIn 0.7s ease both;
  animation-delay: 0.2s;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeSlideIn 0.7s ease both;
  animation-delay: 0.3s;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeSlideIn 0.8s ease both;
  animation-delay: 0.2s;
}
.hero-blob {
  width: 420px; height: 420px;
  background: radial-gradient(circle at 40% 40%, var(--ocean) 0%, #0ABFE0 60%, var(--mint) 100%);
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: morphBlob 8s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(6,168,196,0.3);
}
@keyframes morphBlob {
  0%,100% { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
  33%      { border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%; }
  66%      { border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%; }
}
.hero-tooth {
  font-size: 9rem;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
  animation: floatTooth 4s ease-in-out infinite;
  user-select: none;
}
@keyframes floatTooth {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-18px) rotate(5deg); }
}
.hero-float-badge {
  position: absolute;
  background: var(--white);
  border-radius: 20px;
  padding: 12px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  animation: floatBadge 3s ease-in-out infinite;
}
.hero-float-badge:nth-child(2) { top: 15%; right: -30px; animation-delay: 0.5s; }
.hero-float-badge:nth-child(3) { bottom: 18%; left: -40px; animation-delay: 1s; }
@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--coral);
  color: var(--white);
  padding: 15px 32px;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(255,107,107,0.4);
  transition: all 0.25s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255,107,107,0.5); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--ocean);
  padding: 15px 32px;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  border: 3px solid var(--ocean);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-secondary:hover { background: var(--ocean); color: var(--white); transform: translateY(-3px); }

.btn-dark {
  background: var(--deep);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(10,61,85,0.3);
  transition: all 0.25s;
}
.btn-dark:hover { transform: translateY(-3px); background: var(--ocean); color: var(--white); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--deep);
  padding: 22px 7%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--white); }
.trust-item .icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.trust-item h4 { font-family: 'Fredoka One', cursive; font-size: 1.2rem; }
.trust-item p  { font-size: 0.82rem; opacity: 0.7; font-weight: 600; }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
section { position: relative; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--ocean);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 24px; height: 3px;
  background: var(--coral);
  border-radius: 2px;
}
.section-title { font-size: clamp(2rem, 3.5vw, 3rem); color: var(--deep); margin-bottom: 16px; }
.section-sub   { font-size: 1.05rem; color: var(--muted); line-height: 1.7; font-weight: 600; max-width: 560px; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services         { padding: 100px 7%; background: var(--soft); }
.services-header  { text-align: center; margin-bottom: 64px; }
.services-header .section-sub { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  border: 3px solid transparent;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--card-color, var(--ocean));
}
.service-card:hover {
  border-color: var(--card-color, var(--ocean));
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.service-icon {
  width: 80px; height: 80px;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
  background: color-mix(in srgb, var(--card-color, var(--ocean)) 15%, transparent);
}
.service-card h3  { font-size: 1.3rem; color: var(--deep); margin-bottom: 10px; }
.service-card p   { font-size: 0.93rem; color: var(--muted); line-height: 1.6; font-weight: 600; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  color: var(--card-color, var(--ocean));
  font-weight: 800; font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s;
}
.service-link:hover { gap: 10px; color: var(--card-color, var(--ocean)); }

/* ============================================================
   WHY US SECTION
   ============================================================ */
.why-us {
  padding: 100px 7%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--white);
}
.why-main-card {
  background: linear-gradient(135deg, var(--ocean), #0ABFE0);
  border-radius: 40px;
  padding: 50px 40px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.why-main-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.why-main-card .big-emoji { font-size: 4rem; display: block; margin-bottom: 16px; }
.why-main-card h3 { font-size: 2rem; margin-bottom: 8px; }
.why-main-card p  { opacity: 0.85; font-weight: 600; font-size: 0.95rem; }

.why-mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.why-mini {
  background: var(--soft);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  border: 2px solid var(--sky);
}
.why-mini .emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.why-mini h4 { font-size: 1rem; color: var(--deep); }
.why-mini p  { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

.why-content .section-sub { margin-bottom: 36px; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.why-list li { display: flex; align-items: flex-start; gap: 16px; }
.why-check {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--mint);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.why-list h4 { font-size: 1rem; color: var(--deep); margin-bottom: 4px; }
.why-list p  { font-size: 0.88rem; color: var(--muted); font-weight: 600; line-height: 1.5; }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--sun);
  padding: 70px 7%;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '⭐';
  position: absolute;
  font-size: 20rem;
  opacity: 0.06;
  top: -50px; right: -30px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num   { font-family: 'Fredoka One', cursive; font-size: clamp(2.5rem, 4vw, 3.5rem); color: var(--deep); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.95rem; color: var(--deep); opacity: 0.75; font-weight: 700; }

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team            { padding: 100px 7%; background: var(--soft); }
.team-header     { text-align: center; margin-bottom: 64px; }
.team-grid       { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.team-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.team-avatar { height: 220px; display: flex; align-items: center; justify-content: center; font-size: 6rem; }
.team-info        { padding: 24px; }
.team-info h3     { font-size: 1.3rem; color: var(--deep); margin-bottom: 4px; }
.team-info .role  { font-size: 0.88rem; color: var(--ocean); font-weight: 700; margin-bottom: 12px; display: block; }
.team-info p      { font-size: 0.88rem; color: var(--muted); line-height: 1.6; font-weight: 600; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 100px 7%;
  background: linear-gradient(135deg, var(--deep) 0%, #0A5276 100%);
  overflow: hidden;
  position: relative;
}
.testimonials::before { content: '💬'; position: absolute; font-size: 18rem; opacity: 0.05; bottom: -40px; left: -30px; }
.testimonials .section-label { color: var(--sun); }
.testimonials .section-title { color: var(--white); }

.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; margin-top: 52px; }
.testi-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 32px;
  transition: background 0.3s;
}
.testi-card:hover { background: rgba(255,255,255,0.1); }
.stars            { font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 3px; }
.testi-card blockquote { font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.7; font-weight: 600; margin-bottom: 24px; font-style: italic; }
.testi-author     { display: flex; align-items: center; gap: 14px; }
.testi-avatar     { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: rgba(255,255,255,0.1); }
.testi-author h5  { color: var(--white); font-size: 0.95rem; }
.testi-author span { color: rgba(255,255,255,0.55); font-size: 0.82rem; font-weight: 600; display: block; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { padding: 100px 7%; background: var(--white); text-align: center; }
.cta-inner {
  background: linear-gradient(135deg, #FFF3CD 0%, #FFE8E8 50%, #E0F7FF 100%);
  border-radius: 40px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--sun);
}
.cta-inner::before { content: '🦷'; position: absolute; font-size: 10rem; top: -20px; left: -10px; opacity: 0.1; }
.cta-inner::after  { content: '✨'; position: absolute; font-size: 8rem; bottom: -20px; right: -10px; opacity: 0.12; }
.cta-inner h2  { font-size: clamp(2rem, 4vw, 3rem); color: var(--deep); margin-bottom: 16px; }
.cta-inner p   { font-size: 1.1rem; color: var(--muted); font-weight: 600; margin-bottom: 36px; }
.cta-buttons   { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--deep); color: var(--white); padding: 70px 7% 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand       { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-name  { font-family: 'Fredoka One', cursive; font-size: 1.5rem; color: var(--sun); }
.footer-brand-icon  { width: 36px; height: 36px; background: var(--sun); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

.site-footer p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; font-weight: 600; }
.footer-col h4 { font-family: 'Fredoka One', cursive; font-size: 1.1rem; color: var(--sun); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; font-weight: 600; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--sun); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-item span:first-child { font-size: 1.1rem; margin-top: 2px; }
.footer-contact-item span:last-child  { font-size: 0.9rem; color: rgba(255,255,255,0.65); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

.social-row { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  color: white;
  text-decoration: none;
}
.social-btn:hover { background: var(--ocean); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   WORDPRESS DEFAULT STYLES (kept for compatibility)
   ============================================================ */
.wp-block-image img { border-radius: 12px; }
.alignnone  { margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 0 auto 20px; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft  { float: left;  margin: 5px 20px 20px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 50px 6% 80px; text-align: center; }
  .hero p { margin: 0 auto 36px; }
  .hero-visual { margin-top: 40px; }
  .hero-blob   { width: 280px; height: 280px; }
  .hero-tooth  { font-size: 5.5rem; }
  .hero-float-badge:nth-child(2) { display: none; }
  .hero-float-badge:nth-child(3) { left: -10px; }

  .menu-toggle { display: block; }
  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 5%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .main-navigation ul.toggled { display: flex; }

  .why-us      { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner   { padding: 50px 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
