:root {
  --blue: #1515ff;
  --blue-dark: #0b0bb8;
  --ink: #1d1d1f;
  --text: #585858;
  --light: #f4f5f8;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Poppins, Arial, sans-serif; color: var(--text); line-height: 1.7; font-size: 16px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.center { text-align: center; }

.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; padding: 14px 28px;
  font-weight: 600; border: 2px solid var(--blue); cursor: pointer; font: inherit; font-weight: 600; transition: background .2s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { color: #fff; }

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.brand img { height: 100px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.phone { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.phone svg { width: 22px; height: 22px; fill: var(--blue); }
.main-nav { background: var(--blue); }
.main-nav .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 34px; padding: 14px 0; }
.main-nav a { color: #fff; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { border-bottom-color: #fff; }
.menu-toggle { display: none; background: var(--blue); color: #fff; border: 0; padding: 10px 16px; font: inherit; }

/* Hero */
.hero { background-size: cover; background-position: center; position: relative; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(10, 14, 40, .62); }
.hero .wrap { position: relative; padding: 130px 0 120px; max-width: 900px; margin-left: max(20px, (100% - var(--wrap)) / 2); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.hero p { font-size: 1.15rem; max-width: 760px; margin-bottom: 1.8em; }

.page-banner { background: url('/images/banner.jpg') center/cover; position: relative; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(10, 14, 40, .6); }
.page-banner .wrap { position: relative; padding: 90px 0; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; }

/* Sections */
section { padding: 70px 0; }
.hero, .page-banner { padding: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.prose { max-width: 860px; }
.quote-box { background: var(--light); padding: 36px; }
.quote-box h3 { color: var(--blue); }
.quote-form { display: grid; gap: 14px; }
.quote-form label { display: grid; gap: 4px; font-weight: 500; color: var(--ink); font-size: .95rem; }
.quote-form input, .quote-form textarea { font: inherit; padding: 12px; border: 1px solid #cfd2da; background: #fff; }
.quote-form input:focus, .quote-form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.quote-form .hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; padding: 12px; }
.form-msg.ok { background: #e7f7ec; color: #145c2c; }
.form-msg.err { background: #fdeaea; color: #8a1c1c; }

.services-band { background: var(--light); }
.services-band h2 { text-align: center; }
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin: 30px 0; }
.cards .card { flex: 0 1 calc((100% - 56px) / 3); }
.card { background: #fff; text-decoration: none; color: inherit; box-shadow: 0 6px 24px rgba(0,0,0,.08); transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { display: block; padding: 20px 22px; }
.card h4 { font-size: 1.2rem; margin-bottom: .3em; }
.more { color: var(--blue); font-weight: 600; }
.feature-img { width: 100%; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.feature-img.poster { max-width: 460px; margin-inline: auto; }
.specs { list-style: none; padding: 0; margin: 1.4em 0; display: flex; flex-wrap: wrap; gap: 16px; }
.specs li { background: var(--light); border-left: 4px solid var(--blue); padding: 14px 20px; min-width: 200px; }
.specs strong { display: block; color: var(--ink); font-size: 1.6rem; line-height: 1.2; }
.specs span { font-size: .95rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 40px; }
.tile img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: opacity .2s; }
.tile:hover img { opacity: .85; }

.contact-list h3 { font-size: 1.1rem; margin: 1.2em 0 .2em; }
.contact-list h3:first-child { margin-top: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 92vw; }
.lb-close { position: absolute; top: 12px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; }

/* Footer */
.site-footer { background: #11131c; color: #c9cbd3; padding: 60px 0 20px; }
.site-footer h3 { color: #fff; font-size: 1.15rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-nav { display: grid; gap: 4px; }
.footer-nav a { text-decoration: none; }
.copyright { border-top: 1px solid #2a2d3a; margin-top: 40px; padding-top: 18px; font-size: .9rem; }

/* Live weather */
.weather { background: #11131c; color: #c9cbd3; padding: 36px 0; }
.weather h2 { color: #fff; font-size: 1.3rem; margin-bottom: 18px; }
.wx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wx-tile { background: rgba(255,255,255,.06); border-top: 3px solid var(--blue); padding: 14px 18px; }
.wx-label { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.wx-tile strong { display: block; color: #fff; font-size: 1.7rem; line-height: 1.3; }
.wx-note { font-size: .9rem; }
.wx-updated { margin: 14px 0 0; font-size: .85rem; }
button.wx-tile { font: inherit; color: inherit; text-align: left; border: 0; border-top: 3px solid var(--blue); cursor: pointer; transition: background .15s; }
button.wx-tile:hover, button.wx-tile:focus-visible { background: rgba(255,255,255,.12); outline: none; }
.wx-more { display: block; margin-top: 6px; font-size: .8rem; color: #9fa6ff; }

/* Weather history popup */
.wxh { position: fixed; inset: 0; z-index: 60; background: rgba(10,12,20,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wxh[hidden] { display: none; }
.wxh-open { overflow: hidden; }
.wxh-card { background: #fff; width: min(820px, 100%); max-height: 100%; overflow: auto; padding: 20px 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.wxh-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wxh-title { font-size: 1.3rem; margin: 0; }
.wxh-close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: #555; padding: 0 4px; }
.wxh-ranges { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.wxh-ranges button { font: inherit; font-size: .9rem; padding: 7px 14px; border: 1px solid #cfd2da; background: #fff; color: var(--ink); cursor: pointer; }
.wxh-ranges button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.wxh-body { position: relative; min-height: 260px; }
.wxh-summary { margin: 4px 0 6px; font-weight: 600; color: var(--ink); }
.wxh-legend { display: flex; gap: 18px; font-size: .85rem; margin-bottom: 4px; }
.wxh-legend i, .wxh-tip i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.wxh-plot svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.wxh-plot text { font-family: Poppins, Arial, sans-serif; }
.wxh-tip { position: absolute; top: 60px; background: #11131c; color: #fff; padding: 8px 10px; font-size: .82rem; line-height: 1.5; pointer-events: none; white-space: nowrap; }
.wxh-when { color: #c9cbd3; }
.wxh-msg { padding: 40px 0; text-align: center; }
.wx-admin { margin-top: 36px; padding-top: 24px; border-top: 1px solid #e3e5ea; }
.wx-admin h2 { font-size: 1.3rem; }
.wx-admin .admin-out { color: #555; border-color: #bbb; margin: 8px 0 0; }
@media (max-width: 860px) { .wx-grid { grid-template-columns: repeat(2, 1fr); } }

/* Empty gallery (e.g. Laser Cutting before photos are added) */
.work:has(.gallery:empty) { display: none; }
.work { padding-top: 0; }

/* Owner tools */
.admin-on { padding-bottom: 90px; }
.admin-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #11131c; color: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.25); }
.admin-bar .btn { padding: 12px 20px; }
.admin-msg { flex: 1; font-size: .95rem; }
.admin-out { background: none; border: 1px solid #555; color: #ccc; padding: 8px 12px; font: inherit; font-size: .85rem; cursor: pointer; margin-left: auto; }
.admin-gallery .tile { position: relative; }
.admin-del { position: absolute; top: 8px; right: 8px; min-width: 40px; height: 40px; border-radius: 20px; border: 0;
  background: rgba(0,0,0,.7); color: #fff; font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 12px; }
.admin-del.confirm { background: #c62828; font-size: .9rem; }
.manage-page { background: var(--light); }
.manage-box { max-width: 420px; margin: 40px auto; background: #fff; padding: 32px 28px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.manage-logo { height: 120px; margin: 0 auto 20px; }
.manage-box .btn { width: 100%; text-align: center; }

@media (max-width: 1100px) {
  .cards .card { flex-basis: calc((100% - 28px) / 2); }
}
@media (max-width: 860px) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  .cards .card { flex-basis: 100%; }
  .header-actions .btn { display: none; }
  .phone { font-size: 1rem; }
  .brand img { height: 72px; }
  .menu-toggle { display: block; }
  .header-top { flex-wrap: wrap; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav .wrap { flex-direction: column; align-items: center; }
  .hero .wrap { padding: 80px 0; }
  .quote-box { padding: 24px; }
}