/* ==========================================================
   SmileCare Dental Clinic — Premium Theme
   Palette: Luxury White & Blue with a soft gold accent
   Type: Fraunces (display) + Inter (body)
   Signature element: the "Smile Arc" — a recurring curved
   divider/underline motif that echoes a dental arch/smile
   throughout hero, section headers and stat cards.
   ========================================================== */

:root {
    --navy:        #0A2E52;
    --blue:        #1E6FD9;
    --blue-deep:   #144B99;
    --blue-light:  #EAF3FC;
    --ivory:       #FBFCFE;
    --white:       #FFFFFF;
    --gold:        #C9A227;
    --gray-700:    #3A4A5B;
    --gray-500:    #5B6B7A;
    --gray-300:    #AEBBC7;
    --border:      #E3EBF3;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --shadow-soft: 0 10px 40px rgba(10, 46, 82, 0.08);
    --shadow-card: 0 14px 34px rgba(10, 46, 82, 0.10);
    --shadow-hover: 0 22px 50px rgba(10, 46, 82, 0.16);

    --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------- Base ---------------- */
html {
    width: 100%; 
    scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    color: var(--navy);
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

@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;
    }
}

.section-pad { padding: 96px 0; }
@media (max-width: 767.98px) { .section-pad { padding: 64px 0; } }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 14px;
}

.section-lead {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 620px;
}

/* Signature smile-arc underline used beneath key headings */
.smile-underline {
    position: relative;
    display: inline-block;
}
.smile-underline::after {
    content: "";
    position: absolute;
    left: 4px; right: 4px; bottom: -10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M2 2 C 30 14, 90 14, 118 2' stroke='%23C9A227' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------------- Top bar ---------------- */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    padding: 8px 0;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar .topbar-item { display: inline-flex; align-items: center; gap: 8px; margin-right: 24px; }
.topbar .topbar-item i { color: var(--gold); }
.topbar .social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-left: 8px;
    transition: var(--transition);
}
.topbar .social-links a:hover { background: var(--gold); color: var(--navy); }

/* ---------------- Header ---------------- */
.site-header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-soft);
    border-bottom-color: var(--border);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 46px; height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.3rem;
    box-shadow: var(--shadow-card);
}
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--navy);
    line-height: 1.1;
}
.brand-name span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }

.main-nav .nav-link {
    font-weight: 600;
    color: var(--navy);
    padding: 10px 16px !important;
    position: relative;
}
.main-nav .nav-link.active,
.main-nav .nav-link:hover { color: var(--blue); }
.main-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* ---------------- Buttons ---------------- */
.btn-gradient {
    background: linear-gradient(135deg, var(--blue), var(--navy));
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 13px 30px;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(30, 111, 217, 0.35);
    transition: var(--transition);
}
.btn-gradient:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(30, 111, 217, 0.45); color: var(--white); }

.btn-outline-navy {
    border: 2px solid var(--navy);
    color: var(--navy);
    border-radius: 999px;
    padding: 11px 28px;
    font-weight: 600;
    background: transparent;
    transition: var(--transition);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-call {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; color: var(--navy);
}
.btn-call .icon-circle {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--blue-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    background: linear-gradient(180deg, var(--blue-light) 0%, var(--ivory) 70%);
    overflow: hidden;
    padding-top: 90px;
    padding-bottom: 60px;
}
.hero::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,111,217,0.16), transparent 70%);
}
.hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; }
.hero-title em { font-style: normal; color: var(--blue); }
.hero-lead { font-size: 1.1rem; color: var(--gray-500); max-width: 480px; margin: 22px 0 34px; }

.hero-media { position: relative; }
.hero-media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    position: relative; z-index: 2;
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 20px -20px -20px 20px;
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: 1;
}
.hero-badge {
    position: absolute;
    bottom: -28px; left: -28px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: 18px 22px;
    display: flex; align-items: center; gap: 14px;
    z-index: 3;
}
.hero-badge .stars { color: var(--gold); font-size: 0.85rem; }
.hero-trust { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); font-weight: 700; }
.hero-trust .label { font-size: 0.82rem; color: var(--gray-500); }

