/* North Star Engineering & Inspection — shared stylesheet */

:root {
  --navy: #17273f;
  --navy-800: #1e3252;
  --navy-700: #274066;
  --steel: #5a6b80;
  --ink: #26313d;
  --gold: #f2a71b;
  --gold-dark: #d18f0a;
  --bg: #f4f6f8;
  --line: #dfe5ec;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(23, 39, 63, 0.08);
  --shadow-lg: 0 8px 28px rgba(23, 39, 63, 0.16);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-700); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav ---------- */

.topbar {
  background: var(--navy);
  color: #c8d3e2;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.topbar a { color: #fff; text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: var(--gold); }
.topbar .tagline { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
.topbar .top-contact { display: flex; gap: 1.25rem; }

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}

.site-nav > ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.submenu { list-style: none; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 0.65rem 0.9rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 6px;
}
.site-nav a:hover { background: var(--bg); color: var(--navy-700); }
.site-nav a.active { color: var(--gold-dark); }
.site-nav a[aria-current="page"] { color: var(--gold-dark); }

.has-sub > a::after { content: " ▾"; font-size: 0.7em; }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.submenu a { font-weight: 500; padding: 0.55rem 1.1rem; border-radius: 0; text-align: left; }
.has-sub.open .submenu { display: flex; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  background: var(--navy) url("/images/cover.webp") center 65% / cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 31, 51, 0.72), rgba(19, 31, 51, 0.55));
}
.hero .container { position: relative; padding: 6rem 1.25rem 6.5rem; }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.hero p.sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 46rem;
  margin: 0 auto 2rem;
  color: #e4ebf4;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero .est {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  color: #f4d792;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.btn-gold { background: var(--gold); color: #1d1503; }
.btn-gold:hover { background: #ffc042; }
.btn-outline { border: 2px solid #fff; color: #fff; margin-left: 0.6rem; }
.btn-outline:hover { background: rgba(255,255,255,0.14); }

/* ---------- Page header band (inner pages) ---------- */

.page-head {
  background:
    linear-gradient(rgba(23,39,63,0.94), rgba(30,50,82,0.94)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.07) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,0.07) 39px 40px),
    var(--navy);
  background-blend-mode: normal;
  color: #fff;
  padding: 3rem 0 3.2rem;
  border-bottom: 4px solid var(--gold);
}
.page-head h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.page-head .lede { color: #c9d5e5; max-width: 52rem; margin-top: 0.6rem; font-size: 1.05rem; }

/* ---------- Sections / content ---------- */

.section { padding: 3.25rem 0; }
.section.alt { background: var(--white); }

.section h2 {
  color: var(--navy);
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gold);
  margin-top: 0.5rem;
  border-radius: 2px;
}
.kicker {
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.prose p { margin-bottom: 1.05rem; max-width: 68rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 1.05rem 1.4rem; }
.notice {
  background: #fdf3e0;
  border-left: 4px solid var(--gold);
  padding: 0.85rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  color: #6b4e0a;
  margin-bottom: 1.25rem;
}

blockquote.reg {
  background: var(--white);
  border-left: 4px solid var(--navy-700);
  box-shadow: var(--shadow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
  font-style: italic;
  color: var(--steel);
}
blockquote.reg cite { display: block; font-style: normal; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }

/* Two-column text + image */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: start; }
.split .photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-top: 4px solid var(--navy);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--gold); }
.card img { height: 170px; width: 100%; object-fit: cover; }
.card .card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card h3 { color: var(--navy); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.45rem; }
.card p { font-size: 0.93rem; color: var(--steel); }
.card .more { color: var(--gold-dark); font-weight: 700; font-size: 0.88rem; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background: var(--navy);
}
.gallery img { width: 100%; height: 190px; object-fit: cover; transition: transform 0.2s ease, opacity 0.2s ease; }
.gallery a:hover img { transform: scale(1.04); opacity: 0.88; }
.gallery figure { margin: 0; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(19,31,51,0.85));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1.4rem 0.75rem 0.55rem;
}

/* ---------- Reviews ---------- */

.stars { color: var(--gold); font-size: 1.9rem; letter-spacing: 0.35rem; }
.home-quote { margin: 1rem auto; font-style: italic; font-size: 1.02rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.review {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
  border-top: 4px solid var(--gold);
  font-style: italic;
  color: var(--ink);
}
.review::before { content: "“"; display: block; font-size: 3rem; line-height: 0.6; color: var(--gold); font-style: normal; margin-bottom: 0.6rem; font-family: Georgia, serif; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; margin-top: 2rem; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.9rem 2rem;
}
.contact-card .item { display: flex; gap: 0.85rem; align-items: baseline; margin-bottom: 1.2rem; }
.contact-card .item .ico { font-size: 1.15rem; }
.contact-card a.big {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-700);
  text-decoration: none;
  word-break: break-all;
}
.contact-card a.big:hover { color: var(--gold-dark); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    linear-gradient(rgba(23,39,63,0.95), rgba(23,39,63,0.95)),
    repeating-linear-gradient(45deg, transparent 0 24px, rgba(242,167,27,0.12) 24px 26px),
    var(--navy);
  color: #fff;
  text-align: center;
  padding: 3.2rem 0;
}
.cta-band h2 { font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.6rem; }
.cta-band p { color: #c9d5e5; margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #b9c6d8; font-size: 0.95rem; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2.2rem;
}
.site-footer h4 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.site-footer a { color: #dbe4ef; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer .brandline img { height: 40px; margin-bottom: 0.9rem; background: #fff; padding: 6px 10px; border-radius: 6px; }
.vet {
  display: inline-block;
  margin-top: 0.8rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Keep the home-page quote on one line once there's room; wraps normally on narrow screens */
@media (min-width: 860px) {
  .home-quote { white-space: nowrap; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .topbar .tagline { display: none; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 1.8rem; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem 0; }
  .site-nav a { padding: 0.8rem 1.4rem; border-radius: 0; }
  /* Submenu is always expanded inside the mobile menu */
  .submenu {
    position: static;
    display: flex;
    border: 0;
    border-left: 3px solid var(--gold);
    margin-left: 1.4rem;
    box-shadow: none;
    border-radius: 0;
  }
  .has-sub > a::after { content: ""; }

  .hero .container { padding: 4rem 1.25rem 4.5rem; }
  .btn-outline { margin-left: 0; margin-top: 0.7rem; }
}
