/* ==========================================================================
   Fence Industries Trading — main stylesheet
   Palette: charcoal steel + safety amber. Type: Barlow / Barlow Condensed.
   Mobile-first; breakpoints at 640 / 900 / 1200 px.
   ========================================================================== */

:root {
    --ink: #171a1e;
    --steel-900: #1d2126;
    --steel-800: #262c33;
    --steel-700: #39424d;
    --paper: #f7f8f9;
    --tint: #eef0f2;
    --line: #d9dde1;
    --amber: #f0a41e;
    --amber-deep: #c98812;
    --text: #262b31;
    --muted: #5a626b;
    --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    --wrap: 1200px;
}

/* Reset ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 .6em;
    letter-spacing: .01em;
    color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--amber-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--amber);
    color: var(--ink);
    font-weight: 600;
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 0; }

.ico { width: 15px; height: 15px; flex: none; }

/* Buttons --------------------------------------------------------------- */

.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    text-align: center;
}
.btn:hover { text-decoration: none; }

.btn--accent { background: var(--amber); color: var(--ink); }
.btn--accent:hover { background: var(--amber-deep); color: #fff; }

.btn--ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--steel-700); color: #fff; }

.btn--wide { min-width: 200px; }

.textlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink);
}
.textlink:hover { color: var(--amber-deep); text-decoration: none; }
.textlink__arrow { transition: transform .15s ease; }
.textlink:hover .textlink__arrow { transform: translateX(4px); }

.kicker {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber-deep);
    margin: 0 0 .6em;
}
.kicker::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 3px;
    background: var(--amber);
    margin-right: 10px;
    vertical-align: middle;
}
.kicker--onDark { color: var(--amber); }

/* Top bar ---------------------------------------------------------------- */

.topbar {
    background: var(--ink);
    color: #c8cdd3;
    font-size: .85rem;
}
.topbar__row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.topbar__item a { color: #fff; }
.topbar__item a:hover { color: var(--amber); text-decoration: none; }
.topbar__item--last { margin-left: auto; }

@media (max-width: 639px) {
    .topbar__item--last { display: none; }
}

/* Header ------------------------------------------------------------------ */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(23, 26, 30, .08); }

.site-header__row {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand { flex: none; }
.brand__logo { height: 52px; width: auto; }
.brand__word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--ink);
    letter-spacing: .06em;
}
.brand__word strong { color: var(--amber-deep); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
    display: block;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 10px 14px;
    border-bottom: 3px solid transparent;
}
.nav__link:hover { color: var(--amber-deep); text-decoration: none; }
.nav__link.is-active { border-bottom-color: var(--amber); }

.site-header__cta { flex: none; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 9px;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 949px) {
    .site-header__cta, .nav__list { display: none; }
    .nav-toggle { display: block; }

    .nav.is-open .nav__list {
        display: flex;
        flex-direction: column;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(23, 26, 30, .12);
        padding: 10px 20px 18px;
        gap: 0;
    }
    .nav.is-open .nav__link {
        border-bottom: 1px solid var(--tint);
        padding: 13px 4px;
    }
    .nav.is-open .nav__link.is-active { border-bottom-color: var(--amber); }

    /* CTA joins the mobile panel */
    .site-header__cta.is-open {
        display: inline-block;
        position: absolute;
        left: 20px; right: 20px;
        top: calc(100% + 4px);
        z-index: 2;
    }
    .site-header { position: sticky; }
    .site-header__row { position: relative; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
    background:
        linear-gradient(115deg, rgba(23, 26, 30, .94) 0%, rgba(23, 26, 30, .78) 52%, rgba(29, 33, 38, .55) 100%),
        var(--steel-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M0 22.5h90M0 67.5h90' stroke='%23262c33' stroke-width='2'/%3E%3Cpath d='M22.5 0v90M67.5 0v90' stroke='%23262c33' stroke-width='1'/%3E%3C/svg%3E");
    color: #fff;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
    align-items: center;
}

.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__lead {
    font-size: 1.1rem;
    color: #ccd2d8;
    max-width: 34em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }

.hero__facts { display: grid; gap: 8px; }
.hero__facts li {
    padding-left: 26px;
    position: relative;
    color: #aeb6bd;
    font-size: .95rem;
}
.hero__facts li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 12px; height: 3px;
    background: var(--amber);
}

.hero__media { position: relative; }
.hero__media img,
.hero__media .img-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .18);
}
.hero__badge {
    position: absolute;
    left: 0; bottom: -1px;
    background: var(--amber);
    color: var(--ink);
    padding: 14px 18px 12px;
    max-width: 240px;
}
.hero__badge-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}
.hero__badge-label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; }