/* ---------------- Feature / glass cards ---------------- */
.glass-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-md);
    padding: 32px 26px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
}
.glass-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.glass-card .feature-icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-light), #fff);
    color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.glass-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.glass-card p { font-size: 0.92rem; color: var(--gray-500); margin: 0; }

/* ---------------- About preview ---------------- */
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.check-list { list-style: none; padding: 0; margin: 22px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-weight: 500; color: var(--gray-700); }
.check-list i { color: var(--blue); margin-top: 3px; }

/* ---------------- Service cards ---------------- */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }
.service-card .thumb { height: 200px; overflow: hidden; position: relative; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .thumb .price-tag {
    position: absolute; top: 14px; right: 14px;
    background: var(--navy); color: var(--white);
    padding: 6px 14px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
}
.service-card .body { padding: 24px; }
.service-card h4 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; color: var(--gray-500); }
.service-card .service-link { color: var(--blue); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.service-card .service-link i { transition: var(--transition); }
.service-card:hover .service-link i { transform: translateX(4px); }

/* ---------------- Why choose us ---------------- */
.why-choose { background: var(--navy); color: rgba(255,255,255,0.85); position: relative; overflow: hidden; }
.why-choose::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(30,111,217,0.35), transparent 55%);
}
.why-choose h2, .why-choose h3, .why-choose h4 { color: var(--white); }
.why-item { display: flex; gap: 18px; margin-bottom: 30px; }
.why-item .num { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); font-weight: 700; }
.why-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin: 0; }

/* ---------------- Stats / Counter ---------------- */
.stats-strip {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    padding: 44px 20px;
    margin-top: -90px;
    position: relative;
    z-index: 5;
}
.stat-item { text-align: center; }
.stat-item .counter {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--navy);
    font-weight: 700;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}
.stat-item .label { color: var(--gray-500); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

/* ---------------- Testimonials ---------------- */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 34px;
    box-shadow: var(--shadow-card);
    height: 100%;
}
.testimonial-card .stars { color: var(--gold); margin-bottom: 16px; }
.testimonial-card p.quote { font-size: 1.02rem; color: var(--gray-700); font-style: italic; }
.testimonial-card .patient { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial-card .avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--blue-light); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.swiper-pagination-bullet-active { background: var(--gold) !important; }

/* ---------------- News ---------------- */
.news-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition); height: 100%; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.news-card .thumb { height: 190px; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 22px; }
.news-card .date-badge { color: var(--blue); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------------- Map section ---------------- */
.map-wrap iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius-lg); filter: grayscale(15%); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); }
.site-footer h5 { color: var(--white); font-family: var(--font-display); margin-bottom: 20px; }
.site-footer a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.site-footer a:hover { color: var(--gold); }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; font-size: 0.85rem; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    margin-right: 8px;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }

/* ---------------- Scroll to top ---------------- */
.scroll-top {
    position: fixed; right: 24px; bottom: 24px;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--blue); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-hover);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition);
    z-index: 999; border: none;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------- Preloader ---------------- */
#preloader {
    position: fixed; inset: 0; background: var(--ivory);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.4s ease, visibility 0.4s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.loader-tooth {
    width: 46px; height: 46px; border: 4px solid var(--blue-light);
    border-top-color: var(--blue); border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Page banner (inner pages) ---------------- */
.page-banner {
    background: linear-gradient(135deg, var(--navy), var(--blue-deep));
    color: var(--white);
    padding: 140px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner h1 { color: var(--white); }
.page-banner .breadcrumb { justify-content: center; margin-top: 12px; }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-banner .breadcrumb .active { color: var(--gold); }

/* ---------------- Forms ---------------- */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 13px 16px;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30,111,217,0.12);
}
.form-floating > label { color: var(--gray-500); }

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
    .stats-strip { margin-top: 0; }
    .hero-badge { position: static; margin-top: 20px; }
    .hero-media::after { display: none; }
}
