/*
Theme Name: Buildwell
Theme URI: https://buildwellbh.com
Author: Buildwell Contracting Company W.L.L
Description: Corporate theme for Buildwell Contracting Company W.L.L, Kingdom of Bahrain. Light, crisp "future elegant" design with crimson accents.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: buildwell
*/

/* ==========================================================================
   Tokens  (change --red / --red-dark / --red-light to match the logo exactly)
   ========================================================================== */
:root {
    --red: #c8202f;
    --red-dark: #9f1623;
    --red-light: #ef5360;
    --red-rgb: 200, 32, 47;
    --red-grad: linear-gradient(135deg, #e63946 0%, #c8202f 52%, #9f1623 100%);

    --ink: #0f1f35;          /* headings, navy */
    --navy: #0f1f35;
    --navy-2: #16304f;
    --navy-3: #1f4170;
    --sky-rgb: 70, 140, 220; /* cool glow */

    --bg: #ffffff;
    --bg-2: #f4f7fb;
    --bg-3: #e8eff7;
    --text: #4a5a70;
    --text-strong: #1e3050;
    --muted: #66768c;
    --line: rgba(15, 31, 53, .1);
    --line-strong: rgba(var(--red-rgb), .35);
    --glass: rgba(255, 255, 255, .72);

    --ok: #1c8a55;
    --err: #c8202f;
    --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
    --tech: "Space Grotesk", "Jost", "Helvetica Neue", Arial, sans-serif;
    --radius: 6px;
    --radius-lg: 14px;
    --shadow: 0 22px 55px rgba(15, 31, 53, .12);
    --shadow-sm: 0 8px 26px rgba(15, 31, 53, .08);
    --glow: 0 18px 50px rgba(var(--red-rgb), .16);
    --header-h: 84px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 520px at 92% -4%, rgba(var(--sky-rgb), .08), transparent 62%),
        radial-gradient(800px 520px at -6% 20%, rgba(var(--red-rgb), .05), transparent 62%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::selection { background: rgba(var(--red-rgb), .22); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 48px); }
.center { text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--red); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section--ivory { background: linear-gradient(180deg, var(--bg-2), #eef3f9); border-block: 1px solid var(--line); }
.section--navy {
    background:
        radial-gradient(700px 400px at 10% 0%, rgba(var(--sky-rgb), .12), transparent 65%),
        radial-gradient(600px 400px at 100% 100%, rgba(var(--red-rgb), .08), transparent 65%),
        linear-gradient(180deg, #eef3f9, #e6edf6);
    color: var(--text);
    overflow: hidden;
    border-block: 1px solid var(--line);
}
.section--navy::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 31, 53, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 31, 53, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 72%);
}
.section--navy > .container { position: relative; }

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.eyebrow {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: var(--tech); font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
    color: var(--red); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--red-grad); border-radius: 2px; }
.eyebrow--light { color: #ff8e97; }
.eyebrow--light::before { background: #ff8e97; }
.section-head--center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(34px, 4.4vw, 58px); font-weight: 600; }
.section-title--light { color: var(--ink); }
.section-sub { max-width: 640px; color: var(--muted); font-size: 18px; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-inline: auto; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row .section-title { margin-bottom: 0; }
.lead { font-size: 20px; line-height: 1.65; color: var(--text-strong); }
.subhead { font-size: 32px; margin: 44px 0 20px; font-weight: 600; }
.link-arrow { font-family: var(--tech); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 5px; transition: color .3s, letter-spacing .3s var(--ease); }
.link-arrow:hover { color: var(--red); letter-spacing: .2em; }
.prose > * + * { margin-top: 1em; }
.prose p { color: var(--text); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; border: 1px solid transparent; border-radius: 999px;
    font-family: var(--tech); font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn::after {
    content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
    transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { left: 130%; }
.btn--gold { background: var(--red-grad); color: #fff; box-shadow: 0 10px 30px rgba(var(--red-rgb), .32); }
.btn--gold:hover { box-shadow: 0 14px 40px rgba(var(--red-rgb), .5); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 10px 28px rgba(15, 31, 53, .22); }
.btn--navy:hover { background: var(--navy-3); box-shadow: 0 14px 36px rgba(15, 31, 53, .32); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .08); }
.btn--ghost:hover { background: #fff; color: var(--red); border-color: #fff; }
.btn--block { width: 100%; }

/* ==========================================================================
   Top bar & header
   ========================================================================== */
.topbar { background: var(--navy); color: #c0cbdb; font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 9px; }
.topbar__list { display: flex; gap: 28px; }
.topbar__label { font-family: var(--tech); color: #ff8e97; text-transform: uppercase; letter-spacing: .2em; font-size: 10.5px; margin-right: 6px; }
.topbar a { transition: color .25s; }
.topbar a:hover { color: #fff; }
.topbar__hours { margin: 0; font-family: var(--tech); letter-spacing: .04em; font-size: 13px; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s var(--ease), background .3s;
}
.site-header::after {
    content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: calc(var(--scroll, 0) * 100%);
    background: var(--red-grad); box-shadow: 0 0 12px rgba(var(--red-rgb), .6);
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .95); box-shadow: 0 10px 34px rgba(15, 31, 53, .1); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; transition: transform .35s var(--ease), filter .35s; }
.brand:hover { transform: translateY(-1px); filter: drop-shadow(0 6px 14px rgba(var(--red-rgb), .25)); }
.brand img { height: 54px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 36px; }
.menu { display: flex; align-items: center; gap: 34px; }
.menu__item { position: relative; display: flex; align-items: center; }
.menu__item > a {
    display: block; padding: 32px 0; font-family: var(--tech); font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
    position: relative; transition: color .3s;
}
.menu__item > a::after { content: ""; position: absolute; left: 0; bottom: 24px; width: 0; height: 2px; background: var(--red-grad); border-radius: 2px; transition: width .35s var(--ease); }
.menu__item:hover > a { color: var(--red); }
.menu__item:hover > a::after, .menu__item.is-current > a::after { width: 100%; }
.menu__item.is-current > a { color: var(--red); }
.sub-toggle { display: none; }
.has-sub > a { padding-right: 18px; }
.has-sub > a::before { content: ""; position: absolute; right: 2px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.submenu {
    position: absolute; top: 100%; left: -24px; min-width: 290px; padding: 14px 0;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(18px); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 10px 28px; font-size: 15px; color: var(--text-strong); transition: background .2s, color .2s, padding .2s; }
.submenu a:hover { background: linear-gradient(90deg, rgba(var(--red-rgb), .09), transparent); color: var(--red); padding-left: 34px; }
.nav-cta { padding: 13px 26px; }

.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.nav-toggle__bars { display: block; width: 24px; height: 16px; position: relative; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--red); transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 7px; }
.nav-toggle__bars span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero  (photo stays visible; navy tint only on the text side)
   ========================================================================== */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; background: var(--navy-2); overflow: hidden; padding: 120px 0 180px; }
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 9s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
    background:
        radial-gradient(640px 460px at 8% 100%, rgba(var(--red-rgb), .32), transparent 65%),
        radial-gradient(700px 500px at 85% 10%, rgba(var(--sky-rgb), .18), transparent 65%),
        linear-gradient(100deg, rgba(10, 26, 48, .88) 0%, rgba(14, 34, 60, .62) 48%, rgba(14, 34, 60, .12) 100%);
}
.hero__overlay::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse at 25% 45%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 25% 45%, #000 0%, transparent 70%);
}
.hero__overlay::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero__inner { position: relative; z-index: 2; }
.hero__inner::before {
    content: ""; position: absolute; left: -26px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, transparent, var(--red-light), transparent); box-shadow: 0 0 16px rgba(var(--red-rgb), .7);
}
.hero__title { font-size: clamp(42px, 6.4vw, 90px); max-width: 15ch; margin-bottom: 26px; font-weight: 600; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.hero__text { max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); color: #e3eaf4; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__dots { display: flex; gap: 10px; margin-top: 56px; }
.hero__dot { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: background .3s, width .3s, box-shadow .3s; }
.hero__dot.is-active { background: var(--red-light); width: 58px; box-shadow: 0 0 14px rgba(var(--red-rgb), .9); }

/* Stats */
.stats { position: relative; z-index: 5; margin-top: -92px; }
.stats__grid {
    position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden;
}
.stats__grid::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red-grad); }
.stats__grid li { padding: 40px 20px; text-align: center; border-left: 1px solid var(--line); }
.stats__grid li:first-child { border-left: 0; }
.stats__num {
    display: block; font-family: var(--serif); font-size: clamp(42px, 4.6vw, 62px); font-weight: 600; line-height: 1; margin-bottom: 12px;
    background: linear-gradient(135deg, var(--navy) 10%, var(--red) 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--red);
}
.stats__label { font-family: var(--tech); font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Split / about
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split--top { align-items: start; grid-template-columns: 1fr 1.1fr; }
.split__text p { color: var(--text); }
.split__text .lead { color: var(--text-strong); }
.value-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 34px; }
.value-row li { padding: 9px 20px; border: 1px solid rgba(var(--red-rgb), .28); border-radius: 999px; font-family: var(--tech); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--red-dark); background: rgba(var(--red-rgb), .06); }

.collage { position: relative; padding: 0 12% 12% 0; }
.collage__main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.collage__small { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border: 8px solid #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.collage__badge { position: absolute; left: -22px; top: 36px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 20px 26px; border: 1px solid rgba(255, 255, 255, .9); border-left: 4px solid var(--red); border-radius: var(--radius); display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.collage__badge strong { font-family: var(--serif); font-size: 54px; font-weight: 600; line-height: 1; color: var(--red); }
.collage__badge span { font-family: var(--tech); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; color: var(--text-strong); }

.portrait { position: relative; margin: 0; isolation: isolate; }
.portrait img { width: 100%; box-shadow: var(--shadow); object-fit: cover; border-radius: var(--radius-lg); }
.portrait::after { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--red); border-radius: var(--radius-lg); opacity: .45; z-index: -1; }

/* ==========================================================================
   Card base + HUD corner brackets
   ========================================================================== */
.service-card, .team-card, .form-card, .project-types li, .map-frame { position: relative; }
.service-card::after, .team-card::after, .form-card::after, .project-types li::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: .5; transition: opacity .4s var(--ease);
    background:
        linear-gradient(var(--red), var(--red)) top left / 20px 2px no-repeat,
        linear-gradient(var(--red), var(--red)) top left / 2px 20px no-repeat,
        linear-gradient(var(--red), var(--red)) top right / 20px 2px no-repeat,
        linear-gradient(var(--red), var(--red)) top right / 2px 20px no-repeat,
        linear-gradient(var(--red), var(--red)) bottom left / 20px 2px no-repeat,
        linear-gradient(var(--red), var(--red)) bottom left / 2px 20px no-repeat,
        linear-gradient(var(--red), var(--red)) bottom right / 20px 2px no-repeat,
        linear-gradient(var(--red), var(--red)) bottom right / 2px 20px no-repeat;
}
.service-card:hover::after, .team-card:hover::after, .project-types li:hover::after { opacity: 1; }

/* ==========================================================================
   Service cards
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.service-grid--three { grid-template-columns: repeat(3, 1fr); }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow), 0 0 40px rgba(var(--red-rgb), .12); border-color: rgba(var(--red-rgb), .3); }
.service-card > a { display: flex; flex-direction: column; height: 100%; }
.service-card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.service-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(15, 31, 53, .35)); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.08); }
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.service-card__num { font-family: var(--tech); font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: .24em; margin-bottom: 8px; }
.service-card__title { font-family: var(--serif); font-size: 29px; line-height: 1.1; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.service-card__text { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin-bottom: 20px; }
.service-card__more { margin-top: auto; font-family: var(--tech); font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.service-card--cta { background: var(--red-grad); border-color: transparent; box-shadow: var(--glow); }
.service-card--cta::after { opacity: .7; background:
        linear-gradient(#fff, #fff) top left / 20px 2px no-repeat, linear-gradient(#fff, #fff) top left / 2px 20px no-repeat,
        linear-gradient(#fff, #fff) top right / 20px 2px no-repeat, linear-gradient(#fff, #fff) top right / 2px 20px no-repeat,
        linear-gradient(#fff, #fff) bottom left / 20px 2px no-repeat, linear-gradient(#fff, #fff) bottom left / 2px 20px no-repeat,
        linear-gradient(#fff, #fff) bottom right / 20px 2px no-repeat, linear-gradient(#fff, #fff) bottom right / 2px 20px no-repeat; }
.service-card--cta:hover { border-color: transparent; }
.service-card--cta .service-card__body { justify-content: center; padding: 36px 30px; }
.service-card--cta .service-card__title { color: #fff; }
.service-card--cta .service-card__text { color: rgba(255, 255, 255, .85); }
.service-card--cta .service-card__more { color: #fff; }

/* ==========================================================================
   Why / pillars / project types
   ========================================================================== */
.why__grid, .pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why__grid li, .pillars li { padding: 40px 32px 20px 0; margin-right: 32px; border-right: 1px solid var(--line); }
.why__grid li:last-child, .pillars li:last-child { border-right: 0; margin-right: 0; }
.why__num { display: block; font-family: var(--tech); font-weight: 300; font-size: 50px; line-height: 1; margin-bottom: 18px; background: var(--red-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--red); }
.why__grid h3, .pillars h3 { color: var(--ink); font-size: 28px; font-weight: 600; }
.why__grid p, .pillars p { color: var(--text); font-size: 16px; }

.project-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.project-types li { padding: 34px 28px; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.project-types li:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-types h3 { font-size: 27px; font-weight: 600; }
.project-types p { color: var(--muted); font-size: 16px; margin: 0; }

.leader { display: grid; grid-template-columns: 120px 1fr; gap: 30px; max-width: 900px; align-items: start; }
.leader__mark { font-family: var(--serif); font-size: 190px; line-height: .8; background: var(--red-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--red); opacity: .55; }
.leader__name { font-size: clamp(36px, 4vw, 54px); font-weight: 600; margin-bottom: 6px; }
.leader__role { font-family: var(--tech); font-weight: 600; color: var(--red); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; }
.gallery__item { overflow: hidden; background: var(--bg-3); position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .4s; }
.gallery__item:hover { box-shadow: var(--shadow), 0 0 0 2px rgba(var(--red-rgb), .55); }
.gallery__item a { display: block; width: 100%; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.gallery__item a::after {
    content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 58px; font-weight: 300; color: #fff;
    background: linear-gradient(135deg, rgba(15, 31, 53, .55), rgba(var(--red-rgb), .5)); opacity: 0; transition: opacity .4s;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover a::after { opacity: 1; }
.gallery--home .gallery__item:nth-child(1), .gallery--full .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery--home .gallery__item:nth-child(6), .gallery--full .gallery__item:nth-child(7) { grid-column: span 2; }
.gallery--full .gallery__item:nth-child(12) { grid-column: span 2; grid-row: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(8, 16, 30, .93); backdrop-filter: blur(10px); padding: 40px 70px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); box-shadow: 0 20px 90px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; padding: 14px; opacity: .8; transition: opacity .2s, color .2s; }
.lightbox button:hover { opacity: 1; color: var(--red-light); }
.lightbox__close { top: 14px; right: 18px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Clients
   ========================================================================== */
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.client { display: flex; align-items: center; justify-content: center; height: 124px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.client img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; }
.client:hover { border-color: rgba(var(--red-rgb), .5); box-shadow: var(--shadow), 0 0 30px rgba(var(--red-rgb), .12); transform: translateY(-3px); }
.client:hover img { filter: none; opacity: 1; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
    position: relative; overflow: hidden; color: #fff; padding: clamp(60px, 7vw, 96px) 0;
    background:
        radial-gradient(600px 320px at 0% 100%, rgba(var(--sky-rgb), .35), transparent 70%),
        linear-gradient(120deg, #16304f 0%, #1f4170 40%, #b3202d 100%);
}
.cta-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 440px; height: 440px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; animation: spin 40s linear infinite; border-top-color: #fff; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; animation: spin 60s linear infinite reverse; border-bottom-color: #ffb3b9; }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: clamp(34px, 4.4vw, 58px); font-weight: 600; margin-bottom: 10px; }
.cta-band__text { color: rgba(255, 255, 255, .85); margin: 0; max-width: 520px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn--gold { background: #fff; color: var(--red); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.cta-band .btn--gold:hover { color: var(--red-dark); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero { position: relative; background: var(--navy-2) center / cover no-repeat; color: #fff; padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red-grad); z-index: 2; }
.page-hero__overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(520px 360px at 5% 100%, rgba(var(--red-rgb), .35), transparent 65%),
        radial-gradient(600px 360px at 90% 0%, rgba(var(--sky-rgb), .2), transparent 65%),
        linear-gradient(100deg, rgba(10, 26, 48, .86), rgba(14, 34, 60, .55));
}
.page-hero__overlay::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 70%);
}
.page-hero--plain { background: linear-gradient(120deg, #16304f, #1f4170); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { color: #fff; font-size: clamp(44px, 6vw, 86px); font-weight: 600; margin: 0; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.breadcrumb { font-family: var(--tech); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #c3cfdf; margin-bottom: 26px; }
.breadcrumb a { transition: color .25s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 10px; color: #ff8e97; }
.breadcrumb span[aria-current] { margin: 0; color: #fff; }

/* ==========================================================================
   Service detail
   ========================================================================== */
.service-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
.check-list li { position: relative; padding: 15px 0 15px 32px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 26px; width: 8px; height: 8px; background: var(--red); box-shadow: 0 0 10px rgba(var(--red-rgb), .5); transform: rotate(45deg); }
.check-list__label { font-weight: 500; color: var(--ink); line-height: 1.45; }
.check-list__desc { font-size: 15px; color: var(--muted); margin-top: 2px; }
.service-figure { margin: 48px 0 0; }
.service-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.service-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.admin-bar .service-aside { top: calc(var(--header-h) + 56px); }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-block; padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text-strong); font-size: 14px; letter-spacing: .06em; box-shadow: var(--shadow-sm); transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.chip:hover { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 10px 26px rgba(var(--red-rgb), .3); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 46px); box-shadow: var(--shadow); }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--red-grad); }
.form-card__title { font-size: 36px; font-weight: 600; margin-bottom: 8px; }
.form-card__intro { color: var(--muted); font-size: 16px; }
.field { margin-bottom: 20px; position: relative; }
.field label { display: block; font-family: var(--tech); font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 9px; }
.field label span { color: var(--red); }
.field label .opt { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; font-family: var(--sans); }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-2);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: #93a0b3; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(var(--red-rgb), .12), 0 8px 24px rgba(var(--red-rgb), .08); }
.counter { display: block; text-align: right; font-family: var(--tech); font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; margin: 0 0 24px; font-size: 15px; border-left: 3px solid; border-radius: var(--radius); }
.notice--ok { background: #e9f7ef; border-color: var(--ok); color: #14502f; }
.notice--err { background: #fdecee; border-color: var(--err); color: #7a1620; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.info-list { margin-top: 36px; }
.info-list li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-list__label { font-family: var(--tech); font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.info-list__value { font-size: 18px; color: var(--ink); }
.info-list__value a { transition: color .25s; }
.info-list__value a:hover, .info-list__link:hover { color: var(--red); }
.info-list__link { font-family: var(--tech); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-top: 8px; width: max-content; color: var(--ink); border-bottom: 2px solid var(--red); transition: color .25s; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 32px; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow), 0 0 36px rgba(var(--red-rgb), .1); border-color: rgba(var(--red-rgb), .3); }
.team-card__role { font-family: var(--tech); font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.team-card__name { font-size: 32px; font-weight: 600; margin-bottom: 4px; }
.team-card__title { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.team-card__links li { padding: 6px 0; font-size: 16px; word-break: break-word; color: var(--text); }
.team-card__links a { transition: color .25s; }
.team-card__links a:hover { color: var(--red); }

/* ---- Google Maps ---- */
.map-section .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.map-frame {
    height: clamp(380px, 46vw, 540px); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-3); box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, .8);
}
.map-frame::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 2; background: var(--red-grad); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.9) contrast(1.02); }
.map-card {
    position: absolute; z-index: 2; left: 24px; bottom: 24px; max-width: 360px; padding: 24px 26px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .9); border-left: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow);
}
.map-card__label { display: block; font-family: var(--tech); font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.map-card__name { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--ink); margin: 0 0 8px; }
.map-card address { font-size: 15px; line-height: 1.55; color: var(--text); margin-bottom: 16px; }
.map-card .btn { padding: 12px 22px; font-size: 11.5px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    position: relative; color: var(--text); font-size: 15.5px;
    background:
        radial-gradient(700px 360px at 100% 0%, rgba(var(--sky-rgb), .1), transparent 65%),
        radial-gradient(700px 360px at 0% 100%, rgba(var(--red-rgb), .07), transparent 65%),
        #eef3f9;
}
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red-grad); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 64px); padding-block: clamp(56px, 7vw, 92px); }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 8px; margin-bottom: 22px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.footer-logo img { height: 46px; width: auto; }
.site-footer h4 { color: var(--ink); font-size: 25px; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 14px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 3px; background: var(--red-grad); }
.site-footer li { padding: 5px 0; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: var(--red); }
.footer-contact { margin-top: 14px; }
.site-footer__bar { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .55); padding: 22px 0; font-size: 14px; }
.site-footer__bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.site-footer__bar p { margin: 0; }
.powered-by { font-family: var(--tech); font-size: 12.5px; letter-spacing: .08em; color: var(--muted); }
.powered-by a { color: var(--red); font-weight: 600; border-bottom: 1px solid rgba(var(--red-rgb), .45); padding-bottom: 1px; transition: color .25s, border-color .25s; }
.powered-by a:hover { color: var(--red-dark); border-color: var(--red-dark); }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.6s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ==========================================================================
   Reveal animation (only when JS is available)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid--three { grid-template-columns: repeat(2, 1fr); }
    .client-grid { grid-template-columns: repeat(4, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
    :root { --header-h: 72px; }
    .brand img { height: 46px; }
    .nav-toggle { display: block; }
    .primary-nav {
        /* attached to the header (a blurred header traps position:fixed children) */
        position: absolute; left: 0; right: 0; top: 100%;
        height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
        background: #fff; border-top: 1px solid var(--line);
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
        padding: 12px 24px 32px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
        opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none;
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    }
    .primary-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
    .menu { flex-direction: column; align-items: stretch; gap: 0; }
    .menu__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .menu__item > a { padding: 20px 0; flex: 1; font-size: 14px; }
    .menu__item > a::after, .has-sub > a::before { display: none; }
    .has-sub > a { padding-right: 0; }
    .sub-toggle { display: block; width: 52px; height: 52px; background: none; border: 0; position: relative; }
    .sub-toggle span { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translate(-50%, -70%) rotate(45deg); transition: transform .3s; }
    .sub-toggle[aria-expanded="true"] span { transform: translate(-50%, -30%) rotate(-135deg); }
    .submenu { position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; border: 0; background: none; backdrop-filter: none; box-shadow: none; padding: 0 0 12px 14px; display: none; }
    .has-sub.is-open .submenu { display: block; }
    .has-sub:hover .submenu { transform: none; }
    .submenu a { padding: 11px 0; }
    .submenu a:hover { padding-left: 6px; background: none; }
    .nav-cta { margin-top: 24px; padding: 17px; }
    .topbar__hours { display: none; }
    .topbar__inner { justify-content: center; }

    .split, .split--top, .contact-layout, .service-layout { grid-template-columns: 1fr; }
    .service-aside { position: static; }
    .collage { max-width: 560px; margin-inline: auto; }
    .why__grid, .pillars { grid-template-columns: repeat(2, 1fr); }
    .why__grid li, .pillars li { border-right: 0; margin-right: 0; padding-right: 20px; }
    .project-types { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
    .portrait::after { inset: 14px -10px -14px 10px; }
    .hero__inner::before { display: none; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .topbar__list { gap: 18px; flex-wrap: wrap; justify-content: center; }
    .topbar__label { display: none; }
    .hero { padding: 80px 0 140px; min-height: 0; }
    .hero__dots { margin-top: 38px; }
    .stats { margin-top: -64px; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__grid li:nth-child(3) { border-left: 0; }
    .stats__grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .stats__grid li { padding: 28px 12px; }
    .service-grid, .service-grid--three { grid-template-columns: 1fr; }
    .check-list { grid-template-columns: 1fr; }
    .why__grid, .pillars, .project-types { grid-template-columns: 1fr; }
    .client-grid { grid-template-columns: repeat(3, 1fr); }
    .client { height: 100px; padding: 12px; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
    .gallery--home .gallery__item:nth-child(6), .gallery--full .gallery__item:nth-child(7) { grid-column: span 1; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__bar .container { flex-direction: column; text-align: center; }
    .leader { grid-template-columns: 1fr; gap: 0; }
    .leader__mark { font-size: 110px; height: 70px; }
    .cta-band__actions .btn { flex: 1 1 100%; }
    .lightbox { padding: 60px 14px; }
    .collage__badge { left: 8px; top: 12px; padding: 14px 16px; }
    .collage__badge strong { font-size: 40px; }

    /* map: address card drops below the map on small screens */
    .map-frame { height: auto; display: flex; flex-direction: column; }
    .map-frame iframe { height: 340px; flex: none; }
    .map-card { position: static; max-width: none; border: 0; border-top: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 0; box-shadow: none; background: #fff; }
}

@media (max-width: 480px) {
    .client-grid { grid-template-columns: repeat(2, 1fr); }
    .container { width: calc(100% - 36px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero__slide { transform: none; }
}
