/* Wo-health Website - Main Stylesheet */

/* ===== CSS RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Enhanced smooth scrolling with offset for fixed header */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px; /* Account for fixed header */
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* ===== CSS CUSTOM PROPERTIES (DESIGN TOKENS) ===== */
:root {
    /* Colors */
    --color-primary-terracotta: #D2691E;
    --color-light-terracotta: #E4A373;
    --color-cream: #F5F5DC;
    --color-white: #FFFFFF;
    --color-dark-text: #333333;
    --color-light-text: #666666;
    --color-border: #E0E0E0;
    --color-error: #DC3545;
    --color-success: #28A745;
    
    /* Typography */
    --font-size-small: 0.875rem;    /* 14px */
    --font-size-base: 1rem;         /* 16px */
    --font-size-large: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;        /* 20px */
    --font-size-2xl: 1.5rem;        /* 24px */
    --font-size-3xl: 1.875rem;      /* 30px */
    --font-size-4xl: 2.25rem;       /* 36px */
    --font-size-5xl: 3rem;          /* 48px */
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */
    --space-3xl: 6rem;     /* 96px */
    --space-4xl: 8rem;     /* 128px */
    
    /* Breakpoints */
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: var(--space-sm);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ===== TYPOGRAPHY SYSTEM ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-dark-text);
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-large);
}

p {
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-normal);
}

ul, ol {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
}

a {
    color: var(--color-primary-terracotta);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-light-terracotta);
    text-decoration: underline;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Lazy loading image styles */
.lazy-image {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.lazy-image.loaded {
    opacity: 1;
}

.lazy-image.loading {
    background: linear-gradient(90deg, var(--color-cream) 25%, transparent 50%, var(--color-cream) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Focus visible styles for better accessibility */
.focus-visible {
    outline: 2px solid var(--color-primary-terracotta);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary-terracotta);
    color: var(--color-white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 10000;
    transition: top var(--transition-fast);
    font-weight: var(--font-weight-semibold);
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced focus styles for keyboard users */
.using-keyboard *:focus {
    outline: 2px solid var(--color-primary-terracotta);
    outline-offset: 2px;
}

.using-keyboard button:focus,
.using-keyboard .cta-button:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-primary-terracotta);
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    .service-card,
    .why-point,
    .mission,
    .founder-story {
        border: 2px solid var(--color-dark-text);
    }
    
    .cta-button.primary {
        border: 2px solid var(--color-dark-text);
    }
    
    .modal-content {
        border: 3px solid var(--color-dark-text);
    }
}

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

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: var(--font-size-large);
    color: var(--color-light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTON SYSTEM ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 48px; /* Accessibility: minimum touch target */
}

.cta-button.primary {
    background-color: var(--color-primary-terracotta);
    color: var(--color-white);
    border-color: var(--color-primary-terracotta);
}

.cta-button.primary:hover,
.cta-button.primary:focus {
    background-color: var(--color-light-terracotta);
    border-color: var(--color-light-terracotta);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--color-primary-terracotta);
    border-color: var(--color-primary-terracotta);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background-color: var(--color-primary-terracotta);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button.large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-large);
}

.cta-button:focus {
    outline: 2px solid var(--color-primary-terracotta);
    outline-offset: 2px;
}

/* ===== HEADER STYLES ===== */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-normal);
}

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--container-padding);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo h1 {
    color: var(--color-primary-terracotta);
    font-size: var(--font-size-2xl);
    margin: 0;
}

.nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-lg);
}

