/* =========================================
   DESIGN TOKENS & VARIABLES
========================================= */
:root {
    /* Color Palette */
    --color-primary: #0ea5e9; /* Vibrant Sky Blue */
    --color-primary-dark: #0284c7;
    --color-secondary: #10b981; /* Fresh Mint Green, symbolizes health/cleanliness */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    /* Borders & Radius */
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s ease;
}

/* =========================================
   RESET & GLOBAL STYLES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* =========================================
   HEADER & NAVBAR
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 20px 0;
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all var(--transition-fast);
}

.header.scrolled .menu-toggle .bar {
    background-color: var(--color-text-main);
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.corporate-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.corporate-logo:hover {
    transform: scale(1.02);
}

.logo-svg {
    width: 36px;
    height: 36px;
    color: var(--color-secondary);
    transition: color var(--transition-normal);
}

.header:not(.scrolled) .logo-svg {
    color: #fff;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: var(--color-text-main);
    text-transform: uppercase;
    transition: color var(--transition-normal);
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-primary);
    line-height: 1;
    transition: color var(--transition-normal);
}

/* Force colors on dark/initial header background */
.header:not(.scrolled) .logo-title {
    color: #ffffff;
}

.header:not(.scrolled) .logo-subtitle {
    color: #bae6fd;
}

.header:not(.scrolled) .nav-link {
    color: #ffffff;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-fast);
}

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

.header:not(.scrolled) .nav-link::after {
    background: #ffffff;
}

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

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('../img/hero_background_1776979829189.png') no-repeat center center/cover;
    z-index: -2;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 20%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    color: #ffffff;
    text-align: center;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* =========================================
   SERVICES SECTION (Placeholder)
========================================= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--color-surface);
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.2);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid var(--color-primary);
}

.service-content {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-btn {
    margin-top: 24px;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    background: transparent;
}

.service-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--color-text-main);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
}

/* =========================================
   CONTACT & MAP SECTION
========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

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

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
    border: 1px solid rgba(0,0,0,0.03);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: 1.5rem;
    background: rgba(14, 165, 233, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.info-card h4 {
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.info-card p, .info-card a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.info-card a:hover {
    color: var(--color-primary);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE)
========================================= */
@media (max-width: 768px) {
    /* Navbar Re-structuring for Mobile */
    .header {
        padding: 15px 0;
        background: var(--color-surface);
        box-shadow: var(--shadow-sm);
    }
    
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        gap: 40px; /* Always enforce a distinct gap between the logo and hamburger */
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle .bar {
        background-color: var(--color-text-main);
    }

    .header .btn-primary {
        display: none;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-surface);
        padding: 20px 0;
        gap: 20px;
        box-shadow: var(--shadow-sm);
        clip-path: circle(0px at top left);
        transition: all 0.4s ease-in-out;
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-links.active {
        clip-path: circle(150% at top left);
        opacity: 1;
        pointer-events: all;
    }

    /* Force dark text on mobile header regardless of scroll state */
    .header:not(.scrolled) .logo-title,
    .header:not(.scrolled) .logo-svg {
        color: var(--color-text-main);
    }
    
    .header:not(.scrolled) .logo-subtitle {
        color: var(--color-primary);
    }
    
    .header:not(.scrolled) .nav-link {
        color: var(--color-text-main);
    }
    
    .header:not(.scrolled) .logo-highlight {
        color: var(--color-primary);
    }
    
    .header:not(.scrolled) .nav-link::after {
        background: var(--color-primary);
    }

    /* Hero adjustments */
    .hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    /* Global Section spacing */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

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