/* ==========================================================================
   HYFO HOMES — public website styles
   Brand (sampled from the logo): teal #056D76 · orange #CB6F2E · ink #111111
   --orange is the exact logo orange, used for lines/accents.
   --orange-dark is used where white text sits on orange or orange text sits
   on white, so small text keeps WCAG AA contrast (4.6:1).
   ========================================================================== */

:root {
    --teal: #056D76;
    --teal-dark: #04565D;
    --teal-deep: #043B40;
    --teal-tint: #E6F1F2;
    --orange: #CB6F2E;
    --orange-dark: #AF5D26;
    --orange-tint: #FAEEE5;
    --ink: #111111;
    --text: #2A2A2A;
    --muted: #666666;
    --line: #E5E5E5;
    --bg: #FFFFFF;
    --bg-warm: #F7F7F4;
    --white: #FFFFFF;
    --danger: #B42318;
    --success: #067647;

    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(17, 17, 17, .06);
    --shadow: 0 10px 30px -12px rgba(17, 17, 17, .18);
    --shadow-lg: 0 24px 60px -20px rgba(5, 59, 63, .35);

    --container: 1200px;
    --gutter: 20px;
    --header-h: 76px;
    --section-y: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid rgba(200, 117, 50, .55); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px;
    border: 1.5px solid transparent; border-radius: 10px;
    font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: .01em;
    cursor: pointer; text-align: center;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 8px 20px -10px rgba(5, 109, 118, .8); }
