/* styles.css - Clean, calm dental theme */
:root {
    --primary: #0077be;
    --accent: #00a884;
    --text: #222;
    --bg: #f8f9fa;
    --card: #ffffff;
}

[data-theme="dark"] {
    --text: #e0e0e0;
    --bg: #121212;
    --card: #1e1e1e;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    scroll-behavior: smooth;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Header */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: sticky; 
    top: 0; 
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

[data-theme="dark"] .header { 
    background: rgba(18,18,18,0.95); 
    border-color: #333; 
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

/* HERO (DUAL IMAGE FIXED) */
.hero {
    height: 55vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

/* LEFT IMAGE */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    background-image: url('images/sunsetoffice.jpeg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* RIGHT IMAGE */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
    background-image: url('images/ajusco_background.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* OVERLAY (optional for readability) */
.hero::before,
.hero::after {
    filter: brightness(0.7);
}

/* CONTENT ABOVE IMAGES */
.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content { 
    max-width: 700px; 
}

.hero h2 { 
    font-size: 2.5rem; 
    margin-bottom: 1rem; 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover { 
    background: var(--accent); 
    transform: translateY(-3px); 
}

/* Services & About grids */
.services-grid, .about-grid, .footer-grid {
    display: grid;
    gap: 2rem;
}

.services-grid { 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
}

.about-grid { 
    grid-template-columns: 1fr 1fr; 
    align-items: center; 
    gap: 4rem; 
}

.footer-grid { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

/* Service cards */
.service-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.service-card:hover { 
    transform: translateY(-10px); 
}

/* Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact-form input, 
.contact-form textarea {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea { 
    background: #2a2a2a; 
    border-color: #444; 
    color: white; 
}

/* Footer */
.footer {
    background: #0f2c4a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer a { 
    color: #00d4aa; 
    text-decoration: none; 
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: auto;
        flex-direction: column;
    }

    .hero::before,
    .hero::after {
        width: 100%;
        height: 50%;
    }

    .hero::before {
        top: 0;
    }

    .hero::after {
        bottom: 0;
    }

    .hero h2 { 
        font-size: 2rem; 
    }

    .about-grid { 
        grid-template-columns: 1fr; 
    }
}