/* ==========================================================================
   Dream Home Builders – Homepage
   Brand colours are taken from the logo (teal #29889C + black).
   Change the palette in one place: the :root block below.
   ========================================================================== */

:root {
    /* Brand */
    --primary: #29889c;          /* logo teal – decorative / large elements */
    --primary-rgb: 41, 136, 156;
    --primary-dark: #1f7688;     /* buttons + text on light (AA with white text) */
    --primary-deep: #16596a;     /* hover / pressed */
    --accent: #5cc3d9;           /* lighter teal for text + icons on dark */
    --secondary: #f5a623;        /* warm signal: stars, "in progress" */

    /* Neutrals */
    --dark: #0b1a20;
    --dark-2: #10262e;
    --light: #f4f7f8;
    --text: #33424a;
    --muted: #5b6b73;
    --line: #e2e9ec;
    --white: #ffffff;

    /* Shape + depth */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 14px rgba(11, 26, 32, .06);
    --shadow-md: 0 14px 34px rgba(11, 26, 32, .10);
    --shadow-lg: 0 26px 60px rgba(11, 26, 32, .18);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 92px;
    --focus: var(--primary-dark);

    /* Bootstrap overrides */
    --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --bs-body-color: var(--text);
    --bs-body-line-height: 1.7;
    --bs-link-color: var(--primary-dark);
    --bs-link-hover-color: var(--primary-deep);
    --bs-primary: var(--primary);
    --bs-primary-rgb: var(--primary-rgb);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: var(--bs-body-font-family);
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
h1, h2, h3, h4, h5 { color: var(--dark); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
a { text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero, .stats, .testimonials, .cta, .site-footer, .site-header:not(.is-solid) { --focus: var(--accent); }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--white); color: var(--dark); padding: .7rem 1.1rem;
    border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
    box-shadow: var(--shadow-md); transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Shared image frame: fixed aspect ratio, image covers it, gradient shows if an image fails */
.frame {
    position: relative; display: block; overflow: hidden; margin: 0;
    background-color: var(--dark-2);
    background-image:
        linear-gradient(135deg, rgba(var(--primary-rgb), .35), rgba(11, 26, 32, .2)),
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
}
.frame::before { content: ""; display: block; padding-top: var(--ratio, 66.66%); }
.frame > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
img.is-broken { visibility: hidden; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    --bs-btn-border-radius: 10px;
    font-weight: 600; letter-spacing: .01em;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-lg { --bs-btn-padding-y: .9rem; --bs-btn-padding-x: 1.7rem; --bs-btn-font-size: 1rem; }
.btn i { transition: transform .25s var(--ease); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }

.btn-brand {
    --bs-btn-color: #fff; --bs-btn-bg: var(--primary-dark); --bs-btn-border-color: var(--primary-dark);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--primary-deep); --bs-btn-hover-border-color: var(--primary-deep);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--primary-deep); --bs-btn-active-border-color: var(--primary-deep);
    --bs-btn-focus-shadow-rgb: var(--primary-rgb);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), .28);
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--primary-rgb), .38); }

.btn-outline-brand {
    --bs-btn-color: var(--primary-dark); --bs-btn-border-color: var(--primary-dark);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--primary-deep); --bs-btn-active-border-color: var(--primary-deep);
    border-width: 2px;
}
.btn-outline-brand:hover { transform: translateY(-2px); }

.btn-ghost {
    color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fff; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .55); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section { padding: clamp(4rem, 2.6rem + 5vw, 7.5rem) 0; position: relative; }
.section-light { background: var(--light); }
.section-head { max-width: 46rem; margin: 0 auto clamp(2rem, 1.4rem + 2vw, 3.5rem); }
.section-title { font-size: clamp(1.85rem, 1.25rem + 2vw, 2.85rem); font-weight: 700; margin-bottom: .9rem; -webkit-text-wrap: balance; text-wrap: balance; }
.section-head--wide { max-width: 56rem; }
.section-sub { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: var(--muted); margin: 0; font-weight: 500; }
.section-lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.75rem; max-width: 34rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .7rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--primary-dark); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--primary); }
.eyebrow--center::before { display: none; }

