/*
Theme Name: Rathod Dental Care
Theme URI: https://rathoddental.com
Author: Rathod Dental Care
Author URI: https://rathoddental.com
Description: A clean, modern, and professional WordPress theme for Rathod Dental Care clinic. Features hero section, services, testimonials, appointment form, gallery, and contact sections.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rathod-dental
Tags: dental, clinic, medical, blue, white, one-page, responsive
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --blue-deep: #0a3d6b;
  --blue-mid:  #1565c0;
  --blue-sky:  #e8f1fb;
  --accent:    #2196f3;
  --accent2:   #00bcd4;
  --white:     #ffffff;
  --off-white: #f7fafd;
  --text:      #1a2a3a;
  --muted:     #5b7a99;
  --border:    #d6e6f7;
  --shadow:    0 4px 32px rgba(10,61,107,.10);
  --radius:    14px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.rdc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
  box-shadow: 0 2px 20px rgba(10,61,107,.07);
  transition: box-shadow .3s;
}
.rdc-nav.scrolled { box-shadow: 0 4px 24px rgba(10,61,107,.13); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--blue-mid), var(--accent2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-logo-icon svg { width: 22px; height: 22px; fill: white; }
.nav-brand { font-family: 'Playfair Display', serif; font-size: 1.18rem; color: var(--blue-deep); line-height: 1.1; }
.nav-brand span { font-family: 'DM Sans', sans-serif; font-size: .72rem; color: var(--muted); font-weight: 400; display: block; letter-spacing: .03em; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text); transition: color .2s; }
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-cta { background: linear-gradient(135deg, var(--blue-mid), var(--accent2)); color: white !important; padding: .5rem 1.25rem; border-radius: 30px; font-size: .88rem; font-weight: 600; transition: opacity .2s, transform .2s; white-space: nowrap; }
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue-deep); border-radius: 2px; transition: .3s; }
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: white; padding: 1.5rem 5vw; border-bottom: 1px solid var(--border);
  z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.2rem; }
.mobile-menu a { font-size: .95rem; font-weight: 500; color: var(--text); }
.mobile-menu a:hover { color: var(--accent); }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.rdc-section { padding: 90px 5vw; }
.section-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; display: block; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); color: var(--blue-deep); margin-bottom: 1rem; }
.section-sub { font-size: 1rem; color: var(--muted); max-width: 540px; line-height: 1.7; margin-bottom: 3rem; }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }
.divider { width: 48px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 2px; margin: 1rem 0 1.5rem; }
.section-center .divider { margin-left: auto; margin-right: auto; }

/* ============================================================
   HERO
   ============================================================ */
.rdc-hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #0a3d6b 0%, #1565c0 55%, #00bcd4 100%);
  display: flex; align-items: center;
  padding: 100px 5vw 60px;
  position: relative; overflow: hidden;
}
.rdc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-blob {
  position: absolute; right: -80px; bottom: -60px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,255,255,.09) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); color: white; padding: .35rem 1rem; border-radius: 30px; font-size: .8rem; font-weight: 500; margin-bottom: 1.5rem; letter-spacing: .04em; }
