/* ===== AMB Irrigation & Construction — COMPONENTS ===== */

/* ---------- LOGO ---------- */
/* Navbar: light gradient logo sits in a navy rounded box so it stays legible on white */
.logobox {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-800); border-radius: var(--radius);
  padding: 8px 14px; box-shadow: none;
  transition: transform var(--transition);
}
.logobox img { height: 34px; width: auto; display: block; }
.logobox:hover { transform: translateY(-1px); }
/* Footer: navy background, logo reads directly */
.footer__logo { display: inline-flex; }
.footer__logo img { height: 42px; width: auto; display: block; }
@media (max-width: 600px) { .logobox { padding: 8px 13px; } .logobox img { height: 30px; } }

/* ---------- TOP BAR (utility) ---------- */
.topbar {
  background: var(--navy-900); color: rgba(255,255,255,.82);
  font-size: .82rem; font-weight: 500;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: 7px; }
.topbar__items { display: flex; gap: var(--space-6); }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--brand-300); }
.topbar a:hover { color: var(--white); }
@media (max-width: 768px) { .topbar__items { gap: var(--space-4); } .topbar__item--hide { display: none; } }
@media (max-width: 620px) { .topbar__items { display: none; } .topbar__inner { justify-content: center; } }

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.solid { box-shadow: var(--shadow-sm); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: 14px; }
.navbar__nav { display: flex; align-items: center; gap: var(--space-8); }
.navbar__nav a { font-weight: 600; font-size: .96rem; color: var(--text); padding: 6px 0; position: relative; transition: color var(--transition); }
.navbar__nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--brand-700); transition: width var(--transition); }
.navbar__nav a:hover, .navbar__nav a.active { color: var(--brand-700); }
.navbar__nav a.active::after, .navbar__nav a:hover::after { width: 100%; }
.navbar__actions { display: flex; align-items: center; gap: var(--space-4); }

/* Language toggle */
.lang-toggle { display: inline-flex; border: 1px solid var(--border-med); border-radius: var(--radius-full); overflow: hidden; }
.lang-btn { padding: 6px 12px; font-size: .8rem; font-weight: 700; color: var(--text-muted); transition: all var(--transition); }
.lang-btn.active { background: var(--brand-700); color: var(--white); }

.navbar__hamburger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; }
.navbar__hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 0 auto; transition: var(--transition); border-radius: 2px; }

/* Mobile menu */
.navbar__mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px);
  background: var(--white); transform: translateX(100%); transition: transform .3s ease;
  z-index: 200; padding: var(--space-16) var(--space-6) var(--space-6); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: var(--space-2); overflow-y: auto;
}
.navbar__mobile-menu.open { transform: translateX(0); }
.navbar__mobile-menu a { font-size: 1.1rem; font-weight: 600; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.navbar__mobile-menu a.active { color: var(--brand-700); }
.mobile-menu__close { position: absolute; top: var(--space-4); right: var(--space-4); width: 44px; height: 44px; font-size: 1.6rem; color: var(--text-muted); }
.mobile-menu__lang { display: inline-flex; margin-top: var(--space-4); }
.mobile-lang-btn { padding: 8px 16px; font-weight: 700; border: 1px solid var(--border-med); color: var(--text-muted); }
.mobile-lang-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.mobile-lang-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: none; }
.mobile-lang-btn.active { background: var(--brand-700); color: var(--white); border-color: var(--brand-700); }
.mobile-menu__cta { margin-top: var(--space-4); }

@media (max-width: 960px) {
  .navbar__nav, .navbar__actions .lang-toggle, .navbar__actions .btn { display: none; }
  .navbar__hamburger { display: flex; }
}