.nav-menu a {
    color: var(--color-dark-text);
    font-weight: var(--font-weight-medium);
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-terracotta);
    transition: width var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-dark-text);
    transition: all var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), url('../images/hero-mother-baby.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--space-3xl) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Removed background patterns to show the hero image clearly */

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--font-size-4xl);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-tagline {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--color-white);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    line-height: var(--line-height-normal);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-image {
    display: none;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-cream) 50%, var(--color-white) 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(210, 105, 30, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(210, 105, 30, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 40% 60%, rgba(245, 245, 220, 0.9) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D2691E' fill-opacity='0.06'%3E%3Cpath d='M40 0L50 30L80 40L50 50L40 80L30 50L0 40L30 30Z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.services-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.services-grid {
    display: grid;
    gap: var(--space-xl);
}

.service-card {
    background: linear-gradient(145deg, var(--color-white) 0%, #FEFEFE 50%, var(--color-cream) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D2691E' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='50' cy='10' r='3'/%3E%3Ccircle cx='10' cy='50' r='2.5'/%3E%3Ccircle cx='50' cy='50' r='2'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-cream);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-header h3 {
    color: var(--color-primary-terracotta);
    margin-bottom: var(--space-sm);
}

.service-content {
    flex-grow: 1;
    margin-bottom: var(--space-lg);
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: var(--space-md);
}

.service-features li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary-terracotta);
    font-weight: var(--font-weight-bold);
}

/* Service card detailed content styles */
.service-topics,
.service-options,
.service-specialists {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background-color: var(--color-cream);
    border-radius: var(--radius-md);
}

.service-topics h4,
.service-options h4,
.service-specialists h4 {
    color: var(--color-primary-terracotta);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-semibold);
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-small);
}

.topic-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary-terracotta);
    font-weight: var(--font-weight-bold);
}

.circle-option {
    margin-bottom: var(--space-md);
}

.circle-option:last-child {
    margin-bottom: 0;
}

.circle-option h4 {
    color: var(--color-primary-terracotta);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-semibold);
}

.circle-option p {
    font-size: var(--font-size-small);
    margin-bottom: var(--space-xs);
}

.specialist-types {
    display: grid;
    gap: var(--space-sm);
}

.specialist h5 {
    color: var(--color-primary-terracotta);
    font-size: var(--font-size-small);
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-semibold);
}

.specialist p {
    font-size: var(--font-size-small);
    margin-bottom: 0;
    color: var(--color-light-text);
}

.specialist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-xs);
}

.specialist-list li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-small);
    color: var(--color-dark-text);
}

.specialist-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary-terracotta);
    font-weight: var(--font-weight-bold);
}

/* Expecting Mothers Callout */
.expecting-callout {
    background: linear-gradient(135deg, var(--color-primary-terracotta) 0%, var(--color-light-terracotta) 100%);
    color: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.expecting-callout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.expecting-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.expecting-icon svg {
    stroke: var(--color-white);
}

.expecting-content h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
    color: var(--color-white);
}

.expecting-content p {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
}

.cta-link {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-white);
    color: var(--color-primary-terracotta);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    font-size: var(--font-size-base);
}

