/* ============================================================
   KeySolutions — Modern IT Solutions Website
   Design system built over Bootstrap 5
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
    --primary: #d24e29;
    --primary-dark: #b23f1d;
    --primary-deep: #8a3117;
    --primary-light: #fbe7df;
    --primary-lighter: #fdf2ec;
    --accent: #efb312;
    --accent-dark: #d99c05;
    --accent-light: #fff7e0;
    --dark: #0c1a22;
    --dark-2: #11242e;
    --dark-3: #16303c;
    --ink: #1c2b33;
    --body: #3d4f5c;
    --muted: #6b7d89;
    --light: #fbf3ee;
    --light-2: #f3e4da;
    --white: #ffffff;
    --border: #edd8ce;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(12, 26, 34, 0.06);
    --shadow: 0 8px 24px rgba(12, 26, 34, 0.08);
    --shadow-lg: 0 18px 48px rgba(12, 26, 34, 0.14);
    --grad-primary: linear-gradient(135deg, #e0653a 0%, #b23f1d 100%);
    --grad-dark: linear-gradient(160deg, #0c1a22 0%, #11242e 60%, #16303c 100%);
    --grad-accent: linear-gradient(135deg, #efb312 0%, #f6c94b 100%);
    --font-head: "Sora", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 2. Base ---------- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--body);
    background: var(--white);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

p {
    margin-bottom: 1rem;
}

:focus-visible {
    outline: 3px solid rgba(210, 78, 41, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ---------- 3. Typography helpers ---------- */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted-2 { color: var(--muted); }

.display-4, .display-5, .display-6 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
}

.section {
    padding: 88px 0;
}

.section-sm {
    padding: 56px 0;
}

.bg-light-site { background: var(--light); }
.bg-white { background: var(--white); }
.bg-dark-site {
    background: var(--grad-dark);
    color: rgba(255, 255, 255, 0.85);
}
.bg-dark-site h2, .bg-dark-site h3, .bg-dark-site h4 { color: #fff; }

/* ---------- 4. Buttons ---------- */
.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.72rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.btn-primary-site {
    background: var(--grad-primary);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(210, 78, 41, 0.28);
}

.btn-primary-site:hover, .btn-primary-site:focus {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(210, 78, 41, 0.34);
}

.btn-accent {
    background: var(--grad-accent);
    color: var(--dark);
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(239, 179, 18, 0.3);
}

.btn-accent:hover, .btn-accent:focus {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-primary-site {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary-site:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light-site {
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    background: transparent;
}

.btn-outline-light-site:hover {
    background: #fff;
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border: 1px solid transparent;
}

.btn-white:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
}

/* ---------- 5. Top utility bar ---------- */
.topbar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.45rem 0;
}

.topbar a {
    color: rgba(255, 255, 255, 0.85);
}

.topbar a:hover {
    color: var(--accent);
}

.topbar i {
    color: var(--accent);
    margin-right: 6px;
}

.topbar .topbar-item {
    display: inline-flex;
    align-items: center;
}

.topbar .topbar-right {
    text-align: right;
}

/* ---------- 6. Navbar ---------- */
.navbar-ks {
    background: #fff;
    box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(12, 26, 34, 0.05);
    padding: 0.7rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-ks .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--dark);
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.navbar-ks .brand-logo {
    height: 46px;
    width: auto;
    display: block;
}

@media (max-width: 575.98px) {
    .navbar-ks .brand-logo {
        height: 38px;
    }
}

.navbar-ks .navbar-brand .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--grad-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 auto;
}

.navbar-ks .navbar-brand .brand-text small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.navbar-ks .navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--ink);
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    position: relative;
}

.navbar-ks .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar-ks .navbar-nav .nav-link:hover::after,
.navbar-ks .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-ks .navbar-nav .nav-link:hover {
    color: var(--primary);
}

.navbar-ks .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-ks .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.6rem;
    min-width: 240px;
}

.navbar-ks .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--body);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-ks .dropdown-menu .dropdown-item:hover,
.navbar-ks .dropdown-menu .dropdown-item:focus {
    background: var(--primary-lighter);
    color: var(--primary);
}

