/* Homepage layout, November 2026 redesign.
   Uses the colour and font variables defined in the homepage's inline :root. */

:root {
    --wa: #1fa855;
    --wa-dark: #178a45;
    --green-bright: #77ce3f;
}


/* ─── Header additions ─── */
.header-phone { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.header-phone small { color: var(--muted); font-size: 0.7rem; font-weight: 600; }
.header-phone strong { color: var(--navy); font-size: 0.95rem; }
.header-phone:hover strong { color: var(--accent); }
.header-cta { gap: 18px; }

.btn-wa { background: var(--wa); color: var(--white); box-shadow: 0 2px 8px rgba(31,168,85,0.3); }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31,168,85,0.3); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ─── Hero ─── */
.home-hero {
    position: relative; overflow: hidden;
    padding: clamp(44px, 5vw, 72px) 0 clamp(52px, 6vw, 80px);
    background: #f3f6fa;
}
.home-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.home-hero-grid > * { min-width: 0; }
.home-hero h1 {
    color: var(--navy);
    font: 400 clamp(2.4rem, 1.4rem + 3vw, 3.9rem)/1.06 var(--font-display); letter-spacing: -0.02em;
}
.home-hero h1 em { color: var(--accent); font-style: normal; }
.home-lead { max-width: 590px; margin-top: 20px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.home-requests { margin-top: 26px; }
.home-requests > p { color: var(--navy); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.home-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; list-style: none; }
.home-chips a {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px;
    border: 1px solid var(--border); border-radius: 99px; background: var(--white);
    color: var(--navy); font-size: 0.86rem; font-weight: 600; white-space: nowrap;
    transition: border-color .2s, color .2s, transform .2s;
}
.home-chips a:hover, .home-chips a:focus-visible { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.home-chips svg { width: 16px; height: 16px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.home-hero-actions .btn { padding: 14px 24px; font-size: 0.95rem; font-weight: 700; border-radius: 11px; }
.home-hero-call { margin-left: 4px; color: var(--muted); font-size: 0.9rem; }
.home-hero-call a { color: var(--navy); font-weight: 700; border-bottom: 1px solid rgba(11,37,69,0.25); }
.home-hero-call a:hover { color: var(--accent); border-color: var(--accent); }

.home-collage { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(440px, 40vw, 560px); margin: 0; }
.home-collage figure { position: relative; overflow: hidden; margin: 0; border-radius: 20px; background: var(--accent-pale); box-shadow: 0 14px 40px rgba(11,37,69,0.12); }
.home-collage figure:first-child { grid-row: 1 / 3; }
.home-collage img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Proof strip ─── */
.home-proof { background: var(--navy); color: var(--white); }
.home-proof-grid { width: var(--site-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-proof-item { padding: 24px 22px; border-left: 1px solid rgba(255,255,255,0.12); text-align: center; }
.home-proof-item:first-child { border-left: 0; }
.home-proof-item strong { display: block; font-size: 1.02rem; line-height: 1.3; }
.home-proof-item span { display: block; margin-top: 2px; color: rgba(255,255,255,0.66); font-size: 0.8rem; line-height: 1.4; }

/* ─── Shared section heading row ─── */
.home-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.home-head-row .section-header { margin-bottom: 0; }
.home-text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 0.92rem; font-weight: 700; white-space: nowrap; transition: gap .15s; }
.home-text-link:hover { gap: 11px; }

/* ─── Services ─── */
.home-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-service {
    display: flex; flex-direction: column; padding: 28px 26px 24px;
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.home-service:hover, .home-service:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(26,110,216,0.3); }
.home-service-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-service-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-pale); color: var(--accent); }
.home-service-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-badge { padding: 5px 9px; border-radius: 7px; background: #eaf6ef; color: var(--teal); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.home-service h3 { margin-top: 20px; color: var(--navy); font-size: 1.18rem; font-weight: 700; line-height: 1.3; }
.home-service p { margin-top: 8px; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.home-service ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 22px; list-style: none; }
.home-service li { padding: 4px 9px; border-radius: 6px; background: var(--off-white); color: var(--text); font-size: 0.76rem; font-weight: 600; }
.home-service .home-text-link { margin-top: auto; }

/* ─── Ways to work ─── */
.home-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-way { display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); }
.home-way h3 { margin-top: 0; color: var(--navy); font-size: 1.25rem; font-weight: 700; }
.home-way p { margin-top: 9px; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
.home-way .home-way-fit { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text); font-size: 0.85rem; }
.home-way > p:not(.home-way-fit) { margin-bottom: 18px; }
.home-way-fit b { color: var(--navy); }
.home-way.is-featured { border-color: var(--navy); background: var(--navy); }
.home-way.is-featured h3, .home-way.is-featured .home-way-fit b { color: var(--white); }
.home-way.is-featured p { color: rgba(255,255,255,0.75); }
.home-way.is-featured .home-way-fit { border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.75); }

/* ─── How a job runs ─── */
.home-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; counter-reset: step; }
.home-step { position: relative; padding-right: 26px; }
.home-step::before {
    counter-increment: step; content: "0" counter(step);
    position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px;
    border: 2px solid var(--accent); border-radius: 50%; background: var(--white);
    color: var(--accent); font-size: 0.85rem; font-weight: 800;
}
.home-step::after { content: ""; position: absolute; top: 23px; left: 46px; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(26,110,216,0.15)); }
.home-step:last-child::after { display: none; }
.home-step h3 { margin-top: 18px; color: var(--navy); font-size: 1.08rem; font-weight: 700; }
.home-step p { margin-top: 6px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ─── Clients (light version of the list) ─── */
#clients.section { background: var(--white); color: var(--text); }
#clients .client-showcase .section-body { color: var(--muted); }
#clients .client-item { min-height: 70px; background: var(--off-white); border-color: var(--border); color: var(--navy); }

/* ─── Contact direct options ─── */
#contact .section-header { margin-bottom: 24px; }
.home-direct { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.home-direct .btn { border-radius: 10px; }
.home-direct .btn-outline { background: var(--white); }

/* ─── WhatsApp and mobile action bar ─── */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 40;
    display: flex; align-items: center; gap: 10px; padding: 13px 18px 13px 14px;
    border-radius: 99px; background: var(--wa); color: var(--white);
    font-size: 0.9rem; font-weight: 700; box-shadow: 0 14px 30px rgba(31,168,85,0.35);
    transition: transform .2s, background .2s;
}
.wa-float:hover { transform: translateY(-2px); background: var(--wa-dark); }
.wa-float svg { width: 24px; height: 24px; }
.mobile-bar { display: none; }

/* ─── Responsive ─── */
@media (max-width: 1250px) {
    .home-proof-item { padding: 22px 16px; }
}

@media (max-width: 1100px) {
    .home-hero-grid { grid-template-columns: 1fr; }
    .home-collage { height: 440px; }
    .home-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-proof-item:nth-child(3) { border-left: 0; }
    .home-services, .home-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-service:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
    .home-step:nth-child(2)::after { display: none; }
}

@media (max-width: 680px) {
    .topbar { display: none; }
    .home-hero { padding: 30px 0 42px; }
    .home-hero h1 { font-size: 2.3rem; }
    .home-lead { font-size: 1rem; }
    .home-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -14px; padding: 2px 14px 6px 0; scrollbar-width: none; }
    .home-chips::-webkit-scrollbar { display: none; }
    .home-chips li { flex: none; }
    .home-hero-actions .btn { flex: 1 1 100%; }
    .home-hero-call { margin: 2px 0 0; }
    .home-collage { height: 330px; gap: 8px; }
    .home-collage figure { border-radius: 14px; }
    .home-proof-item, .home-proof-item:nth-child(3) { padding: 18px 8px; border-left: 0; }
    .home-head-row { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
    .home-services, .home-ways { grid-template-columns: 1fr; gap: 14px; }
    .home-service { padding: 22px 20px; }
    .home-way { padding: 24px 22px; }
    .home-steps { grid-template-columns: 1fr; row-gap: 22px; }
    .home-step { padding: 0 0 0 64px; }
    .home-step::before { position: absolute; top: 0; left: 0; }
    .home-step::after, .home-step:nth-child(2)::after { display: block; top: 50px; left: 22px; right: auto; width: 2px; height: calc(100% - 28px); background: rgba(26,110,216,0.2); }
    .home-step:last-child::after { display: none; }
    .home-step h3 { margin-top: 10px; }
    .home-direct .btn { flex: 1 1 100%; }
    .site-footer { padding-bottom: 76px; }
    .wa-float { display: none; }
    .mobile-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--border); background: rgba(255,255,255,0.97);
        box-shadow: 0 -10px 30px rgba(11,37,69,0.1);
    }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 6px; border-radius: 10px; font-size: 0.85rem; font-weight: 700; }
    .mobile-bar svg { width: 17px; height: 17px; flex: none; }
    .mobile-bar-call { background: var(--accent-pale); color: var(--navy); }
    .mobile-bar-wa { background: var(--wa); color: var(--white); }
    .mobile-bar-request { background: var(--accent); color: var(--white); }
    .nav-open .mobile-bar { display: none; }
}

