/* ==========================================================================
   MTW (MORE THAN WINDOWS) — VIEWPORT-ADAPTIVE ARCHITECTURAL SYSTEM
   Strict Section Containment • Fit-to-Screen on 1080p • 4x1 & 3x2 Grids
   ========================================================================== */

:root {
    /* Color Palette */
    --color-bg-dark: #0b1118;
    --color-bg-dark-card: #131b26;
    --color-bg-dark-card-hover: #192433;
    
    --color-bg-light: #ffffff;
    --color-bg-subtle: #f8fafc;
    --color-bg-card: #ffffff;
    
    --color-accent: #e53012;
    --color-accent-hover: #ff4328;
    --color-accent-subtle: rgba(229, 48, 18, 0.08);
    
    /* Typography Colors */
    --color-text-main: #0f172a;
    --color-text-body: #334155;
    --color-text-muted: #64748b;
    
    --color-text-dark-h: #ffffff;
    --color-text-dark-body: #cbd5e1;
    --color-text-dark-muted: #94a3b8;

    --color-border-light: rgba(15, 23, 42, 0.08);
    --color-border-dark: rgba(255, 255, 255, 0.12);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-sans);

    /* Layout */
    --header-h: 68px;                          /* Header height at top of page */
    --header-h-scrolled: 52px;                 /* Header height after scrolling */
    --container-max: 1220px;
    --container-padding: clamp(1rem, 2vw, 1.75rem);
    --section-pad-v: clamp(2.5rem, 5vh, 4rem);
    
    /* Radius */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 11px;
    --radius-xl: 14px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(11, 17, 24, 0.06);
    --shadow-lg: 0 8px 20px -3px rgba(11, 17, 24, 0.1);

    /* Transitions */
    --transition-fast: 0.14s ease;
    --transition-base: 0.22s ease;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

section[id], div[id] {
    scroll-margin-top: var(--header-h);
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-body);
    background-color: var(--color-bg-light);
    font-size: 0.85rem;
    line-height: 1.45;
    overflow-x: hidden;
}

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

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

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

.skip-link {
    position: absolute;
    top: -999px;
    left: 15px;
    z-index: 1000;
    padding: 5px 12px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 15px;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* ==========================================================================
   TYPOGRAPHY & SECTION HEADERS
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.section {
    position: relative;
    min-height: calc(100svh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: var(--section-pad-v);
}

.section > .container {
    width: 100%;
}

.section-white {
    background-color: var(--color-bg-light);
}

.section-light {
    background-color: var(--color-bg-subtle);
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark-body);
}

.section-dark h1, 
.section-dark h2, 
.section-dark h3, 
.section-dark h4 {
    color: var(--color-text-dark-h) !important;
}

.section-dark p {
    color: var(--color-text-dark-body) !important;
}

.text-white {
    color: #ffffff !important;
}

.section-header-compact {
    margin-bottom: clamp(0.9rem, 1.8vh, 1.35rem);
    max-width: 680px;
}

.section-header-compact.centered {
    margin-inline: auto;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.2rem;
}

.section-kicker.kicker-accent {
    color: var(--color-accent-hover);
}

.section-title {
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.section-dark .section-subtitle {
    color: var(--color-text-dark-muted) !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-display);
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.32rem 0.75rem;
    font-size: 0.72rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(229, 48, 18, 0.25);
}
.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 48, 18, 0.35);
    color: #ffffff !important;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.btn-outline-dark {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.14);
    color: var(--color-text-main);
    box-shadow: var(--shadow-sm);
}
.btn-outline-dark:hover {
    background: var(--color-bg-subtle);
    border-color: rgba(15, 23, 42, 0.3);
    color: var(--color-text-main);
    transform: translateY(-1px);
}

/* ==========================================================================
   HEADER (Slim Navigation Bar)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 100;
    display: flex;
    align-items: center;
    background: rgba(11, 17, 24, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    background: rgba(11, 17, 24, 0.99);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.brand-logo-wrap {
    display: block;
    width: 110px;
}

.brand-logo {
    width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 0.9vw, 1rem);
}

.nav-links a {
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    padding-block: 2px;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

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

.nav-mobile-cta {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
}
.header-phone-link svg {
    width: 11px;
    height: 11px;
}
.header-phone-link:hover {
    color: #ffffff;
}

.header-cta {
    padding: 0.28rem 0.7rem !important;
    font-size: 0.72rem !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

/* ==========================================================================
   1. HERO SECTION (Fitted to Viewport Screen 1)
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--header-h) + clamp(2rem, 4vh, 3rem));
    padding-bottom: clamp(2rem, 4vh, 3rem);
    background: var(--color-bg-dark);
    color: #ffffff;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(229, 48, 18, 0.12) 0%, transparent 50%),
                linear-gradient(180deg, #0b1118 0%, #0d1520 100%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(1.2rem, 2.5vw, 2.2rem);
    align-items: center;
}

.hero-kicker {
    display: inline-block;
    font-size: clamp(0.68rem, 1vw, 0.82rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-hover);
    margin-bottom: 0.5rem;
}

.hero-headline {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.12;
    color: #ffffff !important;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.hero-lead {
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    color: #cbd5e1 !important;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    max-width: 520px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.hero-specs-row {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.spec-item strong {
    font-size: 0.92rem;
    font-family: var(--font-display);
    color: #ffffff;
    line-height: 1;
}

.spec-item span {
    font-size: 0.65rem;
    color: #94a3b8;
}

.spec-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: 390px;
    background: #111927;
}

.hero-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(11, 17, 24, 0.88) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.85rem;
}

.caption-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent-hover);
    margin-bottom: 2px;
}

.caption-title {
    font-size: 0.98rem;
    font-family: var(--font-display);
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.caption-detail {
    font-size: 0.7rem;
    color: #cbd5e1;
}

/* ==========================================================================
   2. PARTNERS STRIP
   ========================================================================== */

