﻿:root {
    /* Brand Accent - Bada Edifica Red */
    --color-primary: #ff0000;
    --color-primary-deep: #cc0000;
    --color-on-primary: #ffffff;
    
    /* Surface Colors */
    --color-canvas: #ffffff;
    --color-surface-soft: #f7f7f7;
    --color-surface-dark: #000000;
    --color-surface-deep: #111111;
    
    /* Dividers */
    --color-hairline: #f2f2f2;
    --color-hairline-strong: #000000;
    --color-divider-dark: rgba(255,255,255,0.16);
    
    /* Text Colors */
    --color-ink: #000000;
    --color-body: #222222;
    --color-charcoal: #222222;
    --color-mute: #555555;
    --color-ash: #777777;
    --color-stone: #c4c4c4;
    --color-on-dark: #ffffff;
    --color-on-dark-mute: rgba(255,255,255,0.8);
    
    /* Semantic */
    --color-error: #be6464;
    --color-warning: #f0ad4e;
    --color-success: #8dc572;
    --color-info: #337ab7;
    --color-link: #0000ee;
    
    /* Typography Scale */
    --font-display-xl: 64px;
    --font-display-lg: 48px;
    --font-display-md: 36px;
    --font-heading-lg: 28px;
    --font-heading-md: 22px;
    --font-heading-sm: 18px;
    --font-subtitle: 20px;
    --font-body-lg: 18px;
    --font-body-md: 16px;
    --font-body-sm: 15px;
    --font-button-lg: 16px;
    --font-button-md: 15px;
    --font-button-sm: 14px;
    --font-caption: 13px;
    --font-overline: 12px;
    
    /* Spacing */
    --space-xxs: 5px;
    --space-xs: 10px;
    --space-sm: 14px;
    --space-md: 20px;
    --space-lg: 28px;
    --space-xl: 36px;
    --space-xxl: 52px;
    --space-xxxl: 70px;
    --space-section: 100px;
    
    /* Border Radius */
    --rounded-none: 0px;
    --rounded-xs: 2px;
    --rounded-sm: 3px;
    --rounded-md: 4px;
    --rounded-pill: 46px;
    --rounded-full: 9999px;
    
    /* Font Family */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Oswald', 'Inter', sans-serif;
    --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    
    /* Container */
    --container-max: 1440px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-body-md);
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-ink);
    background-color: var(--color-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

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

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

::selection {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* ============================================
   LAYOUT
============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-section) 0;
    position: relative;
    overflow: hidden;
}

.section--dark {
    background-color: var(--color-surface-dark);
    color: var(--color-on-dark);
}

.section--dark .section-desc {
    color: var(--color-on-dark-mute);
}

.section--soft {
    background-color: var(--color-surface-soft);
}

/* Section Patterns */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.section--dark::before {
    opacity: 0.05;
}

.section > .container {
    position: relative;
    z-index: 1;
}

/* Dot Pattern */
.pattern-dots::before {
    background-image: radial-gradient(circle, var(--color-primary) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Grid Pattern */
.pattern-grid::before {
    background-image: 
        linear-gradient(to right, rgba(255, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Diagonal Pattern */
.pattern-diagonal::before {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 0, 0, 0.05) 10px,
        rgba(255, 0, 0, 0.05) 20px
    );
}

/* Favicon Pattern */
.pattern-favicon::before {
    background-image: url('../brand/favicon.png');
    background-size: 60px 60px;
    background-repeat: repeat;
    opacity: 0.04;
}

.pattern-favicon-dark::before {
    background-image: url('../brand/favicon.png');
    background-size: 60px 60px;
    background-repeat: repeat;
    opacity: 0.08;
}

/* Section with pattern */
.section-pattern-light {
    background-color: var(--color-canvas);
}

.section-pattern-light::before {
    background-image: radial-gradient(circle, var(--color-hairline) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.5;
}

.section-pattern-dark {
    background-color: var(--color-surface-dark);
    color: var(--color-on-dark);
}

.section-pattern-dark::before {
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, var(--font-display-lg));
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-lg);
}

.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--font-overline);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.section-desc {
    font-size: var(--font-body-lg);
    color: var(--color-mute);
    max-width: 600px;
    line-height: 1.6;
}

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

.section-header .section-desc {
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ============================================
   TYPOGRAPHY
============================================ */
.display-xl {
    font-family: var(--font-display);
    font-size: var(--font-display-xl);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
}

.display-lg {
    font-family: var(--font-display);
    font-size: var(--font-display-lg);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
}

.display-md {
    font-family: var(--font-display);
    font-size: var(--font-display-md);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
}

.heading-lg {
    font-family: var(--font-display);
    font-size: var(--font-heading-lg);
    font-weight: 700;
    line-height: 0.95;
}

.heading-md {
    font-family: var(--font-display);
    font-size: var(--font-heading-md);
    font-weight: 700;
    line-height: 0.95;
}

.heading-sm {
    font-family: var(--font-display);
    font-size: var(--font-heading-sm);
    font-weight: 700;
    line-height: 1;
}

.subtitle {
    font-family: var(--font-primary);
    font-size: var(--font-subtitle);
    font-weight: 600;
    line-height: 1.3;
}

.body-lg {
    font-size: var(--font-body-lg);
    font-weight: 400;
    line-height: 1.5;
}

.body-md {
    font-size: var(--font-body-md);
    font-weight: 400;
    line-height: 1.4;
}

.body-sm {
    font-size: var(--font-body-sm);
    font-weight: 400;
    line-height: 1.57;
}

.caption {
    font-size: var(--font-caption);
    font-weight: 400;
    line-height: 1.4;
}

.overline {
    font-size: var(--font-overline);
    font-weight: 700;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: var(--font-button-md);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    padding: 16px 28px;
    border-radius: var(--rounded-xs);
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

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

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    order: 1;
    transition: transform 0.25s ease;
}

.btn:hover svg {
    transform: scale(1.2);
}

.btn-primary:hover svg,
.btn-secondary-dark:hover svg {
    transform: scale(1.25);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-deep);
    box-shadow: 0 8px 28px rgba(255, 0, 0, 0.4);
}

.btn-secondary-dark {
    background-color: var(--color-surface-dark);
    color: var(--color-on-dark);
}

.btn-secondary-dark:hover {
    background-color: var(--color-surface-deep);
}

.btn-outline-dark {
    background-color: var(--color-canvas);
    color: var(--color-ink);
    border: 2px solid var(--color-hairline-strong);
}

.btn-outline-dark:hover {
    border-color: var(--color-ink);
    background-color: var(--color-surface-soft);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-on-dark);
    border: 2px solid var(--color-on-dark);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

.btn-pill {
    height: 36px;
    padding: 0 var(--space-md);
    border-radius: var(--rounded-pill);
    background-color: var(--color-canvas);
    color: var(--color-ink);
    border: 1px solid var(--color-hairline-strong);
    font-size: var(--font-button-sm);
    font-weight: 600;
    letter-spacing: 0.13px;
}

.btn-pill:hover {
    background-color: var(--color-surface-soft);
}

.btn-icon-square {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounded-xs);
    background-color: var(--color-canvas);
    border: 1px solid var(--color-hairline-strong);
}

