/* ================================================
   K&C Scaffolding Pte Ltd — One-Page Website
   Palette: Charcoal #1A1A1A + Red #CC2A2A + White
   Font: Inter
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
    --red: #CC2A2A;
    --red-dark: #A02020;
    --red-light: #E83A3A;
    --charcoal: #1A1A1A;
    --charcoal-2: #2A2A2A;
    --steel: #4A4A4A;
    --steel-light: #8A8A8A;
    --off-white: #F5F5F0;
    --white: #FFFFFF;
    --font: 'Inter', -apple-system, sans-serif;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --shadow-red: 0 4px 15px rgba(204,42,42,0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 68px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

input, select, textarea, button {
    font-family: var(--font);
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--steel);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.text-accent {
    color: var(--red);
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(204, 42, 42, 0.08);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-header h2 {
    color: var(--charcoal);
}

.section-header p {
    max-width: 700px;
    margin: 16px auto 0;
    font-size: 1.0625rem;
    color: var(--steel);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(204, 42, 42, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================
   SCROLL ANIMATIONS
   ======================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========================
   NAVIGATION
   ======================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    height: var(--nav-height);
    transition: var(--transition);
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

/* Brochure-style text logo for navbar */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-logo-k,
.nav-logo-c {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.nav-logo-amp {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.nav-logo-right {
    display: flex;
    flex-direction: column;
    margin-left: 6px;
}

.nav-logo-scaffolding {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.1;
}

.nav-logo-since {
    font-size: 7px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

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

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

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

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-phone:hover {
    background: var(--red-light);
    transform: scale(1.02);
}

.nav-phone svg {
    width: 14px;
    height: 14px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

/* ========================
   HERO
   ======================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

/* Brochure-style hero logo */
.hero-logo {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 40px;
}

.hero-logo-k,
.hero-logo-c {
    font-family: 'Inter', sans-serif;
    font-size: 52px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.hero-logo-amp {
    font-family: 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.hero-logo-right {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
}

.hero-logo-scaffolding {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-logo-since {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

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

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

.hero-bg .hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.88) 0%,
        rgba(13, 13, 13, 0.85) 50%,
        rgba(26, 26, 26, 0.7) 100%
    );
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.92) 0%,
        rgba(13, 13, 13, 0.85) 50%,
        rgba(26, 26, 26, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 80px 24px 40px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(204, 42, 42, 0.12);
    border: 1px solid rgba(204, 42, 42, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-headline {
    color: var(--white);
    font-weight: 900;
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 650px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta .btn {
    font-size: 1rem;
    padding: 18px 40px;
}

/* --- Trust Strip --- */
.trust-strip {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.trust-icon {
    flex-shrink: 0;
}

/* --- Stats --- */
.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: 28px 24px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stat {
    text-align: center;
}

.stat-num {
    display: inline;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.stat-num-suffix {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red);
    margin-left: 2px;
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ========================
   ABOUT
   ======================== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    margin-bottom: 28px;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--steel);
}

.about-text strong {
    color: var(--charcoal);
}

/* Pillars */
.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pillar {
    background: var(--off-white);
    padding: 24px;
    border-radius: 10px;
    border-left: 3px solid var(--red);
    transition: var(--transition);
}

.pillar:hover {
    box-shadow: var(--shadow);
}

.pillar-icon {
    margin-bottom: 12px;
    display: block;
}

.pillar h4 {
    margin-bottom: 8px;
    font-size: 0.9375rem;
    color: var(--charcoal);
}

.pillar p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    color: var(--steel);
}

/* About Image */
.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Black & white bossman photo */
.about-image-bw img.bw-image {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

/* About video — Apple Dome MBS loop */
.video-wrapper video.site-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.5s ease;
}

.about-image:hover video.site-video {
    transform: scale(1.03);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .site-video {
        display: none;
    }
    .video-wrapper {
        background: url("Images/Video-Apple-MBS-poster.jpg") center/cover no-repeat;
    }
}

/* === MODERN ABOUT SECTION (v4) === */
.lead-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--charcoal);
    font-weight: 500;
    margin-bottom: 16px;
}

.value-matrix {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.matrix-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--off-white);
    padding: 18px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--red);
}

.matrix-icon {
    background: rgba(204, 42, 42, 0.08);
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.matrix-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.matrix-card p {
    font-size: 0.875rem;
    color: var(--steel);
    line-height: 1.5;
    margin: 0;
}

/* Image Badge */
.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 420px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.about-image .image-wrapper {
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 2;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 6px;
    border-left: 3px solid var(--red);
    display: flex;
    flex-direction: column;
}

.badge-years {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.badge-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Safety Banner */
.safety-banner {
    margin-top: 40px;
    background: var(--charcoal);
    color: var(--white);
    padding: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.safety-banner-icon {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 50%;
}

.safety-banner h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.safety-banner p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .safety-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.about-image-caption {
    padding: 12px 16px;
    font-size: 0.8125rem;
    color: var(--steel-light);
    background: var(--off-white);
    text-align: center;
    font-weight: 500;
}

/* Safety Block */
.safety-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(204, 42, 42, 0.06), rgba(204, 42, 42, 0.02));
    border: 1px solid rgba(204, 42, 42, 0.1);
    border-radius: 12px;
    padding: 32px;
    margin-top: 48px;
}

.safety-icon {
    flex-shrink: 0;
    background: rgba(204, 42, 42, 0.1);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.safety-block h3 {
    margin-bottom: 8px;
    color: var(--charcoal);
}

.safety-block p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--steel);
}

/* ========================
   SERVICES
   ======================== */
.services {
    padding: 100px 0;
    background: var(--off-white);
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.system-card {
    background: var(--white);
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    overflow: hidden;
}

.system-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(204, 42, 42, 0.1);
}

.system-img {
    width: 100%;
    overflow: hidden;
}

.system-img img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    background: var(--off-white);
}

/* v2 — Service image smaller (140px) with crop positioning */
.system-img .sys-ringlock,
.system-img .sys-tubular {
    height: 180px !important;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    width: 100%;
}

.system-img .sys-ringlock {
    object-position: 50% 30%;
}

.system-img .sys-tubular {
    object-position: 50% 25%;
}

/* v2 — Ideal For line */
.sys-ideal-for {
    font-size: 0.875rem;
    color: var(--steel);
    margin-bottom: 12px;
    line-height: 1.5;
}

.sys-ideal-for strong {
    color: var(--red);
    font-weight: 700;
}

/* v2 — Bullet list in system cards */
.sys-bullets {
    list-style: none;
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--off-white);
    border-radius: 8px;
    border-left: 3px solid var(--red);
}

.sys-bullets li {
    font-size: 0.8125rem;
    color: var(--steel);
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
    margin-bottom: 4px;
}

.sys-bullets li:last-child {
    margin-bottom: 0;
}

.sys-bullets li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    opacity: 0.4;
}

