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

/* === PHONE LINK VISIBILITY CONTROL ===
   Hidden by default to prevent flicker until JS decides to show */
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 { max-width: 1100px; margin: 0 auto; padding: 0 20px }

.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: 100px;
}
.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;
}

/* =========================
   Site Navigation
========================= */
.site-nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}

.site-nav a.btn {
  background: var(--bg);
  color: #fff;
  padding: 10px 14px;
}

/* =========================
   Menu Toggle (mobile trigger)
========================= */
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
}

/* =========================
   Dropdown Menu
========================= */
.has-submenu {
  position: relative;
}

/* Hide submenu completely until hover */
.submenu {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background: #fff;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  min-width: 200px;
  z-index: 999;
  transition: opacity 0.15s ease-in-out;
}

/* Dropdown arrow indicator */
.has-submenu > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.8em;
}

/* Show submenu only on hover */
.has-submenu:hover > .submenu {
  display: flex;
  visibility: visible;
  opacity: 1;
}

/* Stack submenu items vertically */
.submenu li {
  display: block;
  width: 100%;
}

.submenu li a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.submenu li a:hover {
  background: #f4f8fb;
}

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

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

/* =========================
   End Hero Section
========================= */

.lead { font-size: 18px; color: var(--muted); margin: 0 0 20px }
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid;
  border-color: var(--primary);
  border-radius: 12px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.intro { 
  padding: 48px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}

.frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e6edf3;
  box-shadow: 0 6px 28px rgba(16,38,63,.08);
}

.cards { 
  padding: 8px 0 36px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

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

/* 👇 New rules to align titles across the grid */
.card img {
  display: block;
  height: 120px;       /* match tallest icon */
  width: auto;
  margin: 0 auto 12px; /* center + spacing below */
  object-fit: contain;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.card .arrow { 
  margin-top: auto; 
  justify-self: start; 
}

.band {
  background: var(--band);
  border-top: 1px solid #e6edf3;
  border-bottom: 1px solid #e6edf3;
}
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}

.page-header {
  background: linear-gradient(0deg,#f9fbfe,#fff);
  border-bottom: 1px solid #e6edf3;
  padding: 30px 0 20px;
}
.page { padding-bottom: 30px }
.service-sections {
  display: grid;
  gap: 18px;
  padding: 26px 0;
}
.service-sections article {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: var(--radius);
  padding: 16px;
}
.service-sections h2 { margin: 0 0 6px }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  padding: 26px 0;
}
.gallery-item {
  border: 1px solid #e6edf3;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}
.frame.wide { margin-top: 10px }

.contact-grid { padding: 26px 0 }
.contact-card {
  border: 1px solid #e6edf3;
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}
.contact-list { list-style: none; margin: 0; padding: 0 }
.contact-list li { margin: 6px 0 }

.site-footer {
  border-top: 1px solid #e6edf3;
  margin-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  padding: 20px 0;
}
.foot-note { grid-column: 1 / -1; color: var(--muted) }

/* HERO IMAGE BEHAVES LIKE background-size: 1160px auto */
.hero {
  position: relative;
  overflow: hidden;
  color: #000;
  text-align: center;
}

/* fix image alignment and sizing */
.hero picture,
.hero img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);  /* center horizontally */
  width: 1160px;                /* fixed image width */
  height: auto;
  max-width: none;              /* prevent shrinking to container */
  z-index: 0;
}

/* ensure text stays above */
.hero .container {
  position: relative;
  z-index: 1;
}