@media (min-width: 900px) {
    .hero__grid { grid-template-columns: 1.15fr .95fr; padding-top: 84px; padding-bottom: 84px; }
    .hero__media img, .hero__media .img-fallback { aspect-ratio: 5 / 4; }
}

/* Sections ---------------------------------------------------------------- */

.section { padding: 56px 0; }
.section--loose { padding: 64px 0; }
.section--tint { background: var(--tint); }
.section--center { text-align: center; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 30px;
    margin-bottom: 34px;
}
.section-head h2 { margin-bottom: 0; }
.section-intro { color: var(--muted); max-width: 44em; }

/* About strip ------------------------------------------------------------- */

.about-strip__grid {
    display: grid;
    gap: 34px;
    align-items: center;
}
.about-strip__media img,
.about-strip__media .img-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.about-strip__copy p { color: var(--muted); }

@media (min-width: 900px) {
    .about-strip__grid { grid-template-columns: 1fr 1.15fr; gap: 56px; }
}

/* Product grid ------------------------------------------------------------ */

.product-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.product-card { background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.products-home .product-card { background: #fff; }

.product-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.product-card__media img,
.product-card__media .img-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px 18px;
    flex: 1;
}
.product-card__name {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.2;
}
.product-card__short { color: var(--muted); font-size: .92rem; flex: 1; }
.product-card__go {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .95rem;
    color: var(--amber-deep);
    margin-top: 10px;
}

.product-card { transition: box-shadow .18s ease, transform .18s ease; }
.product-card:hover { box-shadow: 0 10px 26px rgba(23, 26, 30, .13); transform: translateY(-3px); }
.product-card:hover .product-card__go { color: var(--ink); }

/* Quality band ------------------------------------------------------------ */

.quality-band {
    background: var(--steel-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0 15h60M0 45h60' stroke='%23262c33' stroke-width='1.5'/%3E%3C/svg%3E");
    color: #fff;
    padding: 62px 0;
}
.quality-band__row {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
}
.quality-band__quote {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0 0 .4em;
    color: #fff;
}
.quality-band__quote::after {
    content: "";
    display: block;
    width: 64px; height: 5px;
    background: var(--amber);
    margin-top: 14px;
}
.quality-band__sub { color: #b6bdc4; max-width: 40em; margin: 0; }

@media (min-width: 900px) {
    .quality-band__row { flex-direction: row; align-items: center; justify-content: space-between; }
    .quality-band__row .btn { flex: none; }
}

/* Projects ---------------------------------------------------------------- */

.project-mosaic {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}
.project-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 2px;
}
.project-tile img, .project-tile .img-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .3s ease;
}
.project-tile:hover img { transform: scale(1.04); }

.project-tile__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 34px 16px 12px;
    background: linear-gradient(180deg, rgba(23, 26, 30, 0) 0%, rgba(23, 26, 30, .88) 75%);
    color: #fff;
}
.project-tile__name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.15;
}
.project-tile__loc { display: block; font-size: .85rem; color: #c8cdd3; }

@media (min-width: 640px) {
    .project-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: dense;
    }
    .project-tile--wide { grid-column: span 2; }
}