/* ============================================
   NAVIGATION
============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 88px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-hairline);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav.scrolled {
    height: 72px;
    border-color: var(--color-hairline);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-body-md);
    font-weight: 600;
    color: var(--color-ink);
    transition: transform 0.3s ease;
}

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

.logo-img {
    height: 56px;
    width: auto;
}

.nav-logo svg {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

.nav-logo:hover svg {
    transform: rotate(-5deg) scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    height: 100%;
}

.nav-links li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    font-size: var(--font-button-md);
    font-weight: 600;
    color: var(--color-charcoal);
    padding: var(--space-xs) 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

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

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

.nav-links a.active {
    color: var(--color-primary);
}

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

.nav-cta {
    padding: 12px 22px;
    font-size: var(--font-button-sm);
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.lang-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: var(--font-button-md);
    font-weight: 700;
    color: var(--color-charcoal);
    border: 1.5px solid var(--color-hairline);
    border-radius: var(--rounded-xs);
    background: var(--color-canvas);
    transition: all 0.25s ease;
    cursor: pointer;
}

.lang-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(255, 0, 0, 0.04);
}

.lang-toggle:active {
    transform: scale(0.95);
}

/* Mega Menu */
.has-mega {
    position: static;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.mega-link svg {
    transition: transform 0.3s ease;
}

.has-mega:hover .mega-link svg {
    transform: rotate(180deg);
}

.mega-menu {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background-color: var(--color-canvas);
    border-bottom: 4px solid var(--color-primary);
    padding: var(--space-xl) 0 var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 99;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
}

.nav.scrolled .mega-menu {
    top: 72px;
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-xl);
    align-items: start;
}

.mega-section {
    padding-right: var(--space-sm);
}

/* Section header: icon + category label */
.mega-section-head {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-hairline);
}

.mega-section-head svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.mega-section-head h4 {
    font-family: var(--font-primary);
    font-size: var(--font-body-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin: 0;
    padding: 0;
    border: none;
}

.mega-section a {
    display: block;
    padding: var(--space-sm) var(--space-sm);
    margin: 0 calc(-1 * var(--space-sm));
    border-radius: var(--rounded-xs);
    transition: background 0.18s ease, transform 0.18s ease;
}

.mega-section a:hover {
    background-color: var(--color-surface-soft);
    transform: translateX(4px);
}

.mega-section a:hover .mega-title {
    color: var(--color-primary);
}

.mega-title {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--font-body-md);
    font-weight: 600;
    color: var(--color-ink);
    transition: color 0.18s ease;
}

.mega-desc {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--font-caption);
    font-weight: 400;
    color: var(--color-ash);
    margin-top: 2px;
    line-height: 1.4;
}

.mega-cta {
    background-color: var(--color-surface-soft);
    padding: var(--space-lg);
    border-radius: var(--rounded-xs);
    text-align: center;
    border: 1.5px solid var(--color-hairline);
}

.mega-cta h4 {
    font-family: var(--font-primary);
    font-size: var(--font-body-md);
    font-weight: 700;
    color: var(--color-ink);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: var(--space-sm);
}

