/* ========================================
   Stevens Medical Clinic - Stylesheet
   Burgundy + Blush | Confident Corporate
   ======================================== */

/* CSS Custom Properties */
:root {
    --burgundy: #781c24;
    --burgundy-dark: #5a1419;
    --burgundy-light: #9a2530;
    --blush: #f5e6e0;
    --blush-light: #faf3f0;
    --blush-dark: #e8d0c8;
    --neutral-900: #1a1a1a;
    --neutral-700: #3d3d3d;
    --neutral-500: #6b6b6b;
    --neutral-300: #b0b0b0;
    --neutral-100: #f5f5f5;
    --neutral-50: #fafafa;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(120, 28, 36, 0.08);
    --shadow-md: 0 4px 16px rgba(120, 28, 36, 0.1);
    --shadow-lg: 0 8px 32px rgba(120, 28, 36, 0.12);
    --shadow-xl: 0 16px 48px rgba(120, 28, 36, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--neutral-700);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--neutral-900);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

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

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

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

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

.btn-full {
    width: 100%;
}

/* Section Tag */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 12px;
    padding: 6px 14px;
    background: var(--blush);
    border-radius: 50px;
}

.section-tag.light {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--neutral-500);
    line-height: 1.7;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--blush-dark);
    transition: box-shadow var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--neutral-900);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--blush);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.main-nav a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700);
    transition: color var(--transition);
    position: relative;
}

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

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

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neutral-900);
    transition: all var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--blush);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-700);
    padding: 8px 0;
    border-bottom: 1px solid var(--neutral-100);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blush-light) 0%, var(--white) 50%, var(--blush) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 80% 50%, rgba(120, 28, 36, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(245, 230, 224, 0.8) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.hero-text {
    max-width: 560px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy);
    background: var(--blush);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--neutral-900);
}

.hero h1 span {
    color: var(--burgundy);
}

.hero > .container > .hero-content > .hero-text > p {
    font-size: 1.15rem;
    color: var(--neutral-500);
    line-height: 1.8;
    margin-bottom: 36px;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
}

.hero-stats .stat strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--burgundy);
    font-weight: 700;
}

.hero-stats .stat span {
    font-size: 0.85rem;
    color: var(--neutral-500);
    margin-top: 4px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--burgundy);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.2;
}

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

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

.service-card {
    background: var(--white);
    border: 1px solid var(--blush-dark);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--burgundy);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--blush);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--burgundy);
}

.service-card:hover .service-icon svg {
    stroke: var(--white);
}

.service-card h3 {
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

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

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 120px 0;
    background: var(--neutral-50);
}

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

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

.about-content .section-tag {
    margin-bottom: 16px;
}

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

.about-content > p {
    font-size: 1.05rem;
    color: var(--neutral-500);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--neutral-700);
    font-size: 0.95rem;
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: var(--blush);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========================================
   Patients / Info Section
   ======================================== */
.patients {
    padding: 120px 0;
    background: var(--burgundy);
    position: relative;
    overflow: hidden;
}

.patients::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    transition: all var(--transition);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card h3 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-list li span:first-child {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.info-list li span:last-child {
    color: var(--white);
    font-weight: 600;
    text-align: right;
}

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

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

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 1.05rem;
    color: var(--neutral-500);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--blush);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--neutral-900);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    font-size: 0.95rem;
    color: var(--neutral-500);
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--neutral-50);
    border: 1px solid var(--blush-dark);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.contact-form h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 28px;
    color: var(--neutral-900);
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--blush-dark);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--neutral-900);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(120, 28, 36, 0.1);
}

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

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

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

.form-success.active {
    display: block;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--blush);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success h3 {
    margin-bottom: 12px;
    color: var(--burgundy);
}

.form-success p {
    color: var(--neutral-500);
    line-height: 1.7;
}

/* ========================================
   Map Section
   ======================================== */
.map-section {
    height: 350px;
    background: var(--neutral-100);
}

.map-section iframe {
    filter: grayscale(30%);
    transition: filter var(--transition);
}

.map-section:hover iframe {
    filter: grayscale(0%);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--neutral-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

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

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    background: rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    flex-wrap: wrap;
    gap: 12px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        gap: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .contact-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }
    
    .hero-text {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        height: 360px;
    }
    
    .hero-image::before {
        display: none;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 360px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .patients {
        padding: 80px 0;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