@media (min-width: 1000px) {
    .project-mosaic { grid-template-columns: repeat(3, 1fr); }
    .project-tile img, .project-tile .img-fallback { aspect-ratio: 4 / 3; }
}

.project-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.project-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
}
.project-card:hover { box-shadow: 0 10px 26px rgba(23, 26, 30, .13); transform: translateY(-3px); }
.project-card a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.project-card__media img, .project-card__media .img-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.project-card__body { padding: 16px 18px 18px; flex: 1; }
.project-card__name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 8px;
}
.project-card__meta { display: grid; gap: 2px; }
.project-card__loc { font-size: .9rem; color: var(--muted); }
.project-card__system {
    font-size: .85rem;
    color: var(--amber-deep);
    font-weight: 600;
}

/* Sectors ------------------------------------------------------------------ */

.sectors__list {
    display: grid;
    gap: 26px;
    margin-top: 30px;
}
.sectors__list h3 {
    padding-top: 14px;
    border-top: 4px solid var(--amber);
}
.sectors__list p { color: var(--muted); margin: 0; font-size: .95rem; }

@media (min-width: 640px) { .sectors__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sectors__list { grid-template-columns: repeat(4, 1fr); } }

/* CTA band ------------------------------------------------------------------ */

.cta-band { background: var(--ink); color: #fff; padding: 56px 0; }
.cta-band__row {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #b6bdc4; margin: 0; }
.cta-band__contact { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.cta-band__tel {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: .03em;
}
.cta-band__tel:hover { color: #fff; text-decoration: none; }

@media (min-width: 900px) {
    .cta-band__row { flex-direction: row; align-items: center; justify-content: space-between; }
    .cta-band__row > div:first-child { max-width: 34em; }
}

/* Page head (inner pages) ---------------------------------------------------- */

.page-head {
    background: var(--steel-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M0 22.5h90M0 67.5h90' stroke='%23262c33' stroke-width='2'/%3E%3Cpath d='M22.5 0v90M67.5 0v90' stroke='%23262c33' stroke-width='1'/%3E%3C/svg%3E");
    color: #fff;
    padding: 34px 0 38px;
}
.page-head h1 { color: #fff; margin: 14px 0 0; }
.page-head__sub { color: #b6bdc4; max-width: 46em; margin: 10px 0 0; }

.crumbs { font-size: .85rem; color: #8d959d; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: #c8cdd3; }
.crumbs a:hover { color: var(--amber); text-decoration: none; }
.crumbs [aria-current="page"] { color: var(--amber); }

.fact-row {
    display: grid;
    gap: 4px 40px;
    margin: 22px 0 0;
}
.fact-row dt {
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--amber);
}
.fact-row dd { margin: 0; color: #d7dce1; }

@media (min-width: 640px) { .fact-row { grid-template-columns: repeat(3, auto); } }

/* Product / project detail ----------------------------------------------------- */

.product-detail {
    display: grid;
    gap: 40px;
}
.product-detail__cover img, .product-detail__cover .img-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
}
.product-detail h2 { margin-top: 1.6em; }
.product-detail__intro { font-size: 1.05rem; color: var(--text); }

@media (min-width: 1000px) {
    .product-detail { grid-template-columns: minmax(0, 1fr) 320px; }
    .product-detail__side { order: 2; }
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
}
.spec-table th, .spec-table td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: .95rem;
    color: var(--ink);
    background: var(--tint);
    width: 34%;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    border: 1px solid var(--steel-700);
    color: var(--steel-700);
    font-size: .85rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 2px;
    background: var(--paper);
}

.gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery--lead { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery__item { display: block; overflow: hidden; border-radius: 2px; }
.gallery__item img, .gallery__item .img-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .25s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:focus-visible img { transform: scale(1.05); }

.project-summary { font-size: 1.08rem; max-width: 52em; }

.project-pager {
    display: grid;
    gap: 14px;
    margin-top: 44px;
}
.project-pager__link {
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 14px 18px;
    display: grid;
    gap: 2px;
    color: inherit;
}
.project-pager__link:hover { border-color: var(--amber); text-decoration: none; }
.project-pager__dir {
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--amber-deep);
}
.project-pager__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ink);
}
.project-pager__link--next { text-align: right; }

@media (min-width: 640px) {
    .project-pager { grid-template-columns: 1fr 1fr; }
}

/* Side cards ------------------------------------------------------------------ */

.side-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--steel-700);
    padding: 20px 22px;
    border-radius: 2px;
    margin-bottom: 18px;
}
.side-card h3 { margin-bottom: .5em; }
.side-card p { color: var(--muted); margin-bottom: .8em; font-size: .95rem; }
.side-card p:last-child { margin-bottom: 0; }

.side-card--accent { border-left-color: var(--amber); background: #fff7e8; }
.side-card--accent p { color: #6b5a37; }
.side-card__tel {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}
.side-card__tel:hover { color: var(--amber-deep); text-decoration: none; }

.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a {
    display: block;
    padding: 9px 2px;
    color: var(--text);
    font-size: .95rem;
}
.side-links a:hover { color: var(--amber-deep); text-decoration: none; padding-left: 8px; transition: padding .15s ease, color .15s ease; }

/* About page ------------------------------------------------------------------ */

.about-grid { display: grid; gap: 40px; }
.about-grid__copy p { color: var(--muted); }
.about-grid__copy h2 { margin-top: 1.2em; }
.about-grid__media { margin: 26px 0; }
.about-grid__media img, .about-grid__media .img-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

@media (min-width: 1000px) {
    .about-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}

.capability-list {
    display: grid;
    gap: 0;
    margin-top: 26px;
    border-top: 1px solid var(--line);
}
.capability-list li {
    border-bottom: 1px solid var(--line);
    padding: 12px 4px 12px 34px;
    position: relative;
    font-weight: 500;
}
.capability-list li::before {
    content: "";
    position: absolute;
    left: 8px; top: 19px;
    width: 12px; height: 3px;
    background: var(--amber);
}

@media (min-width: 640px) {
    .capability-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
    .capability-list { grid-template-columns: repeat(3, 1fr); }
}

/* Contact ----------------------------------------------------------------------- */

.contact-grid { display: grid; gap: 36px; }

@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; }
}

.contact-info__tel { font-size: 0; }
.contact-info__tel a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
}
.contact-info__tel a:hover { color: var(--amber-deep); text-decoration: none; }

.contact-form { background: var(--paper); border: 1px solid var(--line); padding: 26px 22px; border-radius: 2px; }

.form-row { display: grid; gap: 0; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; column-gap: 18px; } }

