/*
Theme Name: Elevate Construction
Theme URI: https://elevateconstruction.com
Author: Elevate Construction
Description: Custom theme for Elevate Construction – precision craftsmanship, innovative design.
Version: 1.0.0
Text Domain: elevate
*/

/* ============================================================
   GOOGLE FONTS — loaded via <link> tags in header.php
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* Colors – Slate */
    --slate-deep: #1C2127;
    --slate-darker: #14181D;

    /* Colors – Blue Accent */
    --copper: #2563EB;
    --copper-light: #60A5FA;
    --copper-dark: #1D4ED8;

    /* Colors – Text */
    --text-primary: #F5F5F3;
    --text-secondary: #9CA3AF;

    /* Spacing */
    --section-px: 6vw;

    /* Border Radius */
    --radius: 0.625rem;
    --radius-lg: var(--radius);
    --radius-pill: 999px;

    /* Fonts */
    --font-display: 'Sora', 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: rgba(37, 99, 235, 0.5);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--slate-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: var(--font-body);
}

::selection {
    background-color: rgba(37, 99, 235, 0.3);
    color: var(--text-primary);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--slate-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--copper);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--copper-light);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: start;
}

.items-end {
    align-items: end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-1\.5 {
    gap: 0.375rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-10 {
    gap: 2.5rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-14 {
    gap: 3.5rem;
}

.gap-16 {
    gap: 4rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
}

.overflow-hidden {
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

.hidden {
    display: none;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.pointer-events-none {
    pointer-events: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   SPACING UTILITIES
   ============================================================ */
.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2\.5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.pt-4 {
    padding-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-4 {
    margin-right: 1rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.px-section {
    padding-left: var(--section-px);
    padding-right: var(--section-px);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-display {
    font-family: var(--font-display);
}

.font-body {
    font-family: var(--font-body);
}

.font-mono {
    font-family: var(--font-mono);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-tight {
    letter-spacing: -0.02em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-none {
    line-height: 1;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* ============================================================
   DESIGN SYSTEM COMPONENTS (from Tailwind @layer components)
   ============================================================ */

/* --- Headings --- */
.heading-display {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-size: clamp(1.75rem, 5vw, 4.5rem);
}

.heading-section {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

/* --- Body Text --- */
.body-text {
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.625;
    font-size: clamp(0.875rem, 1.2vw, 1rem);
}

/* --- Section Label --- */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--copper);
}

/* --- Gradient Text --- */
.text-gradient-copper {
    background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Gradient Background --- */
.bg-gradient-slate {
    background: linear-gradient(180deg, #1C2127 0%, #14181D 100%);
}

/* --- Grain Overlay --- */
.grain-overlay {
    position: relative;
}

.grain-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 0;
}

/* --- Copper Glow --- */
.copper-glow {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
}

.copper-glow-lg {
    box-shadow: 0 0 60px rgba(37, 99, 235, 0.25);
}

/* --- Copper Lines --- */
.copper-line {
    height: 1px;
    background: linear-gradient(to right, var(--copper), rgba(37, 99, 235, 0.6), transparent);
}

.copper-line-vertical {
    width: 1px;
    background: linear-gradient(to bottom, var(--copper), rgba(37, 99, 235, 0.6), transparent);
}

/* --- Image Copper Grade --- */
.image-copper-grade {
    position: relative;
}

.image-copper-grade::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 33, 39, 0.4) 0%, rgba(37, 99, 235, 0.15) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* --- Buttons --- */
.pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.6);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.pill-button:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--copper);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.pill-button-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--copper);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.pill-button-filled:hover {
    background: var(--copper-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

/* --- Card Hover --- */
.card-hover {
    transition: all 0.5s ease;
}

.card-hover:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(37, 99, 235, 0.1);
}

/* --- Nav Links --- */
.nav-link {
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--copper);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================================
   COLOR UTILITIES
   ============================================================ */
.bg-slate-deep {
    background-color: var(--slate-deep);
}

.bg-slate-darker {
    background-color: var(--slate-darker);
}

.bg-copper {
    background-color: var(--copper);
}

.text-copper {
    color: var(--copper);
}

.text-copper-light {
    color: var(--copper-light);
}

.text-text-primary {
    color: var(--text-primary);
}

.text-text-secondary {
    color: var(--text-secondary);
}

.text-white {
    color: #fff;
}

.border-copper {
    border-color: var(--copper);
}

/* ============================================================
   BORDER UTILITIES
   ============================================================ */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-2 {
    border-width: 2px;
    border-style: solid;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.border-l {
    border-left-width: 1px;
    border-left-style: solid;
}

.border-r {
    border-right-width: 1px;
    border-right-style: solid;
}

.border-t-2 {
    border-top-width: 2px;
    border-top-style: solid;
}

.border-b-2 {
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.border-l-2 {
    border-left-width: 2px;
    border-left-style: solid;
}

.border-r-2 {
    border-right-width: 2px;
    border-right-style: solid;
}

.border-y {
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-style: solid;
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-sm {
    border-radius: calc(var(--radius) - 4px);
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-pill {
    border-radius: var(--radius-pill);
}

/* ============================================================
   BACKDROP / TRANSPARENCY
   ============================================================ */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* ============================================================
   TRANSITION UTILITIES
   ============================================================ */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

/* ============================================================
   OBJECT FIT
   ============================================================ */
.object-cover {
    object-fit: cover;
}

/* ============================================================
   SIZE UTILITIES
   ============================================================ */
.w-px {
    width: 1px;
}

.h-px {
    height: 1px;
}

.w-1 {
    width: 0.25rem;
}

.h-1 {
    height: 0.25rem;
}

.w-1\.5 {
    width: 0.375rem;
}

.h-1\.5 {
    height: 0.375rem;
}

.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

.w-3\.5 {
    width: 0.875rem;
}

.h-3\.5 {
    height: 0.875rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-7 {
    width: 1.75rem;
}

.h-7 {
    height: 1.75rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.h-14 {
    height: 3.5rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.h-48 {
    height: 12rem;
}

.min-h-350 {
    min-height: 350px;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes pulse-copper {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes draw-line {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse-copper {
    animation: pulse-copper 2s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ============================================================
   FOCUS STYLES (Accessibility)
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
}

/* ============================================================
   PIN SPACER FIX (GSAP)
   ============================================================ */
.pin-spacer {
    width: 100% !important;
}

section {
    width: 100%;
}

.corner-bracket,
.frame-line {
    user-select: none;
    pointer-events: none;
}

/* ============================================================
   FORM INPUTS
   ============================================================ */
.elevate-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--slate-darker);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.elevate-input::placeholder {
    color: rgba(156, 163, 175, 0.5);
}

.elevate-input:focus {
    border-color: var(--copper);
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.elevate-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--slate-deep);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
}

.elevate-select:focus {
    border-color: var(--copper);
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.elevate-select option {
    background: var(--slate-deep);
}

/* ============================================================
   SPECIFIC SECTION STYLES
   ============================================================ */

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(28, 33, 39, 0.9);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

/* Header */
.site-header {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 40;
    transition: all 0.5s ease;
}

.site-header.scrolled {
    background: rgba(28, 33, 39, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    transition: all 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: rgba(28, 33, 39, 0.98);
    backdrop-filter: blur(16px);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
}

.nav-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content {
    background: rgba(28, 33, 39, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0;
    min-width: 160px;
}

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.nav-dropdown-item:hover {
    color: var(--copper);
    background: rgba(37, 99, 235, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--slate-deep);
}

/* Page Hero */
.page-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 350px;
    overflow: hidden;
    background: var(--slate-deep);
}

/* Decorative gradients */
.gradient-overlay-bottom {
    background: linear-gradient(to bottom, rgba(28, 33, 39, 0.6), rgba(28, 33, 39, 0.4), rgba(28, 33, 39, 0.8));
}

.gradient-overlay-top {
    background: linear-gradient(to top, var(--slate-deep), rgba(28, 33, 39, 0.6), rgba(28, 33, 39, 0.4));
}

.gradient-overlay-right {
    background: linear-gradient(to right, transparent, rgba(28, 33, 39, 0.6));
}

.gradient-overlay-right-strong {
    background: linear-gradient(to right, transparent, rgba(28, 33, 39, 0.8));
}

.gradient-from-bottom {
    background: linear-gradient(to top, var(--slate-deeper, var(--slate-darker)), transparent);
}

.gradient-copper-line {
    background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.4), transparent);
}

.gradient-copper-line-v {
    background: linear-gradient(to bottom, var(--copper), rgba(37, 99, 235, 0.6), transparent);
}

.gradient-copper-line-subtle {
    background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.2), transparent);
}

.gradient-copper-line-v-subtle {
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.2), transparent);
}

/* Card Styles */
.elevate-card {
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(20, 24, 29, 0.5);
    backdrop-filter: blur(4px);
    transition: all 0.5s ease;
}

.elevate-card:hover {
    border-color: rgba(37, 99, 235, 0.6);
    background: rgba(37, 99, 235, 0.05);
}

/* Decorative Corner */
.corner-tl {
    position: absolute;
    top: 0;
    left: 0;
    border-top: 2px solid var(--copper);
    border-left: 2px solid var(--copper);
}

.corner-tr {
    position: absolute;
    top: 0;
    right: 0;
    border-top: 2px solid var(--copper);
    border-right: 2px solid var(--copper);
}

.corner-bl {
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom: 2px solid var(--copper);
    border-left: 2px solid var(--copper);
}

.corner-br {
    position: absolute;
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--copper);
    border-right: 2px solid var(--copper);
}

/* Icon Box */
.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.icon-box-lg {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Stats Card */
.stat-card {
    text-align: center;
    padding: 1rem;
    background: rgba(28, 33, 39, 0.8);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Footer */
.site-footer {
    position: relative;
    width: 100%;
    background: var(--slate-deep);
    border-top: 1px solid rgba(37, 99, 235, 0.2);
}

/* Social Icon */
.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--copper);
}

/* Filter Button */
.filter-btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--copper);
    color: white;
    border: none;
}

.filter-btn:not(.active) {
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: var(--text-secondary);
    background: transparent;
}

.filter-btn:not(.active):hover {
    border-color: var(--copper);
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.1);
}

/* Partner Logo Hover */
.partner-logo:hover img {
    filter: grayscale(0%) brightness(1) !important;
    opacity: 1 !important;
}

.partner-logo:hover>div {
    border-color: rgba(37, 99, 235, 0.5) !important;
    background: rgba(37, 99, 235, 0.05);
    transform: scale(1.05);
}

.partner-logo:hover span {
    color: var(--copper) !important;
}

/* Before/After Slider */
.ba-slider-container:hover .ba-handle>div {
    box-shadow: 0 4px 30px rgba(37, 99, 235, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

.ba-handle>div {
    transition: box-shadow 0.3s, transform 0.3s;
}

.proj-page-prev:hover,
.proj-page-next:hover {
    background: rgba(37, 99, 235, 0.2) !important;
    border-color: var(--copper) !important;
}

.proj-page-dot:hover {
    border-color: var(--copper) !important;
    background: rgba(37, 99, 235, 0.3) !important;
}

/* Tag */
.project-tag {
    padding: 0.25rem 0.625rem;
    border-radius: calc(var(--radius) - 4px);
    background: rgba(37, 99, 235, 0.1);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(37, 99, 235, 0.8);
}

/* Project Card Before/After Badge */
.project-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.5s ease;
}

.project-badge.before {
    background: rgba(28, 33, 39, 0.8);
    color: var(--text-secondary);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.project-badge.after {
    background: rgba(37, 99, 235, 0.9);
    color: white;
}

/* Category Badge */
.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(28, 33, 39, 0.8);
    backdrop-filter: blur(4px);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--copper);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Google Maps */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.2);
    height: 400px;
    position: relative;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(80%) contrast(1.1) brightness(0.8);
}

/* ============================================================
   GSAP ANIMATION INITIAL STATES
   ============================================================ */

/* Page Hero targets (inner pages — unchanged) */
.page-hero .corner-bracket {
    opacity: 0;
}

.page-hero-breadcrumb {
    opacity: 0;
    transform: translateY(20px);
}

.page-hero-title {
    opacity: 0;
}

.page-hero .hero-word {
    opacity: 0;
    transform: translateY(30px);
}

.page-hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
}

.page-hero-line {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
}

/* Service cards (inner pages — unchanged) */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

/* Project cards (inner pages — unchanged) */
.project-card {
    opacity: 0;
    transform: translateY(30px);
}

/* Pillar cards (homepage) */
.pillar-card {
    opacity: 0;
    transform: translateY(30px);
}

/* Contact page (inner page — unchanged) */
.contact-info-panel {
    opacity: 0;
    transform: translateX(-40px);
}

.contact-form-panel {
    opacity: 0;
    transform: translateX(40px);
}

/* Management page (inner page — unchanged) */
.mgmt-about-left {
    opacity: 0;
    transform: translateX(-40px);
}

.mgmt-about-right {
    opacity: 0;
    transform: translateX(40px);
}

.mgmt-services-grid .elevate-card {
    opacity: 0;
    transform: translateY(30px);
}

.mgmt-process-grid>div {
    opacity: 0;
    transform: translateY(30px);
}

.mgmt-why-grid .elevate-card {
    opacity: 0;
    transform: translateY(30px);
}

/* CTA sections (inner pages — unchanged) */
#services-cta,
#projects-cta,
#mgmt-cta {
    opacity: 0;
    transform: translateY(30px);
}

/* FAQ (unchanged) */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
}


/* ============================================================
   PROCESS STEP TRIGGERS
   ============================================================ */
.process-step-trigger:first-of-type {
    opacity: 1;
}

.process-content:not(:first-of-type) {
    display: none;
}


/* ============================================================
   PROJECT EYE OVERLAY
   ============================================================ */
.project-eye-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 33, 39, 0.4);
    opacity: 0;
    transition: opacity 0.5s ease;
}


/* ============================================================
   MOBILE NAV LINK
   ============================================================ */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--copper);
}


/* ============================================================
   FAQ / ACCORDION STYLES
   ============================================================ */
.faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: rgba(20, 24, 29, 0.5);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-toggle:hover {
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(37, 99, 235, 0.05);
}

.faq-question {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon {
    color: var(--copper);
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer-inner {
    padding: 1rem 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ============================================================
   SPINNER ANIMATION
   ============================================================ */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* ============================================================
   PROJECT CARD BEFORE/AFTER
   ============================================================ */
.project-before,
.project-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.project-after {
    opacity: 0;
}

.service-card-img {
    transition: transform 0.5s ease;
}


/* ============================================================
   NAV DROPDOWN ACTIVE (JS Toggle)
   ============================================================ */
.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* SM: 640px */
@media (max-width: 767px) {
    .top-bar {
        display: none;
    }

    .site-header {
        top: 0;
    }

    .contact-grid-2col {
        grid-template-columns: 1fr !important;
    }
}

/* SM: 640px */
@media (min-width: 640px) {
    .sm\:block {
        display: block;
    }

    .sm\:hidden {
        display: none;
    }

    .sm\:inline {
        display: inline;
    }

    .sm\:flex-row {
        flex-direction: row;
    }

    .sm\:items-end {
        align-items: flex-end;
    }

    .sm\:gap-6 {
        gap: 1.5rem;
    }

    .sm\:gap-10 {
        gap: 2.5rem;
    }

    .sm\:text-left {
        text-align: left;
    }

    .sm\:p-8 {
        padding: 2rem;
    }

    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .sm\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .sm\:py-28 {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .sm\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .sm\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .sm\:text-xs {
        font-size: 0.75rem;
    }

    .sm\:text-sm {
        font-size: 0.875rem;
    }

    .sm\:text-xl {
        font-size: 1.25rem;
    }

    .sm\:text-2xl {
        font-size: 1.5rem;
    }

    .sm\:text-3xl {
        font-size: 1.875rem;
    }

    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:mr-4 {
        margin-right: 1rem;
    }

    .sm\:bottom-8 {
        bottom: 2rem;
    }

    .sm\:gap-2 {
        gap: 0.5rem;
    }

    .sm\:w-4 {
        width: 1rem;
    }

    .sm\:h-4 {
        height: 1rem;
    }
}

/* MD: 768px */
@media (min-width: 768px) {
    .md\:block {
        display: block;
    }

    .md\:hidden {
        display: none;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* LG: 1024px */
@media (min-width: 1024px) {
    .lg\:block {
        display: block;
    }

    .lg\:hidden {
        display: none;
    }

    .lg\:flex {
        display: flex;
    }

    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:flex-row {
        flex-direction: row;
    }

    .lg\:items-start {
        align-items: flex-start;
    }

    .lg\:text-left {
        text-align: left;
    }

    .lg\:col-span-1 {
        grid-column: span 1;
    }

    .lg\:w-1\/2 {
        width: 50%;
    }

    .lg\:gap-8 {
        gap: 2rem;
    }

    .lg\:gap-14 {
        gap: 3.5rem;
    }

    .lg\:gap-16 {
        gap: 4rem;
    }

    .lg\:gap-20 {
        gap: 5rem;
    }

    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .lg\:px-16 {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .lg\:p-8 {
        padding: 2rem;
    }

    .lg\:p-14 {
        padding: 3.5rem;
    }

    .lg\:p-16 {
        padding: 4rem;
    }

    .lg\:mx-0 {
        margin-left: 0;
        margin-right: 0;
    }

    .lg\:text-3xl {
        font-size: 1.875rem;
    }

    .lg\:text-4xl {
        font-size: 2.25rem;
    }

    .lg\:text-lg {
        font-size: 1.125rem;
    }

    .lg\:justify-start {
        justify-content: flex-start;
    }
}

/* XL: 1280px */
@media (min-width: 1280px) {
    .xl\:px-12 {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .xl\:px-20 {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

/* Mobile-only (max-width) */
@media (max-width: 1023px) {
    .pin-spacer {
        touch-action: pan-y !important;
    }

    .lg-only {
        display: none;
    }
}

@media (max-width: 639px) {
    .sm-only {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch devices */
@media (hover: none) {

    .pill-button:hover,
    .pill-button-filled:hover,
    .card-hover:hover {
        transform: none;
    }
}

/* Safe area */
@supports (padding-top: env(safe-area-inset-top)) {
    .safe-top {
        padding-top: env(safe-area-inset-top);
    }

    .safe-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Print */
@media print {
    .grain-overlay::after {
        display: none;
    }

    .pill-button,
    .pill-button-filled {
        border: 1px solid var(--copper);
        background: transparent;
        color: var(--slate-deep);
    }
}

/* ============================================================
   MOBILE RESPONSIVE OVERRIDES (≤767px)
   Uses !important to override inline styles in PHP templates
   ============================================================ */
@media (max-width: 767px) {

    /* --- GLOBAL: Sections that can grow beyond viewport on mobile --- */
    .about-section,
    .services-section,
    .process-section,
    .testimonials-section {
        height: auto !important;
        min-height: 100vh;
        min-height: 100svh;
    }

    /* Fix inner flex wrappers that have inline height:100% */
    .about-section>div,
    .services-section>div[style*="z-index"],
    .testimonials-section>div:first-child {
        height: auto !important;
        min-height: 100svh;
    }

    /* --- HERO: keep viewport height, use svh for mobile address bar --- */
    .hero-section {
        height: 100svh !important;
        overflow: hidden !important;
    }

    /* Hero content wrapper — adjust padding and ensure it fills */
    #hero>div[style*="z-index"] {
        padding: 12vh 5vw 4vh !important;
        height: 100% !important;
    }

    .hero-bottom-right {
        max-width: 100% !important;
        text-align: left !important;
    }

    #hero .heading-display {
        font-size: clamp(1.75rem, 8vw, 3rem) !important;
        max-width: 100% !important;
    }

    /* Hero bottom row — stack vertically on very narrow screens */
    #hero>div[style*="z-index"]>div:last-child {
        gap: 0.75rem !important;
    }

    /* --- ABOUT section --- */
    #about>div:first-child {
        flex-direction: column !important;
        height: auto !important;
    }

    .about-right-panel {
        width: 100% !important;
        height: auto !important;
        padding: 2rem 1.25rem !important;
    }

    .about-mobile-stats>div {
        padding: 0.5rem !important;
    }

    .about-section .heading-section {
        font-size: clamp(1.25rem, 5.5vw, 1.75rem) !important;
    }

    /* --- SERVICES section --- */
    .services-section {
        min-height: auto !important;
    }

    #services>div[style*="z-index"] {
        padding: 6vh 4vw 4vh !important;
        height: auto !important;
        min-height: auto !important;
    }

    .svc-card {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1.25rem !important;
    }

    .svc-prev,
    .svc-next {
        display: none !important;
    }

    .svc-card .svc-slide>div>div:first-child span:first-child {
        font-size: clamp(3rem, 15vw, 5rem) !important;
    }

    /* Services highlights grid — single column on mobile */
    .svc-slide [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    #services .heading-section {
        font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
    }

    /* --- PROCESS section --- */
    .process-section {
        min-height: auto !important;
    }

    #process-section>div[style*="z-index"] {
        padding: 4vh 4vw !important;
        height: auto !important;
        min-height: auto !important;
        justify-content: flex-start !important;
        padding-top: 6vh !important;
    }

    .process-card {
        max-width: 100% !important;
        min-height: auto !important;
        padding: 1.5rem !important;
    }

    .process-step-content>div>div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .process-step-content [style*="font-size:clamp(5rem"] {
        font-size: clamp(3rem, 15vw, 5rem) !important;
    }

    #process-section .section-label {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin-bottom: 1.5rem;
    }

    /* --- PROJECTS: keep viewport height, use svh --- */
    .projects-section {
        height: 100svh !important;
        overflow: hidden !important;
    }

    #projects>div[style*="z-index"] {
        padding: 10vh 4vw 8vh !important;
        height: 100% !important;
    }

    /* Full-width project info + smaller headline */
    #projects .heading-display {
        font-size: clamp(1.5rem, 7vw, 2.5rem) !important;
    }

    #projects [style*="max-width:28rem"] {
        max-width: 100% !important;
    }

    [data-proj-info] {
        max-width: 100% !important;
    }

    /* Smaller thumbnails on mobile */
    .proj-thumb,
    .svc-thumb {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }

    /* Bottom thumbnails row */
    #projects>div[style*="transform:translateX"] {
        bottom: 1rem !important;
    }

    /* --- TESTIMONIALS section --- */
    .testimonials-section {
        min-height: auto !important;
    }

    #testimonials-section>div:first-child {
        flex-direction: column !important;
        height: auto !important;
    }

    #testimonials-section>div:first-child>div:last-child {
        width: 100% !important;
        height: auto !important;
        padding: 3rem 1.25rem !important;
    }

    #testimonials-section [style*="clamp(1.25rem,3vw,2.5rem)"] {
        font-size: clamp(1.125rem, 5vw, 1.5rem) !important;
    }

    /* --- WHY ELEVATE / PILLARS --- */
    #why-elevate {
        padding: 4rem 0 5rem !important;
    }

    #why-elevate [style*="grid-template-columns:repeat(auto-fit,minmax(300px"] {
        grid-template-columns: 1fr !important;
    }

    /* --- PARTNERS section --- */
    #partners-section {
        padding: 3rem 0 5rem !important;
    }

    .partner-logo>div {
        min-width: 100px !important;
        min-height: 60px !important;
        padding: 0.75rem 1rem !important;
    }

    .partner-logo img {
        max-height: 35px !important;
        max-width: 100px !important;
    }

    /* --- CONTACT section --- */
    #contact {
        padding: 4rem 0 5rem !important;
    }

    /* --- FOOTER --- */
    .site-footer .flex.flex-wrap.items-center.justify-between {
        flex-direction: column !important;
        text-align: center;
        gap: 1rem !important;
    }

    .site-footer .flex.items-center.gap-6 {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* --- INNER PAGES: Grid Stacking --- */
    .grid.grid-cols-1.lg\:grid-cols-2,
    .grid.grid-cols-1.lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .grid.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    /* Footer grid: 2 columns on mobile */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Contact form two-column grids */
    .grid.grid-cols-1.sm\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .contact-grid-2col {
        grid-template-columns: 1fr !important;
    }

    /* Inner page section padding */
    .px-section {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* Management about image */
    .mgmt-about-right .relative.overflow-hidden {
        height: 300px !important;
    }

    /* Management process chevrons */
    .lg-only {
        display: none !important;
    }

    /* Inner page section general spacing */
    [style*="padding: 6rem var(--section-px)"] {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Page hero content sizing */
    .page-hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }

    /* Prevent horizontal overflow without blocking scroll */
    body {
        overflow-x: clip;
    }

    main {
        overflow-x: clip;
    }

    /* --- INNER PAGES: Allow scrolling on project gallery sections --- */
    #residential-gallery,
    #commercial-gallery,
    #residential-gallery.overflow-hidden,
    #commercial-gallery.overflow-hidden,
    section[id="residential-gallery"],
    section[id="commercial-gallery"] {
        overflow: visible !important;
        height: auto !important;
    }

    /* Prevent before/after slider touch events from blocking page scroll */
    .ba-slider-container {
        touch-action: pan-y !important;
    }

    .gallery-item {
        touch-action: pan-y !important;
    }

    /* --- CONTACT MAP: Ensure photo shows on mobile --- */
    section:has(> .absolute > img[alt*="office location"]) {
        height: auto !important;
        min-height: 250px !important;
    }

    /* --- PAGE HERO: Ensure it doesn't block scroll --- */
    .page-hero {
        height: auto !important;
        min-height: 300px !important;
        overflow: visible !important;
    }
}

/* Tablet tweaks (768–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-bottom-right {
        max-width: 50% !important;
    }

    .svc-prev,
    .svc-next {
        width: 2.75rem !important;
        height: 2.75rem !important;
    }

    .svc-card {
        max-width: 85% !important;
        margin: 0 3rem !important;
    }
}

/* ============================================================
   LUCIDE ICON SIZES (applied via class)
   ============================================================ */
.icon-sm {
    width: 0.75rem;
    height: 0.75rem;
}

.icon-md {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-xl {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-2xl {
    width: 1.75rem;
    height: 1.75rem;
}

.icon-3xl {
    width: 2rem;
    height: 2rem;
}

.icon-4xl {
    width: 4rem;
    height: 4rem;
}

/* Lucide fill for stars */
.icon-fill-copper {
    fill: var(--copper);
    color: var(--copper);
}

/* ============================================================
   PREMIUM PAGE LOADER
   ============================================================ */
#elevate-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Split panels — sit behind content but fill the screen */
.loader-split-top,
.loader-split-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--slate-darker);
    z-index: 0;
}

.loader-split-top {
    top: 0;
}

.loader-split-bottom {
    bottom: 0;
}

/* Grain texture on loader */
.loader-split-top::after,
.loader-split-bottom::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Center content */
.loader-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.loader-logo {
    display: block;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.85);
}

