/* 
    Dr. Rick Rosen Dermatology
    Style: Warm, Friendly, Professional
    Palette: Teal + Slate Grey
*/

:root {
    /* Colors */
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-900: #134e4a;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Spacing & Layout */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'DM Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* 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-800);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

.eyebrow {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--teal-600);
    margin-bottom: 0.75rem;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--slate-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
    color: var(--slate-600);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    color: var(--slate-600);
    max-width: 60ch;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--teal-50);
}

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

.btn-icon {
    display: flex;
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--slate-100);
    padding: 1rem 0;
}

.header-inner {
    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: 600;
    color: var(--slate-900);
}

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

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

.main-nav a:not(.btn) {
    font-weight: 500;
    color: var(--slate-700);
}

.main-nav a:not(.btn):hover {
    color: var(--teal-600);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--slate-800);
    transition: 0.3s;
}

/* Hero */
.hero {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, var(--teal-50) 0%, #ffffff 100%);
    overflow: hidden;
}

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

.hero-content .eyebrow {
    background-color: var(--teal-100);
    color: var(--teal-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 1.5rem;
}

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

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.badge {
    font-size: 0.875rem;
    color: var(--slate-600);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-visual {
    position: relative;
    height: 600px;
}

.image-frame {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.frame-1 {
    width: 75%;
    height: 80%;
    top: 0;
    right: 0;
    z-index: 1;
}

.frame-2 {
    width: 55%;
    height: 45%;
    bottom: 0;
    left: 0;
    z-index: 2;
    border: 8px solid white;
}

/* About */
.about {
    padding: 6rem 0;
    background-color: white;
}

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

.about-visual img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.check-list {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--slate-700);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal-600);
    font-weight: bold;
}

/* Services */
.services {
    padding: 6rem 0;
    background-color: var(--slate-50);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--slate-100);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--teal-50);
    color: var(--teal-600);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--slate-800);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Patient CTA */
.patients-cta {
    padding: 5rem 0;
    background-color: var(--teal-900);
    color: white;
}

.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--teal-100);
    margin-bottom: 1.5rem;
}

.info-list {
    color: var(--teal-100);
}

.info-list li {
    margin-bottom: 0.5rem;
}

.cta-action .btn-large {
    background-color: white;
    color: var(--teal-700);
}

.cta-action .btn-large:hover {
    background-color: var(--teal-50);
}

/* Contact */
.contact {
    padding: 6rem 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.details {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    margin-bottom: 0.25rem;
}

.detail-item .value {
    font-size: 1.125rem;
    color: var(--slate-800);
    font-weight: 500;
}

.detail-item .value.highlight {
    color: var(--teal-600);
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 250px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-link {
    display: block;
    width: 100%;
    height: 100%;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-link:hover .map-img {
    transform: scale(1.05);
}

.map-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: white;
    color: var(--slate-900);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Form */
.contact-form-wrapper {
    background-color: var(--slate-50);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px var(--teal-100);
}

.btn-full {
    width: 100%;
}

.form-note {
    font-size: 0.8rem;
    color: var(--slate-500);
    text-align: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: var(--slate-900);
    color: var(--slate-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: white;
    margin-bottom: 1rem;
}

.footer h4 {
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a:hover {
    color: var(--teal-400);
}

.footer address {
    font-style: normal;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-icon {
    margin-bottom: 1rem;
}

.modal-content h3 {
    margin-bottom: 0.5rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid,
    .about-grid,
    .contact-grid,
    .cta-box {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        height: 400px;
        order: -1;
    }
    
    .frame-1 { width: 80%; height: 85%; }
    .frame-2 { width: 60%; height: 50%; }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        border-bottom: 1px solid var(--slate-100);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .check-list {
        grid-template-columns: 1fr;
    }
}
