/* ==========================================================================
   PRIME AIR LAB SOLUTIONS - PREMIUM CORPORATE B2B DESIGN SYSTEM
   Theme: "Clinical B2B Corporate Light Mode" with Teal Accents
   ========================================================================== */

/* --- Google Fonts Integration --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Hanken+Grotesk:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* --- Design Tokens / CSS Variables --- */
:root {
    /* Color Brand Palette - Premium White & Off-White */
    --color-bg: #ffffff;
    --color-surface-lowest: #ffffff;
    --color-surface-low: #fcfdfc; /* Premium off-white */
    --color-surface: #ffffff;
    --color-surface-high: #f0f4f2; /* Soft premium border */
    --color-surface-highest: #e8edea;
    --color-surface-container: #f0f4f2;
    
    /* Corporate Brand Primary Colors - Dark Forest Green */
    --color-primary: #064022; 
    --color-on-primary: #ffffff;
    --color-primary-container: #e8f5e9;
    --color-on-primary-container: #064022;
    
    /* Secondary Colors - Leaf Green */
    --color-secondary: #0a5c36;
    --color-on-secondary: #ffffff;
    --color-secondary-container: #fff4ed; /* Very soft orange container for tags */
    --color-on-secondary-container: #ff6a00; /* Logo Orange Accent */
    
    /* Accent Highlights - Orange Accent */
    --color-accent: #ff6a00;
    --color-on-accent: #ffffff;
    
    /* Visual Borders & Shading */
    --color-outline: #d6e0db; /* Soft premium outline */
    --color-outline-variant: #eef2f0; /* Subtle hairline separator */
    --color-on-surface: #064022; /* Primary premium green for high legibility */
    --color-on-surface-variant: #112d1e; /* Darker green */
    --color-error: #ba1a1a;
    
    /* Typography Fonts */
    --font-display: 'Hanken Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Border Radius Definitions */
    --radius-sm: 4px; /* Slightly rounded for premium modern look */
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Spacing Units */
    --container-max-width: 1200px;
    --grid-gutter: 24px;
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    color: var(--color-on-surface);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

/* --- Material Symbols Support --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--color-surface-lowest);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: pulsePreloader 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.preloader-icon {
    font-size: 64px;
    color: var(--color-accent);
}

.preloader-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

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

/* --- Selection Color --- */
::selection {
    background-color: var(--color-secondary-container);
    color: var(--color-on-secondary-container);
}

/* ==========================================================================
   PREMIUM CLINICAL UTILITIES
   ========================================================================== */

.stainless-border {
    border: 1px solid var(--color-outline-variant);
}

.tonal-layer {
    background-color: var(--color-surface-low);
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface-low);
}

::-webkit-scrollbar-thumb {
    background: var(--color-surface-highest);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Typography styles */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.text-display-lg {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-headline-md {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.text-headline-sm {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
}

.text-title-lg {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-primary);
}

.text-label-sm {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.text-label-md {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.text-body-lg {
    font-size: 1.125rem;
    color: var(--color-on-surface-variant);
    line-height: 1.6;
}

.text-body-md {
    font-size: 0.975rem;
    color: var(--color-on-surface-variant);
    line-height: 1.6;
}

.text-body-sm {
    font-size: 0.875rem;
    color: var(--color-on-surface-variant);
    line-height: 1.5;
}

/* ==========================================================================
   LAYOUT STRUCTURES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* --- Top Header Navigation --- */
header {
    width: 100%;
    height: auto; min-height: 90px; padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-outline-variant);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

header.scrolled {
    height: 70px;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.04);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.brand-logo-img {
    max-height: 64px; width: auto; object-fit: contain;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

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

/* Desktop Menu Links */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-on-surface-variant);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Toggle Menu button */
.mobile-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Mobile Menu Drawer --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--color-surface-lowest);
    border-left: 1px solid var(--color-outline-variant);
    z-index: 1000;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-link {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-on-surface-variant);
    text-decoration: none;
    padding: 6px 0 6px 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover, .mobile-menu-link.active {
    color: var(--color-primary);
    border-left-color: var(--color-accent);
}

/* --- Premium B2B Buttons --- */
.btn-primary {
    background: linear-gradient(180deg, #0c683b 0%, #064022 100%);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 22px;
    border: 1px solid #14723e;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.05em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(6, 64, 34, 0.18);
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #0e7b46 0%, #08532c 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(6, 64, 34, 0.28);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 22px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 64, 34, 0.15);
}

.btn-secondary:active {
    transform: translateY(1px);
}

/* ==========================================================================
   SECTIONS IMPLEMENTATION
   ========================================================================== */

main {
    margin-top: 80px;
}

.section-padding {
    padding: 64px 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 56px;
}

/* --- Hero Section --- */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ffffff 25%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 680px;
    display: flex;
    flex-direction: column;
}

.hero-tag {
    align-self: flex-start;
    padding: 6px 14px;
    background-color: var(--color-secondary-container);
    color: var(--color-on-secondary-container);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid var(--color-surface-high);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-on-surface-variant);
}

.trust-icon {
    color: var(--color-secondary);
    font-size: 18px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: flex-start;
}

.about-stat-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
    border-top: 1px solid var(--color-outline-variant);
    padding-top: 24px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-secondary);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-on-surface-variant);
}