.cta-link:hover {
    background: var(--color-cream);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Responsive design for expecting callout */
@media (max-width: 767px) {
    .expecting-callout {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .expecting-icon {
        margin: 0 auto;
    }
}

/* ===== WHY US SECTION ===== */
.why-us {
    padding: var(--space-4xl) 0;
    background-color: var(--color-white);
}

/* Removed background patterns for cleaner look */

/* Removed animation keyframes */

.why-us-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.opening-question {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-terracotta);
    font-style: italic;
    margin-bottom: var(--space-2xl);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-us-content {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.why-point {
    background: linear-gradient(135deg, var(--color-white) 0%, #FEFEFE  30%, var(--color-cream) 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.why-point::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D2691E' fill-opacity='0.06'%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3Ccircle cx='15' cy='15' r='5'/%3E%3Ccircle cx='65' cy='15' r='7'/%3E%3Ccircle cx='15' cy='65' r='6'/%3E%3Ccircle cx='65' cy='65' r='4'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.why-point:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.why-point-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-cream);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-point h3 {
    color: var(--color-primary-terracotta);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-xl);
    line-height: var(--line-height-tight);
}

.why-point p {
    color: var(--color-dark-text);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.why-point p:last-child {
    margin-bottom: 0;
}

.why-us-summary {
    background-color: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2xl);
    text-align: center;
    border: 2px solid var(--color-light-terracotta);
}

.summary-text {
    font-size: var(--font-size-large);
    line-height: var(--line-height-relaxed);
    color: var(--color-dark-text);
    margin: 0;
}

.summary-text strong {
    color: var(--color-primary-terracotta);
    font-weight: var(--font-weight-bold);
}

.why-us-cta {
    text-align: center;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--space-4xl) 0;
    background-color: var(--color-white);
}

/* Removed background patterns for cleaner look */

.about-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.about-content {
    display: grid;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.mission,
.founder-story {
    background-color: var(--color-cream);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

/* Removed background patterns from mission and founder story boxes */

.mission h3,
.founder-story h3 {
    color: var(--color-primary-terracotta);
    margin-bottom: var(--space-md);
}

.story-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.story-header h3 {
    margin-bottom: 0;
}

.founder-instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-primary-terracotta);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    background-color: rgba(210, 105, 30, 0.1);
    flex-shrink: 0;
}

.founder-instagram-link:hover {
    color: #E4405F;
    background-color: rgba(228, 64, 95, 0.1);
    transform: scale(1.05);
}

.founder-instagram-link svg {
    transition: transform var(--transition-fast);
}

.closing-message {
    font-size: var(--font-size-large);
    color: var(--color-primary-terracotta);
    text-align: center;
    margin-top: var(--space-lg);
}

/* Founder story image layout */
.founder-image {
    float: left;
    margin: 0 var(--space-lg) var(--space-md) 0;
    max-width: 250px;
}

.founder-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
    filter: grayscale(20%);
}

.founder-photo:hover {
    transform: scale(1.02);
    filter: grayscale(0%);
}

.story-content > p {
    margin-bottom: var(--space-sm);
    text-align: justify;
    line-height: var(--line-height-relaxed);
}

/* Clear float after story content */
.story-content::after {
    content: '';
    display: table;
    clear: both;
}

/* Responsive layout for founder section */
@media (max-width: 767px) {
    .founder-image {
        float: none;
        margin: 0 auto var(--space-md) auto;
        display: block;
        text-align: center;
        max-width: 200px;
    }
    
    .story-content > p {
        text-align: left;
    }
}

.about-cta {
    text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--space-4xl) 0;
    background-color: var(--color-primary-terracotta);
    color: var(--color-dark-text);
}

.contact-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.contact .section-header h2,
.contact .section-header p {
    color: var(--color-dark-text);
}

.contact-content {
    text-align: center;
}

.contact-info {
    background-color: var(--color-cream);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 700px;
    margin: 0 auto;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background-color: rgba(255, 255, 255, 0.15);
    padding: var(--space-sm) var(--space-xs);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    justify-content: flex-start;
    backdrop-filter: blur(10px);
}

.contact-method:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

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

.contact-link {
    color: var(--color-dark-text);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.contact-link.whatsapp:hover {
    color: #25D366;
}

.contact-link.instagram:hover {
    color: #E4405F;
}

/* Mobile responsive styles for contact methods */
@media (max-width: 767px) {
    .contact-methods {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
    
    .contact-method {
        justify-content: center;
    }
}

.process-explanation {
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(10px);
}

.process-explanation h3 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.process-explanation ol {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    padding-left: var(--space-md);
}

.process-explanation li {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-large);
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: linear-gradient(180deg, var(--color-dark-text) 0%, #2C2C2C 50%, var(--color-dark-text) 100%);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D2691E' fill-opacity='0.03'%3E%3Cpolygon points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-content {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand h3 {
    color: var(--color-primary-terracotta);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: var(--color-light-text);
}

.footer-links {
    display: grid;
    gap: var(--space-lg);
}

.footer-section h4 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-base);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section a {
    color: var(--color-light-text);
    font-size: var(--font-size-small);
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--color-primary-terracotta);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-light-text);
    font-size: var(--font-size-small);
    margin: 0;
}

/* ===== MOBILE MENU STYLES ===== */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
    gap: var(--space-sm);
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal-content {
    background: linear-gradient(145deg, var(--color-white) 0%, #FEFEFE 50%, var(--color-cream) 100%);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D2691E' fill-opacity='0.008'%3E%3Ccircle cx='12.5' cy='12.5' r='1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--color-primary-terracotta);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-2xl);
    cursor: pointer;
    color: var(--color-light-text);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-dark-text);
    background-color: var(--color-cream);
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== MODAL PROCESS EXPLANATION ===== */
.modal-process-explanation {
    padding: var(--space-lg);
    background-color: var(--color-cream);
    border-bottom: 1px solid var(--color-border);
}

.modal-process-explanation h3 {
    color: var(--color-primary-terracotta);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-large);
}