.mega-cta p {
    font-family: var(--font-primary);
    font-size: var(--font-body-sm);
    color: var(--color-mute);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.mega-cta .btn {
    width: 100%;
}

.mega-view-all {
    display: block;
    margin-top: var(--space-md);
    font-size: var(--font-caption);
    font-weight: 700;
    color: var(--color-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
    text-decoration: none;
}

.mega-view-all:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   MOBILE NAVIGATION  (max-width: 1023px)
   Drawer: #navDrawer   Overlay: #navBackdrop
   Both are body-level — no backdrop-filter
   containing-block issue from .nav
============================================ */

/* Always hidden on desktop */
#navBackdrop,
#navDrawer { display: none; }

@media screen and (max-width: 1023px) {

  /* ── Bar ── */
  .nav           { height: 60px !important; }
  .nav.scrolled  { height: 56px !important; }
  .logo-img      { height: 36px !important; }
  .nav-cta       { display: none   !important; }
  .nav-links     { display: none   !important; }
  .menu-toggle   { display: flex   !important;
                   width:44px; height:44px;
                   align-items:center; justify-content:center; }

  /* ── Overlay ── */
  #navBackdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9990;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  #navBackdrop.active { opacity:1 !important; visibility:visible !important; }

  /* ── Drawer panel ── */
  #navDrawer {
    position: fixed;
    top:0; right:0; bottom:0; left:auto;
    width: min(82vw, 340px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    box-shadow: -8px 0 40px rgba(0,0,0,.2);
  }
  #navDrawer.active { transform: translateX(0) !important; }

  /* ── Header ── */
  .drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 20px;
    height: 60px; min-height: 60px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0; background: #fff;
  }
  .drawer-brand  { display: flex !important; align-items: center; }
  .drawer-logo-img { display: block !important; height: 30px; width: auto; }
  #drawerClose {
    display: flex !important;
    width:40px; height:40px;
    align-items:center; justify-content:center;
    cursor:pointer; background:none; border:none;
    color:#333; border-radius:2px;
  }
  #drawerClose:hover { background:#f7f7f7; color:#ff0000; }

  /* ── Links ── */
  .drawer-links {
    display: block !important;
    flex: 1;
    overflow-y: auto;
    list-style: none; padding:0; margin:0;
  }
  .drawer-links > li {
    display: block !important;
    height: auto !important;
    border-bottom: 1px solid #f0f0f0;
  }
  .drawer-links > li:last-child { border-bottom: none; }

  .drawer-links > li > a {
    display: flex !important; align-items: center;
    width:100%; padding:14px 20px; min-height:52px;
    font:600 16px/1.2 'Inter',-apple-system,sans-serif !important;
    color:#222 !important; text-transform:none !important;
    letter-spacing:0 !important; text-decoration:none;
    background:none; border:none;
  }
  .drawer-links > li > a::after { display:none !important; }
  .drawer-links > li > a:hover  { color:#ff0000 !important; }
  .drawer-links > li > a.active {
    color:#ff0000 !important;
    background:rgba(255,0,0,.05) !important;
    border-left:3px solid #ff0000;
    padding-left:17px !important;
  }

  /* ── Services accordion ── */
  .drawer-has-sub { display: block !important; }
  .drawer-sub-btn {
    display: flex !important; align-items: center;
    justify-content: space-between;
    width:100%; padding:14px 20px; min-height:52px;
    font:600 16px/1.2 'Inter',-apple-system,sans-serif !important;
    color:#222 !important; text-transform:none !important;
    letter-spacing:0 !important;
    background:none; border:none; cursor:pointer;
  }
  .drawer-sub-btn:hover { color:#ff0000 !important; }
  .drawer-has-sub.open > .drawer-sub-btn { color:#ff0000 !important; }
  .drawer-sub-btn svg { transition:transform .25s; flex-shrink:0; margin-left:8px; }
  .drawer-has-sub.open > .drawer-sub-btn svg { transform:rotate(180deg) !important; }

  .drawer-sub {
    display: none !important;
    list-style:none; padding:0; margin:0;
    background:#f7f7f7; border-top:2px solid #ff0000;
  }
  .drawer-has-sub.open > .drawer-sub { display: block !important; }
  .drawer-sub > li { border-bottom:1px solid #ebebeb; }
  .drawer-sub > li:last-child { border-bottom:none; }
  .drawer-sub > li > a {
    display:block !important;
    padding:11px 20px 11px 32px;
    font:500 14px/1.4 'Inter',-apple-system,sans-serif !important;
    color:#333 !important; text-decoration:none; text-transform:none !important;
    min-height:40px;
  }
  .drawer-sub > li > a:hover { color:#ff0000 !important; }
  .drawer-view-all { color:#ff0000 !important; font-weight:700 !important; }

  /* ── Footer ── */
  .drawer-footer {
    display: flex !important; flex-direction:column;
    gap:10px; padding:16px 20px;
    border-top:1px solid #f0f0f0;
    flex-shrink:0; background:#fff;
  }
  .drawer-cta {
    display:flex !important; width:100% !important;
    justify-content:center !important; min-height:46px;
  }
  .drawer-phone {
    display:flex !important; align-items:center;
    justify-content:center; gap:8px;
    font:600 14px/1 'Inter',-apple-system,sans-serif !important;
    color:#777 !important; text-decoration:none;
    text-transform:none !important; padding:4px 0;
  }
  .drawer-phone:hover { color:#ff0000 !important; }
}




/* ============================================
   HERO SLIDER SECTION
============================================ */
.hero-slider {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 140px var(--space-xl) var(--space-section);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-label {
    display: inline-block;
    font-size: var(--font-overline);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    transform: translateY(20px);
    opacity: 0;
}

.slide.active .slide-label {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.6s ease 0.2s;
}

.slide-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    line-height: 0.95;
    color: var(--color-on-dark);
    margin-bottom: var(--space-lg);
    transform: translateY(30px);
    opacity: 0;
}

.slide.active .slide-title {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.6s ease 0.3s;
}

.slide-desc {
    font-size: var(--font-subtitle);
    color: var(--color-on-dark-mute);
    max-width: 500px;
    margin-bottom: var(--space-xl);
    transform: translateY(20px);
    opacity: 0;
}

.slide.active .slide-desc {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.6s ease 0.4s;
}

.slide-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    transform: translateY(20px);
    opacity: 0;
}

.slide.active .slide-buttons {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.6s ease 0.5s;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.slider-arrow {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--rounded-xs);
    color: var(--color-on-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.slider-arrow svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}

.slider-arrow.prev:hover svg {
    transform: translateX(-3px);
}

.slider-arrow.next:hover svg {
    transform: translateX(3px);
}

.slider-dots {
    display: flex;
    gap: var(--space-sm);
}

.dot {
    width: 14px;
    height: 14px;
    padding: 0;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--rounded-full);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.dot.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.15);
}

.dot:not(.active):hover {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Slider Progress */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--color-primary);
    transition: width 0s ease;
}

.slider-progress.animate .progress-bar {
    width: 100%;
    transition: width 5s linear;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 10;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-caption);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-primary);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* Stats Bar */
.stats-bar {
    background-color: var(--color-surface-dark);
    color: var(--color-on-dark);
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 5;
    margin-top: -1px;
}

.stats-bar .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    text-align: center;
}

.stats-bar .stat-item {
    padding: var(--space-md);
}

.stats-bar .stat-number {
    display: block;
    font-size: var(--font-display-lg);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stats-bar .stat-label {
    display: block;
    font-size: var(--font-body-md);
    font-weight: 500;
    color: var(--color-on-dark);
    margin-top: var(--space-xs);
    opacity: 0.85;
}


/* ============================================
   PROMO TILES
============================================ */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.promo-tile {
    padding: var(--space-xxl);
    border-radius: var(--rounded-none);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.promo-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.12);
}

.promo-tile-light {
    background-color: var(--color-canvas);
    border: 1.5px solid var(--color-hairline-strong);
}

.promo-tile-dark {
    background-color: var(--color-surface-dark);
    color: var(--color-on-dark);
}

.promo-tile-accent {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

.promo-tile-title {
    font-size: var(--font-heading-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.promo-tile-desc {
    font-size: var(--font-body-lg);
    opacity: 0.85;
    line-height: 1.5;
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-section);
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-stack {
    position: relative;
    width: 100%;
    height: 420px;
    transition: transform 0.3s ease;
}

.about-image-stack:hover {
    transform: translateY(-4px);
}

.about-img {
    position: absolute;
    border-radius: var(--rounded-xs);
}

.about-img-1 {
    top: 0;
    left: 0;
    width: 70%;
    height: 70%;
    background-image: url('../images/electrical-upgrade.jpeg');
    background-size: cover;
    background-position: center;
}

.about-img-2 {
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    background-image: url('../images/bathroom-renovation.jpeg');
    background-size: cover;
    background-position: center;
    border: 3px solid var(--color-canvas);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--color-canvas);
    border: 2px solid var(--color-hairline-strong);
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    z-index: 2;
}

.badge-year {
    display: block;
    font-size: var(--font-display-lg);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: var(--font-body-sm);
    font-weight: 500;
    color: var(--color-charcoal);
    margin-top: var(--space-xxs);
}

.about-text {
    max-width: 560px;
}

.about-image {
    aspect-ratio: 4/3;
    background-color: var(--color-surface-soft);
    border-radius: var(--rounded-none);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding: var(--space-xl);
}

.about-label {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.about-title {
    margin-bottom: var(--space-lg);
}

/* ============================================
   STORY SECTION
============================================ */
.story {
    padding: var(--space-section) 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-section);
    align-items: center;
}

.story-content {
    max-width: 560px;
}

.story-text {
    max-width: 560px;
}

.story-timeline {
    max-width: 480px;
}

.story-quote {
    font-size: var(--font-heading-lg);
    font-weight: 500;
    font-style: italic;
    color: var(--color-charcoal);
    padding-left: var(--space-xl);
    border-left: 3px solid var(--color-primary);
    margin: var(--space-xl) 0;
    line-height: 1.4;
}

.section--dark .story-quote {
    color: var(--color-on-dark);
}

.section--dark .story-quote::before {
    color: var(--color-primary);
}

/* ============================================
   TIMELINE
============================================ */
.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-hairline);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xxl);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(4px);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: calc(-1 * var(--space-xl) - 6px);
    top: 4px;
    width: 14px;
    height: 14px;
    background-color: var(--color-primary);
    border-radius: var(--rounded-full);
    border: 3px solid var(--color-canvas);
    box-shadow: 0 0 0 1px var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 1px var(--color-primary), 0 0 20px rgba(255, 0, 0, 0.3);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: var(--font-body-md);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.timeline-title {
    font-family: var(--font-display);
    font-size: var(--font-heading-md);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.timeline-desc {
    color: var(--color-mute);
    font-size: var(--font-body-md);
    line-height: 1.5;
}


/* ============================================
   SERVICES
============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.service-card {
    padding: var(--space-xxl);
    background-color: var(--color-canvas);
    border: 1.5px solid var(--color-stone);
    border-radius: var(--rounded-none);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.14);
}

.service-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-soft);
    border-radius: var(--rounded-xs);
    margin-bottom: var(--space-lg);
    transition: all 0.35s ease;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    transition: all 0.35s ease;
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    transform: scale(1.05) rotate(-3deg);
}

.service-card:hover .service-icon svg {
    color: var(--color-on-primary);
    transform: scale(1.15);
}

.service-title {
    font-size: var(--font-heading-md);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.service-desc {
    color: var(--color-mute);
    font-size: var(--font-body-md);
    line-height: 1.5;
}

/* ============================================
   VALUES
============================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.value-card {
    padding: var(--space-xxl);
    background-color: var(--color-canvas);
    border: 1.5px solid var(--color-hairline);
    border-radius: var(--rounded-xs);
    transition: all 0.3s ease;
}

.value-card:hover {
    background-color: var(--color-canvas);
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.value-number {
    font-size: var(--font-display-lg);
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.4;
    margin-bottom: var(--space-md);
    display: block;
}

.value-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-soft);
    border: 1.5px solid var(--color-hairline);
    border-radius: var(--rounded-xs);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    transition: all 0.35s ease;
}

.value-card:hover .value-icon {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
    transform: scale(1.05) rotate(-3deg);
}

.value-title {
    font-size: var(--font-heading-md);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.value-desc {
    color: var(--color-mute);
    font-size: var(--font-body-md);
    line-height: 1.5;
}

/* ============================================
   MISSION VISION
============================================ */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.mv-card {
    padding: var(--space-xxl);
    border-radius: var(--rounded-xs);
    transition: all 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-4px);
}

.mv-card--light:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.mv-card--dark:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.mv-card--light {
    background-color: var(--color-canvas);
    border: 1.5px solid var(--color-hairline-strong);
}

.mv-card--dark {
    background-color: var(--color-surface-deep);
    color: var(--color-on-dark);
}

.mv-label {
    font-size: var(--font-overline);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.mv-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-soft);
    border-radius: var(--rounded-xs);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    transition: all 0.35s ease;
}

.mv-card--dark .mv-icon {
    background-color: rgba(255,255,255,0.1);
    color: var(--color-on-dark);
}

.mv-card:hover .mv-icon {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    transform: scale(1.05) rotate(-3deg);
}

.mv-card--dark:hover .mv-icon {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

.mv-card--light .mv-label {
    color: var(--color-primary);
}

.mv-card--dark .mv-label {
    color: var(--color-primary);
}

.mv-title {
    font-size: var(--font-display-md);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1;
}

.mv-desc {
    color: var(--color-mute);
    font-size: var(--font-body-lg);
    line-height: 1.7;
}

.mv-card--dark .mv-desc {
    color: var(--color-on-dark-mute);
}

/* ============================================
   WHY CHOOSE US
============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.why-item {
    text-align: center;
    padding: var(--space-xl);
    border: 1.5px solid transparent;
    border-radius: var(--rounded-xs);
    transition: all 0.3s ease;
}

.why-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.why-item:hover .why-icon {
    background-color: var(--color-primary);
    transform: scale(1.08) rotate(-3deg);
}

.why-item:hover .why-icon svg {
    color: var(--color-on-primary);
    transform: scale(1.15);
}

.why-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-soft);
    border-radius: var(--rounded-xs);
    margin: 0 auto var(--space-lg);
    transition: all 0.35s ease;
}

.why-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    transition: all 0.35s ease;
}

.why-title {
    font-size: var(--font-heading-md);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.why-desc {
    color: var(--color-mute);
    font-size: var(--font-body-md);
    line-height: 1.5;
}

/* ============================================
   CTA SECTION
============================================ */
.cta {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    text-align: center;
    padding: var(--space-section) 0;
    position: relative;
    overflow: hidden;
}

.cta.pattern-grid::before {
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 1;
}

.cta-title {
    font-size: var(--font-display-lg);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.cta-desc {
    font-size: var(--font-body-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CAREER / JOIN US
============================================ */
.career-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.career-content {
    max-width: 520px;
}

.career-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.career-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-body-md);
    color: var(--color-mute);
    font-weight: 500;
}

.career-email svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.career-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.career-icon-large {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-soft);
    border: 1.5px solid var(--color-hairline);
    border-radius: var(--rounded-xs);
    color: var(--color-primary);
    transition: all 0.35s ease;
}

.career-icon-large svg {
    width: 80px;
    height: 80px;
}

.career-icon-large:hover {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    transform: scale(1.05) rotate(-3deg);
}

@media (max-width: 767px) {
    .career-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .career-content {
        max-width: 100%;
    }
    .career-actions {
        justify-content: center;
    }
    .career-visual {
        display: none;
    }
}

/* ===== CAREER PAGE ===== */
.career-intro-wrapper {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.career-intro-desc {
    font-size: var(--font-body-lg);
    color: var(--color-mute);
    line-height: 1.8;
    margin-top: var(--space-lg);
}

.career-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.career-detail-card {
    padding: var(--space-xxl);
    background-color: var(--color-canvas);
    border: 1.5px solid var(--color-hairline);
    border-radius: var(--rounded-xs);
    transition: all 0.3s ease;
}

.career-detail-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.detail-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-soft);
    border-radius: var(--rounded-xs);
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    transition: all 0.35s ease;
}

.career-detail-card:hover .detail-icon {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    transform: scale(1.05) rotate(-3deg);
}

.detail-title {
    font-size: var(--font-heading-md);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.detail-desc {
    color: var(--color-mute);
    font-size: var(--font-body-md);
    line-height: 1.6;
}

.career-values-grid {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-md);
}

.career-value-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-surface-soft);
    border: 1px solid var(--color-hairline);
    border-radius: var(--rounded-xs);
    font-size: var(--font-body-md);
    font-weight: 500;
    transition: all 0.3s ease;
}

