/* === SC Buildworks V4 — Modern, Clean, BESA/PHAC inspired === */

:root {
    --black: #0d0f12;
    --dark: #1a1d23;
    --gold: #d4a51e;
    --gold-light: #e9bf3d;
    --text: #1a1d23;
    --text-mid: #4a4f5a;
    --text-light: #7a7f8a;
    --bg: #ffffff;
    --bg-alt: #f5f4f1;
    --radius: 12px;
    --shadow: 0 2px 16px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text); line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* === NAV === */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 16px 0; transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    padding: 10px 0; box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 72px; width: auto; transition: var(--transition); border-radius: 8px; }
.navbar.scrolled .logo-img { height: 52px; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
    background: transparent; border: 1.5px solid rgba(255,255,255,0.45);
    color: #fff; font-size: 0.78rem; font-weight: 600; font-family: inherit;
    padding: 5px 14px; border-radius: 999px; cursor: pointer; transition: var(--transition);
}
.navbar.scrolled .lang-toggle { color: var(--text); border-color: rgba(0,0,0,0.18); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: var(--transition); display: block; }
.navbar.scrolled .nav-toggle span { background: var(--text); }

.nav-links { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 1.05rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: #fff; }
.navbar.scrolled .nav-links a:not(.btn-nav-cta):not(.btn-nav-estimate) { color: var(--text); }
.navbar.scrolled .nav-links a:not(.btn-nav-cta):not(.btn-nav-estimate):hover { color: var(--gold); }

.btn-nav-estimate {
    border: 1.5px solid rgba(212,175,55,0.5) !important; color: var(--gold) !important;
    padding: 8px 18px; border-radius: 6px; font-weight: 600 !important;
}
.btn-nav-estimate:hover { border-color: var(--gold) !important; background: rgba(212,175,55,0.08) !important; }

.btn-nav-cta {
    background: var(--gold) !important; color: #0d0f12 !important;
    padding: 9px 22px; border-radius: 6px; font-weight: 700 !important;
}
.btn-nav-cta:hover { background: var(--gold-light) !important; }

/* === BUTTONS === */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: 6px;
    font-weight: 700; font-size: 0.95rem; text-decoration: none;
    cursor: pointer; transition: var(--transition); border: 2px solid transparent;
    font-family: inherit;
}
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--black); border-color: #fff; }
.btn-white:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-full { width: 100%; text-align: center; }