.about-partners-pane {
    background-color: var(--color-surface-low);
    padding: 32px;
    border-radius: var(--radius-md);
}

.partners-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.partner-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-surface-lowest);
    padding: 16px;
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.partner-avatar {
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-avatar span {
    font-size: 52px;
}

.partner-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.partner-role {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.partner-location {
    font-size: 0.72rem;
    color: var(--color-on-surface-variant);
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gutter);
}

.service-card {
    background-color: var(--color-surface-lowest);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(6, 64, 34, 0.04);
    transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    box-shadow: 0 16px 36px rgba(6, 64, 34, 0.09);
    transform: translateY(-6px);
}

.service-img-wrapper {
    height: 200px;
    overflow: hidden;
    background-color: var(--color-surface-low);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.06);
}

.service-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.service-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid var(--color-outline-variant);
    padding-top: 16px;
    margin-top: 8px;
}

.btn-card-details {
    background: #ff6a00;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 0;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-card-details:hover {
    background-color: #e65f00;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 106, 0, 0.3);
}

.btn-card-quote {
    background: linear-gradient(180deg, #0c683b 0%, #064022 100%);
    color: #ffffff;
    border: 1px solid #14723e;
    padding: 10px 0;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-align: center;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-card-quote:hover {
    background: linear-gradient(180deg, #0e7b46 0%, #08532c 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 10px rgba(6, 64, 34, 0.2);
}

/* --- How We Work Process Timeline --- */
.process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
}

.process-step {
    position: relative;
    padding-left: 64px;
}

.step-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background-color: var(--color-secondary-container);
    color: var(--color-on-secondary-container);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.step-desc {
    font-size: 0.875rem;
    color: var(--color-on-surface-variant);
    line-height: 1.5;
}

/* --- Projects Portfolio --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gutter);
}

.project-card-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.project-card-wrap .project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-wrap:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6, 64, 34, 0.6) 0%, rgba(6, 64, 34, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card-wrap:hover .project-overlay {
    opacity: 1;
}

/* --- Feasibility Inquiry Form --- */
.consultation-card {
    background-color: var(--color-surface-lowest);
    border: 1px solid var(--color-outline-variant);
    display: grid;
    grid-template-columns: 1fr;
}

.consultation-info-pane {
    padding: 40px 24px;
    background-color: var(--color-surface-low);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
}

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

.info-item {
    display: flex;
    gap: 16px;
}

.info-icon {
    color: var(--color-secondary);
    font-size: 30px;
}

.consultation-form-pane {
    padding: 40px 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-surface-highest);
    background-color: var(--color-surface-lowest);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 1px var(--color-secondary);
}

.form-success-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 48px 0;
}

.success-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-secondary-container);
    color: var(--color-on-secondary-container);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-badge span {
    font-size: 36px;
}

/* --- Newsletters & Footer --- */
footer {
    background-color: var(--color-surface-low);
    border-top: 1px solid var(--color-outline-variant);
}

.footer-top {
    padding: 64px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

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

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

.footer-column a {
    color: var(--color-on-surface-variant);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--color-outline-variant);
    background-color: var(--color-surface-lowest);
    border-right: none;
    outline: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.875rem;
}