.sys-bullets li strong {
    color: var(--charcoal);
    font-weight: 600;
}

/* v2 — Footnote */
.sys-footnote {
    font-size: 0.7rem;
    color: var(--steel-light);
    font-style: italic;
    margin: 0;
    margin-top: 4px;
    line-height: 1.5;
    text-align: right;
    opacity: 0.6;
}

/* v2 — Services CTA / continuous improvement line */
.services-cta {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--steel);
    line-height: 1.7;
    margin-top: 32px;
    padding: 20px 32px;
    background: linear-gradient(135deg, rgba(204,42,42,0.04), rgba(204,42,42,0.01));
    border: 1px solid rgba(204,42,42,0.08);
    border-radius: 10px;
    font-style: italic;
}

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

.system-card-body {
    padding: 28px 28px 32px;
}

.system-icon {
    margin-bottom: 16px;
    display: block;
}

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

.system-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--steel);
}

/* Capabilities */
.cap-header {
    text-align: center;
    margin-bottom: 24px;
}

.cap-accent-bar {
    width: 40px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.cap-header h3 {
    font-size: 1.375rem;
    color: var(--charcoal);
}

.caps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.cap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    padding: 12px 16px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--charcoal);
    font-weight: 500;
    transition: var(--transition);
}

.cap-item:hover {
    border-color: rgba(204, 42, 42, 0.15);
    box-shadow: var(--shadow);
}