.career-value-item:hover {
    border-color: var(--color-primary);
    transform: translateX(4px);
    background-color: var(--color-canvas);
}

.cv-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    border-radius: var(--rounded-full);
    color: var(--color-on-primary);
    flex-shrink: 0;
}

.career-no-jobs {
    text-align: center;
    margin-top: var(--space-xxl);
    padding: var(--space-xl);
    background-color: var(--color-surface-soft);
    border: 1px solid var(--color-hairline);
    border-radius: var(--rounded-xs);
    font-size: var(--font-body-lg);
    color: var(--color-mute);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.career-final-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.career-cta-desc {
    font-size: var(--font-body-lg);
    color: var(--color-mute);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    margin-top: var(--space-md);
}

.career-final-cta .btn {
    margin-bottom: var(--space-md);
}

.career-final-cta .career-email {
    display: block;
    color: var(--color-mute);
    font-size: var(--font-body-md);
    font-weight: 500;
}

@media (max-width: 767px) {
    .career-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background-color: var(--color-surface-dark);
    color: var(--color-on-dark);
    padding: var(--space-section) 0 var(--space-xxl);
    border-top: 1px solid var(--color-divider-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xxl);
    margin-bottom: var(--space-xxl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-heading-sm);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.footer-logo-img {
    height: 56px;
    width: auto;
}

.footer-desc {
    color: var(--color-on-dark-mute);
    font-size: var(--font-body-md);
    line-height: 1.7;
}

.footer-title {
    font-size: var(--font-button-md);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-on-dark);
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-on-dark-mute);
    font-size: var(--font-body-md);
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-on-dark);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-divider-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-body-sm);
    color: var(--color-on-dark-mute);
}