.on-dark .section-title { color: #fff; }
.on-dark .section-sub { color: rgba(255, 255, 255, .78); }

/* Scroll reveal (only active when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    padding: .7rem 0;
    transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header .navbar { padding: 0; }
.brand-logo { display: block; height: 80px; width: auto; transition: height .35s var(--ease); }
.brand-logo--dark { display: none; }
.navbar-brand { padding: 0; margin-right: 0; }

.site-header .nav-link {
    position: relative; color: rgba(255, 255, 255, .9); font-weight: 500; font-size: .95rem;
    padding: .55rem 1rem; transition: color .25s var(--ease);
}
.site-header .nav-link::after {
    content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff; }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
.nav-cta { padding: .65rem 1.4rem; }

/* Hamburger */
.navbar-toggler {
    border: 0; padding: 0; width: 46px; height: 46px; box-shadow: none !important;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.toggler-bar { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, background-color .3s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Solid state (scrolled, or mobile menu open) */
.site-header.is-solid { background: rgba(255, 255, 255, .98); box-shadow: 0 6px 26px rgba(11, 26, 32, .12); }
.site-header.is-solid .brand-logo--light { display: none; }
.site-header.is-solid .brand-logo--dark { display: block; }
.site-header.is-solid .nav-link { color: var(--dark); }
.site-header.is-solid .nav-link:hover, .site-header.is-solid .nav-link.active { color: var(--primary-dark); }
.site-header.is-solid .nav-link::after { background: var(--primary); }
.site-header.is-solid .toggler-bar { background: var(--dark); }
.site-header.is-scrolled { padding: .35rem 0; }
.site-header.is-scrolled .brand-logo { height: 58px; }

@media (max-width: 991.98px) {
    .brand-logo { height: 62px; }
    .site-header.is-scrolled .brand-logo { height: 52px; }
    .navbar-collapse { padding: .75rem 0 1.25rem; }
    .site-header .nav-link { padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--dark); }
    .site-header .nav-link::after { display: none; }
    .site-header .nav-link.active { color: var(--primary-dark); }
    .nav-cta { display: block; text-align: center; }
}

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--dark);
    min-height: 100vh; display: flex; align-items: center;
    padding: calc(var(--header-h) + 2.25rem) 0 3.5rem;
}
.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -2; }
.hero-bg .carousel-inner, .hero-bg .carousel-item, .hero-bg .frame { height: 100%; }
.hero-bg .frame::before { display: none; }
.hero-bg .carousel-item.active img { animation: heroZoom 14s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 20, 26, .92) 0%, rgba(8, 20, 26, .72) 46%, rgba(8, 20, 26, .42) 100%),
        linear-gradient(0deg, rgba(8, 20, 26, .85) 0%, rgba(8, 20, 26, 0) 38%);
}
.hero-inner { position: relative; width: 100%; }

/* Slide text panels stack in one grid cell and cross-fade */
.hero-copy { display: grid; }
.hero-panel {
    grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s;
}
.hero-panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .2s, .2s, 0s; }

.hero-badge {
    display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem;
    padding: .5rem 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
    font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #fff;
}
.hero-badge i { color: var(--accent); font-size: 1rem; }
.hero-title {
    color: #fff; font-weight: 800; letter-spacing: -.025em; line-height: 1.08;
    font-size: clamp(2.05rem, 1.15rem + 3.3vw, 3.7rem); margin: 0 0 1.25rem; max-width: 40rem;
}
.text-accent { color: var(--accent); }
.hero-text { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .9); max-width: 33rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-controls { display: flex; align-items: center; gap: 1.1rem; margin-top: 2rem; }
.hero-progress { display: flex; gap: .55rem; }
.hero-progress button {
    position: relative; width: 38px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.hero-progress button::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px;
    background: rgba(255, 255, 255, .35); transition: background-color .3s, transform .3s var(--ease);
}
.hero-progress button:hover::before { background: rgba(255, 255, 255, .6); }
.hero-progress button.active::before { background: var(--accent); }
.hero-count { font-size: .85rem; color: rgba(255, 255, 255, .75); font-weight: 500; letter-spacing: .06em; }
.hero-count b { color: #fff; font-weight: 700; }

/* Glass service strip */
.hero-strip {
    display: grid; grid-template-columns: repeat(2, 1fr);
    margin: 2rem 0 0; padding: 0; list-style: none; overflow: hidden;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-radius: 18px;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero-strip li { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; }
.hero-strip li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .12); }
.hero-strip li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-strip i { font-size: 1.6rem; color: var(--accent); line-height: 1; }
.hero-strip strong { display: block; font-size: .95rem; font-weight: 700; color: #fff; line-height: 1.25; }
.hero-strip small { display: block; font-size: .74rem; color: rgba(255, 255, 255, .78); line-height: 1.35; margin-top: .1rem; }
@media (min-width: 768px) {
    .hero-strip { grid-template-columns: repeat(4, 1fr); }
    .hero-strip li:nth-child(n+3) { border-top: 0; }
    .hero-strip li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-strip { grid-template-columns: repeat(2, 1fr); }
    .hero-strip li + li { border-left: 0; }
    .hero-strip li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .12); }
    .hero-strip li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* Hero enquiry form (glass card) */
