/* =============================================
   Steele Family Dentistry — Custom Styles
   ============================================= */

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

:root {
    --teal-50:  #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    --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;
    
    --white: #ffffff;
    --black: #0a0a0a;
    
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.16), 0 8px 20px rgba(0,0,0,0.08);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn--white {
    background: var(--white);
    color: var(--teal-700);
    border-color: var(--white);
}

.btn--white:hover {
    background: var(--teal-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

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

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

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

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

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

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

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

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

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--teal-600);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
}

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

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

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--teal-900) 100%);
    overflow: hidden;
    padding-top: 72px;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(13,148,136,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(20,184,166,0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero__container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero__content {
    color: var(--white);
    max-width: 540px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--teal-200);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-400);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.125rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
}

.hero__subhead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--slate-300);
    margin-bottom: 36px;
    max-width: 480px;
}

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

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating Stat Cards */
.hero__stats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stat-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: auto;
    animation: float 4s ease-in-out infinite;
}

.stat-card--teeth {
    top: 12%;
    right: -20px;
    animation-delay: 0s;
}

.stat-card--clock {
    bottom: 30%;
    right: -30px;
    animation-delay: 1.3s;
}

.stat-card--shield {
    bottom: 10%;
    right: 10%;
    animation-delay: 2.6s;
}

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

.stat-card__icon {
    color: var(--teal-600);
    margin-bottom: 4px;
}

.stat-card__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
}

.stat-card__label {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

/* ---------- Section Headers ---------- */
.section-header {
    margin-bottom: 56px;
}

.section-header--center {
    text-align: center;
}

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

.section-header__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--slate-900);
    margin-bottom: 16px;
}

.section-header__title--light {
    color: var(--white);
}

.section-header__lead {
    font-size: 1.0625rem;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 600px;
}

.section-header--center .section-header__lead {
    margin: 0 auto;
}

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

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--slate-200);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--teal-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-card__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-card__icon-wrap {
    background: var(--teal-600);
    border-color: var(--teal-600);
    color: var(--white);
}

.service-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 10px;
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.65;
}

/* ---------- About ---------- */
.about {
    padding: 100px 0;
    background: var(--slate-900);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.about__image-col {
    position: relative;
}

.about__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--teal-600);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.6;
}

.about__content {
    position: relative;
    z-index: 1;
}

.about__text {
    font-size: 1rem;
    color: var(--slate-300);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about__highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 32px 0 36px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-200);
}

.highlight-item svg {
    color: var(--teal-400);
    flex-shrink: 0;
}

/* ---------- Why Us ---------- */
.why-us {
    padding: 100px 0;
    background: var(--white);
}

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

.why-card {
    padding: 36px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--teal-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.why-card:hover {
    border-color: var(--teal-200);
    box-shadow: var(--shadow-md);
}

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

.why-card__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal-100);
    line-height: 1;
    margin-bottom: 16px;
    transition: color var(--transition);
}

.why-card:hover .why-card__number {
    color: var(--teal-200);
}

.why-card__title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 12px;
}

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

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--teal-900) 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20,184,166,0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.contact__text {
    font-size: 1rem;
    color: var(--slate-300);
    line-height: 1.75;
    margin-bottom: 36px;
}

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

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

.contact-detail__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-400);
    flex-shrink: 0;
}

.contact-detail__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-detail__label {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-400);
}

.contact-detail__value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
}

.contact-detail__phone {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--teal-300);
    transition: color var(--transition);
}

.contact-detail a:hover {
    color: var(--teal-200);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.contact-form__header {
    margin-bottom: 28px;
}

.contact-form__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 8px;
}

.contact-form__subtitle {
    font-size: 0.9375rem;
    color: var(--slate-500);
}

.contact-form__fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
}

.form-group__input,
.form-group__textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--slate-800);
    transition: all var(--transition);
    background: var(--slate-50);
    outline: none;
}

.form-group__input:focus,
.form-group__textarea:focus {
    border-color: var(--teal-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.form-group__input::placeholder,
.form-group__textarea::placeholder {
    color: var(--slate-400);
}

.form-group__textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form__success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: var(--radius-sm);
    color: var(--teal-800);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 16px;
}

.contact-form__success.visible {
    display: flex;
}

.contact-form__success svg {
    color: var(--teal-600);
    flex-shrink: 0;
}

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

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

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--white);
    margin-bottom: 16px;
}

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

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

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

.footer__address {
    font-size: 0.9375rem;
    color: var(--slate-300);
    line-height: 1.65;
    margin-bottom: 12px;
    font-style: normal;
}

.footer__phone {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--teal-400);
    margin-bottom: 8px;
    transition: color var(--transition);
}

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

.footer__email {
    font-size: 0.9375rem;
    color: var(--slate-400);
    transition: color var(--transition);
}

.footer__email:hover {
    color: var(--white);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 0.9375rem;
    color: var(--slate-400);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__bottom {
    padding: 24px 0;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__copyright {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

/* ---------- Mobile Menu Overlay ---------- */
.nav__menu-overlay {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero__image-wrapper {
        max-width: 500px;
        margin-left: auto;
    }
    
    .hero__stats {
        display: none;
    }
    
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about__image-col {
        max-width: 480px;
    }
    
    .contact__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }
    
    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 32px 24px;
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
    }
    
    .nav__menu.open {
        transform: translateX(0);
    }
    
    .nav__link {
        font-size: 1.125rem;
        padding: 16px 0;
        border-bottom: 1px solid var(--slate-100);
    }
    
    .nav__link::after {
        display: none;
    }
    
    .nav__cta {
        margin-top: 24px;
        justify-content: center;
        font-size: 1rem;
        padding: 14px 24px;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero__container {
        gap: 48px;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        justify-content: center;
    }
    
    .services {
        padding: 72px 0;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .about {
        padding: 72px 0;
    }
    
    .about__highlights {
        grid-template-columns: 1fr;
    }
    
    .why-us {
        padding: 72px 0;
    }
    
    .why-us__grid {
        grid-template-columns: 1fr;
    }
    
    .contact {
        padding: 72px 0;
    }
    
    .contact-form {
        padding: 28px;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero__headline {
        font-size: 1.75rem;
    }
    
    .section-header__title {
        font-size: 1.5rem;
    }
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
