/* ============================================
   Smiles for Life Dental Group
   Bold Editorial | Teal + Slate Grey
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --teal-950: #042f2e;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--slate-900);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--slate-900);
}

.nav__logo-icon {
    color: var(--teal-600);
}

.nav__logo-text {
    letter-spacing: -0.02em;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: color 0.2s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-600);
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
    color: var(--teal-700);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    background: var(--teal-600);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
    background: var(--teal-700);
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle-line {
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__inner {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--slate-50);
    padding: 96px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
}

.mobile-menu.active .mobile-menu__inner {
    transform: translateX(0);
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-800);
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-200);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu__link:hover {
    color: var(--teal-700);
    padding-left: 8px;
}

.mobile-menu__cta {
    margin-top: 24px;
    background: var(--teal-600);
    color: #fff;
    text-align: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 46, 0.88) 0%,
        rgba(17, 94, 89, 0.82) 50%,
        rgba(30, 41, 59, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-300);
    margin-bottom: 24px;
    padding: 8px 16px;
    border: 1px solid rgba(94, 234, 212, 0.3);
    border-radius: 100px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: #fff;
    max-width: 820px;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero__headline em {
    font-style: italic;
    color: var(--teal-200);
}

.hero__subheadline {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--slate-300);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--slate-400);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background: var(--teal-600);
    color: #fff;
    border-color: var(--teal-600);
}

.btn--primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
    background: #fff;
    color: var(--teal-900);
    transform: translateY(-2px);
}

.btn--dark {
    background: var(--slate-800);
    color: #fff;
    border-color: var(--slate-800);
}

.btn--dark:hover {
    background: var(--slate-900);
    border-color: var(--slate-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
}

.btn--lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn--full {
    width: 100%;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-header__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: 16px;
}

.section-header__eyebrow--light {
    color: var(--teal-300);
}

.section-header__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-header__title--light {
    color: #fff;
}

.section-header__desc {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--slate-50);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    border: 1px solid var(--slate-200);
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--teal-200);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--teal-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    margin-bottom: 24px;
    transition: background 0.3s ease;
}

.service-card:hover .service-card__icon {
    background: var(--teal-100);
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--slate-900);
}

.service-card__text {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: #fff;
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__image-wrap {
    position: relative;
}

.about__image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.about__image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: var(--teal-100);
    border-radius: 20px;
    z-index: -1;
}

.about__content {
    max-width: 520px;
}

.about__text {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    padding: 32px 0;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--teal-700);
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--slate-500);
    font-weight: 500;
}

/* --- Why Us --- */
.why-us {
    padding: 120px 0;
    background: var(--slate-900);
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.why-card {
    padding: 36px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s var(--ease-out);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(94, 234, 212, 0.3);
    transform: translateY(-4px);
}

.why-card__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal-700);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 20px;
}

.why-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 12px;
}

.why-card__text {
    font-size: 0.92rem;
    color: var(--slate-400);
    line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials {
    padding: 120px 0;
    background: var(--slate-50);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    border: 1px solid var(--slate-200);
    transition: all 0.35s var(--ease-out);
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
}

.testimonial__stars {
    display: flex;
    gap: 4px;
    color: var(--teal-500);
    margin-bottom: 20px;
}

.testimonial__text {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial__author {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate-700);
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
}

.cta__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 46, 0.9) 0%,
        rgba(17, 94, 89, 0.85) 100%
    );
}

.cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__headline {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta__text {
    font-size: 1.1rem;
    color: var(--slate-300);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* --- Contact --- */
.contact {
    padding: 120px 0 80px;
    background: #fff;
}

.contact__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 64px;
}

.contact__desc {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--teal-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    flex-shrink: 0;
}

.contact-detail__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.contact-detail__value {
    display: block;
    font-size: 1rem;
    color: var(--slate-800);
    font-weight: 500;
}

.contact-detail__value-link {
    display: block;
    font-size: 1rem;
    color: var(--teal-700);
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-detail__value-link:hover {
    color: var(--teal-900);
    text-decoration: underline;
}

/* --- Form --- */
.contact__form-wrap {
    background: var(--slate-50);
    border-radius: 20px;
    padding: 48px;
    border: 1px solid var(--slate-200);
}

.contact__form-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 32px;
    color: var(--slate-900);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--slate-800);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.form-input::placeholder {
    color: var(--slate-400);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
    color: var(--teal-700);
}

.form-success svg {
    color: var(--teal-500);
}

.form-success p {
    font-size: 1rem;
    color: var(--slate-600);
}

/* --- Map --- */
.contact__map {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--slate-200);
}

/* --- Footer --- */
.footer {
    background: var(--slate-900);
    padding: 80px 0 0;
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer__logo-icon {
    color: var(--teal-400);
}

.footer__tagline {
    font-size: 0.92rem;
    color: var(--slate-400);
    line-height: 1.7;
    max-width: 280px;
}

.footer__heading {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 20px;
}

.footer__links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 0.92rem;
    color: var(--slate-300);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__links a:hover {
    color: var(--teal-300);
    padding-left: 4px;
}

.footer__contact p {
    font-size: 0.92rem;
    color: var(--slate-400);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer__phone,
.footer__email {
    color: var(--teal-400) !important;
    transition: color 0.2s ease;
}

.footer__phone:hover,
.footer__email:hover {
    color: var(--teal-300);
}

.footer__bottom {
    padding: 28px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: var(--slate-500);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__layout {
        gap: 48px;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__content {
        padding: 100px 24px 60px;
    }

    .hero__headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .about__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image-wrap img {
        height: 350px;
    }

    .about__image-accent {
        width: 100px;
        height: 100px;
        bottom: -12px;
        right: -12px;
    }

    .about__stats {
        gap: 24px;
    }

    .why-us__grid {
        grid-template-columns: 1fr;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .contact__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact__form-wrap {
        padding: 32px 24px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .about__stats {
        flex-direction: column;
        gap: 20px;
    }

    .btn--lg {
        padding: 16px 32px;
        font-size: 0.95rem;
    }
}