/* ============================================
   PAGE HEADER
============================================ */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    padding: 140px 0 var(--space-section);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--font-overline);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-on-primary);
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 14px;
    margin-bottom: var(--space-lg);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, var(--font-display-lg));
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-lg);
    color: var(--color-on-primary);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.005em;
}

.page-desc {
    font-size: var(--font-body-lg);
    color: rgba(255, 255, 255, 0.95);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CONTACT FORM
============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-section);
}

.contact-info {
    padding: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-soft);
    border-radius: var(--rounded-xs);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: var(--color-primary);
    transform: scale(1.05) rotate(-3deg);
}

.contact-item:hover .contact-icon svg {
    color: var(--color-on-primary);
    transform: scale(1.15);
}

.contact-label {
    font-size: var(--font-caption);
    color: var(--color-mute);
    margin-bottom: var(--space-xxs);
}

.contact-value {
    font-size: var(--font-body-md);
    font-weight: 500;
}

/* ============================================
   ANIMATIONS — Live, Scroll, Interactive
============================================ */

/* -- Scroll Reveal Classes -- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.zoom-in {
    opacity: 0;
    transform: scale(1.15);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for scroll animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* Section entrance */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -- Live Ambient Keyframes -- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.3); }
    50% { box-shadow: 0 0 0 14px rgba(255, 0, 0, 0); }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(300%) skewX(-15deg); }
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes count-appear {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Live utility classes */
.live-float { animation: float 4s ease-in-out infinite; }
.live-float-reverse { animation: float-reverse 5s ease-in-out infinite; }
.live-pulse { animation: pulse-glow 2s ease-in-out infinite; }
.live-breathe { animation: breathe 3s ease-in-out infinite; }
.live-shimmer { animation: shimmer 3s ease-in-out infinite; pointer-events: none; }
.live-spin-slow { animation: spin-slow 10s linear infinite; }

/* -- Interactive Effects -- */

/* Button click ripple */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}

.btn-primary .ripple {
    background: rgba(255, 255, 255, 0.4);
}

