/* ==========================================================================
   KH&N Constructions Limited — public site styles
   Brand: steel blue #1f5c86 / grey #6d6e71 (from logo), navy footer.
   ========================================================================== */

:root {
    --blue:       #1f5c86;
    --blue-dark:  #174a6e;
    --blue-tint:  #e8f0f6;
    --navy:       #14293a;
    --navy-2:     #0f2231;
    --ink:        #20323f;
    --muted:      #5b7180;
    --line:       #dde6ec;
    --bg:         #f4f7f9;
    --white:      #ffffff;
    --whatsapp:   #25d366;
    --whatsapp-d: #1eb857;
    --radius:     12px;
    --shadow:     0 10px 30px rgba(22, 48, 63, .10);
    --font-head:  "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body:  "Inter", system-ui, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.15;
    margin: 0 0 .5em;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .01em;
}
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; }
p  { margin: 0 0 1em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

.icon { vertical-align: middle; flex: none; }

/* ------------------------------------------------------------- buttons -- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent; border-radius: 8px;
    font-family: var(--font-body); font-size: 15px; font-weight: 600;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
    text-align: center;
}
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; margin-bottom: 10px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-d); color: #fff; }

/* -------------------------------------------------------------- topbar -- */
.topbar { background: var(--navy); color: #cfdde8; font-size: 13px; }
.topbar-inner {
    display: flex; flex-wrap: wrap; gap: 6px 28px;
    padding-top: 8px; padding-bottom: 8px;
}
.topbar-item { display: inline-flex; align-items: center; gap: 7px; color: #cfdde8; }
a.topbar-item:hover { color: #fff; }
.topbar .icon { opacity: .75; }

/* -------------------------------------------------------------- header -- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(22, 48, 63, .06);
}
.header-inner {
    display: flex; align-items: center; gap: 28px;
    padding-top: 10px; padding-bottom: 10px;
}
.brand img { width: 150px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
    display: block; padding: 10px 14px;
    font-weight: 600; font-size: 15px; color: var(--ink);
    border-radius: 8px;
}
.main-nav a:hover { color: var(--blue); background: var(--blue-tint); }
.main-nav a.active { color: var(--blue); background: var(--blue-tint); }
.nav-close { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.header-phone .icon { color: var(--blue); }
.header-phone small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.header-phone strong { display: block; font-size: 16px; line-height: 1.2; white-space: nowrap; }
.header-phone:hover strong { color: var(--blue); }
.nav-toggle {
    display: none; background: none; border: 0; color: var(--ink);
    cursor: pointer; padding: 6px;
}
.nav-overlay {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(15, 34, 49, .55); z-index: 110;
}

/* ---------------------------------------------------------------- hero -- */
.hero {
    position: relative;
    background-size: cover; background-position: center;
    color: #fff;
}
.hero-overlay {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(100deg, rgba(15, 34, 49, .92) 0%, rgba(20, 41, 58, .72) 45%, rgba(31, 92, 134, .35) 100%);
}
.hero-inner {
    position: relative;
    padding-top: clamp(70px, 10vw, 130px);
    padding-bottom: clamp(70px, 10vw, 130px);
    max-width: 1180px;
}
.hero h1 { color: #fff; max-width: 700px; }
.hero-kicker {
    display: inline-block;
    font-family: var(--font-head); font-size: 18px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em;
    color: #fff; background: rgba(31, 92, 134, .55);
    border: 1px solid rgba(255,255,255,.25);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-sub { font-size: 18px; max-width: 560px; color: #dbe7f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-badges {
    list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px;
    margin: 34px 0 0; padding: 0; font-size: 15px; font-weight: 500; color: #dbe7f0;
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges .icon { color: #7fd4a1; }

/* ------------------------------------------------------------ sections -- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.section-kicker {
    font-family: var(--font-head); font-size: 16px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em; color: var(--blue);
    margin-bottom: 6px;
}
.section-sub { color: var(--muted); font-size: 17px; }

/* -------------------------------------------------------- advantage row -- */
.advantages { padding-top: 40px; padding-bottom: 40px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; box-shadow: var(--shadow);
}
.adv-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--blue-tint); color: var(--blue); margin-bottom: 14px;
}
.adv-card h3 { font-size: 20px; margin-bottom: 6px; }
.adv-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* -------------------------------------------------------- service grid -- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; color: var(--ink);
    transition: transform .18s, box-shadow .18s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.service-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { font-size: 21px; margin-bottom: 6px; }
.service-card-body p { color: var(--muted); font-size: 14px; flex: 1; margin-bottom: 12px; }
.service-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--blue); font-weight: 600; font-size: 14px;
}
.service-card:hover .service-card-link { color: var(--blue-dark); }

/* --------------------------------------------------------- about split -- */
.about-split-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about-split-media { position: relative; }
.about-split-media > img {
    border-radius: var(--radius); box-shadow: var(--shadow);
    aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.about-split-media-badge {
    position: absolute; right: -14px; bottom: 26px;
    background: var(--blue); color: #fff;
    border-radius: var(--radius); padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow); max-width: 240px;
}
.about-split-media-badge strong { font-family: var(--font-head); font-size: 34px; line-height: 1; }
.about-split-media-badge span { font-size: 13px; line-height: 1.35; }
.check-list { list-style: none; margin: 18px 0 26px; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 500; }
.check-list .icon { color: var(--blue); background: var(--blue-tint); border-radius: 50%; padding: 3px; }
.about-split-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------- process -- */
.process-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
    counter-reset: step;
}
.process-steps li {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; position: relative;
}
.process-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--blue); color: #fff;
    font-family: var(--font-head); font-size: 22px; font-weight: 700;
    margin-bottom: 14px;
}
.process-steps h3 { font-size: 20px; margin-bottom: 6px; }
.process-steps p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ------------------------------------------------------------- gallery -- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.gallery-item {
    display: block; border-radius: 10px; overflow: hidden; position: relative;
    background: var(--bg);
}
.gallery-item img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    transition: transform .25s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-hidden { display: none; }

/* lightbox */
.lightbox {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300;
    background: rgba(10, 22, 32, .94);
    display: flex; align-items: center; justify-content: center;
    padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: min(1100px, 92vw); max-height: 84vh;
    width: auto; height: auto;
    border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-caption {
    position: absolute; left: 0; right: 0; bottom: 18px;
    text-align: center; color: #cfdde8; font-size: 14px;
}
.lightbox-btn {
    position: absolute; background: rgba(255,255,255,.1); color: #fff;
    border: 0; border-radius: 50%; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .15s;
}
.lightbox-btn:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ----------------------------------------------------------- page hero -- */
.page-hero {
    background: var(--navy); color: #fff;
    padding: clamp(44px, 6vw, 72px) 0;
    position: relative;
}
.page-hero h1 { color: #fff; margin-bottom: 4px; }
.page-hero-sub { color: #c3d4e0; font-size: 17px; max-width: 640px; margin: 0; }
.page-hero-img { background-size: cover; background-position: center; }
.page-hero-overlay {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(100deg, rgba(15, 34, 49, .93) 0%, rgba(20, 41, 58, .8) 55%, rgba(20, 41, 58, .55) 100%);
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: 13.5px; color: #9fb4c2; margin-bottom: 14px; }
.breadcrumb a { color: #c3d4e0; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; opacity: .5; }

/* --------------------------------------------------------- page layout -- */
.page-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px;
    align-items: start;
}
.prose { max-width: 760px; }
.prose-center { max-width: 760px; margin: 0 auto; text-align: center; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose ul li {
    position: relative; padding: 5px 0 5px 30px;
}
.prose ul li::before {
    content: ""; position: absolute; left: 0; top: 10px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue-tint) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5c86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.prose-center ul li { padding-left: 0; }
.prose-center ul li::before { display: none; }
.prose-lead-img {
    border-radius: var(--radius); margin-bottom: 26px;
    width: 100%; max-height: 420px; object-fit: cover;
}

/* sidebar */
.side-card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px; margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.side-card h3 { font-size: 21px; }
.side-card-contact { background: var(--blue-tint); border-color: #cbdeeb; }
.side-contact-list { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14.5px; }
.side-contact-list li {
    display: flex; align-items: flex-start; gap: 10px; padding: 6px 0;
}
.side-contact-list .icon { color: var(--blue); margin-top: 2px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a {
    display: flex; align-items: center; gap: 6px;
    padding: 9px 10px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 14.5px;
}
.side-nav a:hover { background: var(--blue-tint); color: var(--blue); }
.side-nav a.active { background: var(--blue); color: #fff; }
.side-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------- contact -- */
.contact-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px;
    align-items: start;
}
.contact-form { margin-top: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid #c6d4dd; border-radius: 8px;
    font-family: var(--font-body); font-size: 15px; color: var(--ink);
    background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.alert {
    border-radius: 10px; padding: 14px 16px; margin: 18px 0;
    display: flex; gap: 10px; align-items: flex-start; font-size: 15px;
}
.alert ul { margin: 0; padding-left: 18px; }
.alert-ok { background: #e8f6ee; border: 1px solid #b8e0c8; color: #1c6b3c; }
.alert-ok .icon { color: #2c9457; }
.alert-err { background: #fcecec; border: 1px solid #eec1c1; color: #8f2626; }

/* ------------------------------------------------------------ cta band -- */
.cta-band { background: linear-gradient(100deg, var(--blue-dark), var(--blue)); color: #fff; }
.cta-band-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 20px; padding-top: 44px; padding-bottom: 44px;
}
.cta-band h2 { color: #fff; margin-bottom: 4px; }
.cta-band p { color: #d5e4ef; margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------------------- findus -- */
.findus { background: var(--navy-2); border-bottom: 1px solid rgba(255,255,255,.06); }
.findus-inner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px;
    padding-top: 26px; padding-bottom: 26px;
}
.findus-label {
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em;
    color: #7d93a3; font-size: 15px; font-weight: 600;
}
.findus-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 34px; }
.findus-logos img { width: auto; opacity: .85; transition: opacity .15s; }
.findus-logos a:hover img { opacity: 1; }

/* -------------------------------------------------------------- footer -- */
.site-footer { background: var(--navy); color: #b9cbd8; font-size: 14.5px; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px;
    padding-top: 56px; padding-bottom: 40px;
}
.footer-col h3 {
    color: #fff; font-size: 19px; margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { padding: 4px 0; }
.footer-col a { color: #b9cbd8; }
.footer-col a:hover { color: #fff; }
.footer-logo { width: 210px; height: auto; margin-bottom: 14px; }
.footer-tagline {
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em;
    color: #7fa8c4; font-weight: 600; font-size: 16px;
}
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: #7fa8c4; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: #8ba1b0;
}

/* ------------------------------------------------------ whatsapp float -- */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 150;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--whatsapp); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(20, 40, 30, .35);
    transition: transform .15s, background .15s;
}
.whatsapp-float:hover { transform: scale(1.07); background: var(--whatsapp-d); color: #fff; }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1024px) {
    .cards-4, .process-steps { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-phone { display: none; }
}

@media (max-width: 880px) {
    /* NB: keep .site-header free of backdrop-filter/transform — it would trap
       the fixed-position mobile drawer inside the header. */
    .nav-toggle { display: block; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(320px, 85vw);
        background: var(--white);
        z-index: 120;
        padding: 64px 20px 20px;
        box-shadow: -12px 0 40px rgba(15, 34, 49, .25);
        transform: translateX(105%);
        transition: transform .22s ease;
        overflow-y: auto;
        margin-left: 0;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { font-size: 17px; padding: 12px 14px; }
    .nav-close {
        display: block; position: absolute; top: 12px; right: 12px;
        background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px;
    }
    .page-layout, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
    .about-split-inner { grid-template-columns: 1fr; gap: 36px; }
    .about-split-media-badge { right: 10px; }
}

@media (max-width: 620px) {
    .cards-4, .process-steps, .service-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .topbar-inner { justify-content: center; }
    .topbar-item:nth-child(2) { display: none; }
    .hero-actions .btn { width: 100%; }
    .cta-band-inner { display: block; }
    .cta-band-actions { margin-top: 18px; }
    .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
