/* ============================================
   Arash Razi DDS — Camarillo Dental Studio
   Classic & Elegant Design
   ============================================ */

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

:root {
    --midnight: #0A2342;
    --midnight-light: #1A3A5C;
    --mint: #2A9D8F;
    --mint-light: #3DB8A8;
    --mint-pale: #E8F5F3;
    --cream: #F7F5F0;
    --cream-dark: #EDE9E0;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #6B6B6B;
    --text-light: #9A9A9A;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Lato', 'Helvetica Neue', sans-serif;
    --transition: 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(10, 35, 66, 0.06);
    --shadow-md: 0 8px 30px rgba(10, 35, 66, 0.1);
    --shadow-lg: 0 20px 60px rgba(10, 35, 66, 0.12);
}

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

body {
    font-family: var(--sans);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Typography --- */
.section-label {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--midnight);
    margin-bottom: 20px;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

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

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

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

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

.btn-full {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(10, 35, 66, 0.08);
    transition: all var(--transition);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-serif {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--midnight);
}

.logo-sans {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--mint);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--mint);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--midnight);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--midnight);
    padding: 8px;
}

/* --- Hero --- */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-greeting {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--mint);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--midnight);
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-details p {
    font-size: 0.875rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

.hero-visual {
    position: relative;
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image-frame:hover img {
    transform: scale(1.03);
}

.hero-accent {
    position: absolute;
    bottom: -24px;
    left: -24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--midnight);
    padding: 20px 28px;
    border-radius: 6px;
}

.accent-line {
    width: 40px;
    height: 2px;
    background: var(--mint);
}

.accent-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--white);
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--white);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 2px solid var(--mint);
    border-radius: 8px;
    z-index: -1;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-values {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.about-values li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: var(--text-dark);
}

.about-values svg {
    color: var(--mint);
    flex-shrink: 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-sub {
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 8px;
    border: 1px solid rgba(10, 35, 66, 0.06);
    transition: all var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--mint-pale);
    color: var(--mint);
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--midnight);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- New Patients --- */
.new-patients {
    padding: 120px 0;
    background: var(--midnight);
    color: var(--white);
}

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

.new-patients .section-label {
    color: var(--mint-light);
}

.new-patients .section-title {
    color: var(--white);
}

.new-patients .section-title + p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
    line-height: 1.8;
}

.steps {
    display: grid;
    gap: 32px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--mint);
    line-height: 1;
    flex-shrink: 0;
    min-width: 48px;
}

.step h4 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--white);
}

.step p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.new-patients-visual img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--white);
}

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

.contact-info .section-title + p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: grid;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item svg {
    color: var(--mint);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--midnight);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--mint);
}

.contact-item a:hover {
    color: var(--mint-light);
    text-decoration: underline;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--cream);
    padding: 48px;
    border-radius: 8px;
    border: 1px solid rgba(10, 35, 66, 0.06);
}

.contact-form h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--midnight);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid rgba(10, 35, 66, 0.12);
    border-radius: 4px;
    outline: none;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--mint);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: var(--mint);
    margin-bottom: 20px;
}

.form-success h4 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--midnight);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    background: var(--midnight);
    color: var(--white);
    padding: 60px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 16px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.footer-copy {
    grid-column: 1 / -1;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- 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);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .new-patients-grid,
    .contact-grid {
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        padding: 100px 40px 40px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .main-nav a {
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

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

    .hero-visual {
        order: -1;
    }

    .hero-image-frame {
        max-height: 400px;
    }

    .about-grid,
    .new-patients-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }

    .about-image::before {
        display: none;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-accent {
        bottom: -16px;
        left: -16px;
        padding: 16px 20px;
    }
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 35, 66, 0.5);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}
