/* ==========================================================================
   BUCAREST DISTRIBUIDORA - STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Custom Variables
   -------------------------------------------------------------------------- */
:root {
    --primary-teal: #082a2a;
    --primary-teal-light: #0d3d3d;
    --primary-teal-dark: #041717;
    --primary-teal-glow: rgba(8, 42, 42, 0.1);
    
    --accent-red: #cc1818;
    --accent-red-hover: #b01212;
    --accent-red-light: #ffeded;
    
    --text-main: #0c2121;
    --text-muted: #556b6b;
    --text-light: #e6f0f0;
    
    --bg-white: #ffffff;
    --bg-light: #f6faf9;
    --bg-dark: #051b1b;
    
    --border-color: rgba(8, 42, 42, 0.08);
    --border-light: rgba(255, 255, 255, 0.1);
    
    --shadow-sm: 0 2px 8px rgba(8, 42, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(8, 42, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(8, 42, 42, 0.12);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-main: 'Outfit', sans-serif;
    --header-height: 100px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   2. Typography & Base Elements
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-teal);
}

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

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

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

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   3. Reusable Components (Buttons, Containers, Tags)
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-tagline {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-red);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 40px;
    text-transform: uppercase;
    transition: var(--transition-normal);
}

.btn-outline {
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--accent-red);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(204, 24, 24, 0.2);
}

.btn-filled {
    background-color: var(--primary-teal);
    color: var(--bg-white);
}

.btn-filled:hover {
    background-color: var(--primary-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 42, 42, 0.25);
}

.btn-red {
    background-color: var(--accent-red);
    color: var(--bg-white);
}

.btn-red:hover {
    background-color: var(--accent-red-hover);
    box-shadow: 0 8px 25px rgba(204, 24, 24, 0.35);
}

.chevron-icon {
    transition: transform var(--transition-fast);
}

.btn:hover .chevron-icon {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

.main-header.scrolled {
    height: 80px;
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.bucarest-logo {
    height: 80px; /* Increased to make it visually larger on PC */
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

.main-header.scrolled .bucarest-logo {
    height: 60px; /* Increased to make scrolled version look larger */
}

/* Footer-specific logo sizing */
.footer-brand-col .bucarest-logo {
    height: 95px; /* Significantly larger in the footer */
}

/* Desktop Navigation */
.primary-navigation {
    display: block;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-red);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    z-index: 1001;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-teal);
    position: relative;
    transition: var(--transition-normal);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary-teal);
    transition: var(--transition-normal);
}

.hamburger::before { top: -8px; left: 0; }
.hamburger::after { bottom: -8px; left: 0; }

.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* --------------------------------------------------------------------------
   5. Hero Section — full-width banner with text overlay
   -------------------------------------------------------------------------- */

/* Section sits below the fixed header */
.hero-section {
    margin-top: var(--header-height);
    background-color: var(--bg-white);
    position: relative; /* anchor for absolute overlay */
}

/* Full-width image — its natural height = section height */
.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Text overlay on top-left of the image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 44%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 32px 40px 64px;
}

.hero-content {
    width: 100%;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    color: var(--primary-teal);
}

.hero-title .accent-red {
    color: var(--accent-red);
}

.hero-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Differentiators Bar
   -------------------------------------------------------------------------- */
.differentiators-bar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.diff-container {
    background-color: var(--bg-dark);
    border-radius: var(--border-radius-md);
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.diff-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
}

.diff-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    transition: var(--transition-normal);
}

.diff-item:hover .diff-icon-wrapper {
    background-color: var(--accent-red);
    color: var(--bg-white);
    transform: scale(1.1);
}

.diff-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 2px;
}

.diff-text p {
    font-size: 0.8rem;
    color: #a0b0b0;
}

/* --------------------------------------------------------------------------
   6. Segments Section
   -------------------------------------------------------------------------- */
.segments-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-header {
    margin-bottom: 60px;
}

.segments-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.segment-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.segment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(204, 24, 24, 0.2);
}

.card-image-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #f7f9f9;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.segment-card:hover .card-image {
    transform: scale(1.08);
}

.card-content {
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-icon-circle {
    position: absolute;
    top: -24px;
    left: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-teal);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(8, 42, 42, 0.2);
    transition: var(--transition-normal);
}

.segment-card:hover .card-icon-circle {
    background-color: var(--accent-red);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 8px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-red);
    letter-spacing: 1px;
}

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