.btn-accent { background: var(--orange-dark); color: #fff; }
.btn-accent:hover { background: #934D1F; color: #fff; }
.btn-outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal-tint); color: var(--teal-dark); }
.btn-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); color: #fff; backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--teal-deep); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.brand { gap: 14px; }
.brand:hover { text-decoration: none; }
/* Wordmark mirrors the logo: heavy "HYFO", small letter-spaced "HOMES". */
.brand-text {
    display: flex; flex-direction: column; justify-content: center;
    padding-left: 14px; border-left: 2px solid var(--line); line-height: 1;
}
.brand-main { font-weight: 800; font-size: 26px; letter-spacing: .02em; color: var(--teal); }
.brand-sub { font-weight: 700; font-size: 11.5px; letter-spacing: .42em; color: var(--orange-dark); margin-top: 5px; padding-left: 1px; }
.footer-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.footer-brand .footer-logo { margin-bottom: 0; }
.footer-brand .brand-text { border-left-color: rgba(255, 255, 255, .25); }
.footer-brand .brand-main { color: #fff; }
.footer-brand .brand-sub { color: #F2B482; }

.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 12px; border-radius: 8px;
    color: var(--ink); font-weight: 500; font-size: 15px; position: relative;
}
.main-nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
    background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.header-phone .icon { color: var(--orange); width: 18px; height: 18px; }

.nav-toggle {
    display: none; margin-left: auto;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate;
    min-height: min(860px, calc(100vh - var(--header-h)));
    display: flex; align-items: center;
    padding: 64px 0 72px;
    color: #fff;
    background: var(--teal-deep);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 30, 32, .88) 0%, rgba(4, 30, 32, .66) 42%, rgba(4, 30, 32, .18) 100%),
        linear-gradient(0deg, rgba(4, 30, 32, .55) 0%, rgba(4, 30, 32, 0) 40%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.hero-grid.no-form { grid-template-columns: minmax(0, 760px); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dark);
    margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero .eyebrow { color: #F2B482; }
.hero h1 {
    font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -.01em;
    color: #fff; margin-bottom: 20px; text-wrap: balance;
}
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .88); max-width: 600px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-card {
    background: #fff; color: var(--text);
    border-radius: var(--radius-lg); padding: 28px;
    box-shadow: var(--shadow-lg);
}
.hero-card h2 { font-size: 20px; margin-bottom: 4px; }
.hero-card .card-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- USP add-ons (inside the banner, under the tagline) ---------- */
.hero-usps { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-usps li {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px 8px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(6px); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em;
}
.hero-usp-icon {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--orange); color: #fff; flex-shrink: 0;
}
.hero-usp-icon .icon { width: 18px; height: 18px; }

/* Icon tile (contact list) */
.usp-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; background: var(--teal-tint); color: var(--teal);
}
.usp-icon .icon { width: 24px; height: 24px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-warm { background: var(--bg-warm); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-title {
    font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(32px, 4vw, 46px); letter-spacing: -.005em; margin-bottom: 10px; text-wrap: balance;
}
.section-sub { color: var(--muted); max-width: 640px; margin: 0; font-size: 17px; }
.section-head.center .section-sub { margin: 0 auto; }

/* ---------- Projects ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all .2s;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.project-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.project-card[hidden] { display: none; }
.project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-tint); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover .project-media img { transform: scale(1.04); }
.project-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--teal); }
.project-media .placeholder .icon { width: 48px; height: 48px; opacity: .5; }
.badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.3;
    background: rgba(255, 255, 255, .94); color: var(--ink);
}
.badge-status { background: var(--teal); color: #fff; }
.badge-sample { background: var(--orange-dark); color: #fff; }
.project-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project-cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 6px; }
.project-body h3 { font-size: 20px; margin-bottom: 6px; }
.project-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.project-loc .icon { width: 16px; height: 16px; color: var(--teal); }
.project-desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.project-meta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    padding: 14px 0; margin-top: auto; border-top: 1px dashed var(--line); margin-bottom: 18px;
}
.project-meta dt { font-size: 12px; color: var(--muted); }
.project-meta dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); font-size: 15px; }
.project-meta .price { color: var(--teal); }
.project-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.projects-more { text-align: center; margin-top: 40px; }

.empty-state {
    text-align: center; padding: 56px 24px; border: 1px dashed var(--line); border-radius: var(--radius-lg);
    background: #fff; color: var(--muted);
}
.empty-state h3 { margin-bottom: 6px; }

/* ---------- Partners (dark band, logo cards; scrolls when more than 5) ---------- */
.partners-band { background: var(--teal-deep); --pgap: 28px; }
.partners-band .section-title { color: #fff; }
.partners-band .section-sub { color: rgba(255, 255, 255, .72); }
.partners-band .eyebrow { color: #F2B482; }

.partner-list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--pgap); }
.partner-static { flex-wrap: wrap; justify-content: center; }
.partner-card {
    width: 208px; height: 148px; padding: 22px;
    display: grid; place-items: center;
    background: #F4F5F3; border: 1px solid rgba(203, 111, 46, .55); border-radius: 14px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.partner-card:hover, .partner-card:hover {
    transform: translateY(-3px); border-color: var(--orange);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55);
}
.partner-card img { max-width: 100%; max-height: 92px; width: auto; height: auto; object-fit: contain; }
.partner-name { font-weight: 800; font-size: 18px; color: var(--ink); text-align: center; line-height: 1.25; }

/* Infinite marquee: two identical lists side by side, shifted by one list width. */
.partner-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partner-track { display: flex; gap: var(--pgap); width: max-content; animation: partner-scroll var(--partner-duration, 30s) linear infinite; }
.partner-marquee:hover .partner-track, .partner-marquee:focus-within .partner-track { animation-play-state: paused; }
.partner-track .partner-list { flex-shrink: 0; }
@keyframes partner-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - var(--pgap) / 2)); }   /* exactly one list + one gap */
}

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.why-card {
    position: relative; padding: 30px 28px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); overflow: hidden;
    transition: border-color .25s, transform .25s;
}
.why-card::before {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
    background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.why-card:hover { transform: translateY(-3px); border-color: #d9d9d9; }
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--teal); color: #fff; margin-bottom: 20px;
}
.why-icon .icon { width: 26px; height: 26px; }
.why-card h3 { font-size: 19px; margin-bottom: 8px; }
.why-card p { color: var(--muted); margin: 0; font-size: 15px; }
.why-num { position: absolute; right: 22px; top: 18px; font-family: var(--font-serif); font-size: 40px; color: var(--teal-tint); line-height: 1; }