.hero-form {
    padding: 1.75rem; border-radius: 24px;
    background: rgba(14, 34, 42, .55); border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .38);
}
.form-title { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: .35rem; }
.form-sub { color: rgba(255, 255, 255, .85); font-size: .88rem; line-height: 1.5; margin-bottom: 1.25rem; }
.hero-form .form-label {
    font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    color: rgba(255, 255, 255, .9); margin-bottom: .35rem;
}
.hero-form .form-control, .hero-form .form-select {
    background-color: #fff; border-color: transparent; color: var(--dark);
    border-radius: 10px; padding: .72rem .95rem; font-size: .93rem;
}
.hero-form textarea.form-control { resize: none; }
.hero-form .invalid-feedback { color: #ffb8b8; font-size: .76rem; }
.hero-form .form-control.is-invalid, .hero-form .form-select.is-invalid, .hero-form .was-validated :invalid { border-color: #ff8f8f; }

.form-notes { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; padding: 0; margin: 1rem 0 0; font-size: .76rem; color: rgba(255, 255, 255, .82); }
.form-notes i { margin-right: .3rem; color: var(--accent); }
.form-notes--light { color: var(--muted); }
.form-notes--light i { color: var(--primary-dark); }

/* Shared form polish */
.form-control, .form-select { transition: border-color .2s, box-shadow .2s; }
.form-control::placeholder { color: #667580; opacity: 1; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .25rem rgba(var(--primary-rgb), .28); }
.was-validated .form-control:valid, .was-validated .form-select:valid { background-image: none; padding-right: .95rem; }
.was-validated .form-select:valid { --bs-form-select-bg-icon: none; padding-right: 2.25rem; }
.was-validated .form-control:valid, .was-validated .form-select:valid { border-color: var(--bs-border-color); }
.hero-form .was-validated .form-control:valid, .hero-form .was-validated .form-select:valid { border-color: transparent; }
.form-status {
    margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500;
    background: rgba(var(--primary-rgb), .14); color: #d9f4fa; border: 1px solid rgba(var(--primary-rgb), .5);
}
.cta-form .form-status { color: var(--primary-deep); background: rgba(var(--primary-rgb), .1); }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .hero-form, .hero-strip { background: rgba(11, 26, 32, .88); }
    .btn-ghost { background: rgba(11, 26, 32, .55); }
}

@media (max-width: 991.98px) {
    .hero { min-height: 0; padding-bottom: 3rem; }
    .hero-overlay { background: linear-gradient(180deg, rgba(8, 20, 26, .86), rgba(8, 20, 26, .9)); }
}
@media (max-width: 575.98px) {
    .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
    .hero-actions .btn:first-child { flex-basis: 100%; }
    .hero-form { padding: 1.35rem; border-radius: 20px; }
}

/* --------------------------------------------------------------------------
   2. Counters
   -------------------------------------------------------------------------- */
.stats { position: relative; overflow: hidden; background: var(--primary-dark); color: #fff; padding: clamp(2.75rem, 2rem + 3vw, 4.25rem) 0; }
.stats::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0, rgba(255, 255, 255, .045) 1px, transparent 1px, transparent 22px);
}
.stat { position: relative; text-align: center; padding: .5rem 1rem; }
.stat-icon {
    display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 1rem;
    border-radius: 16px; background: rgba(255, 255, 255, .14); font-size: 1.7rem; color: #fff;
}
.stat-number { font-size: clamp(2.3rem, 1.7rem + 2vw, 3.3rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-label { margin: .55rem 0 0; font-size: .95rem; color: #fff; opacity: .95; }
@media (min-width: 992px) {
    .col-lg-3 + .col-lg-3 .stat::before {
        content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: rgba(255, 255, 255, .22);
    }
}

/* --------------------------------------------------------------------------
   3. About
   -------------------------------------------------------------------------- */
.about { overflow: hidden; }
.about-media { position: relative; padding: 0 3rem 3.5rem 0; }
.about-frame {
    position: absolute; left: -1.25rem; top: -1.25rem; width: 62%; height: 58%;
    border: 2px solid rgba(var(--primary-rgb), .38); border-radius: 22px;
}
.about-dots {
    position: absolute; right: 1rem; top: 2rem; width: 120px; height: 120px; opacity: .5;
    background-image: radial-gradient(var(--primary) 2px, transparent 2.5px); background-size: 16px 16px;
}
.about-main { position: relative; border-radius: 20px; box-shadow: var(--shadow-lg); }
.about-sub {
    position: absolute; right: 0; bottom: 0; width: 46%;
    border: 8px solid #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
}
.about-badge {
    position: absolute; left: -1rem; bottom: 4.5rem; padding: 1.15rem 1.5rem;
    background: var(--primary-dark); color: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
}
.about-badge strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.about-badge span { display: block; font-size: .85rem; margin-top: .3rem; opacity: .95; }

.about-points { list-style: none; padding: 0; margin: 0 0 2.25rem; display: grid; grid-template-columns: 1fr; gap: 1rem 1.5rem; }
.about-points li { display: flex; align-items: center; gap: .9rem; font-weight: 600; color: var(--dark); }
.icon-box {
    flex: 0 0 auto; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: rgba(var(--primary-rgb), .12); color: var(--primary-dark); font-size: 1.3rem;
}
@media (min-width: 576px) { .about-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) {
    .about-media { padding: 0 1.25rem 2.5rem 0; }
    .about-badge { left: .75rem; bottom: 3rem; padding: .9rem 1.1rem; }
    .about-badge strong { font-size: 1.55rem; }
    .about-frame { left: -.5rem; top: -.75rem; }
    .about-sub { border-width: 6px; border-radius: 16px; }
}

/* --------------------------------------------------------------------------
   4. Projects
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.filter-btn {
    padding: .6rem 1.35rem; border-radius: 999px; font-size: .92rem; font-weight: 600; cursor: pointer;
    background: #fff; color: var(--dark); border: 1px solid var(--line);
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-1px); }
.filter-btn.active { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.project-group + .project-group { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.group-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.group-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 1.3rem; }
.group-icon--progress { background: rgba(245, 166, 35, .18); color: #8a5a00; }
.group-icon--done { background: rgba(var(--primary-rgb), .14); color: var(--primary-dark); }
.group-title { font-size: 1.35rem; font-weight: 700; margin: 0; }
.group-count { margin-left: auto; font-size: .85rem; font-weight: 500; color: var(--muted); }

.project-item.is-entering { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.project-card {
    height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.project-media img { transition: transform .7s var(--ease); }
.project-media::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: .0;
    background: linear-gradient(180deg, rgba(11, 26, 32, 0) 45%, rgba(11, 26, 32, .55)); transition: opacity .4s var(--ease);
}
.status-badge {
    position: absolute; top: 1rem; left: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem;
    padding: .38rem .8rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .03em;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.status-badge--progress { background: var(--secondary); color: #2a1c00; }
.status-badge--done { background: var(--primary-dark); color: #fff; }
.project-body { padding: 1.4rem 1.5rem 1.6rem; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; flex-wrap: wrap; }
.project-cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-dark); }
.project-loc { font-size: .84rem; color: var(--muted); font-weight: 500; }
.project-loc i { color: var(--primary); margin-right: .2rem; }
.project-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 .5rem; }
.project-desc { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.65; }

@media (hover: hover) {
    .project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(var(--primary-rgb), .35); }
    .project-card:hover .project-media img { transform: scale(1.08); }
    .project-card:hover .project-media::after { opacity: 1; }
}

/* --------------------------------------------------------------------------
   5. Why choose us
   -------------------------------------------------------------------------- */
.why { overflow: hidden; }
.why::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), .06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.why .container { position: relative; }
.why-card {
    position: relative; height: 100%; overflow: hidden; padding: 2.1rem 1.9rem 2rem;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.why-card::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--primary);
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.why-num { position: absolute; top: 1.1rem; right: 1.5rem; font-size: 3.4rem; font-weight: 800; line-height: 1; color: rgba(var(--primary-rgb), .13); letter-spacing: -.03em; }
.why-icon {
    display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.4rem; border-radius: 16px;
    background: rgba(var(--primary-rgb), .12); color: var(--primary-dark); font-size: 1.85rem;
    transition: background-color .35s var(--ease), color .35s var(--ease), transform .5s var(--ease);
}
.why-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 .6rem; }
.why-card p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (hover: hover) {
    .why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(var(--primary-rgb), .3); }
    .why-card:hover::after { transform: scaleX(1); }
    .why-card:hover .why-icon { background: var(--primary-dark); color: #fff; transform: rotate(-8deg) scale(1.08); }
}

/* --------------------------------------------------------------------------
   6. Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
    background: var(--dark); color: #fff; overflow: hidden;
    background-image: radial-gradient(60% 70% at 85% 0%, rgba(var(--primary-rgb), .28), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(var(--primary-rgb), .18), transparent 70%);
}
.testimonial-wrap { max-width: 860px; margin: 0 auto; }
.testimonial-card {
    position: relative; margin: 0; padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.quote-mark { position: absolute; top: .5rem; right: 1.5rem; font-size: clamp(4rem, 3rem + 4vw, 6.5rem); line-height: 1; color: rgba(var(--primary-rgb), .55); }
.stars { display: flex; gap: .25rem; margin-bottom: 1.25rem; color: var(--secondary); font-size: 1.05rem; }
.testimonial-card blockquote { margin: 0 0 1.75rem; }
.testimonial-card blockquote p { font-size: clamp(1.08rem, .95rem + .7vw, 1.5rem); line-height: 1.6; font-weight: 500; color: #fff; margin: 0; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 1rem; }
.avatar {
    flex: 0 0 auto; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary-dark); color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .03em;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}
.who strong { display: block; color: #fff; font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.who small { display: block; color: rgba(255, 255, 255, .78); font-size: .86rem; }
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1.75rem; }
.round-btn {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); font-size: 1.1rem;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.round-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.t-dots { display: flex; gap: .3rem; }
.t-dots button { position: relative; width: 30px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.t-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255, 255, 255, .3); transition: background-color .3s; }
.t-dots button.active::before { background: var(--accent); }

/* --------------------------------------------------------------------------
   7. Video walkthroughs
   -------------------------------------------------------------------------- */
.video-card { height: 100%; }
.video-thumb {
    width: 100%; padding: 0; border: 0; cursor: pointer; border-radius: var(--radius); box-shadow: var(--shadow-md);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.video-thumb img { transition: transform .7s var(--ease); }
.video-thumb::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(11, 26, 32, .1), rgba(11, 26, 32, .55)); transition: background .35s var(--ease);
}
.play {
    position: absolute; z-index: 2; top: 50%; left: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px;
    display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--primary-dark); font-size: 2.4rem;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .25), 0 12px 30px rgba(0, 0, 0, .3);
    transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.play i { margin-left: 4px; }