.btn-outline-light .ripple {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline-dark .ripple,
.btn-pill .ripple {
    background: rgba(255, 0, 0, 0.15);
}

@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* Card 3D tilt on hover */
.tilt-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

/* Hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12) !important;
}

/* Hover accent glow ring */
.hover-glow-ring {
    position: relative;
    transition: all 0.3s ease;
}

.hover-glow-ring::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.25);
    pointer-events: none;
}

.hover-glow-ring:hover::after {
    opacity: 1;
}

/* -- Global Animation Elements -- */

/* Floating WhatsApp Widget */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(255, 0, 0, 0.7); }
}

@media (max-width: 767px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Reading progress bar */
.progress-bar-top {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-primary);
    z-index: 1001;
    width: 0;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Subtle cursor glow */
.cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.05);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: left, top;
    display: none;
}

/* Hero slide slow zoom on activate */
.slide-bg {
    transform: scale(1);
    transition: transform 8s ease, background-position-y 0.1s linear;
}

.slide.active .slide-bg {
    transform: scale(1.06);
}

/* Decorative elements */
.about-img-1.live-float {
    animation-duration: 6s;
}

.stat-number.stat-animate {
    display: inline-block;
    animation: count-appear 0.4s ease forwards;
}

/* Content staggered entrance on page load */
.content-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.5s ease forwards;
}

.content-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.content-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.content-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.content-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.content-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.content-stagger > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Dark mode glow accent lines */
.accent-line {
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    margin-bottom: var(--space-md);
}

.accent-line.live-pulse {
    animation-duration: 3s;
}

/* Pulse accent dot for stats/features */
.accent-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.accent-dot.live-pulse {
    animation-duration: 1.5s;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1023px) {
    :root {
        --space-section: 80px;
    }
    
    .slide-content {
        padding: 120px var(--space-lg) var(--space-xl);
    }
    
    .slider-controls {
        bottom: 80px;
    }
}

@media (max-width: 767px) {
    :root {
        --space-section: 64px;
        --space-md: 16px;
        --space-lg: 20px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .display-xl {
        font-size: 40px;
    }
    
    .display-lg {
        font-size: 32px;
    }
    
    .about-grid,
    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .services-grid,
    .values-grid,
    .mission-vision-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slide-content {
        padding: 100px var(--space-md) var(--space-lg);
    }
    
    .slide-title {
        font-size: clamp(32px, 10vw, 48px);
    }
    
    .slide-desc {
        font-size: var(--font-body-lg);
    }
    
    .slider-controls {
        bottom: 60px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .stats-bar .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 425px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ===== STORY PAGE ===== */
.story-visual {
    position: relative;
    height: 400px;
}

.story-image-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.story-img {
    position: absolute;
    border-radius: var(--rounded-xs);
}

.story-img-1 {
    top: 0;
    left: 0;
    width: 70%;
    height: 70%;
    background: var(--color-primary);
}

.story-img-2 {
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    background-color: var(--color-hairline);
}

/* ===== SERVICE CARDS (services page — large detail cards) ===== */
.service-card-large {
    padding: var(--space-xxl);
    background-color: var(--color-canvas);
    border: 1.5px solid var(--color-stone);
    border-radius: var(--rounded-xs);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.service-card-large:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.12);
}

.service-card-large:hover .service-card-icon {
    background-color: var(--color-primary);
    transform: scale(1.05) rotate(-3deg);
}

.service-card-large:hover .service-card-icon svg {
    color: var(--color-on-primary);
    transform: scale(1.15);
}

.service-card-icon {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-soft);
    border-radius: var(--rounded-xs);
    transition: all 0.35s ease;
}

.service-card-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    transition: all 0.35s ease;
}

.service-card-content {
    flex: 1;
}