/* === HERO === */
.hero {
    min-height: 100vh; display: flex; align-items: center; position: relative;
    overflow: hidden; background: #0d0f12;
}
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; display: block;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to right, rgba(10,14,22,0.78) 0%, rgba(10,14,22,0.50) 60%, rgba(10,14,22,0.3) 100%);
}
.hero-content {
    position: relative; z-index: 2; max-width: 640px; padding: 20px 0;
}
.hero-scroll { z-index: 2; }
.hero-kicker {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px; display: block;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 5.2rem); font-weight: 900;
    line-height: 1.0; color: #fff; margin-bottom: 24px; letter-spacing: -0.04em;
}
.hero-sub {
    font-size: 1.15rem; color: rgba(255,255,255,0.8); line-height: 1.8;
    margin-bottom: 40px; max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll span {
    display: block; width: 1px; height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* === STATS STRIP === */
.stats-strip { background: #2e3240; padding: 22px 0; }
.stats-grid {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.stat-item { flex: 1; min-width: 130px; text-align: center; }
.stat-item strong {
    display: block; font-size: 0.82rem; font-weight: 700;
    color: var(--gold); letter-spacing: 0.04em; margin-bottom: 2px;
}
.stat-item span { font-size: 0.73rem; color: rgba(255,255,255,0.55); }

/* === SECTIONS === */
.section { padding: 96px 0; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: #2e3240; }
.section-cta { background: var(--black); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head--split {
    display: flex; align-items: center; justify-content: space-between;
    text-align: left; margin-bottom: 40px;
}
.section-head h2, .section-head--split h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800;
    letter-spacing: -0.03em; color: var(--black); margin-bottom: 12px;
}
.h2--light { color: #fff !important; }
.section-head .lead {
    color: var(--text-mid); font-size: 1.05rem; max-width: 540px; margin: 0 auto; line-height: 1.75;
}

.kicker {
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px; display: block;
}
.kicker--light { color: var(--gold-light); }

/* === SERVICES === */
.services-primary {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px;
}
.svc-card {
    border-radius: var(--radius); overflow: hidden;
    background: #fff; border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow); transition: var(--transition);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-img-wrap { position: relative; overflow: hidden; height: 220px; }
.svc-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.svc-img-wrap img.active { opacity: 1; }
.svc-body { padding: 24px; }
.svc-tag {
    display: inline-block; margin-bottom: 10px;
    padding: 3px 10px; border-radius: 999px; font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    background: rgba(184,141,67,0.1); color: var(--gold); border: 1px solid rgba(184,141,67,0.25);
}
.svc-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; color: var(--black); }
.svc-body p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.svc-link { font-size: 0.85rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.svc-link:hover { text-decoration: underline; }

.services-secondary {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.svc-minor {
    padding: 22px 20px; border-radius: var(--radius);
    background: var(--bg-alt); border: 1px solid rgba(0,0,0,0.05);
}
.svc-minor h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; color: var(--black); }
.svc-minor p { font-size: 0.83rem; color: var(--text-mid); line-height: 1.6; }

/* === PROJECTS === */
.category-row { margin-bottom: 36px; }
.cat-label {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.5); margin-bottom: 14px;
}
.cat-carousel {
    display: flex; gap: 14px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; scrollbar-width: none;
}
.cat-carousel::-webkit-scrollbar { display: none; }
.cat-carousel .proj-card { flex: 0 0 300px; scroll-snap-align: start; }
.proj-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: #111; cursor: pointer;
}
.proj-card img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform 0.4s ease; opacity: 0.85; }
.proj-card:hover img { transform: scale(1.04); opacity: 1; }
.proj-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 14px 16px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75) 60%);
}
.proj-info h4 { font-size: 0.9rem; font-weight: 600; color: #fff; }

/* === PILLARS === */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { border-top: 2px solid var(--gold); padding-top: 28px; }
.pillar-num {
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; color: var(--gold);
    margin-bottom: 16px; display: block;
}
.pillar h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800;
    margin-bottom: 14px; color: var(--black); letter-spacing: -0.02em; line-height: 1.2;
}
.pillar p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.7; }

/* === PROCESS === */
.process-row {
    display: flex; align-items: flex-start; gap: 0;
}
.process-step {
    flex: 1; text-align: center; padding: 0 24px;
}
.step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gold); color: #fff; font-size: 1rem; font-weight: 800;
    margin-bottom: 16px;
}
.process-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--black); }
.process-step p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; }
.process-divider {
    flex: 0 0 1px; background: rgba(0,0,0,0.1); margin-top: 24px; align-self: stretch;
}

/* === MID CTA === */
.cta-wrap { text-align: center; }
.cta-wrap h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800;
    color: #fff; margin-bottom: 12px; letter-spacing: -0.02em;
}
.cta-wrap p { color: rgba(255,255,255,0.6); font-size: 1rem; margin-bottom: 28px; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-text .kicker { text-align: left; }
.about-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800;
    letter-spacing: -0.03em; margin-bottom: 16px; color: var(--black);
}
.about-lead { font-size: 1.05rem; font-weight: 500; color: var(--black); margin-bottom: 14px; line-height: 1.75; }
.about-text p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 12px; }
.credentials {
    margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; padding: 20px; border-radius: var(--radius);
    background: var(--bg-alt); border: 1px solid rgba(0,0,0,0.06);
    font-size: 0.86rem; color: var(--text-mid);
}
.credentials strong { color: var(--black); display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact-info .kicker { text-align: left; }
.contact-info h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800;
    letter-spacing: -0.03em; margin-bottom: 12px; color: var(--black);
}
.contact-info > p { font-size: 0.92rem; color: var(--text-mid); margin-bottom: 28px; line-height: 1.7; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-row { display: flex; gap: 16px; align-items: baseline; }
.c-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); min-width: 70px; }
.contact-row a, .contact-row span { font-size: 0.95rem; font-weight: 600; color: var(--black); text-decoration: none; }
.contact-row a:hover { color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
    padding: 14px 16px; border: 1.5px solid #e0ddd8; border-radius: 8px;
    font-family: inherit; font-size: 0.95rem; background: #fff;
    transition: border-color 0.2s ease; color: var(--text);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(184,141,67,0.1);
}

