/* =========================================================
   JLB Construction — design system
   ========================================================= */
:root {
  --color-primary: #0090cc;
  --color-primary-dark: #00699a;
  --color-black: #121212;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f5f7;
  --color-text: #1a1a1a;
  --color-text-muted: #666f75;
  --color-border: #e4e7ea;
  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 8px 26px rgba(18, 18, 18, 0.10);
  --shadow-lg: 0 22px 55px rgba(18, 18, 18, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; color: var(--color-black); text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--color-primary); font-family: var(--font-heading); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--color-primary); display: inline-block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 32px; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .92rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .04em; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 10px 24px rgba(0,144,204,.4); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; color: var(--color-black); box-shadow: inset 0 0 0 2px var(--color-black); }
.btn-outline-dark:hover { background: var(--color-black); color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 58px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; font-weight: 700; font-family: var(--font-heading); color: var(--color-black); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; position: relative; padding: 8px 0; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px; background: var(--color-primary); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--color-primary); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; color: var(--color-black); }

.mobile-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-drawer .backdrop { position: absolute; inset: 0; background: rgba(18,18,18,.6); opacity: 0; transition: opacity .25s ease; }
.mobile-drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 82vw); background: #fff; padding: 28px 24px; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 18px; }
body.menu-open .mobile-drawer { visibility: visible; }
body.menu-open .mobile-drawer .backdrop { opacity: 1; }
body.menu-open .mobile-drawer .panel { transform: translateX(0); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mobile-drawer nav a { text-decoration: none; font-weight: 800; font-family: var(--font-heading); text-transform: uppercase; font-size: 1rem; color: var(--color-black); padding: 6px 0; }
.mobile-drawer .close-drawer { align-self: flex-end; background: none; border: none; cursor: pointer; }
.mobile-drawer .close-drawer svg { width: 24px; height: 24px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 130px 0 110px; color: #fff; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,14,.92) 10%, rgba(10,12,14,.55) 60%, rgba(0,144,204,.35) 100%); }
.hero .container { position: relative; z-index: 1; max-width: 720px; }
.hero .eyebrow { color: #7fd4ff; }
.hero .eyebrow::before { background: #7fd4ff; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero p { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 52ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Page hero (interior pages) */
.page-hero { position: relative; padding: 150px 0 64px; color: #fff; background-size: cover; background-position: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,12,14,.9), rgba(0,105,154,.75)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.page-hero p { color: rgba(255,255,255,.85); margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.75); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.breadcrumb a { color: #fff; text-decoration: none; font-weight: 700; }

/* ===== Sections ===== */
.section { padding: 82px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-header.left { margin-left: 0; text-align: left; }

/* Intro split */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.intro-split img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; height: 100%; }
@media (max-width: 900px) { .intro-split { grid-template-columns: 1fr; } }

/* Stat strip */
.stat-strip { background: var(--color-black); color: #fff; }
.stat-strip .container { display: flex; flex-wrap: wrap; gap: 60px; padding-top: 34px; padding-bottom: 20px; justify-content: center; }
.stat-item { text-align: center; flex: 0 1 160px; }
.stat-item .num { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.stat-item .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.75); font-weight: 600; }

.service-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 4px; }
.service-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-family: var(--font-heading); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.service-badges svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; }

/* Expertise / service cards */
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.expertise-card { background: #fff; border: 1px solid var(--color-border); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); padding: 32px 26px; box-shadow: var(--shadow); }
.expertise-card .icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--color-primary); color: #fff; margin-bottom: 18px; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.expertise-card .icon-wrap svg { width: 28px; height: 28px; }
.expertise-card h3 { margin-bottom: 8px; }
.expertise-card p { color: var(--color-text-muted); font-size: .93rem; margin: 0; }

/* Realisations gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery-grid a { position: relative; overflow: hidden; display: block; aspect-ratio: 4/3; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-grid a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.6) 100%); opacity: 0; transition: opacity .25s ease; }
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: .95rem; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.gallery-grid a:hover .cap { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(8,10,12,.94); }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 88vw; max-height: 80vh; object-fit: contain; box-shadow: var(--shadow-lg); }
.lightbox-caption { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: #fff; font-family: var(--font-heading); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; }
.lightbox-close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: #fff; cursor: pointer; padding: 8px; }
.lightbox-close svg { width: 28px; height: 28px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .2s; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--color-primary); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-prev svg, .lightbox-next svg { width: 24px; height: 24px; }
body.lightbox-open { overflow: hidden; }

/* Service detail blocks */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding: 60px 0; border-bottom: 1px solid var(--color-border); }
.service-block:last-child { border-bottom: none; }
.service-block:nth-child(even) .service-media { order: 2; }
.service-media img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); box-shadow: var(--shadow-lg); width: 100%; }
.service-media.icon-only { display: flex; align-items: center; justify-content: center; background: var(--color-bg-alt); aspect-ratio: 4/3; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
.service-media.icon-only svg { width: 120px; height: 120px; color: var(--color-primary); opacity: .9; }
@media (max-width: 800px) { .service-block { grid-template-columns: 1fr; gap: 26px; padding: 40px 0; } .service-block:nth-child(even) .service-media { order: 0; } }

/* Values */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.value-card { text-align: center; padding: 20px; }
.value-card .icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--color-bg-alt); color: var(--color-primary); margin-bottom: 16px; }
.value-card .icon-wrap svg { width: 30px; height: 30px; }

/* Contact CTA (no form) */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-feature { background: #fff; border: 1px solid var(--color-border); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); padding: 30px; box-shadow: var(--shadow); text-align: center; }
.contact-feature .icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: var(--color-primary); color: #fff; margin-bottom: 16px; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.contact-feature .icon-wrap svg { width: 24px; height: 24px; }
.contact-feature h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-feature a, .contact-feature p { color: var(--color-text-muted); text-decoration: none; margin: 0; }
.contact-feature a { color: var(--color-primary); font-weight: 700; }
.map-embed { width: 100%; min-height: 380px; border: 0; box-shadow: var(--shadow); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--color-black), #01364f); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); padding: 50px 54px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* History timeline */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 800px; margin: 0 auto; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px dashed var(--color-border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-item .year { font-family: var(--font-heading); font-weight: 800; color: var(--color-primary); font-size: 1.2rem; }
.timeline-item h3 { margin-bottom: 6px; }
.timeline-item p { color: var(--color-text-muted); margin: 0; font-size: .93rem; }
@media (max-width: 600px) { .timeline-item { grid-template-columns: 1fr; gap: 6px; } }

/* Footer */
.site-footer { background: var(--color-black); color: rgba(255,255,255,.75); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-family: var(--font-heading); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-brand img { height: 56px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 36ch; font-size: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.78); font-weight: 600; font-size: .92rem; }
.footer-links a:hover { color: var(--color-primary); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a, .footer-contact span { text-decoration: none; color: rgba(255,255,255,.78); font-weight: 600; display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background-color .2s; }
.footer-social a:hover { background: var(--color-primary); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.8); text-decoration: none; }

/* Responsive */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
  .section { padding: 56px 0; }
  .hero { padding: 100px 0 70px; }
}