.navbar-ks .dropdown-menu .dropdown-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.navbar-ks .dropdown-toggle::after {
    margin-left: 0.4em;
    vertical-align: 0.12em;
    border-top: 0.35em solid;
    border-right: 0.35em solid transparent;
    border-left: 0.35em solid transparent;
    opacity: 0.7;
}

.navbar-ks .nav-cta {
    margin-left: 0.6rem;
}

.navbar-ks .navbar-toggler {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    color: var(--dark);
}

.navbar-ks .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(210, 78, 41, 0.25);
}

/* Desktop hover dropdown (non-hover-only: click still works via Bootstrap) */
@media (min-width: 992px) {
    .navbar-ks .dropdown:hover > .dropdown-menu {
        display: block;
    }
    .navbar-ks .dropdown > .dropdown-menu {
        top: 100%;
        margin-top: 0.35rem;
        position: absolute;
    }
    /* Transparent bridge over the gap so the menu stays open while moving
       the cursor from the parent link into the dropdown items. */
    .navbar-ks .dropdown > .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -0.35rem;
        left: 0;
        right: 0;
        height: 0.35rem;
        background: transparent;
    }
    .navbar-ks .dropdown-menu .dropdown-item {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }
}

/* Mobile nav panel */
@media (max-width: 991.98px) {
    .navbar-ks .navbar-collapse {
        background: #fff;
        border-radius: 14px;
        margin-top: 0.75rem;
        padding: 0.75rem;
        box-shadow: var(--shadow);
        border: 1px solid var(--border);
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    .navbar-ks .navbar-nav .nav-link::after { display: none; }
    .navbar-ks .navbar-nav .nav-link {
        padding: 0.6rem 0.75rem;
    }
    .navbar-ks .dropdown-menu {
        box-shadow: none;
        border: none;
        background: var(--light);
        margin-top: 0.25rem;
        margin-left: 0.5rem;
        border-radius: 10px;
    }
    .navbar-ks .dropdown-toggle::after {
        float: right;
        margin-top: 0.55em;
    }
    .navbar-ks .nav-cta {
        margin: 0.6rem 0 0.4rem;
    }
}

/* ---------- 7. Hero (home) ---------- */
.hero {
    position: relative;
    background: var(--grad-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 96px 0 110px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 30% 20%, black 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(210, 78, 41, 0.35) 0%, transparent 65%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4.4vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

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

.hero .hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.45rem 0.9rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-badge i {
    color: var(--accent);
}

.hero-visual {
    position: relative;
}

.hero-img-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 0.75rem;
    backdrop-filter: blur(4px);
}

.hero-img-wrap img {
    border-radius: 16px;
    width: 100%;
    display: block;
}

.hero-chip {
    position: absolute;
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.8rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.hero-chip .chip-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-chip.chip-1 { top: -18px; right: 6px; }
.hero-chip.chip-2 { bottom: 40px; left: -24px; }

@media (max-width: 991.98px) {
    .hero {
        padding: 64px 0 72px;
    }
    .hero .hero-visual { margin-top: 3rem; }
    .hero-chip.chip-2 { left: 0; }
}

/* ---------- 8. Section headers ---------- */
.sec-head {
    max-width: 760px;
    margin: 0 auto 3rem;
}

.sec-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.sec-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0.9rem;
}

.sec-head p {
    color: var(--muted);
    font-size: 1.05rem;
}

.sec-head.sec-head-dark .eyebrow {
    background: rgba(239, 179, 18, 0.12);
    color: var(--accent);
}

.sec-head.sec-head-dark h2 { color: #fff; }

.sec-head.sec-head-dark p { color: rgba(255, 255, 255, 0.7); }

/* ---------- 9. Cards ---------- */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    height: 100%;
}

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

.card .card-img-top {
    border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
    object-fit: cover;
}

.service-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.service-card .service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1.1rem;
    flex: 0 0 auto;
}

.service-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.55rem;
}

.service-card p {
    font-size: 0.93rem;
    color: var(--muted);
    flex-grow: 1;
}