.service-number {
    display: block;
    font-size: var(--font-body-md);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.service-card-title {
    font-size: var(--font-heading-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.service-card-desc {
    color: var(--color-mute);
    font-size: var(--font-body-lg);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.service-list li {
    font-size: var(--font-body-md);
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--color-surface-soft);
    border-radius: var(--rounded-xs);
    border: 1px solid var(--color-hairline);
}

/* Services page: 2-col detail grid on desktop */
.services-grid--detail {
    grid-template-columns: repeat(2, 1fr);
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.project-card {
    background-color: var(--color-canvas);
    border: 1.5px solid var(--color-hairline);
    border-radius: var(--rounded-xs);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.12);
}

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

.project-image {
    aspect-ratio: 4/3;
    background-color: var(--color-surface-soft);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-info {
    padding: var(--space-xl);
}

.project-category {
    display: inline-block;
    font-size: var(--font-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.project-title {
    font-size: var(--font-heading-md);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.project-desc {
    color: var(--color-mute);
    font-size: var(--font-body-md);
    line-height: 1.5;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ash);
}

/* ===== CONTACT PAGE ===== */
.contact-info-wrapper {
    max-width: 520px;
}

.contact-heading {
    font-size: var(--font-display-md);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.contact-desc {
    color: var(--color-mute);
    font-size: var(--font-body-lg);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-soft);
    border-radius: var(--rounded-xs);
    flex-shrink: 0;
    border: 1.5px solid var(--color-hairline);
    transition: all 0.3s ease;
}

.contact-icon svg {
    color: var(--color-primary);
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.05) rotate(-3deg);
}

.contact-item:hover .contact-icon svg {
    color: var(--color-on-primary);
    transform: scale(1.15);
}

.contact-label {
    display: block;
    font-size: var(--font-body-sm);
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-xxs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    display: block;
    font-size: var(--font-body-lg);
    font-weight: 500;
}

.contact-form-wrapper {
    background-color: var(--color-surface-soft);
    padding: var(--space-xl);
    border-radius: var(--rounded-xs);
}

.contact-form {
    max-width: 100%;
}

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

.form-label {
    display: block;
    font-size: var(--font-body-md);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-charcoal);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-sm) 0;
    font-family: inherit;
    font-size: var(--font-body-lg);
    border: none;
    border-bottom: 2px solid var(--color-stone);
    background-color: transparent;
    transition: border-color 0.25s ease, padding 0.25s ease;
    color: var(--color-ink);
}

.form-input:hover,
.form-textarea:hover {
    border-color: var(--color-ash);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    padding-bottom: var(--space-sm);
}

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

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: var(--space-lg);
    cursor: pointer;
}

select.form-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff0000' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.contact-form .btn {
    width: 100%;
    padding: 18px 28px;
    font-size: var(--font-button-lg);
    font-weight: 700;
}

/* ===== MAP SECTION ===== */
.map-section {
    width: 100%;
    height: 480px;
    overflow: hidden;
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-container iframe {
    filter: grayscale(0.3) contrast(1.05);
    pointer-events: all;
}

.map-overlay {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: 2;
}

.map-pin {
    display: none;
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 12px 24px;
    background-color: var(--color-canvas);
    color: var(--color-ink);
    border: 1.5px solid var(--color-hairline-strong);
    border-radius: var(--rounded-xs);
    font-size: var(--font-button-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.map-directions-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,0,0,0.3);
}

.map-directions-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.map-directions-btn:hover svg {
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .map-section {
        height: 320px;
    }
    .map-directions-btn {
        padding: 10px 18px;
        font-size: var(--font-button-sm);
    }
}

/* ===== FOOTER COLS ===== */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-on-dark-mute);
    font-size: var(--font-body-sm);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-on-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
    .about-grid,
    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-image-stack {
        height: 300px;
    }

    /* Home services: 3→2 col on tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services page large cards: 2→1 col on tablet */
    .services-grid--detail {
        grid-template-columns: 1fr;
    }

    .service-card-large {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .service-card-icon {
        width: 64px;
        height: 64px;
    }

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

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

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

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        margin-top: var(--space-xl);
    }

    /* Footer: 4-col → 2-col on tablet */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    /* Page header: reduce top padding on tablet */
    .page-header {
        padding: 110px 0 var(--space-xxl);
    }

    /* Hero content: lower top padding on tablet */
    .slide-content {
        padding-top: 100px;
    }
}

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

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

    /* All remaining multi-col grids → 1 col on mobile */
    .services-grid,
    .services-grid--detail {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: auto;
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .career-details-grid {
        grid-template-columns: 1fr;
    }

    /* CTA buttons: stack vertically on mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 340px;
    }
}

/* ============================================================
   UI REFINEMENT LAYER — mobile-first polish + prominence
   ============================================================ */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection {
    background: var(--color-primary);
    color: #fff;
}

/* Prominent buttons */
.btn {
    min-height: 48px;
    letter-spacing: 0.5px;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
    will-change: transform;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    box-shadow: 0 6px 18px rgba(255,0,0,0.28);
}
.btn-primary:hover {
    box-shadow: 0 12px 28px rgba(255,0,0,0.38);
}

/* Inputs — clearer focus */
input, textarea, select {
    font-family: inherit;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255,0,0,0.15);
}

/* WhatsApp float — more prominent + safe-area aware */
.whatsapp-float {
    bottom: max(24px, env(safe-area-inset-bottom, 24px));
    right: max(24px, env(safe-area-inset-right, 24px));
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    z-index: 9999;
}