/* ---------- PILL EYEBROW (over photo) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 13px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); margin-bottom: var(--space-6);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-300); box-shadow: 0 0 0 4px rgba(111,197,236,.22); }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-scrim); }
.hero__inner { position: relative; z-index: 2; padding: clamp(72px, 12vw, 150px) 0 clamp(104px, 14vw, 176px); max-width: 760px; }
.hero h1 {
  color: var(--white); margin-bottom: var(--space-5);
  font-weight: 400; text-transform: uppercase; letter-spacing: -0.005em;
  font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.04;
}
.hero h1 .accent { font-weight: 700; background: linear-gradient(118deg, var(--brand-300) 10%, var(--white)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lead { font-size: 1.18rem; color: rgba(255,255,255,.85); margin-bottom: var(--space-8); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6); }
.hero__reassure { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.82); }
.hero__reassure svg { width: 17px; height: 17px; color: var(--brand-300); flex-shrink: 0; }
.hero__reassure .ri { display: inline-flex; align-items: center; gap: 7px; }
.hero__reassure .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

/* ---------- FLOATING STATS BAR ---------- */
.stats { position: relative; z-index: 5; margin-top: clamp(-92px, -8vw, -56px); }
.stats__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float); overflow: hidden;
}
.stats__item { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-6); }
.stats__item + .stats__item { border-left: 1px solid var(--border); }
.stats__bubble { width: 46px; height: 46px; border-radius: var(--radius); background: var(--grad-bubble); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 8px 18px rgba(30,157,224,.28); }
.stats__bubble svg { width: 23px; height: 23px; color: var(--white); }
.stats__item strong { display: block; font-family: var(--font-heading); font-size: .98rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.stats__item span { font-size: .82rem; color: var(--text-muted); }
@media (max-width: 900px) {
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .stats__item { border-left: none; }
  .stats__item:nth-child(even) { border-left: 1px solid var(--border); }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 540px) {
  .stats { margin-top: var(--space-8); }
  .stats__inner { grid-template-columns: 1fr; }
  .stats__item { border-left: none !important; }
  .stats__item + .stats__item { border-top: 1px solid var(--border); }
}

/* ---------- TWO-COLUMN INTRO ---------- */
.intro__grid { display: grid; grid-template-columns: 0.92fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; gap: var(--space-8); } }
.intro__bar { width: 56px; height: 4px; border-radius: 2px; background: var(--grad-bubble); margin-bottom: var(--space-5); }
.intro__lead { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.55rem, 2.7vw, 2.2rem); line-height: 1.18; letter-spacing: -0.01em; color: var(--text); }
.intro__lead .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.intro__body p { color: var(--text-muted); margin-bottom: var(--space-4); }
.intro__body p:last-child { margin-bottom: 0; }

/* ---------- SERVICE GRID ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: var(--space-8); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--brand-700); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius); background: var(--brand-50);
  border: 1px solid var(--brand-100);
  display: grid; place-items: center; margin-bottom: var(--space-4);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.service-card__icon svg { width: 26px; height: 26px; color: var(--brand-700); }
.service-card:hover .service-card__icon { background: var(--brand-100); border-color: var(--brand-200); transform: translateY(-2px); }
.service-card h3 { margin-bottom: var(--space-3); }
.service-card p { font-size: .96rem; color: var(--text-muted); margin-bottom: var(--space-5); }
.service-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--brand-700); transition: gap var(--transition); }
.service-card__more svg { width: 16px; height: 16px; }
.service-card:hover .service-card__more { gap: 11px; }

/* ---------- AREAS ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 720px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
.area-chip {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600;
}
.section--deep .area-chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: var(--white); }
.area-chip svg { width: 18px; height: 18px; color: var(--brand-500); flex-shrink: 0; }
.section--deep .area-chip svg { color: var(--brand-300); }

/* ---------- AREAS (text + live service-area map) ---------- */
.areas__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .areas__inner { grid-template-columns: 1fr; gap: var(--space-8); } }
.areas__intro { color: rgba(255,255,255,.72); margin-bottom: var(--space-6); max-width: 50ch; }
.areas__chips { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.areas__chips .area-chip { padding: 8px 15px; font-size: .92rem; }
.areas__map {
  position: relative; aspect-ratio: 5/4;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
}
@media (max-width: 860px) { .areas__map { aspect-ratio: 16/11; } }
/* Leaflet controls toned to brand */
.areas__map .leaflet-control-zoom a { color: var(--navy-800); }
.areas__map .leaflet-control-zoom a:hover { color: var(--brand-700); }

/* ---------- SUPPLIERS ---------- */
.suppliers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 80px); }
.suppliers img { height: 42px; width: auto; opacity: .72; filter: grayscale(1); transition: var(--transition); }
.suppliers img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- SPLIT (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__body h2 { margin-bottom: var(--space-4); }
.split__body p { color: var(--text-muted); margin-bottom: var(--space-4); }

/* Feature list */
.feature-list { display: grid; gap: var(--space-3); margin: var(--space-6) 0; }
.feature-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 1rem; }
.feature-list svg { width: 22px; height: 22px; color: var(--brand-700); flex-shrink: 0; margin-top: 1px; }
.section--deep .feature-list svg { color: var(--brand-300); }