.service-card .card-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    margin-top: 0.5rem;
}

.service-card .card-link i {
    transition: transform 0.25s ease;
}

.service-card:hover .card-link i {
    transform: translateX(4px);
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.category-card .category-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-card .category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
}

.category-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--muted);
    font-size: 0.93rem;
}

.category-card ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1.2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.category-card ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--body);
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
}

.category-card ul li a:hover {
    color: var(--primary);
    background: var(--primary-lighter);
}

.category-card ul li a i {
    color: var(--primary);
    font-size: 0.8rem;
}

.icn-teal { background: var(--primary-light); color: var(--primary); }
.icn-gold { background: var(--accent-light); color: var(--accent-dark); }
.icn-blue { background: #e8f0fe; color: #2b5fd9; }
.icn-indigo { background: #eef0ff; color: #4a46c4; }
.icn-rose { background: #ffeef0; color: #d1495b; }
.icn-slate { background: var(--light-2); color: #3b4a57; }

/* ---------- 10. Feature / checklist ---------- */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    display: flex;
    gap: 0.75rem;
    padding: 0.55rem 0;
    font-size: 0.98rem;
}

.check-list li i {
    color: var(--primary);
    font-size: 1.15rem;
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.check-list.dark li { color: rgba(255, 255, 255, 0.85); }
.check-list.dark li i { color: var(--accent); }

.feature-tile {
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-tile:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.feature-tile .ft-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.feature-tile h4 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.feature-tile p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* ---------- 11. Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    background: var(--grad-dark);
    padding: 68px 0 84px;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 20% 0%, black, transparent 70%);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    top: -120px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(210, 78, 41, 0.35), transparent 65%);
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.72);
    max-width: 720px;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.1rem;
}

.breadcrumb .breadcrumb-item {
    font-size: 0.85rem;
}

.breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.65);
}

.breadcrumb .breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb .breadcrumb-item.active {
    color: var(--accent);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
    content: "/";
}

/* ---------- 12. Stats strip (factual) ---------- */
.stats-strip {
    background: var(--grad-primary);
    color: #fff;
    padding: 40px 0;
}

.stats-strip .stat {
    text-align: center;
    padding: 0.5rem;
}

.stats-strip .stat .stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2rem;
    color: #fff;
    display: block;
}

.stats-strip .stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ---------- 13. CTA section ---------- */
.cta-band {
    background: var(--grad-primary);
    color: #fff;
    border-radius: 24px;
    padding: 3.2rem;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.6rem;
}

.cta-band p {
    opacity: 0.9;
    margin: 0;
}

.cta-band .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .cta-band { padding: 2rem 1.5rem; }
    .cta-band .cta-actions { justify-content: flex-start; margin-top: 1.2rem; }
}

/* ---------- 14. Info / content rows ---------- */
.content-media {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.content-media img {
    width: 100%;
    display: block;
}

.img-badge-float {
    position: relative;
}

.img-badge-float .float-badge {
    position: absolute;
    bottom: 18px;
    left: -18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.9rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.9rem;
}

.img-badge-float .float-badge i {
    color: var(--primary);
    font-size: 1.2rem;
}

@media (max-width: 991.98px) {
    .img-badge-float .float-badge { left: 12px; }
}

/* ---------- 15. Related / sub services ---------- */
.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: all 0.25s ease;
    height: 100%;
}

.related-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.related-card .rc-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.3rem;
}

.related-card .rc-text h4 {
    font-size: 0.98rem;
    margin: 0 0 0.15rem;
}

.related-card .rc-text span {
    font-size: 0.83rem;
    color: var(--muted);
}

/* ---------- 16. Contact / form ---------- */
.contact-info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    height: 100%;
    transition: box-shadow 0.25s ease;
}

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

.contact-info-card .ci-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.35rem;
}

.contact-info-card h5 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.contact-info-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.95rem;
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(210, 78, 41, 0.15);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

.form-floating > label {
    color: var(--muted);
}

.map-frame {
    border: 0;
    border-radius: 18px;
    width: 100%;
    min-height: 340px;
    box-shadow: var(--shadow);
}