/* ─── Projects deck: the text sets the card height, the photo fills its half ───
   Portrait job photos used to stretch every card to about 640px tall. */
.project-deck .project-card { position: relative; min-height: 440px; }
.project-deck .project-card > img { position: absolute; inset: 0; grid-column: 1 / 2; grid-row: 1 / 2; width: 100%; height: 100%; min-height: 0; }
.project-deck .project-card-body { grid-column: 2; grid-row: 1; padding: clamp(24px, 3vw, 36px); }
.project-deck .project-card-body::before { margin-bottom: 14px; }
.project-deck .project-card-body h3 { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.65rem); }
@media (max-width: 900px) {
    .project-deck .project-card { min-height: 0; }
    .project-deck .project-card > img { position: static; grid-column: auto; grid-row: auto; height: 240px; min-height: 240px; }
    .project-deck .project-card-body { grid-column: auto; grid-row: auto; }
}
@media (max-width: 680px) {
    .project-deck .project-card > img { height: 220px; min-height: 220px; }
    .project-deck .project-card-body { padding: 24px 21px; }
}

/* ─── Header dropdowns: match the homepage's lighter nav links ─── */
.primary-nav .nav-dropdown-main { font-weight: 600; }
@media (min-width: 1101px) {
    .primary-nav .nav-dropdown-main { padding-left: 13px; font-size: 0.9rem; }
}
@media (min-width: 1101px) and (max-width: 1340px) {
    .primary-nav .nav-dropdown-main { padding-left: 9px; font-size: 0.86rem; }
}