.video-thumb:hover .play, .video-thumb:focus-visible .play { transform: scale(1.1); background: var(--primary-dark); color: #fff; box-shadow: 0 0 0 14px rgba(255, 255, 255, .2), 0 14px 34px rgba(0, 0, 0, .35); }
.video-thumb:hover img { transform: scale(1.06); }
.video-thumb:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 4px; }
.video-meta { padding: 1.15rem .25rem 0; }
.video-title { font-size: 1.2rem; font-weight: 700; margin: .25rem 0 0; }

.video-modal { background: #000; border: 0; border-radius: var(--radius); overflow: hidden; }
.video-modal .modal-header { background: var(--dark); border: 0; padding: .85rem 1.25rem; }
.video-modal .modal-title { color: #fff; font-size: 1rem; font-weight: 600; margin: 0; }
.video-modal iframe { border: 0; }
.video-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
    background: linear-gradient(135deg, var(--dark-2), #0d2f3a); color: #fff;
}
.video-placeholder i { font-size: 3.5rem; color: var(--accent); }
.video-placeholder p { margin: .5rem 0 .25rem; font-weight: 600; }
.video-placeholder small { color: rgba(255, 255, 255, .78); }
.video-placeholder code { color: var(--accent); }

/* --------------------------------------------------------------------------
   8. Start your project
   -------------------------------------------------------------------------- */
.cta { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--dark); padding: clamp(4rem, 2.6rem + 5vw, 7.5rem) 0; }
.cta-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -2; }
.cta-bg.frame::before { display: none; }
.cta-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 15, 19, .76), rgba(6, 15, 19, .9)); }