/* ---------- 16b. Specification table / gallery ---------- */
.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.spec-table th,
.spec-table td {
    padding: 0.9rem 1.15rem;
    font-size: 0.94rem;
    text-align: left;
}

.spec-table thead th {
    background: var(--grad-primary);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
}

.spec-table tbody th {
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
    background: var(--primary-lighter);
}

.spec-table tbody tr:nth-child(even) td {
    background: #fafcfc;
}

.spec-table tbody tr td {
    color: var(--body);
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
    border-bottom: none;
}

.spec-note {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.spec-note i {
    color: var(--primary);
    margin-top: 0.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-grid .gallery-tile {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid .gallery-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.gallery-grid .gallery-tile img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-grid .gallery-tile figcaption {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
}

@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .spec-table th,
    .spec-table td {
        padding: 0.7rem 0.85rem;
        font-size: 0.88rem;
    }
    .spec-table tbody th {
        white-space: normal;
    }
}

/* Enquiry modal */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--grad-primary);
    border: none;
    color: #fff;
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    color: #fff;
    font-size: 1.1rem;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%);
}

.modal-body {
    padding: 1.5rem;
}

/* ---------- 17. Footer ---------- */
.footer {
    position: relative;
    background: var(--dark-2);
    color: rgba(255, 255, 255, 0.72);
    padding: 56px 0 0;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
}

.footer-main {
    text-align: center;
}

.footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-weight: 800;
    color: #fff;
    font-size: 1.35rem;
}

.footer .footer-brand .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--grad-primary);
    box-shadow: 0 6px 18px rgba(210, 78, 41, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.footer .footer-brand small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.64rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer .footer-punchline {
    margin: 1rem 0 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.footer .footer-contact {
    margin: 0.9rem 0 0;
    display: flex;
    justify-content: center;
}

.footer .footer-contact li {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
}

.footer .footer-contact li i {
    color: var(--accent);
    margin-top: 0.2rem;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    margin-top: 2.5rem;
    padding: 1.3rem 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- 18. Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--grad-primary);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 1020;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ---------- 19. Portfolio ---------- */
.portfolio-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    height: 100%;
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

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

.portfolio-card .portfolio-body {
    padding: 1.6rem;
}

.portfolio-card .portfolio-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.portfolio-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.portfolio-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* ---------- 20. Value / trust strip ---------- */
.value-item {
    text-align: center;
    padding: 1.6rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.value-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.value-item .value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.value-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* ---------- 21. Timeline / steps ---------- */
.step {
    position: relative;
    padding: 0 0 0 0;
}

.step-line {
    display: flex;
    gap: 1.1rem;
}

.step .step-num {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(210, 78, 41, 0.28);
}

.step h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    padding-top: 0.25rem;
}

.step p {
    color: var(--muted);
    font-size: 0.93rem;
}

/* ---------- 22. Logo strip ---------- */
.logo-strip {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--light);
}

/* ---------- 23. Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal {
    opacity: 0;
}

.reveal.visible {
    animation: fadeUp 0.7s ease forwards;
}

.hero h1, .hero .hero-lead, .hero .hero-actions, .hero-badges {
    animation: fadeUp 0.8s ease both;
}

.hero .hero-lead { animation-delay: 0.12s; }
.hero .hero-actions { animation-delay: 0.24s; }
.hero-badges { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .hero h1, .hero .hero-lead, .hero .hero-actions, .hero-badges {
        animation: none;
        opacity: 1;
    }
    * { transition-duration: 0.01ms !important; }
}

/* ---------- 24. Misc utilities ---------- */
.divider-soft {
    border-top: 1px solid var(--border);
    margin: 0;
}

.icon-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.alt-bg-1 { background: var(--primary-lighter); }

.min-vh-help { min-height: 0; }

.card-group-gap {
    gap: 1.5rem;
}

.text-balance { text-wrap: balance; }

/* Small screens */
@media (max-width: 575.98px) {
    .section { padding: 64px 0; }
    .section-sm { padding: 44px 0; }
    .cta-band { border-radius: 18px; }
}