/* ============================================
   Dr. Erin Trahan Pratt M.D. - Medical Practice
   Clean Minimalist | Burgundy + Blush
   ============================================ */

/* CSS Custom Properties */
:root {
    --burgundy: #782c36;
    --burgundy-dark: #5a1f28;
    --burgundy-light: #9a3d4a;
    --blush: #f5e6e0;
    --blush-light: #faf3f0;
    --blush-dark: #e8d4cc;
    --cream: #fdfcfa;
    --charcoal: #2c2c2c;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --border: #e8e0dc;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(120, 44, 54, 0.08);
    --shadow-md: 0 4px 20px rgba(120, 44, 54, 0.1);
    --shadow-lg: 0 8px 40px rgba(120, 44, 54, 0.12);
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--burgundy-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

em {
    font-style: italic;
    color: var(--burgundy);
}

/* Eyebrow text */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-title em {
    font-size: 0.85em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

.btn-ghost {
    background-color: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.btn-ghost:hover {
    background-color: var(--burgundy);
    color: var(--white);
}

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

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

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

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

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.brand-title {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-medium);
    letter-spacing: 0.02em;
    position: relative;
}

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

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

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

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle .bar {
    width: 100%;
    height: 1.5px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text-dark);
}

.mobile-menu a:hover {
    color: var(--burgundy);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: var(--space-3xl);
    background-color: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: var(--space-lg);
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.hero-title em {
    font-size: 0.9em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
}

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

.hero-accent {
    position: absolute;
    bottom: -40px;
    left: -40px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.accent-line {
    width: 60px;
    height: 1px;
    background-color: var(--burgundy);
}

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

/* Decorative lines */
.hero-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.line {
    position: absolute;
    background-color: var(--blush-dark);
}

.line-1 {
    top: 120px;
    left: 0;
    width: 100px;
    height: 1px;
}

.line-2 {
    top: 120px;
    left: 100px;
    width: 1px;
    height: 80px;
}

.line-3 {
    bottom: 100px;
    right: calc(50% + 20px);
    width: 1px;
    height: 120px;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: var(--space-3xl) 0;
    background-color: var(--blush-light);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    padding: var(--space-xl);
    background-color: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--burgundy);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.375rem;
}

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

.services-divider {
    display: flex;
    justify-content: center;
    margin-top: var(--space-2xl);
}

.divider-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--burgundy), transparent);
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--space-3xl) 0;
    background-color: var(--cream);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-content {
    padding-right: var(--space-lg);
}

.about-text {
    font-size: 1.0625rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-values {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.value-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--burgundy);
    line-height: 1;
    min-width: 36px;
}

.value-text {
    font-size: 0.9375rem;
    color: var(--text-dark);
    padding-top: 0.375rem;
}

.about-image {
    position: relative;
}

.image-collage {
    position: relative;
    height: 700px;
}

.collage-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 85%;
    overflow: hidden;
}

.collage-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 60%;
    overflow: hidden;
    border: 8px solid var(--cream);
}

.collage-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: var(--space-3xl) 0 0;
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.contact-info {
    padding-right: var(--space-lg);
}

.contact-description {
    font-size: 1.0625rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.detail-icon {
    width: 24px;
    height: 24px;
    color: var(--burgundy);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.detail-icon svg {
    width: 100%;
    height: 100%;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.detail-value a {
    color: var(--burgundy);
}

.detail-value a:hover {
    color: var(--burgundy-dark);
}

/* Contact form */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background-color: var(--cream);
    border: 1px solid var(--border);
    padding: 0.875rem 1rem;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl);
    background-color: var(--blush-light);
    border: 1px solid var(--blush-dark);
}

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--burgundy);
    margin-bottom: var(--space-md);
}

.form-success p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 320px;
}

/* Map */
.map-container {
    height: 300px;
    background-color: var(--blush);
    background-image: url('https://images.pexels.com/photos/27925592/pexels-photo-27925592.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=600');
    background-size: cover;
    background-position: center;
    position: relative;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(120, 44, 54, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: var(--white);
    text-align: center;
    padding: var(--space-lg);
}

.map-overlay p {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--white);
}

.map-overlay .btn {
    border-color: var(--white);
    color: var(--white);
}

.map-overlay .btn:hover {
    background-color: var(--white);
    color: var(--burgundy);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    background-color: var(--charcoal);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

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

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-info p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

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

.footer-legal {
    font-size: 0.75rem !important;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .image-frame img {
        height: 500px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .image-collage {
        height: 500px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .contact-info {
        padding-right: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --space-lg: 1.25rem;
        --space-xl: 2.5rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .service-card {
        padding: var(--space-lg);
    }
    
    .image-collage {
        height: 400px;
    }
    
    .collage-main {
        width: 85%;
        height: 75%;
    }
    
    .collage-accent {
        width: 65%;
        height: 55%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
