/* ========================================
   Jenna Schares DDS PC - Main Styles
   ======================================== */

/* Custom Fonts */
@font-face {
    font-family: 'Museo';
    src: url('/fonts/Museo300-Regular.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Museo';
    src: url('/fonts/Museo700-Regular.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    /* Colors - Warm, trustworthy dental palette */
    --color-primary: #2B6872;      /* Calming teal */
    --color-primary-dark: #1E4D55;
    --color-primary-light: #3A8A96;
    --color-secondary: #E8B86D;    /* Warm gold accent */
    --color-secondary-light: #F5D49A;
    
    --color-cream: #D5EEF1;
    --color-cream-dark: #B8DFE4;
    --color-white: #FFFFFF;
    --color-text: #2D3748;
    --color-text-light: #5A6778;
    --color-text-muted: #8896A6;
    
    /* Typography */
    --font-display: 'Museo', Georgia, serif;
    --font-body: 'Museo', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(43, 104, 114, 0.08);
    --shadow-md: 0 8px 24px rgba(43, 104, 114, 0.12);
    --shadow-lg: 0 16px 48px rgba(43, 104, 114, 0.16);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

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

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

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary-light);
    border-color: var(--color-secondary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

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

.btn-white:hover {
    background: var(--color-cream);
    border-color: var(--color-cream);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-primary);
}

.logo-title {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

.nav {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.phone-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.phone-link:hover {
    color: var(--color-primary-dark);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(43, 104, 114, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md) 160px;
}

.hero-eyebrow {
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-title .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero-description {
    font-size: 1.1875rem;
    color: var(--color-text-light);
    max-width: 520px;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero-image {
    position: relative;
}

.hero-image-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: var(--color-cream-dark);
}

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

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.badge-text {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.badge-highlight {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    color: var(--color-white);
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--space-xl) 0 var(--space-2xl);
    background: var(--color-white);
}

.features-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.features-header .section-subtitle {
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-cream);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--color-white);
    border-radius: 50%;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.feature-text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* ========================================
   About Preview Section
   ======================================== */
.about-preview {
    padding: var(--space-2xl) 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.about-images {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image-main img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: 58% center;
}

.about-image-secondary {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    align-self: end;
}

.about-image-secondary img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: 40% center;
}

.about-content .section-title {
    margin-top: var(--space-xs);
}

.about-text {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.about-text:last-of-type {
    margin-bottom: var(--space-lg);
}

/* ========================================
   Services Preview Section
   ======================================== */
.services-preview {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

.services-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.services-header .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.service-card {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.services-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ========================================
   Location Section
   ======================================== */
.location {
    padding: var(--space-2xl) 0;
    background: var(--color-white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.location-info .section-title {
    margin-top: var(--space-xs);
}

.location-address {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--color-primary);
}

.location-address svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.address-line {
    color: var(--color-text);
}

.location-hours {
    background: var(--color-cream);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.hours-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-cream-dark);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
}

.hours-row .day {
    font-weight: 500;
}

.hours-row .time {
    color: var(--color-text-light);
}

.hours-row.closed .time {
    color: var(--color-text-muted);
}

.hours-note {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    text-align: center;
    color: var(--color-white);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.cta-text {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer-logo .logo-name {
    color: var(--color-white);
}

.footer-logo .logo-title {
    color: rgba(255,255,255,0.6);
}

.footer-tagline {
    color: rgba(255,255,255,0.6);
    margin-top: var(--space-xs);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

.footer-nav h4,
.footer-contact h4,
.footer-emergency h4 {
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-nav a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

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

.footer-contact p,
.footer-emergency p {
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-xs);
}

.footer-contact a {
    color: var(--color-secondary);
}

.footer-bottom {
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

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

@media (max-width: 768px) {
    .nav,
    .header-contact .btn {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
        gap: 0;
    }
    
    .nav.active .nav-link {
        padding: var(--space-sm);
        border-bottom: 1px solid var(--color-cream);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero {
        min-height: auto;
        padding-top: 80px;
    }

    .hero-image {
        order: -1;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-image-frame {
        border-radius: var(--radius-md);
        aspect-ratio: 4/3;
    }

    .hero-badge {
        position: static;
        transform: none;
        display: inline-block;
        margin-top: var(--space-sm);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ========================================
   Animation Keyframes
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Delay classes for staggered animations */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