/* Navigation — stronger contrast on scroll */
.nav.scrolled {
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* Hero — clearer text legibility over imagery */
.slide-title, .slide-desc {
    text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

/* Cards — subtle lift */
.service-card, .project-card, .value-card {
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.service-card:hover, .project-card:hover, .value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Tap targets — accessibility */
a, button, .btn, .dot, .slider-arrow {
    touch-action: manipulation;
}

/* Tablet refinement */
@media (max-width: 1023px) {
    :root {
        --space-section: 72px;
        --font-display-xl: 48px;
        --font-display-lg: 38px;
    }
}

/* Mobile refinement */
@media (max-width: 767px) {
    :root {
        --space-section: 56px;
        --space-xxxl: 48px;
        --space-xxl: 36px;
        --font-display-xl: 36px;
        --font-display-lg: 30px;
        --font-display-md: 26px;
        --font-heading-lg: 22px;
        --font-heading-md: 19px;
        --font-body-lg: 16px;
    }

    /* Tighten horizontal padding on mobile */
    .container,
    .nav-container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    /* Page header: mobile padding */
    .page-header {
        padding: 90px 0 var(--space-xl);
    }

    /* Hero slide content: reduce padding for mobile */
    .slide-content {
        padding: 80px var(--space-md) 90px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        min-height: 50px;
        font-size: 15px;
    }
    .hero-cta .btn,
    .slide-cta .btn,
    .slide-buttons .btn,
    .nav-cta.btn,
    .btn.btn-inline {
        width: auto;
    }

    /* Disable hover-tilt + cursor glow on touch */
    #cursorGlow { display: none !important; }
    .tilt-card { transform: none !important; }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: max(16px, env(safe-area-inset-bottom, 16px));
        right: max(16px, env(safe-area-inset-right, 16px));
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Improved tap target for nav links */
    .nav-links a {
        padding: 14px 16px;
        font-size: 16px;
    }

    /* Form inputs prevent iOS zoom */
    input, textarea, select {
        font-size: 16px;
    }

    /* Hero: hide scroll indicator on mobile (too small) */
    .hero-scroll {
        display: none;
    }

    /* Slider controls: move up from bottom */
    .slider-controls {
        bottom: 64px;
        gap: var(--space-md);
    }

    /* Hero text wrap fix */
    /* Replace <br> with a space so words don't merge */
    .slide-title br {
        display: inline;
        content: ' ';
    }
    .slide-title br::after {
        content: ' ';
    }
}

/* Small mobile */
@media (max-width: 480px) {
    :root {
        --font-display-xl: 32px;
        --font-display-lg: 26px;
        --font-display-md: 24px;
    }

    .container,
    .nav-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* why-grid: 2→1 col on small screens */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Stats: keep 2-col but tighten */
    .stats-bar .stats-grid {
        gap: var(--space-xs);
    }

    /* About image shorter */
    .about-image-stack {
        height: 220px;
    }

    /* Hero content: even tighter on very small screens */
    .slide-content {
        padding: 76px 16px 80px;
    }

    /* Slider controls: move up a bit */
    .slider-controls {
        bottom: 48px;
        gap: var(--space-sm);
    }

    /* Slider arrows: smaller on tiny screens */
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
}

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

/* Print */
@media print {
    .nav, .whatsapp-float, #cursorGlow, .slider-arrow, .dots,
    .progress-bar, footer .social-links {
        display: none !important;
    }
    body { color: #000; background: #fff; }
}

/* ============================================================
   TYPOGRAPHY + RUGGED MODERN REFINEMENT
   Display: Oswald (industrial, condensed)
   Body: Inter (clean, modern, readable)
   ============================================================ */

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.005em;
    color: var(--color-body);
}

h1, h2, h3, h4, h5, h6,
.slide-title, .slide-label,
.section-title, .section-eyebrow,
.hero-title, .display,
.nav-brand, .logo, .navbar-brand,
.btn, .button, button,
.stat-number, .counter,
.service-card-title, .project-card-title,
.value-card-title, .card-title,
.footer-title, .footer h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-transform: uppercase;
}

.slide-title, .hero-title, h1, .section-title {
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.05;
}

.slide-label, .section-eyebrow, .eyebrow {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 13px;
}

p, li, span, label, input, textarea, select, a {
    font-family: var(--font-primary);
}

p { line-height: 1.7; }
p.lead, .lead { font-size: 18px; line-height: 1.65; color: var(--color-mute); }

/* Buttons — rugged uppercase */
.btn, button.btn {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 0;
}

/* Hard, rugged borders + corners */
.service-card, .project-card, .value-card,
.contact-card, .form-card, .stat-card {
    border-radius: 0;
    border: 1px solid var(--color-hairline);
}

/* Inputs — sharp industrial feel */
input, textarea, select {
    border-radius: 0;
    border: 1px solid #d4d4d4;
    background: #fafafa;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--color-ink);
}
input::placeholder, textarea::placeholder {
    color: #888;
    letter-spacing: 0.02em;
}

/* Stats — bold display numbers */
.stat-number, [data-count] {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 6vw, 64px);
    letter-spacing: -0.01em;
    line-height: 1;
}

/* Section title underline accent */
.section-title {
    position: relative;
}

/* Tighter, sharper nav */
.nav-links a, .nav a {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 14px;
}

/* Footer rugged */
.footer, footer {
    font-family: var(--font-primary);
}
.footer h4, footer h4, .footer-title {
    letter-spacing: 0.15em;
    font-size: 14px;
}

/* Strong horizontal rules */
hr {
    border: none;
    border-top: 2px solid var(--color-ink);
    margin: var(--space-xl) 0;
}

/* Modern link underline */
a {
    text-decoration: none;
    transition: color 200ms ease;
}
p a, .prose a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Selection refresh with new font tone */
::selection { background: #000; color: #fff; }

/* Mobile typography tightening */
@media (max-width: 767px) {
    body { font-size: 15px; line-height: 1.6; }
    .slide-label, .eyebrow, .section-eyebrow { font-size: 11px; letter-spacing: 0.22em; }
    .nav-links a, .nav a { font-size: 13px; }
    .btn { letter-spacing: 0.1em; font-size: 13px; }
    p.lead, .lead { font-size: 16px; }
}

/* ============================================================
   ICON SYSTEM — unified, modern, currentColor-driven
   ============================================================ */

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: middle;
    transition: transform 250ms ease, stroke 250ms ease;
}

.btn, .button, button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    line-height: 1;
}

.btn svg, .button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn.btn-back:hover svg,
.btn[data-icon-pos="left"]:hover svg {
    transform: translateX(-3px);
}

/* Service / feature icons */
.service-card-icon svg,
.value-card-icon svg,
.feature-icon svg,
.contact-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
}

.service-card:hover .service-card-icon svg,
.value-card:hover .value-card-icon svg {
    transform: scale(1.1) rotate(-3deg);
    stroke: var(--color-primary);
}

/* Social / footer icons */
.social-links svg,
footer svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.75;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid currentColor;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.social-links a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Nav arrows / slider */
.slider-arrow svg,
.nav-arrow svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}
.slider-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    transition: background 200ms ease, border-color 200ms ease;
}
.slider-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* WhatsApp float — red accent */
.whatsapp-float {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 28px rgba(255, 0, 0, 0.4);
}
.whatsapp-float:hover {
    background: var(--color-primary-deep);
    box-shadow: 0 14px 32px rgba(255, 0, 0, 0.5);
}
.whatsapp-float svg {
    fill: #fff;
    stroke: none;
}

/* Menu toggle */
#menuToggle svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

/* Generic icon utility */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
}
.icon-sm svg { width: 14px; height: 14px; }
.icon-md svg { width: 20px; height: 20px; }
.icon-lg svg { width: 28px; height: 28px; }
.icon-xl svg { width: 40px; height: 40px; }

/* Mobile icon scaling */
@media (max-width: 767px) {
    .btn svg, .button svg { width: 16px; height: 16px; }
    .service-card-icon svg,
    .value-card-icon svg { width: 32px; height: 32px; }
    .slider-arrow { width: 40px; height: 40px; }
}

/* ============================================================
   GLASS MORPHISM LAYER
   ============================================================ */

.nav {
    background-color: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav.scrolled {
    background-color: rgba(255, 255, 255, 0.75) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.mega-menu, .mega-content {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Mobile nav drawer glass */
@media (max-width: 1023px) {
    .nav-links.active {
        background-color: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(28px) saturate(180%);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
    }
}

/* Nav backdrop */
.nav-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.35);
}

/* Slider arrows already have glass — strengthen */
.slider-arrow {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero overlays — glass card for slide content */
.slide-content {
    position: relative;
}

/* Floating language toggle button */
#langToggle {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
#langToggle:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* WhatsApp float — frosted halo */
.whatsapp-float {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Contact item WhatsApp link — match plain item layout */
.contact-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.contact-link:hover { color: var(--color-primary); }

/* Glass utility class */
.glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.glass-dark {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Modal/popovers (optional reuse) */
.popover, .modal-content, .toast {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav, .nav.scrolled { background-color: rgba(255, 255, 255, 0.97) !important; }
    .mega-menu, .mega-content { background-color: rgba(255, 255, 255, 0.98); }
    .glass { background: rgba(255, 255, 255, 0.92); }
    .glass-dark { background: rgba(0, 0, 0, 0.85); }
}
}