.newsletter-submit-btn {
    background: linear-gradient(180deg, #0c683b 0%, #064022 100%);
    color: var(--color-on-primary);
    border: 1px solid #14723e;
    padding: 0 16px;
    cursor: pointer;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.newsletter-submit-btn:hover {
    background: linear-gradient(180deg, #0e7b46 0%, #08532c 100%);
}

.footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 32px 0;
}

/* ==========================================================================
   INTERACTIVE PORTAL MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease forwards;
}

.modal-card {
    background-color: var(--color-surface-lowest);
    border: 1px solid var(--color-primary);
    max-width: 540px;
    width: 100%;
    padding: 32px;
    position: relative;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-outline);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--color-primary);
}

.modal-title {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-outline-variant);
    font-size: 1.35rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px dashed var(--color-outline-variant);
}

.spec-item strong {
    color: var(--color-on-surface);
}

.spec-item span {
    color: var(--color-secondary);
    font-weight: 700;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   MEDIA QUERIES (DESKTOP RESPONSIVE REFINEMENT)
   ========================================================================== */

@media (min-width: 576px) {
    .hero-cta {
        flex-direction: row;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-toggle {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1.2fr 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .consultation-card {
        grid-template-columns: 1fr 1.2fr;
    }

    .consultation-info-pane {
        padding: 56px 40px;
    }

    .consultation-form-pane {
        padding: 56px 40px;
    }

    .footer-top {
        grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    }

    .about-stat-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .btn-primary, .btn-secondary {
        padding: 14px 28px;
    }

    .section-padding {
        padding: 96px 0;
    }

    .hero {
        padding: 80px 0;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   RESPONSIVE UTILITY GRID CLASSES
   (Replacing invalid inline md-grid-template-columns properties)
   ========================================================================== */

/* Two-column grid on md+ with sidebar ratio */
.grid-md-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

/* Two equal columns on md+ */
.grid-md-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

/* 1col -> 2col -> 4col grid */
.grid-sm2-lg4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .grid-sm2-lg4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-md-sidebar {
        grid-template-columns: 1.2fr 1fr;
    }
    .grid-md-2col {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .grid-sm2-lg4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   MOBILE-SPECIFIC RESPONSIVE FIXES (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
    /* Hero overlay: cover more on mobile so text is readable */
    .hero-overlay {
        background: linear-gradient(180deg, #ffffff 15%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.7) 100%);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-trust-row {
        gap: 12px;
    }

    .trust-item {
        flex: 1 1 calc(50% - 12px);
        min-width: 0;
    }

    .trust-item .text-label-sm {
        font-size: 0.65rem;
    }

    /* Footer stacks to 1 column (already 1fr default), remove invalid span */
    .footer-column {
        grid-column: span 1 !important;
    }

    .footer-top {
        gap: 32px;
        padding: 40px 0;
    }

    .footer-bottom {
        padding: 20px 0;
        text-align: center;
    }

    /* Modal fixes for mobile */
    .modal-card {
        padding: 24px 16px;
        max-width: 95vw;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 1.1rem;
        padding-right: 32px;
    }

    .modal-close-btn {
        top: 16px;
        right: 16px;
    }

    /* Spec items stack vertically on mobile */
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .spec-item span {
        font-size: 0.8rem;
    }

    /* Service card image height on mobile */
    .service-img-wrapper {
        height: 180px;
    }

    .service-body {
        padding: 16px;
    }

    /* Process step padding */
    .process-step {
        padding-left: 52px;
    }

    /* CTA panel padding on mobile */
    .cta-panel-inner {
        padding: 32px 20px !important;
    }

    /* Section header text alignment */
    .section-header {
        margin-bottom: 36px;
    }

    /* Container padding for mobile */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Partner avatar scaling */
    .partner-avatar span {
        font-size: 40px;
    }

    /* Buttons - ensure they fit on mobile */
    .btn-primary, .btn-secondary {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    /* Page banner mobile */
    .page-banner {
        padding: 28px 0;
    }

    .page-banner-title {
        font-size: 1.5rem;
    }

    /* Consultation form mobile */
    .consultation-info-pane {
        padding: 24px 16px;
    }

    .consultation-form-pane {
        padding: 24px 16px;
    }

    /* Project card height on mobile */
    .project-card-wrap {
        height: 220px;
    }

    /* WhatsApp widget smaller on mobile */
    .floating-whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    color: #25d366; /* Official WhatsApp Green for the SVG icon itself */
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: 2999;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gentleFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(37, 211, 102, 0.3));
}
}

/* ==========================================================================
   EXTRA-SMALL SCREEN FIXES (max-width: 400px)
   ========================================================================== */
@media (max-width: 400px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .trust-item {
        flex: 1 1 100%;
    }

    .brand-text {
        font-size: 1rem;
    }

    .text-display-lg {
        font-size: 1.75rem;
    }

    .text-headline-md {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        border-right: 1px solid var(--color-outline-variant);
        border-radius: var(--radius-sm);
    }

    .newsletter-submit-btn {
        border-radius: var(--radius-sm);
        padding: 10px;
    }
}

/* ==========================================================================
   DIRECT WHATSAPP CONVERSION ELEMENTS
   ========================================================================== */

.btn-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Official WhatsApp Green */
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-cta:hover {
    background-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-cta .material-symbols-outlined {
    margin-right: 8px;
    font-size: 20px;
}

/* Floating WhatsApp Widget styling */
.floating-whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: 2999;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gentleFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.floating-whatsapp-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-full);
}

.floating-whatsapp-widget:hover {
    transform: translateY(-4px) scale(1.05);
    background-color: transparent;
    box-shadow: none;
    animation-play-state: paused;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* Removed widget pulse per user request */

@keyframes gentleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   PAGE BANNER & BREADCRUMBS (MULTI-PAGE SETUP)
   ========================================================================== */
.page-banner {
    background-color: var(--color-primary);
    background-image: radial-gradient(circle at 80% 20%, rgba(10, 92, 54, 0.15) 0%, transparent 50%), linear-gradient(180deg, rgba(6, 64, 34, 0.9) 0%, var(--color-primary) 100%);
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-outline-variant);
    position: relative;
    overflow: hidden;
}

.page-banner.about-banner {
    background-image: linear-gradient(180deg, rgba(6, 64, 34, 0.85) 0%, rgba(6, 60, 32, 0.9) 100%), url('about_banner.png');
    background-size: cover;
    background-position: center;
}

.page-banner.projects-banner {
    background-image: linear-gradient(180deg, rgba(6, 64, 34, 0.85) 0%, rgba(6, 60, 32, 0.9) 100%), url('projects_banner.png');
    background-size: cover;
    background-position: center;
}

.page-banner.process-banner {
    background-image: linear-gradient(180deg, rgba(6, 64, 34, 0.85) 0%, rgba(6, 60, 32, 0.9) 100%), url('process_banner.png');
    background-size: cover;
    background-position: center;
}

.page-banner.contact-banner {
    background-image: linear-gradient(180deg, rgba(6, 64, 34, 0.85) 0%, rgba(6, 60, 32, 0.9) 100%), url('contact_banner.png');
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .page-banner {
        padding: 64px 0;
    }
}

.page-banner-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #ffffff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-primary-container);
}

.breadcrumb a {
    color: var(--color-primary-container);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--color-accent); /* Logo orange hover indicator */
}

.breadcrumb span.separator {
    color: var(--color-outline);
}

.breadcrumb span.current {
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================================
   PREMIUM UI/UX ENHANCEMENTS
   ========================================================================== */

/* 1. Global Smooth Scroll Padding */
html {
    scroll-padding-top: var(--header-height, 96px);
}

/* 2. Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface-lowest);
    border-left: 1px solid var(--color-outline-variant);
}

::-webkit-scrollbar-thumb {
    background: var(--color-outline);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-surface-lowest);
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* 3. Sticky Navbar Scrolled Style */
header#header.scrolled {
    box-shadow: 0 10px 30px rgba(6, 64, 34, 0.06), 0 1px 2px rgba(6, 64, 34, 0.02);
    border-bottom: 1px solid var(--color-outline-variant);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 4. Enhanced Button Hover Lift and Transitions */
.btn-primary, .btn-secondary, .btn-card-details, .btn-card-quote {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px rgba(6, 64, 34, 0.28) !important;
}

.btn-secondary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(6, 64, 34, 0.15) !important;
}

.btn-card-details:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.4) !important;
}

.btn-card-quote:hover {
    transform: translateY(-3px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 20px rgba(6, 64, 34, 0.25) !important;
}

/* 5. Gentle Ken Burns Zoom Effect */
@keyframes kenBurns {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.hero-img {
    animation: kenBurns 24s ease-in-out infinite;
    will-change: transform;
}

/* 6. Sequential Hero Content Entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content .hero-tag {
    animation-delay: 0.1s;
}

.hero-content h1 {
    animation-delay: 0.3s;
}

.hero-content p {
    animation-delay: 0.5s;
}

.hero-content .hero-cta {
    animation-delay: 0.7s;
}

.hero-content .hero-trust-row {
    animation-delay: 0.9s;
}

/* 7. Lazy Loading Image Soft Fade-In */
.lazy-img {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.lazy-img.loaded {
    opacity: 1 !important;
}

/* 8. Scroll Reveal Animation Classes */
.reveal-element {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up {
    transform: translateY(32px);
}

.reveal-fade-in {
    transform: none;
}

.reveal-zoom-in {
    transform: scale(0.96);
}

.reveal-element.active {
    opacity: 1 !important;
    transform: none !important;
}