/* ---------- CTA BAND (rounded gradient panel) ---------- */
.cta-band { background: var(--white); color: var(--white); }
.cta-band--alt { background: var(--bg-alt); }
.cta-band__inner {
  position: relative; overflow: hidden;
  background: var(--navy-900); border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 60px); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap;
}
.cta-band__inner > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: var(--space-2); }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.cta-band .btn--primary { background: var(--white); color: var(--navy-800); border-color: var(--white); }
.cta-band .btn--primary:hover { background: var(--brand-100); border-color: var(--brand-100); }

/* ---------- PAGE HERO (inner pages) — bold uppercase ---------- */
.page-hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-scrim); }
.page-hero--plain { background: var(--grad-brand); }
.page-hero--plain::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 0%, rgba(255,255,255,.14), transparent 55%); }
.page-hero__inner { position: relative; z-index: 2; padding: clamp(56px, 9vw, 118px) 0; max-width: 780px; }
.page-hero h1 {
  color: var(--white); margin-bottom: var(--space-4);
  font-weight: 400; text-transform: uppercase; letter-spacing: -0.005em;
  font-size: clamp(2.1rem, 4.8vw, 3.7rem); line-height: 1.06;
}
.page-hero h1 .accent { font-weight: 700; background: linear-gradient(118deg, var(--brand-300) 10%, var(--white)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 56ch; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: var(--space-4); display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--bg-alt); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: var(--space-6) var(--space-4) var(--space-3);
  background: linear-gradient(transparent, rgba(4,36,79,.85)); color: var(--white);
  font-size: .9rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: var(--transition);
}
.gallery__item:hover figcaption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(4,36,79,.93); z-index: 300; display: none; align-items: center; justify-content: center; padding: var(--space-6); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: var(--white); width: 52px; height: 52px; border-radius: var(--radius-full); font-size: 1.5rem; display: grid; place-items: center; transition: var(--transition); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: var(--space-6); right: var(--space-6); }
.lightbox__nav--prev { left: var(--space-6); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--space-6); top: 50%; transform: translateY(-50%); }

/* ---------- FORM ---------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.lead-form { display: grid; gap: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 14px; border: 1px solid var(--border-med); border-radius: var(--radius);
  font-size: .98rem; color: var(--text); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--text-subtle); }
.form-error { display: none; padding: var(--space-3) var(--space-4); background: #FDECEC; color: #B42318; border-radius: var(--radius); font-size: .9rem; }
.form-error--visible { display: block; }
.form-success { display: none; text-align: center; padding: var(--space-8) var(--space-4); }
.form-success--visible { display: block; }
.form-success__icon { width: 64px; height: 64px; margin: 0 auto var(--space-4); border-radius: var(--radius-full); background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-size: 2rem; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: var(--space-6); }
.contact-info__item { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-info__item svg { width: 24px; height: 24px; color: var(--brand-700); flex-shrink: 0; margin-top: 3px; }
.contact-info__item strong { display: block; font-family: var(--font-heading); margin-bottom: 2px; }
.contact-info__item a, .contact-info__item span { color: var(--text-muted); }
.contact-info__item a:hover { color: var(--brand-700); }
.avail-list { display: grid; gap: var(--space-2); }
.avail-list li { display: flex; align-items: center; gap: var(--space-3); color: var(--text-muted); }
.avail-list svg { width: 18px; height: 18px; color: var(--brand-600); }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.66); padding-top: var(--space-16); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-8); padding-bottom: var(--space-12); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer__about p { margin-top: var(--space-4); font-size: .92rem; max-width: 40ch; }
.footer h4 { color: var(--white); margin-bottom: var(--space-4); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.footer__links { display: grid; gap: var(--space-3); }
.footer__links a { font-size: .94rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--brand-300); }
.footer__contact { display: grid; gap: var(--space-3); font-size: .94rem; }
.footer__contact a:hover { color: var(--brand-300); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: var(--space-6) 0; display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: .85rem; }

/* ---------- STICKY MOBILE CTA BAR (≤768px) ---------- */
.mobile-cta { display: none; }
@media (max-width: 768px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: var(--white); border-top: 1px solid var(--border);
    box-shadow: 0 -6px 22px rgba(4,36,79,.16);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; font-weight: 700; font-size: .95rem; }
  .mobile-cta svg { width: 18px; height: 18px; }
  .mobile-cta__call { color: var(--brand-700); }
  .mobile-cta__call + .mobile-cta__quote { position: relative; }
  .mobile-cta__quote { background: var(--brand-700); color: var(--white); }
  body { padding-bottom: 62px; }
}

/* ---------- TODO/placeholder note for owner-supplied photos ---------- */
.photo-pending { position: relative; }