/* Partners strip: dark, seamless with hero — no orphaned white band */
.partners-strip {
    background: var(--color-bg-dark);
    padding-block: 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 0.85rem;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
}

.partner-item img {
    max-height: 22px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(1.8);
    opacity: 0.8;
}

.partner-item span {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ==========================================================================
   3. MUCHTEK SYSTEMS SHOWCASE (Strict 4-Card Screen-Fitting Row)
   ========================================================================== */

.muchtek-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.muchtek-card-compact {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.muchtek-card-compact:hover {
    border-color: rgba(229, 48, 18, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
}

.card-badge {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 1px 6px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
}

.card-title {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 0.2rem;
}

.card-subtitle {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-body);
    margin-bottom: 0.4rem;
}

.card-desc {
    font-size: 0.74rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.card-specs {
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--color-border-light);
    margin-bottom: 0.85rem;
}

.card-specs ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-specs li {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--color-text-body);
    line-height: 1.3;
}

.card-specs li svg {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.card-footer .btn {
    width: 100%;
}

/* ==========================================================================
   4. SOLUTIONS GRID (Strict 4-Card Screen-Fitting Row)
   ========================================================================== */

.solutions-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.solution-card-compact {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.solution-card-compact:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sol-badge-compact {
    display: inline-block;
    align-self: flex-start;
    padding: 1px 6px;
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 0.45rem;
}

.sol-title-compact {
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
}

.sol-text-compact {
    font-size: 0.74rem;
    color: var(--color-text-body);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.sol-link-compact {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-accent);
}
.sol-link-compact:hover {
    color: var(--color-accent-hover);
    gap: 6px;
}

/* ==========================================================================
   5. CONTINENTAL COLOR FOLIOS
   ========================================================================== */

.colors-section {
    background: var(--color-bg-subtle);
    /* Override default section padding — needs to be tighter to fit filter bar + 2 rows */
    padding-block: clamp(1.2rem, 2.5vh, 2rem) !important;
}

.color-filter-bar-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 0.75rem;
}

.color-filter-btn {
    padding: 3px 9px;
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.color-filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.color-filter-btn.is-active {
    background: var(--color-bg-dark);
    border-color: var(--color-bg-dark);
    color: #ffffff;
}

.colors-grid-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.color-swatch-compact {
    flex: 0 0 auto;
    width: 110px;
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.color-swatch-compact:hover {
    border-color: rgba(15, 23, 42, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.color-swatch-compact.is-hidden {
    display: none;
}

.swatch-frame-compact {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f1f5f9;
}

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

.swatch-info-compact {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.swatch-name-compact {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.swatch-cat-compact {
    font-size: 0.62rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   6. TECHNOLOGY & CNC SECTION (Dark Accent Feature)
   ========================================================================== */

.technology-section {
    background: #080d13;
}

.tech-layout-compact {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(1.2rem, 2.5vw, 2.2rem);
    align-items: center;
}

.tech-intro-compact {
    font-size: 0.84rem;
    color: #cbd5e1 !important;
    line-height: 1.45;
    margin-bottom: 0.95rem;
}

.tech-features-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.tech-feat-item {
    display: flex;
    gap: 6px;
}

.feat-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent-hover);
    margin-top: 5px;
    flex-shrink: 0;
}

.tech-feat-item strong {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1px;
}

.tech-feat-item p {
    font-size: 0.68rem;
    color: #94a3b8 !important;
    line-height: 1.3;
}

.tech-video-frame-compact {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #111927;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tech-video-frame-compact iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.video-caption-compact svg {
    color: var(--color-accent-hover);
}

/* ==========================================================================
   7. ARCHITECTURAL PROJECTS (Strict 3x2 Grid)
   ========================================================================== */

.projects-grid-compact {
    display: grid;
    /* Force exactly 3 cols — 6 projects = 2 rows, always fits in viewport */
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.project-card-compact {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.project-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.proj-photo-wrap {
    position: relative;
    /* vh-based height: shrinks on short viewports so 2 rows always fit */
    height: clamp(110px, 14vh, 185px);
    flex-shrink: 0;
    background: #f1f5f9;
    overflow: hidden;
}

.proj-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proj-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(11, 17, 24, 0.82);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 600;
    color: #ffffff;
}

.proj-info-compact {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.proj-title-compact {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.proj-system-compact {
    font-size: 0.76rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   8. CLIENTS / TRUST
   ========================================================================== */

.clients-section {
    background: var(--color-bg-subtle);
}

.clients-grid-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.client-box-compact {
    flex: 0 0 auto;
    width: 160px;
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    padding: 1.1rem 0.85rem;
    display: grid;
    place-items: center;
    min-height: 80px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.client-box-compact:hover {
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: var(--shadow-md);
}

.client-box-compact img {
    max-height: 48px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.client-box-compact:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ==========================================================================
   9. ABOUT US • MTW (Strict 4x1 Cards + Highlight Card)
   ========================================================================== */

.about-full-section {
    background: #ffffff;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 0.85rem;
    margin-bottom: 0.95rem;
    align-items: stretch;
}

.about-card {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.about-card:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.about-card-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--color-accent);
    margin-bottom: 0.35rem;
}

.about-card h3 {
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}

.about-card p {
    font-size: 0.74rem;
    color: var(--color-text-body);
    line-height: 1.4;
}

.about-highlight-card {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    box-shadow: var(--shadow-sm);
}

.about-highlight-info {
    padding: clamp(0.95rem, 2vw, 1.35rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.astat-item strong {
    display: block;
    font-size: 1.05rem;
    font-family: var(--font-display);
    color: var(--color-accent);
    line-height: 1.1;
}

.astat-item span {
    font-size: 0.68rem;
    color: var(--color-text-muted);
}

.about-highlight-photo {
    position: relative;
    background: #e2e8f0;
}

.about-proj-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   10. CONTACT SECTION
   ========================================================================== */

.contact-section {
    background: var(--color-bg-subtle);
}

.contact-compact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: clamp(1.2rem, 2.5vw, 2rem);
    align-items: stretch;
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: clamp(1rem, 2vw, 1.35rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.contact-desc-p {
    font-size: 0.8rem;
    color: var(--color-text-body);
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.contact-items-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.contact-c-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 0.8rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
}

.contact-c-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.c-lbl {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.contact-c-item a,
.contact-c-item span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.wa-direct-banner {
    margin-top: auto;
    padding: 0.75rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
}

.wa-direct-banner p {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.35rem;
}

.contact-form-side {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: clamp(1rem, 2vw, 1.35rem);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.form-head-compact {
    margin-bottom: 0.75rem;
}

.form-head-compact h3 {
    font-size: 1.05rem;
    margin-bottom: 1px;
}

.form-head-compact span {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.f-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 0.6rem;
}

.f-group label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.f-group input,
.f-group select,
.f-group textarea {
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 0.78rem;
    color: var(--color-text-main);
    transition: all var(--transition-fast);
}

.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent-subtle);
}

.hidden-field {
    display: none !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #080d13;
    color: #cbd5e1;
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid,
.footer-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
    gap: clamp(0.85rem, 1.8vw, 1.5rem);
    margin-bottom: 1.5rem;
}

.footer-desc,
.footer-brand-p {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-top: 0.5rem;
    margin-bottom: 0.65rem;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.footer-badge {
    padding: 1px 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.62rem;
    color: #cbd5e1;
}

.footer-heading,
.footer-col-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.footer-links,
.footer-links-list,
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-links a,
.footer-links-list a,
.footer-contact-list a,
.footer-contact-list span {
    font-size: 0.74rem;
    color: #94a3b8;
    transition: color var(--transition-fast);
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-contact-list svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.footer-links a:hover,
.footer-links-list a:hover,
.footer-contact-list a:hover {
    color: #ffffff;
}

.footer-social-links,
.footer-social-row {
    display: flex;
    gap: 5px;
    margin-top: 0.6rem;
}

.footer-social-links a,
.footer-social-row a {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: grid;
    place-items: center;
    transition: all var(--transition-fast);
}

.footer-social-links a:hover,
.footer-social-row a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.footer-map-wrap,
.footer-map-embed {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-map-wrap iframe,
.footer-map-embed iframe {
    width: 100%;
    height: 100px;
    border: 0;
}

.footer-bottom-bar,
.footer-bottom {
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748b;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-copyright a:hover {
    color: #cbd5e1;
}

/* ==========================================================================
   WHATSAPP FLOAT (Icon Only) & BACK TO TOP
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 90;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.6);
}

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

.back-to-top {
    position: fixed;
    bottom: 68px;
    right: 20px;
    z-index: 89;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(11, 17, 24, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   RESPONSIVE (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container,
    .tech-layout-compact,
    .about-highlight-card,
    .contact-compact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Projects: 2 cols on tablet so rows still fit */
    .projects-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .header-actions .header-phone-link,
    .header-actions .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(85vw, 260px);
        height: 100vh;
        background: #0b1118;
        padding: 3.5rem 1rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        z-index: 99;
    }

    .main-nav.is-open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .nav-mobile-cta {
        display: block;
        width: 100%;
        margin-top: 1.2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-mobile-cta .btn {
        width: 100%;
    }

    .projects-grid-compact,
    .tech-features-compact,
    .about-stats-row,
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    /* On mobile, sections don't need to fill full viewport */
    .section {
        min-height: unset;
        padding-block: 2.5rem;
    }

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