/* === FOOTER === */
.footer { background: var(--black); color: rgba(255,255,255,0.5); padding: 48px 0 24px; }
.footer-top {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 20px;
}
.footer-logo { height: 48px; border-radius: 6px; margin-bottom: 8px; }
.footer-brand p { font-size: 0.82rem; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
.footer-nav a:hover { color: #fff; }
.footer-bottom { font-size: 0.75rem; text-align: center; }

/* === SCROLL ANIMATIONS === */
.reveal {
    opacity: 0; transform: translateY(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0; transform: translateX(-36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0; transform: translateX(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0; transform: scale(0.94);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.5s ease forwards; }

/* === RESPONSIVE — TABLET === */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-primary { grid-template-columns: 1fr 1fr; }
    .services-secondary { grid-template-columns: 1fr 1fr 1fr; }
    .pillars-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-row { flex-direction: column; gap: 32px; }
    .process-divider { display: none; }
}

/* === RESPONSIVE — MOBILE === */
@media (max-width: 768px) {
    .nav-toggle { display: flex; position: relative; z-index: 1001; }
    .nav-toggle span { transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: center; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .navbar.scrolled .nav-toggle.active span { background: #fff; }
    .nav-overlay {
        display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    .nav-overlay.active { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 220px; height: 100vh;
        background: var(--dark); flex-direction: column; list-style: none;
        padding: 72px 24px; gap: 20px; transition: right 0.3s ease; z-index: 999;
    }
    .nav-links.active { right: 0; }
    .nav-links a,
    .navbar.scrolled .nav-links a { color: rgba(255,255,255,0.85) !important; font-size: 0.95rem; }
    .nav-links a:hover,
    .navbar.scrolled .nav-links a:hover { color: var(--gold) !important; }
    .nav-links .btn-nav-estimate { border-color: rgba(212,175,55,0.35) !important; padding: 8px 0 !important; text-align: center; }
    .nav-links .btn-nav-cta,
    .navbar.scrolled .nav-links .btn-nav-cta { background: var(--gold) !important; color: var(--text) !important; border-radius: 6px; padding: 10px 0 !important; text-align: center; }
    .nav-links .btn-nav-cta:hover { background: var(--gold-light) !important; }

    .hero { min-height: auto; padding: 110px 0 60px; margin-bottom: 0; border-bottom: none; }
    .hero-video { display: block; margin-bottom: 0; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
    .hero-sub { font-size: 0.92rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; }

    .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat-item { text-align: left; }

    .section { padding: 60px 0; }
    .section-head { margin-bottom: 36px; }
    .section-head h2, .about-text h2, .contact-info h2, .cta-wrap h2 {
        font-size: clamp(1.9rem, 7vw, 2.4rem);
    }
    .hero-title { font-size: clamp(2.4rem, 9vw, 3.2rem); }
    .section-head--split { flex-direction: column; align-items: flex-start; gap: 16px; }

    .services-primary { grid-template-columns: 1fr; }
    .services-secondary { grid-template-columns: 1fr; }
    .svc-img-wrap { height: 180px; }

    .cat-carousel .proj-card { flex: 0 0 240px; }
    .proj-card img { height: 180px; }

    .pillars-grid { grid-template-columns: 1fr; gap: 28px; }
    .pillar { padding-top: 20px; }
    .pillar h3 { font-size: clamp(1.3rem, 5vw, 1.6rem); }

    .process-row { flex-direction: column; gap: 28px; }
    .process-divider { display: none; }
    .process-step { padding: 0; }

    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .credentials { grid-template-columns: 1fr; }

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

    .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
    .footer-nav { gap: 16px; }
}

