/* ===================================
   UTMB Health Pediatric Neonatology
   Custom Styles
   =================================== */

/* CSS Custom Properties */
:root {
    /* Coral Palette */
    --coral-50: #FFF1F3;
    --coral-100: #FFE4E8;
    --coral-200: #FFCDD7;
    --coral-300: #FFA3B5;
    --coral-400: #FF7090;
    --coral-500: #F472B6;
    --coral-600: #EC4899;
    --coral-700: #DB2777;
    --coral-800: #BE185D;
    --coral-900: #9D174D;
    
    /* Charcoal Palette */
    --charcoal-50: #F8FAFC;
    --charcoal-100: #F1F5F9;
    --charcoal-200: #E2E8F0;
    --charcoal-300: #CBD5E1;
    --charcoal-400: #94A3B8;
    --charcoal-500: #64748B;
    --charcoal-600: #475569;
    --charcoal-700: #334155;
    --charcoal-800: #1E293B;
    --charcoal-900: #0F172A;
    
    /* Pastel Accents */
    --pastel-mint: #D1FAE5;
    --pastel-lavender: #EDE9FE;
    --pastel-peach: #FFEDD5;
    --pastel-sky: #E0F2FE;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max: 1280px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--charcoal-800);
    background-color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(244, 114, 182, 0.1);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--charcoal-800);
    z-index: 1001;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--coral-500);
}

.logo-accent {
    color: var(--coral-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--charcoal-600);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral-500);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--coral-600);
}

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

.nav-cta {
    background: var(--coral-500);
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-base) !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--coral-600) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.35);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal-800);
    transition: all var(--transition-base);
    transform-origin: center;
}

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

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

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

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(30, 41, 59, 0.75) 50%,
        rgba(244, 114, 182, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    padding-top: 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        max-width: 720px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--coral-200);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--coral-400);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.hero-accent {
    color: var(--coral-300);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--charcoal-200);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--coral-500);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.3);
}

.btn-primary:hover {
    background: var(--coral-600);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(244, 114, 182, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--coral-300);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--charcoal-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    align-self: stretch;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--charcoal-300);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 1;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--coral-400);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ===================================
   Section Common Styles
   =================================== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--coral-600);
    margin-bottom: 1rem;
    position: relative;
    padding: 0 1rem;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--coral-300);
}

.section-tag::before {
    left: -1rem;
}

.section-tag::after {
    right: -1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--charcoal-800);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--charcoal-500);
    line-height: 1.7;
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--coral-50) 100%);
}

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

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition-base);
    border: 1px solid var(--charcoal-100);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coral-400), var(--coral-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(244, 114, 182, 0.12);
    border-color: var(--coral-200);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--coral-50);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--coral-600);
    transition: all var(--transition-base);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card:hover .service-icon {
    background: var(--coral-500);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--charcoal-800);
    margin-bottom: 0.75rem;
}

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

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--section-padding) 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.about-image {
    position: relative;
}

.image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
}

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

@media (min-width: 768px) {
    .image-wrapper img {
        height: 500px;
    }
}

.about-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--coral-200);
    border-radius: 20px;
    z-index: 0;
}

@media (min-width: 768px) {
    .about-accent {
        width: 200px;
        height: 200px;
        top: -30px;
        right: -30px;
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--charcoal-600);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-check {
    width: 28px;
    height: 28px;
    background: var(--pastel-mint);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    flex-shrink: 0;
}

.feature-check svg {
    width: 16px;
    height: 16px;
}

.feature-item span {
    font-size: 0.9375rem;
    color: var(--charcoal-700);
    font-weight: 500;
}

/* ===================================
   Team Section
   =================================== */
.team {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--coral-50) 0%, white 100%);
}

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

.team-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--charcoal-100);
    transition: all var(--transition-base);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.1);
}

.team-photo {
    overflow: hidden;
    height: 280px;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-photo img {
    transform: scale(1.08);
}

.team-info {
    padding: 2rem;
}

.team-info h4 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--charcoal-800);
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--coral-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.9375rem;
    color: var(--charcoal-500);
    line-height: 1.7;
}

/* ===================================
   Facility Section
   =================================== */
.facility {
    padding: var(--section-padding) 0;
    background: white;
}

.facility-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .facility-gallery {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .facility-item.large {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    
    .facility-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .facility-item:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
}

.facility-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.facility-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.facility-item.large img {
    height: 100%;
    min-height: 400px;
}

.facility-item:not(.large) img {
    height: 200px;
}

.facility-item:hover img {
    transform: scale(1.05);
}

.facility-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: white;
}

.facility-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.facility-caption p {
    font-size: 0.875rem;
    color: var(--charcoal-200);
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--charcoal-800) 0%, var(--charcoal-900) 100%);
}

.testimonials .section-tag {
    color: var(--coral-300);
}

.testimonials .section-tag::before,
.testimonials .section-tag::after {
    background: var(--coral-700);
}

.testimonials .section-title {
    color: white;
}

.testimonials .section-subtitle {
    color: var(--charcoal-300);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(244, 114, 182, 0.3);
    transform: translateY(-5px);
}

.testimonial-quote {
    color: var(--coral-400);
    margin-bottom: 1.5rem;
}

.testimonial-quote svg {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

.testimonial-text {
    font-size: 1.0625rem;
    color: var(--charcoal-100);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.author-location {
    font-size: 0.875rem;
    color: var(--charcoal-400);
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    position: relative;
    padding: clamp(4rem, 10vw, 8rem) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.85) 0%, rgba(219, 39, 119, 0.9) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, white 0%, var(--pastel-mint) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-text {
    font-size: 1.0625rem;
    color: var(--charcoal-600);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral-600);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.15);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal-800);
    margin-bottom: 0.25rem;
}

.contact-text-content p {
    font-size: 0.9375rem;
    color: var(--charcoal-500);
    line-height: 1.6;
}

.contact-text-content a {
    color: var(--coral-600);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.contact-text-content a:hover {
    color: var(--coral-700);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--charcoal-800);
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--charcoal-100);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal-800);
    transition: all var(--transition-fast);
    background: var(--charcoal-50);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral-400);
    background: white;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.1);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--pastel-mint);
    border-radius: 12px;
    margin-top: 1rem;
    color: #065F46;
    font-weight: 500;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    width: 24px;
    height: 24px;
    color: #059669;
    flex-shrink: 0;
}

/* ===================================
   Map Section
   =================================== */
.map-section {
    background: var(--charcoal-100);
}

.map-container {
    height: 400px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(30%);
    transition: filter var(--transition-base);
}

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

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--charcoal-900);
    color: var(--charcoal-300);
    padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    width: fit-content;
}

.footer-logo .logo-icon {
    color: var(--coral-400);
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--charcoal-400);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--charcoal-400);
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    color: var(--charcoal-400);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--coral-400);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact a {
    color: var(--coral-400);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--coral-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--charcoal-500);
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    color: var(--charcoal-600) !important;
}

/* ===================================
   Reveal Animations
   =================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Mobile Responsive
   =================================== */
@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-base);
    }
    
    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links a {
        font-size: 1.25rem;
        color: var(--charcoal-800);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active {
        background: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
        margin: 0 auto;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-accent {
        width: 80px;
        height: 80px;
        top: -15px;
        right: -15px;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.875rem;
    }
}