.cap-check {
    flex-shrink: 0;
}

/* ========================
   PORTFOLIO
   ======================== */
.portfolio {
    padding: 100px 0;
    background: var(--white);
}

.portfolio-footer {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--steel-light);
    font-size: 0.9375rem;
}

/* === PORTFOLIO CATEGORIES === */
.portfolio-category {
    margin-bottom: 64px;
}

.portfolio-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.category-header .accent-bar {
    width: 4px;
    height: 48px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 2px;
}

.category-header h3 {
    font-size: 1.375rem;
    color: var(--charcoal);
    font-weight: 700;
    margin-bottom: 4px;
}

.category-desc {
    font-size: 0.875rem;
    color: var(--steel-light);
    line-height: 1.5;
    margin: 0;
}

/* Category Grids */
.category-grid {
    display: grid;
    gap: 20px;
}

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

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

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

/* === PROJECT CARDS === */
.proj-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    background: var(--white);
}

.proj-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* Image Wrap */
.proj-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--off-white);
}

.proj-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

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

/* Info Section */
.proj-info {
    padding: 14px 16px 18px;
}

.proj-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--red);
    background: rgba(204, 42, 42, 0.08);
    padding: 3px 8px;
    border-radius: 100px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.proj-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 4px;
    color: var(--charcoal);
    font-weight: 700;
}

.proj-info p {
    font-size: 0.8125rem;
    color: var(--steel-light);
    line-height: 1.5;
    margin: 0;
}

/* === DUAL-IMAGE HOVER (Cat 1) === */
.proj-dual-img .proj-img-front {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 1;
}

.proj-dual-img .proj-img-hover {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
}

.proj-dual-img:hover .proj-img-front {
    opacity: 0;
}

.proj-dual-img:hover .proj-img-hover {
    opacity: 1;
}

.proj-dual-img:hover .proj-img-front,
.proj-dual-img:hover .proj-img-hover {
    transform: scale(1.05);
}

/* === HOVER TEXT OVERLAY (Cat 2 & 3) === */
.proj-hover-text .proj-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.proj-hover-text:hover .proj-hover-overlay {
    opacity: 1;
}

.proj-hover-overlay p {
    color: var(--white);
    font-size: 0.8125rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* ========================
   SUB-SECTIONS (Services page)
   ======================== */
.sub-section {
    margin-bottom: 48px;
}

.sub-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.accent-bar {
    width: 4px;
    height: 24px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}

.sub-section-header h3 {
    font-size: 1.375rem;
    color: var(--charcoal);
    font-weight: 700;
}

/* Full-Service Solutions Grid */
.services-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.solution-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(204, 42, 42, 0.1);
}

.solution-card svg {
    margin-bottom: 16px;
    display: block;
}

.solution-card h4 {
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.solution-card p {
    font-size: 0.875rem;
    color: var(--steel);
    line-height: 1.6;
    margin: 0;
}

/* Sectors / Capabilities Grid */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sector-card {
    background: var(--white);
    padding: 24px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.sector-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(204, 42, 42, 0.08);
}

.sector-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.sector-header svg {
    flex-shrink: 0;
}

.sector-header h4 {
    font-size: 0.9375rem;
    color: var(--charcoal);
    font-weight: 600;
}

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

.sector-card li {
    font-size: 0.875rem;
    color: var(--steel);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.sector-card li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    opacity: 0.5;
}

/* Hide old caps-grid when sectors-grid is used */
.capabilities .caps-grid {
    display: none;
}

/* ========================
   GALLERY
   ======================== */


/* ========================
   CONTACT (v65 updates)
   ======================== */
.contact-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--steel-light) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-role {
    font-size: 0.8125rem !important;
    color: var(--steel-light) !important;
}

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