.loader-wordmark {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    line-height: 1;
    clip-path: inset(0 100% 0 0);
}

.loader-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 1.2vw, 0.9rem);
    letter-spacing: 0.5em;
    color: var(--copper);
    text-transform: uppercase;
    margin-top: 0.75rem;
    opacity: 0;
}

/* Bottom area: counter + progress bar */
.loader-bottom {
    position: absolute;
    bottom: 3rem;
    left: var(--section-px);
    right: var(--section-px);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.loader-counter {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--copper);
    min-width: 4ch;
    text-align: right;
}

.loader-bar {
    flex: 1;
    height: 1px;
    background: rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--copper-dark), var(--copper), var(--copper-light));
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 2px;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */

/* ============================================================
   BEFORE/AFTER SLIDER CARDS (Residential Projects)
   ============================================================ */
.ba-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ba-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    .ba-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .ba-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Hide default cursor on desktop (macOS Chrome fix: transparent 1x1 cursor fallback) */
@media (pointer: fine) {

    *,
    *::before,
    *::after {
        cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQI12NgAAIABQABNjN9GQAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAA0lEQVQI12P4z8BQDwAEgAF/QualzQAAAABJRU5ErkJggg==") 0 0, none !important;
    }
}

#custom-cursor-dot,
#custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    will-change: transform;
}