.form-field { margin: 0 0 16px; }
.form-field label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: .9rem;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 10px 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(240, 164, 30, .22);
}
.form-field [aria-invalid="true"] { border-color: #b3362c; }

.req { color: #b3362c; }

.field-error {
    display: block;
    color: #b3362c;
    font-size: .85rem;
    margin-top: 5px;
}

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 4px 0 0; }
.form-hint { font-size: .85rem; color: var(--muted); }

.hp-field {
    position: absolute !important;
    left: -6000px;
    top: 0;
    height: 1px; width: 1px;
    overflow: hidden;
}

.notice {
    padding: 16px 20px;
    border-radius: 2px;
    margin-bottom: 22px;
    border: 1px solid;
}
.notice strong { display: block; margin-bottom: 4px; }
.notice p { margin: 0; font-size: .95rem; }
.notice--success { background: #eef7ef; border-color: #4d8b57; color: #24512c; }
.notice--error { background: #fbeeec; border-color: #b3362c; color: #6e211b; }

/* 404 ------------------------------------------------------------------------------ */

.notfound { max-width: 640px; }
.notfound__code {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 16vw, 8rem);
    font-weight: 700;
    color: var(--tint);
    -webkit-text-stroke: 2px var(--steel-700);
    line-height: 1;
    margin: 0;
}
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.notfound__actions .btn--ghost { color: var(--ink); }
.notfound__home { color: var(--muted); }

/* Footer ---------------------------------------------------------------------------- */

.footer { background: var(--ink); color: #b6bdc4; margin-top: 0; }
.footer__grid {
    display: grid;
    gap: 34px;
    padding-top: 54px;
    padding-bottom: 44px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; } }

.footer__wordmark {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #fff;
    margin-bottom: 12px;
}
.footer__wordmark strong { color: var(--amber); }
.footer__wordmark span { display: block; font-size: 1.05rem; color: #8d959d; }
.footer__blurb { font-size: .95rem; max-width: 30em; }
.footer__tag {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--amber);
    font-weight: 600;
}

.footer__head {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--steel-700);
}
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: #b6bdc4; font-size: .95rem; }
.footer__links a:hover { color: var(--amber); text-decoration: none; }
.footer__more { font-weight: 600; color: var(--amber); }

.footer__contact li { margin-bottom: 12px; font-size: .95rem; }
.footer__label {
    display: block;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--amber);
    margin-bottom: 2px;
}
.footer__contact a { color: #b6bdc4; }
.footer__contact a:hover { color: var(--amber); }

.footer__bottom { border-top: 1px solid var(--steel-700); padding: 16px 0; }
.footer__bottom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    font-size: .85rem;
}
.footer__bottom-row p { margin: 0; }
.footer__slogan { color: #8d959d; }

/* Image fallback placeholder ------------------------------------------------------- */

.img-fallback {
    display: block;
    width: 100%;
    height: auto;
    background: var(--steel-800);
    overflow: hidden;
}
.img-fallback svg { width: 100%; height: 100%; }

/* Lightbox ------------------------------------------------------------------------ */

.lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 20, 24, .94);
    display: none;
    z-index: 90;
    padding: 20px;
}
.lb-overlay.is-open { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.lb-figure { margin: 0; max-width: min(1100px, 92vw); }
.lb-figure img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; }
.lb-caption { color: #c8cdd3; text-align: center; font-size: .9rem; padding-top: 12px; }

.lb-btn {
    position: absolute;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 2px;
}
.lb-btn:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.lb-btn--close { top: 16px; right: 16px; }
.lb-btn--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-btn--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Reveal on scroll ----------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .project-tile img, .gallery__item img { transition: none; }
}

