/* 
 * Julie O'Neill D.M.D - Classic & Elegant Dental Website
 * Palette: Teal (#0F4C5C) & Slate Grey (#2C3E50)
 */

:root {
    /* Colors */
    --teal-dark: #0F4C5C;
    --teal-primary: #1A6B7C;
    --teal-light: #E8F4F6;
    
    --slate-dark: #2C3E50;
    --slate-primary: #4A6278;
    --slate-light: #F4F6F8;
    
    --white: #FFFFFF;
    --black: #1A1A1A;
    --grey-100: #F9FAFB;
    --grey-200: #F3F4F6;
    --grey-400: #9CA3AF;
    --grey-600: #4B5563;
    --grey-800: #1F2937;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 6rem 0;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--slate-dark);
    line-height: 1.6;
    background-color: var(--white);
}

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

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

ul {
    list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--slate-dark);
}

.eyebrow {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--teal-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--grey-600);
    max-width: 600px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--slate-dark);
}

.text-white { color: var(--white) !important; }
.text-teal-light { color: var(--teal-light) !important; }
.text-grey-400 { color: var(--grey-400) !important; }
.text-white-80 { color: rgba(255,255,255,0.8) !important; }

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.bg-light { background-color: var(--slate-light); }
.bg-white { background-color: var(--white); }
.bg-teal { background-color: var(--teal-dark); }

.grid {
    display: grid;
    gap: 3rem;
}

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

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.align-center {
    align-items: center;
}

.center { text-align: center; }

.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.gap-3 { gap: 0.75rem; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-dark);
}

.logo-icon {
    color: var(--teal-primary);
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: 0.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--slate-dark);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--teal-primary);
}

.nav-links .btn {
    padding: 0.75rem 1.5rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-dark);
    padding: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn--primary:hover {
    background-color: var(--teal-dark);
    border-color: var(--teal-dark);
}

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

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

.btn--white {
    background-color: var(--white);
    color: var(--teal-dark);
    border-color: var(--white);
    width: 100%;
}

.btn--white:hover {
    background-color: var(--grey-100);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 76, 92, 0.85) 0%, rgba(44, 62, 80, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 650px;
    color: var(--white);
    padding-top: 4rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn--outline {
    border-color: var(--white);
    color: var(--white);
}

.hero-actions .btn--outline:hover {
    background-color: var(--white);
    color: var(--teal-dark);
}

/* About Section */
.about-img-wrapper {
    position: relative;
}

.about-img-wrapper img {
    border-radius: 4px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--teal-primary);
    border-radius: 4px;
    z-index: -1;
}

.about-text {
    padding: 2rem 0;
}

.feature-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.feature-list svg {
    color: var(--teal-primary);
    flex-shrink: 0;
}

/* Services */
.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--grey-200);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--teal-primary);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-dark);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--grey-600);
    line-height: 1.7;
}

/* New Patients Section */
.card--dark {
    background: var(--white);
    padding: 3rem;
    border-radius: 4px;
    color: var(--slate-dark);
}

/* Contact / Footer */
.footer {
    background-color: var(--slate-dark);
    padding: 5rem 0 2rem;
    color: var(--white);
}

.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 4rem;
}

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

.footer-links li {
    margin-bottom: 1rem;
    color: var(--grey-400);
}

.footer-links a {
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--grey-400);
    font-size: 0.9rem;
}

/* Form */
.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-dark);
}

.form-group input {
    padding: 0.875rem;
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--teal-primary);
}

.form-message {
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 600;
}

.form-message.success { color: #10B981; }
.form-message.error { color: #EF4444; }

/* Animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.reveal-up.hidden, .reveal-left.hidden, .reveal-right.hidden {
    opacity: 0;
    transform: translate(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up.hidden, .reveal-left.hidden, .reveal-right.hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left.hidden { transform: translateX(-30px); }
    .reveal-right.hidden { transform: translateX(30px); }
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-img-wrapper {
        margin-bottom: 2rem;
    }
    
    .about-accent {
        display: none;
    }
    
    .grid--2 {
        grid-template-columns: 1fr;
    }
}