#custom-cursor-dot {
    width: 12px;
    height: 12px;
    background: var(--copper);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4), 0 0 4px rgba(37, 99, 235, 0.6);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 0.3s ease,
        box-shadow 0.3s ease,
        mix-blend-mode 0.3s ease,
        border 0.3s ease;
}

#custom-cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(37, 99, 235, 0.5);
    border-radius: 50%;
    margin-left: -20px;
    margin-top: -20px;
    transition: transform 0.25s ease, border-color 0.25s ease, width 0.25s ease, height 0.25s ease, margin 0.25s ease, background 0.25s ease;
}

/* --- Hover state --- */
#custom-cursor-ring.cursor-hover {
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    border-color: var(--copper);
    background: rgba(37, 99, 235, 0.06);
}

#custom-cursor-dot.cursor-hover {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    mix-blend-mode: difference;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5), 0 0 40px rgba(37, 99, 235, 0.2);
}

/* --- Click pulse --- */
#custom-cursor-ring.cursor-click {
    transform: scale(0.85) !important;
    border-color: var(--copper-light);
}

/* --- Text input state --- */
#custom-cursor-dot.cursor-text {
    width: 2px;
    height: 20px;
    border-radius: 1px;
    background: var(--copper-light);
}

#custom-cursor-ring.cursor-text {
    opacity: 0;
}

/* --- Hide on touch / mobile --- */
@media (pointer: coarse) {

    html,
    body,
    a,
    button {
        cursor: auto !important;
    }

    #custom-cursor-dot,
    #custom-cursor-ring {
        display: none !important;
    }
}