/* ---------- Loan calculator ---------- */
.calc {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.calc-inputs { padding: 36px; }
.calc-field + .calc-field { margin-top: 28px; }
.calc-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.calc-label label { font-weight: 600; color: var(--ink); }
.calc-value { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-warm); }
.calc-value span { padding: 0 10px; color: var(--muted); font-size: 14px; }
.calc-value input {
    width: 140px; border: 0; background: #fff; padding: 9px 10px; text-align: right; font-weight: 700; color: var(--ink);
    border-left: 1px solid var(--line);
}
.calc-value input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal); }
.calc-value.small input { width: 84px; }
.calc-value input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
input[type="range"] { width: 100%; accent-color: var(--teal); height: 6px; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.calc-error { color: var(--danger); font-size: 13px; margin-top: 6px; min-height: 0; }
.calc-result {
    background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff;
    padding: 36px; display: flex; flex-direction: column; justify-content: center;
}
.calc-result .label { font-size: 14px; color: rgba(255, 255, 255, .78); margin-bottom: 4px; }
.calc-emi { font-size: clamp(36px, 4.4vw, 50px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 26px; font-variant-numeric: tabular-nums; }
.calc-emi small { font-size: 16px; font-weight: 500; opacity: .8; letter-spacing: 0; }
.calc-breakdown { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1px solid rgba(255, 255, 255, .2); }
.calc-breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); font-variant-numeric: tabular-nums; }
.calc-breakdown li span:first-child { color: rgba(255, 255, 255, .8); }
.calc-breakdown li strong { font-weight: 700; }
.calc-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about-media::after {
    content: ""; position: absolute; z-index: -1; width: 60%; height: 60%; right: -18px; bottom: -18px;
    border: 2px solid var(--orange); border-radius: var(--radius-lg);
}
.about-media { isolation: isolate; }
.about-text { font-size: 17px; }
.about-text p { color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .usp-icon { width: 44px; height: 44px; }
.contact-list .k { display: block; font-size: 13px; color: var(--muted); }
.contact-list a, .contact-list .v { font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-list a:hover { color: var(--teal); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--orange); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 46px; padding: 11px 14px;
    border: 1px solid #D6D6D6; border-radius: 10px; background: #fff; color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(5, 109, 118, .15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: 13px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; }
.field label.check { display: flex; font-weight: 500; font-size: 14px; margin: 0; }
.field .check input { width: 18px; min-height: 0; padding: 0; }
.form-consent { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.form-consent a { text-decoration: underline; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.form-alert.error { background: #FEF3F2; color: var(--danger); border: 1px solid #FECDCA; }
.form-success { text-align: center; padding: 18px 6px; }
.form-success .tick {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
    display: grid; place-items: center; background: var(--teal-tint); color: var(--teal);
}
.form-success .tick .icon { width: 30px; height: 30px; }
.form-success h3 { margin-bottom: 6px; }
.form-success p { color: var(--muted); margin-bottom: 0; }

/* ---------- Modal ---------- */
.modal {
    width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 24px);
    padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    color: var(--text);
}
.modal::backdrop { background: rgba(5, 30, 32, .6); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-head { padding: 24px 28px 0; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal-head h2 { font-size: 22px; margin: 0; }
.modal-head .modal-project { color: var(--teal); font-weight: 600; font-size: 14px; margin: 4px 0 0; }
.modal-close {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
    display: grid; place-items: center; cursor: pointer; flex-shrink: 0; color: var(--ink);
}
.modal-close:hover { background: var(--bg-warm); }
.modal-body { padding: 18px 28px 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: rgba(255, 255, 255, .78); padding: 72px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; }
.footer-logo img { height: 46px; width: auto; }
.site-footer h3 { color: #fff; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: #fff; }
.footer-link-btn { background: none; border: 0; padding: 0; color: #F2B482; cursor: pointer; font-weight: 600; text-align: left; }
.footer-link-btn:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: #F2B482; width: 18px; height: 18px; margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.socials a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .25); color: #fff; transition: background .2s, border-color .2s;
}
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.socials .icon { width: 18px; height: 18px; }
.footer-bottom {
    margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px;
}
.footer-bottom ul { display: flex; gap: 20px; }

/* ---------- Floating & mobile action bar ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: #1FA855; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
}
.wa-float:hover { color: #fff; background: #198F48; }
.wa-float .icon { width: 28px; height: 28px; }
.mobile-bar { display: none; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 300; width: min(520px, calc(100% - 24px)); }
.toast {
    background: #fff; border-left: 4px solid var(--teal); border-radius: 10px; box-shadow: var(--shadow);
    padding: 14px 16px; margin-bottom: 10px; font-size: 15px;
}
.toast.error { border-left-color: var(--danger); }

/* ---------- Legal / simple pages ---------- */
.page-hero { background: var(--bg-warm); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 5vw, 48px); margin: 0; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal); }
.prose { max-width: 760px; padding: 48px 0 80px; font-size: 17px; }
.prose p { margin-bottom: 1.1em; }
.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-family: var(--font-serif); font-size: 120px; line-height: 1; color: var(--teal); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .header-phone { display: none; }
    .project-grid, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    :root { --header-h: 68px; }
    .brand img { height: 44px; }
    .nav-toggle { display: inline-flex; }
    .header-actions .btn { display: none; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3);
        padding: 8px var(--gutter) 20px;
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s;
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav a::after { display: none; }
    .main-nav .nav-cta { display: block; margin-top: 16px; }

    .hero { padding: 48px 0 56px; min-height: 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .calc { grid-template-columns: 1fr; }
}

@media (min-width: 961px) {
    .main-nav .nav-cta { display: none; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    body { font-size: 15px; padding-bottom: 64px; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .hero-card { padding: 22px; }
    .partners-band { --pgap: 16px; }
    .partner-card { width: 156px; height: 112px; padding: 16px; }
    .partner-card img { max-height: 68px; }
    .partner-name { font-size: 15px; }
    .hero-usps { gap: 8px; margin-bottom: 24px; }
    .hero-usps li { font-size: 14px; padding-right: 14px; }
    .brand { gap: 10px; }
    .brand-text { padding-left: 10px; }
    .brand-main { font-size: 21px; }
    .brand-sub { font-size: 9.5px; letter-spacing: .38em; margin-top: 4px; }
    .project-grid, .why-grid { grid-template-columns: 1fr; }
    .section-head { margin-bottom: 28px; }
    .filter-chips { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
    .chip { flex-shrink: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .calc-inputs, .calc-result, .form-card { padding: 24px 20px; }
    .calc-value input { width: 120px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; }
    .modal-head { padding: 20px 20px 0; }
    .modal-body { padding: 16px 20px 22px; }
    .about-media::after { right: -8px; bottom: -8px; }

    .wa-float { display: none; }
    .mobile-bar {
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
        background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(0, 0, 0, .35);
    }
    .mobile-bar a, .mobile-bar button {
        display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px;
        font-weight: 600; font-size: 14px; color: var(--ink); background: none; border: 0; cursor: pointer;
    }
    .mobile-bar > * + * { border-left: 1px solid var(--line); }
    .mobile-bar .icon { width: 20px; height: 20px; color: var(--teal); }
    .mobile-bar .primary { background: var(--teal); color: #fff; }
    .mobile-bar .primary .icon { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
    /* No auto-scroll: visitors swipe through partners instead. */
    .partner-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .partner-track .partner-list[aria-hidden] { display: none; }
}