.modal-process-explanation ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
}

.modal-process-explanation li {
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-relaxed);
}

.modal-process-explanation li strong {
    color: var(--color-primary-terracotta);
}

.process-note {
    font-size: var(--font-size-small);
    color: var(--color-light-text);
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* ===== FORM STYLES ===== */
.contact-form {
    padding: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-dark-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: all var(--transition-fast);
    background-color: var(--color-white);
    resize: vertical;
}

.form-group textarea {
    min-height: 100px;
    line-height: var(--line-height-normal);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-terracotta);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
    background-color: var(--color-white);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--color-error);
    background-color: rgba(220, 53, 69, 0.05);
}

.error-message {
    display: block;
    color: var(--color-error);
    font-size: var(--font-size-small);
    margin-top: var(--space-xs);
    font-weight: var(--font-weight-medium);
}

.form-error-message {
    display: none;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--color-error);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    color: var(--color-error);
    font-weight: var(--font-weight-medium);
    text-align: center;
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
}

.form-actions .cta-button {
    flex: 1;
    max-width: 200px;
}

/* ===== SUCCESS MESSAGE STYLES ===== */
.success-message {
    display: none;
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    background-color: var(--color-cream);
}

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

.success-icon {
    margin: 0 auto var(--space-md);
    width: 48px;
    height: 48px;
}

.success-message h3 {
    color: var(--color-success);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-xl);
}

.success-message p {
    color: var(--color-dark-text);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-relaxed);
}

.success-note {
    font-size: var(--font-size-small);
    color: var(--color-light-text);
    font-style: italic;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile Styles (up to 767px) */
@media (max-width: 767px) {
    .nav-container {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .nav-container .cta-button {
        order: 3;
        width: 100%;
        margin-top: var(--space-sm);
        font-size: var(--font-size-small);
        padding: var(--space-xs) var(--space-md);
        min-height: 40px;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    .mobile-menu-toggle {
        order: 2;
    }
    
    .nav-menu {
        order: 4;
        width: 100%;
    }
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    :root {
        --container-padding: var(--space-lg);
        --font-size-base: 1.125rem;    /* 18px */
    }
    
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
    
    .opening-question {
        font-size: var(--font-size-2xl);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
        align-items: start;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .form-actions {
        justify-content: center;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-us-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .nav-container {
        padding: var(--space-md) var(--container-padding);
    }
    
    .cta-button:hover {
        transform: translateY(-3px);
    }
    
    .service-card:hover {
        transform: translateY(-6px);
    }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-tagline {
        font-size: 2rem;
    }
    
    .why-us-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3xl);
    }
    
    .opening-question {
        font-size: var(--font-size-3xl);
    }
    
    .why-point {
        padding: var(--space-2xl);
    }
    
    .why-point h3 {
        font-size: var(--font-size-2xl);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary-terracotta: #B8460E;
        --color-light-terracotta: #D2691E;
        --color-dark-text: #000000;
        --color-light-text: #333333;
    }
}

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

/* Print styles */
@media print {
    .header,
    .footer,
    .cta-button,
    .modal {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .service-card,
    .why-point {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for animations */
.cta-button,
.service-card,
.why-point,
.modal-content {
    will-change: transform;
}

.cta-button:hover,
.service-card:hover,
.why-point:hover {
    transform: translateZ(0); /* Force GPU acceleration */
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* WebP support with fallback */
.webp .hero-img {
    background-image: url('assets/images/hero-mother-baby.webp');
}

.no-webp .hero-img {
    background-image: url('assets/images/hero-mother-baby.jpg');
}

/* Critical CSS inlining optimization */
.above-fold {
    contain: layout style paint;
}

/* Optimize font loading */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter Regular'), local('Inter-Regular');
}

/* Container queries support (future-proofing) */
@supports (container-type: inline-size) {
    .service-card {
        container-type: inline-size;
    }
    
    @container (min-width: 300px) {
        .service-card {
            padding: var(--space-xl);
        }
    }
}