:root {
  --bg: #0b1a24;
  --primary: #0F7AC3;
  --text: #0e2230;
  --muted: #516371;
  --card: #ffffff;
  --band: #f4f8fb;
  --radius: 18px;
}

/* === PHONE LINK VISIBILITY CONTROL === */
a[href^="tel:"],
a[href^="sms:"] {
  display: none !important;
}


* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

/* Container width and general padding */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   Header and Navigation
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e6edf3;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: auto;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--bg);
  color: #fff;
  font-weight: 800;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: block;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

/* Navigation Menu */
.site-nav {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e6edf3;
  padding: 10px 0;
  z-index: 999;
}

.site-nav.open {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
}

.site-nav a.btn {
  background: var(--bg);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  width: auto;
  margin-left: 16px;
}

/* =========================
   Hero Section
========================= */
.hero {
  position: relative;
  text-align: center;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
  min-height: 400px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 20px;
}

/* =========================
   Layout & Grids
========================= */
.intro,
.cards,
.page-header,
.contact-grid,
.service-sections,
.gallery-grid {
  padding-left: 16px;
  padding-right: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* =========================
   Cards & Content Blocks
========================= */
.frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e6edf3;
  box-shadow: 0 6px 18px rgba(16,38,63,.06);
}

.card {
  background: var(--card);
  border: 1px solid #e6edf3;
  border-radius: var(--radius);
  padding: 10px;
  min-height: 140px;
  display: grid;
  align-content: flex-start;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16,38,63,.05);
}

/* =========================
   Band ("Need a quote")
========================= */
.band {
  background: var(--band);
  border-top: 1px solid #e6edf3;
  border-bottom: 1px solid #e6edf3;
}

.band-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 22px 16px;
}

/* =========================
   Page Header / Services
========================= */
.page-header {
  background: linear-gradient(0deg, #f9fbfe, #fff);
  border-bottom: 1px solid #e6edf3;
  padding: 24px 16px;
}

.service-sections {
  display: grid;
  gap: 16px;
  padding: 20px 0;
}

.service-sections article {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: var(--radius);
  padding: 16px;
}

/* =========================
   Contact & Footer
========================= */
.contact-grid {
  padding: 24px 0;
}

.contact-card {
  border: 1px solid #e6edf3;
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin: 6px 0;
}

/* =========================
   Footer
========================= */
.site-footer {
  border-top: 1px solid #e6edf3;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 20px 16px;
}

.footer-grid > * {
  width: 100%;
}

.foot-note {
  color: var(--muted);
  padding-top: 12px;
  text-align: left;
}

@media (max-width: 900px) {
  .hero[style*="hero-about.jpg"] {
    background-position: left center !important;
  }
}
@media (max-width: 900px) {
  /* Shift the About page hero background to show Ben on mobile */
  .hero[style*="hero-about.jpg"] {
    background-position: left center !important;
  }

  /* Make text readable on Ben’s dark shirt */
  .hero[style*="hero-about.jpg"] h1,
  .hero[style*="hero-about.jpg"] p {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  }
}

@media (max-width: 900px) {
  .hero[style*="hero-about.jpg"] .container {
    padding: 140px 20px 100px 20px !important; /* top ↑ bottom ↓ */
    text-align: center !important; /* or left/right as you prefer */
  }
}

/* FORCE HERO IMAGE TO FILL BACKGROUND ON MOBILE */
.hero {
  position: relative;
  overflow: hidden;
}

.hero picture,
.hero img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
}

/* keep text above the image */
.hero .container {
  position: relative !important;
  z-index: 1 !important;
}

/* =========================
   Card images (mobile)
========================= */
.card img {
  width: 120px;        /* make icons smaller */
  height: auto;       /* maintain proportions */
  margin: 0 auto 10px;
  display: block;
}