.segment-card:hover .card-link svg {
    transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   7. Infrastructure / Stats Section
   -------------------------------------------------------------------------- */
.stats-section {
    padding: 100px 0;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.stats-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    z-index: 1;
}

.stats-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.stats-text-content {
    max-width: 480px;
}

.stats-title {
    color: var(--bg-white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.stats-desc {
    font-size: 1.1rem;
    color: #a0b0b0;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.stat-counter-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transition: var(--transition-normal);
}

.stat-counter-item:hover {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.counter-label {
    font-size: 0.95rem;
    color: #a0b0b0;
    font-weight: 500;
}

.counter-icon-wrapper {
    color: var(--accent-red);
    margin-bottom: 4px;
}

.counter-text-group {
    display: flex;
    flex-direction: column;
}

.counter-highlight {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-white);
}

.counter-sub {
    font-size: 0.9rem;
    color: #a0b0b0;
}

/* --------------------------------------------------------------------------
   8. About Us Section
   -------------------------------------------------------------------------- */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    align-items: center;
}

.about-content {
    grid-column: 1 / 2;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.about-visual {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Warehouse circular shape matching reference */
.warehouse-image-frame {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--bg-white);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.warehouse-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 3px solid var(--accent-red);
    z-index: 1;
}

.about-pillars {
    grid-column: 1 / 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pillar-bullet {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--accent-red-light);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pillar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-teal);
}

/* --------------------------------------------------------------------------
   9. Call to Action (CTA) Section
   -------------------------------------------------------------------------- */
.cta-section {
    position: relative;
    width: 100%;
    aspect-ratio: 2117 / 743; /* Maintain exact aspect ratio to prevent clipping curves */
    display: flex;
    align-items: flex-end; /* Align content to the lower half */
    padding-bottom: 7%; /* Push text up into the green zone */
    color: var(--bg-white);
    background-color: var(--bg-white);
    overflow: hidden;
}

.cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-info {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 750px;
}

.cta-icon-wrapper {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
}

.cta-title {
    color: var(--bg-white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.cta-title .text-red {
    color: var(--accent-red);
}

.cta-subtitle {
    font-size: 1.05rem;
    color: #a0b0b0;
}

.cta-btn-area {
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Footer Section
   -------------------------------------------------------------------------- */
.main-footer {
    background-color: var(--bg-dark);
    color: #a0b0b0;
    padding: 80px 0 24px 0;
    border-top: 1px solid var(--border-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 48px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: 1px;
    margin-bottom: 24px;
}

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

.footer-list a {
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-list a:hover {
    color: var(--accent-red);
    padding-left: 4px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-item.align-start {
    align-items: flex-start;
}

.contact-icon {
    color: var(--accent-red);
    flex-shrink: 0;
}

.mt-2 {
    margin-top: 4px;
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0b0b0;
    transition: var(--transition-normal);
}

.footer-socials a:hover {
    background-color: var(--accent-red);
    color: var(--bg-white);
    border-color: var(--accent-red);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 24px 24px 0 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   11. Responsive Design Styles (Media Queries)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    /* Hero overlay shrinks on tablet */
    .hero-overlay {
        width: 55%;
        padding-left: 32px;
        padding-right: 24px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .cta-section {
        aspect-ratio: auto;
        padding: 80px 0;
        display: block;
        background-color: var(--primary-teal);
    }
    
    .cta-bg-image {
        opacity: 0.3;
        background-size: cover;
        background-position: center;
    }
    
    .diff-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .segments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .stats-text-content {
        max-width: 100%;
    }
    
    .stats-grid {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .about-visual {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
    }
    
    .about-pillars {
        grid-column: 1 / -1;
        grid-row: 3 / 4;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .cta-info {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .footer-contact-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .main-header .bucarest-logo {
        height: 58px; /* Increased to be even more prominent on mobile */
    }

    /* ---- Mobile hero: text above, image below (stacked) ---- */
    .hero-section {
        display: flex;
        flex-direction: column;
    }

    .hero-overlay {
        position: static;   /* leave normal flow — appears above the image */
        width: 100%;
        height: auto;
        padding: 28px 20px 20px 20px;
        order: -1;          /* keep first even though image comes before in absolute */
    }

    .hero-image {
        width: 100%;
        height: auto;
        display: block;
        order: 0;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-description {
        font-size: 0.88rem;
    }
    
    /* Mobile Navigation Drawer */
    .mobile-nav-toggle {
        display: block;
    }
    
    .primary-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        border-top: 1px solid var(--border-color);
        padding: 40px 24px;
    }
    
    .primary-navigation.open {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .diff-container {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    
    .segments-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .warehouse-image-frame {
        width: 280px;
        height: 280px;
    }
    
    .about-visual::before {
        width: 280px;
        height: 280px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --------------------------------------------------------------------------
   6. Contact Modal
   -------------------------------------------------------------------------- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(8, 42, 42, 0.6); /* Deep teal overlay with transparency */
    backdrop-filter: blur(8px); /* Blur effect */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    padding: 40px;
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 24px;
    top: 20px;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-red);
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-teal);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(8, 42, 42, 0.15);
    background-color: var(--bg-white);
}

.form-group textarea {
    resize: vertical;
}

.w-100 {
    width: 100%;
}

.form-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(46, 117, 89, 0.15);
    color: #2e7559;
    border: 1px solid rgba(46, 117, 89, 0.3);
}

.form-status.error {
    display: block;
    background-color: rgba(204, 24, 24, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(204, 24, 24, 0.2);
}

.form-status.loading {
    display: block;
    background-color: rgba(8, 42, 42, 0.05);
    color: var(--primary-teal);
    border: 1px solid rgba(8, 42, 42, 0.1);
}