.person-phone {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--red) !important;
    white-space: nowrap;
}

/* ========================
   CONTACT
   ======================== */
.contact {
    padding: 100px 0;
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

/* Simple layout — no form, just contact info */
.contact-grid-simple {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

.contact-info-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-info-simple .map-container {
    grid-column: 1 / -1;
}

.contact-info-simple .contact-card.legal {
    grid-column: 1 / -1;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--white);
    padding: 20px 24px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow);
}

.contact-card h4 {
    font-size: 0.8125rem;
    margin-bottom: 6px;
    color: var(--steel-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card h4 svg {
    width: 14px;
    height: 14px;
    color: var(--red);
}

.contact-card p {
    font-size: 0.9375rem;
    color: var(--steel);
}

.contact-card a {
    color: var(--red);
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card.legal {
    background: rgba(204, 42, 42, 0.04);
    border-color: rgba(204, 42, 42, 0.1);
}

.contact-card.legal p {
    font-size: 0.8125rem;
    color: var(--steel);
}

/* Map */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.map-container iframe {
    display: block;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--charcoal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(204, 42, 42, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--steel-light);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A4A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

/* File Upload */
.file-upload {
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--red);
    background: rgba(204, 42, 42, 0.02);
}

.file-upload label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--steel);
    cursor: pointer;
    font-weight: 500;
}

.file-upload label svg {
    color: var(--red);
}

.file-upload input[type="file"] {
    display: none;
}

/* ========================
   FOOTER
   ======================== */
.footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-img {
    height: 40px;
}

/* Footer text logo */
.footer-logo-text {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
}

.footer-logo-k,
.footer-logo-c {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.footer-logo-amp {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.footer-logo-right {
    display: flex;
    flex-direction: column;
    margin-left: 6px;
}

.footer-logo-scaffolding {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.1;
}

.footer-logo-since {
    font-size: 7px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

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

.footer-contact p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--red);
}

.footer-tag {
    margin-top: 16px;
    color: var(--red) !important;
    font-weight: 600;
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ========================
   RESPONSIVE
   ======================== */

/* Tablet */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Mobile */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--charcoal-2);
        flex-direction: column;
        padding: 80px 40px 40px;
        gap: 20px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        align-items: flex-start;
    }

    .nav-links.active {
        right: 0;
    }

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

    .nav-links .nav-cta-mobile {
        display: inline-flex;
        background: var(--red);
        color: var(--white) !important;
        padding: 12px 24px;
        border-radius: 6px;
        font-weight: 600;
        text-align: center;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .nav-phone {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .trust-grid {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }

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

    /* Services */
    .systems-grid {
        grid-template-columns: 1fr;
    }

    .services-solutions-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Portfolio categories */
    .cat-landmarks {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-industrial {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-civic {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Portfolio categories */
    .cat-landmarks {
        grid-template-columns: 1fr;
    }
    .cat-industrial {
        grid-template-columns: 1fr;
    }
    .cat-civic {
        grid-template-columns: 1fr;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card.featured {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-content {
        padding: 60px 20px 30px;
    }

    .hero-badge {
        font-size: 0.65rem;
    }

    .hero-sub {
        font-size: 1.2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about,
    .services,
    .portfolio,
    .contact {
        padding: 60px 0;
    }
}

/* ===================== GALLERY CTA ===================== */
.gallery-cta {
    text-align: center;
    padding: 70px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: #fff;
}
.gallery-cta h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.gallery-cta p {
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto 28px;
}