/* Focus visibility (WCAG) ------------------------------------------------------------ */

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 2px;
}

/* ---- Mobile sticky bottom navigation (mobile only) ---------------------- */
.mnav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    background: #191d24;
    border-top: 1px solid #2c323d;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -6px 20px rgba(0,0,0,.35);
}
.mnav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 2px 6px;
    color: #9aa3ad;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.mnav__item svg { width: 21px; height: 21px; }
.mnav__item--active { color: #f5a623; }
.mnav__item--call { color: #ffd166; }
.mnav__item--quote { color: #f5a623; }
.mnav__item:active { background: #22272f; }

@media (max-width: 899px) {
    .mnav { display: grid; }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0)); }
    .cta-band__tel { min-height: 44px; }
}
@media (min-width: 900px) {
    .mnav { display: none !important; }
}

/* ---- Service areas + FAQ (Qatar SEO sections) ---------------------------- */
.areas__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    list-style: none;
    margin: 0; padding: 0;
}
.areas__list li {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-left: 3px solid #f5a623;
    padding: 9px 16px;
    font-weight: 600;
    color: #23282e;
    border-radius: 4px;
}
.faq__wrap { max-width: 880px; }
.faq__item {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 14px 18px;
}
.faq__item summary {
    cursor: pointer;
    font-weight: 600;
    color: #23282e;
    list-style-position: outside;
}
.faq__item p { margin: 10px 0 0; color: #4a5058; }
.areas__list li, .faq__item { text-align: left; }