.hero-badge svg { width: 14px; height: 14px; fill: var(--accent2); }
.rdc-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: white; line-height: 1.18; margin-bottom: 1.2rem; }
.rdc-hero h1 em { font-style: normal; color: #81d4fa; }
.rdc-hero p { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 480px; line-height: 1.7; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: white; color: var(--blue-mid); padding: .85rem 2rem; border-radius: 40px; font-weight: 600; font-size: .97rem; box-shadow: 0 4px 20px rgba(0,0,0,.2); transition: transform .2s, box-shadow .2s; display: inline-block; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.25); color: var(--blue-mid); }
.btn-outline { border: 2px solid rgba(255,255,255,.6); color: white !important; padding: .82rem 1.8rem; border-radius: 40px; font-weight: 600; font-size: .97rem; transition: background .2s; display: inline-block; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.stat { color: white; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.hero-visual { position: absolute; right: 5vw; top: 50%; transform: translateY(-50%); }
.tooth-graphic { width: 340px; height: 340px; position: relative; }
.tooth-circle { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); animation: rotateSlow 20s linear infinite; }
.tooth-circle::before { content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: rgba(255,255,255,.4); border-radius: 50%; transform: translateX(-50%); }
.tooth-inner { position: absolute; inset: 30px; background: rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.tooth-svg { width: 140px; height: 140px; fill: white; opacity: .9; filter: drop-shadow(0 8px 24px rgba(0,0,0,.2)); }
@keyframes rotateSlow { to { transform: rotate(360deg); } }

/* ============================================================
   ABOUT
   ============================================================ */
.rdc-about { background: var(--off-white); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-box { border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, var(--blue-sky), #e0f7fa); height: 420px; display: flex; align-items: center; justify-content: center; }
.about-img-box img { width: 100%; height: 100%; object-fit: cover; }
.about-img-box svg { width: 180px; height: 180px; opacity: .18; }
.about-badge-box { position: absolute; bottom: 28px; left: -20px; background: white; border-radius: 14px; padding: 1rem 1.4rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.about-badge-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--blue-mid), var(--accent2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about-badge-icon svg { width: 22px; height: 22px; fill: white; }
.about-badge-text { font-size: .85rem; }
.about-badge-text strong { display: block; color: var(--blue-deep); font-weight: 600; }
.about-badge-text span { color: var(--muted); font-size: .78rem; }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1.2rem; font-size: .97rem; }
.about-perks { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.5rem; }
.perk { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text); }
.perk-dot { width: 8px; height: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.rdc-services { background: white; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.service-card { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-mid), var(--accent2)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--blue-sky), #e0f7fa); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.service-icon svg { width: 26px; height: 26px; fill: var(--blue-mid); }
.service-card h3 { font-size: 1.1rem; color: var(--blue-deep); margin-bottom: .6rem; }
.service-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.rdc-why { background: linear-gradient(160deg, #0a3d6b 0%, #1565c0 100%); }
.rdc-why .section-label { color: #81d4fa; }
.rdc-why .section-title { color: white; }
.rdc-why .section-sub { color: rgba(255,255,255,.7); }
.rdc-why .divider { background: linear-gradient(90deg, #81d4fa, #00bcd4); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.why-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.8rem; transition: background .25s; }
.why-card:hover { background: rgba(255,255,255,.14); }
.why-icon { width: 50px; height: 50px; background: rgba(255,255,255,.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.why-icon svg { width: 26px; height: 26px; fill: #81d4fa; }
.why-card h3 { color: white; font-size: 1.05rem; margin-bottom: .5rem; }
.why-card p { color: rgba(255,255,255,.68); font-size: .88rem; line-height: 1.65; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.rdc-testimonials { background: var(--off-white); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.testi-card { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: 0 2px 16px rgba(10,61,107,.07); border: 1px solid var(--border); position: relative; }
.testi-stars { display: flex; gap: 4px; margin-bottom: 1rem; }
.testi-stars span { color: #f9a825; font-size: 1rem; }
.testi-text { font-size: .92rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.4rem; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-mid), var(--accent2)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.testi-name { font-weight: 600; color: var(--blue-deep); font-size: .9rem; }
.testi-role { font-size: .78rem; color: var(--muted); }
.quote-mark { position: absolute; top: 1.5rem; right: 1.8rem; font-family: 'Playfair Display', serif; font-size: 4rem; color: var(--blue-sky); line-height: 1; pointer-events: none; }

/* ============================================================
   APPOINTMENT
   ============================================================ */
.rdc-appointment { background: white; }
.appt-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.appt-form { background: var(--off-white); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; }
.appt-form h3 { font-size: 1.4rem; color: var(--blue-deep); margin-bottom: 1.8rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .83rem; font-weight: 500; color: var(--text); margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: .92rem; color: var(--text); background: white; transition: border-color .2s, box-shadow .2s; outline: none; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(33,150,243,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit { width: 100%; background: linear-gradient(135deg, var(--blue-mid), var(--accent2)); color: white; border: none; padding: 1rem; border-radius: 10px; font-weight: 600; font-size: .97rem; cursor: pointer; transition: opacity .2s, transform .2s; margin-top: .5rem; font-family: 'DM Sans', sans-serif; }
.btn-submit:hover { opacity: .9; transform: translateY(-1px); }
.whatsapp-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #25d366; color: white !important; border-radius: 10px; padding: 1rem; font-weight: 600; font-size: .97rem; margin-top: 1rem; transition: opacity .2s; }
.whatsapp-btn:hover { opacity: .88; }
.whatsapp-btn svg { width: 22px; height: 22px; fill: white; }
.appt-info p { color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }
.timing-card { background: var(--off-white); border-radius: 14px; padding: 1.5rem; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.timing-card h4 { color: var(--blue-deep); margin-bottom: .9rem; font-size: 1rem; }
.timing-row { display: flex; justify-content: space-between; font-size: .88rem; padding: .4rem 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.timing-row:last-child { border-bottom: none; }
.timing-row span:last-child { color: var(--text); font-weight: 500; }
.appt-emergency { font-size: .88rem; color: var(--muted); }
.appt-emergency a { color: var(--accent); font-weight: 600; }
.form-success { display: none; background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; border-radius: 10px; padding: 1rem; margin-top: 1rem; font-size: .92rem; text-align: center; }

/* ============================================================
   GALLERY
   ============================================================ */
.rdc-gallery { background: var(--off-white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--blue-sky), #e0f7fa); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; position: relative; transition: transform .3s; cursor: pointer; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item svg { width: 60px; height: 60px; fill: var(--blue-mid); opacity: .2; }
.gallery-label { position: absolute; bottom: 14px; left: 14px; background: rgba(10,61,107,.75); color: white; font-size: .78rem; font-weight: 500; padding: .3rem .75rem; border-radius: 20px; }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #e0f7fa, #e8f5e9); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, #fce4ec, var(--blue-sky)); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, #f3e5f5, #e3f2fd); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #e8f5e9, #e0f7fa); }
.gallery-item:nth-child(6) { background: linear-gradient(135deg, var(--blue-sky), #f3e5f5); }

/* ============================================================
   CONTACT
   ============================================================ */
.rdc-contact { background: white; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.contact-info p { color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item-icon { width: 44px; height: 44px; background: var(--blue-sky); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 20px; height: 20px; fill: var(--blue-mid); }
.contact-item-text { font-size: .9rem; }
.contact-item-text strong { display: block; color: var(--blue-deep); font-weight: 600; margin-bottom: 2px; }
.contact-item-text span, .contact-item-text a { color: var(--muted); line-height: 1.5; }
.contact-item-text a:hover { color: var(--accent); }
.map-box { border-radius: 18px; overflow: hidden; height: 360px; border: 1px solid var(--border); }
.map-box iframe { width: 100%; height: 100%; border: none; }
.map-placeholder { width: 100%; height: 100%; background: var(--blue-sky); display: flex; align-items: center; justify-content: center; }
.map-placeholder-inner { text-align: center; color: var(--muted); }
.map-placeholder-inner svg { width: 56px; height: 56px; fill: var(--blue-mid); opacity: .3; margin: 0 auto 12px; }
.map-placeholder-inner p { font-size: .88rem; }
.map-open-btn { display: inline-block; margin-top: 14px; background: var(--blue-mid); color: white !important; padding: .5rem 1.2rem; border-radius: 20px; font-size: .85rem; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.rdc-footer { background: var(--blue-deep); color: white; padding: 60px 5vw 30px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 3rem; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-logo-icon svg { width: 20px; height: 20px; fill: white; }
.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.75; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 38px; height: 38px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.social-link:hover { background: rgba(255,255,255,.2); }
.social-link svg { width: 18px; height: 18px; fill: white; }
.footer-col h4 { font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 1.2rem; color: white; }
.footer-nav-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav-links a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-nav-links a:hover { color: white; }
.footer-timing { display: flex; flex-direction: column; gap: .5rem; }
.ft-row { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: .2rem; }
.ft-row span { color: white; font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 8px; }

/* ============================================================
   SCROLL FADE-UP ANIMATION
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
}
@media (max-width: 900px) {
  .about-inner,
  .appt-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .rdc-section { padding: 60px 5vw; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-badge-box { left: 10px; }
  .hero-stats { gap: 1.5rem; }
}
@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WORDPRESS ADMIN BAR OFFSET
   ============================================================ */
.admin-bar .rdc-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .rdc-nav { top: 46px; }
}