.cta-card {
    overflow: hidden; border-radius: 32px; border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(10, 24, 30, .72);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
.cta-left {
    padding: clamp(1.75rem, 1rem + 3.2vw, 3.6rem);
    background-image: radial-gradient(70% 55% at 0% 0%, rgba(var(--primary-rgb), .3), transparent 70%);
}
@media (min-width: 992px) { .cta-left { border-right: 1px solid rgba(255, 255, 255, .12); } }
.pill {
    display: inline-block; margin-bottom: 1.25rem; padding: .45rem 1.1rem; border-radius: 999px;
    font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
    background: rgba(var(--primary-rgb), .16); border: 1px solid rgba(92, 195, 217, .5);
}
.cta-title { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 1.1rem; }
.cta-text { font-size: 1.05rem; color: rgba(255, 255, 255, .88); margin-bottom: 1.75rem; max-width: 34rem; }
.cta-points { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; grid-template-columns: 1fr; gap: .75rem; }
.cta-points li {
    display: flex; align-items: center; gap: .85rem; padding: .95rem 1.05rem;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px;
    font-weight: 600; font-size: .95rem; line-height: 1.35; color: #fff;
}
.cta-points i { flex: 0 0 auto; font-size: 1.4rem; color: var(--accent); }
@media (min-width: 576px) {
    .cta-points { grid-template-columns: repeat(3, 1fr); }
    .cta-points li { flex-direction: column; align-items: flex-start; gap: .7rem; }
}
.cta-phone { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; }
.phone-pill {
    display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.3rem; border-radius: 12px;
    color: #fff; text-decoration: none; font-weight: 700; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
    transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.phone-pill:hover { color: #fff; background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.phone-pill i { font-size: 1.15rem; color: var(--accent); }
.cta-phone span { color: rgba(255, 255, 255, .82); font-size: .92rem; }

.cta-right { display: flex; align-items: center; padding: clamp(1rem, .6rem + 2.2vw, 2.75rem); }
.cta-form {
    width: 100%; padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem); background: #fff; color: var(--text);
    border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.form-kicker { margin: 0 0 .35rem; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary-dark); }
.cta-form-title { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); font-weight: 700; margin-bottom: 1.25rem; }
.cta-form .form-label { font-size: .82rem; font-weight: 600; color: var(--dark); margin-bottom: .35rem; }
.cta-form .form-control, .cta-form .form-select { border-color: #d3dde2; border-radius: 10px; padding: .72rem .95rem; font-size: .93rem; }
.cta-form textarea.form-control { resize: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .78); padding: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) 0 0; }
.footer-brand { display: inline-block; margin-bottom: 1.25rem; }
.footer-brand img { display: block; height: 96px; width: auto; }
.footer-about { max-width: 22rem; font-size: .95rem; margin-bottom: 1.5rem; }
.social { display: flex; gap: .65rem; list-style: none; padding: 0; margin: 0; }
.social a {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    color: #fff; text-decoration: none; font-size: 1.05rem; border: 1px solid rgba(255, 255, 255, .25);
    transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.social a:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-3px); }
.footer-title { position: relative; color: #fff; font-size: 1.02rem; font-weight: 700; margin: 0 0 1.4rem; padding-bottom: .8rem; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--primary); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .6rem; }
.footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .93rem; display: inline-block; transition: color .2s, transform .2s var(--ease); }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding: 1.5rem 0 1.75rem; border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .88rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 575.98px) { .footer-bottom { flex-direction: column; text-align: center; } .footer-brand img { height: 84px; } }

/* --------------------------------------------------------------------------
   Floating actions
   -------------------------------------------------------------------------- */
.fab {
    position: fixed; right: 1.1rem; z-index: 1020; display: grid; place-items: center; width: 54px; height: 54px;
    border: 0; border-radius: 50%; color: #fff; text-decoration: none; font-size: 1.6rem; cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3); transition: transform .25s var(--ease), opacity .25s;
}
.fab:hover { transform: translateY(-3px); color: #fff; }
.fab-whatsapp { bottom: 1.1rem; background: #1fa855; }
.fab-top { bottom: 5.4rem; width: 46px; height: 46px; font-size: 1.15rem; background: var(--primary-dark); }
.fab-top[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .js .reveal { opacity: 1; transform: none; }
}
