/* Northern Michigan Trimlight — lean rebuild
   No web fonts, no icon kits, no JS frameworks. */

:root {
  --navy: #0b1220;
  --navy-light: #141f35;
  --gold: #f2b134;
  --gold-dark: #d4941a;
  --cream: #faf7f0;
  --text: #1c2333;
  --text-muted: #5a6274;
  --border: #e7e2d6;
  --radius: 10px;
  --max: 1120px;
  --shadow: 0 8px 24px rgba(11, 18, 32, 0.12);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 60px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}

nav.primary ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav.primary a {
  text-decoration: none;
  color: #dfe4ee;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: #fff;
  border-color: var(--gold);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.phone-link svg { vertical-align: -3px; margin-right: 6px; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.btn:hover { background: var(--gold-dark); }

.btn.large { padding: 15px 30px; font-size: 1.05rem; }

.btn.ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn.ghost:hover { background: rgba(255,255,255,0.1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 6px;
  cursor: pointer;
}

/* Hero */
.hero {
  background:
    url("../images/web/hero-home.jpg") center right / cover no-repeat,
    var(--navy);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(11,18,32,0.94) 0%, rgba(11,18,32,0.75) 42%, rgba(11,18,32,0.35) 75%);
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 27%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p.tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: #cfd6e4;
  margin: 0 0 24px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #cfd6e4;
  margin: 0 0 30px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 72px 0; }

section.alt { background: #fff; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .eyebrow { display: block; text-align: center; color: var(--gold-dark); }

.section-head h1,
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 6px 0 12px;
}

.section-head p { color: var(--text-muted); margin: 0; }

/* Feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(242,177,52,0.15);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.card.card-photo {
  padding: 0;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.card-photo img.crop-top {
  object-position: center 15%;
}

.section-cta {
  text-align: center;
  margin-top: 36px;
}

.card-photo .card-body {
  padding: 24px 26px 30px;
}

.card-photo .card-body h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card-photo .card-body p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 { margin: 0 0 8px; font-size: 1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Stats strip */
.stats-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stats-grid .stat strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 4px;
}

.stats-grid .stat span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Team / install split */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.team-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.split .copy .eyebrow { display: block; }
.split .copy h2 { margin: 6px 0 14px; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.split .copy p { color: var(--text-muted); margin: 0 0 14px; }

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.yt-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--navy);
  box-shadow: var(--shadow);
  display: block;
  width: 100%;
}

.yt-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}

.yt-embed:hover img { transform: scale(1.05); }

.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.25);
  transition: background .15s;
}

.yt-embed:hover .yt-play::before { background: rgba(11, 18, 32, 0.4); }

.yt-play svg {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 18px;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.75);
  color: #fff;
  transition: background .15s, transform .15s;
}

.yt-embed:hover .yt-play svg { background: var(--gold); color: var(--navy); transform: scale(1.08); }

.yt-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(11,18,32,0.85), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  padding: 30px 16px 12px;
  pointer-events: none;
}

.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: #cfd6e4; margin: 0 0 28px; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
  margin: 0;
  cursor: pointer;
}

.gallery-item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(11,18,32,0.85), transparent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 22px 12px 10px;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}

.lightbox::backdrop {
  background: rgba(11, 18, 32, 0.94);
}

.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  margin: 16px 0 0;
  font-size: 0.95rem;
}

.lightbox-btn {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 18, 32, 0.7);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}

.lightbox-btn:hover { background: rgba(11, 18, 32, 0.92); }
.lightbox-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 20px; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-btn { width: 40px; height: 40px; }
}

.gallery-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 24px;
}

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold-dark);
  flex-shrink: 0;
  transition: transform .15s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table th, .pricing-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.pricing-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-intro {
  max-width: 780px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  text-align: center;
}

.pricing-note {
  max-width: 780px;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.factors-block {
  max-width: 780px;
  margin: 40px auto 0;
}

.factors-block h3 {
  text-align: center;
  font-size: 1.1rem;
  margin: 0 0 18px;
}

.factors-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.factors-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.factors-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

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

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: var(--text);
  background: #fdfcf9;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

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

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-card h3 { margin-top: 0; }

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.info-row svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.info-row div { font-size: 0.95rem; color: #dfe4ee; }
.info-row strong { display: block; color: #fff; margin-bottom: 2px; }

/* Footer */
footer.site {
  background: var(--navy);
  color: #b7bfd0;
  padding: 40px 0 28px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site a { color: #dfe4ee; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 5px;
  padding: 3px 6px;
}

.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.social-link {
  display: inline-flex;
  align-items: center;
  color: #dfe4ee;
  transition: color .15s;
}

.social-link:hover { color: var(--gold); text-decoration: none; }

/* Responsive */
@media (max-width: 860px) {
  nav.primary { display: none; width: 100%; order: 3; }
  nav.primary.open { display: block; }
  nav.primary ul { flex-direction: column; gap: 0; padding: 10px 0 6px; }
  nav.primary a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-bar { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .factors-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split > img { max-height: 320px; object-fit: cover; }
  .team-grid { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  section { padding: 52px 0; }
}
