/* ============================================
   Mike Norby Flooring — shared styles
   Brand palette (from logo):
     navy   #252364  — main brand / headers
     orange #D76D3A  — accent / buttons / highlights
     plum   #542644  — secondary accent
     ink    #0B0B0B  — text
     paper  #FDFDFD  — background
   ============================================ */

:root {
  --navy: #252364;
  --navy-dark: #1b1a4d;
  --orange: #d76d3a;
  --orange-dark: #bf5c2c;
  --plum: #542644;
  --ink: #0b0b0b;
  --paper: #fdfdfd;
  --gray: #5c5b6b;
  --line: #e7e5f0;
  --tint: #f4f3fa;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(37, 35, 100, 0.10);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand img { height: 56px; width: auto; }

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-name span {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--plum);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { border-bottom-color: var(--orange); }

.nav-links a.active { border-bottom-color: var(--orange); color: var(--plum); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }

.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

.btn.nav-cta { padding: 10px 18px; }

/* ---------- Hero ---------- */

.hero {
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 118px,
      rgba(253, 253, 253, 0.06) 118px 120px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 218px,
      rgba(253, 253, 253, 0.04) 218px 220px
    ),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 60%, var(--plum) 130%);
  color: #fff;
  padding: 88px 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto 18px;
}

.hero h1 em {
  font-style: normal;
  color: #f0a377;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 34px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
}

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

.hero-badge {
  display: inline-block;
  background: rgba(215, 109, 58, 0.18);
  border: 1px solid rgba(240, 163, 119, 0.55);
  color: #f0a377;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

/* Slim hero variant for inner pages */
.hero.hero-slim { padding: 56px 0; }

/* ---------- Trust bar ---------- */

.trust-bar { background: var(--tint); border-bottom: 1px solid var(--line); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 0;
  text-align: center;
}

.trust-grid strong {
  display: block;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
}

.trust-grid span { color: var(--gray); font-size: 0.92rem; }

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

.section { padding: 72px 0; }

.section-alt { background: var(--tint); }

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

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-head h2, .section h2 {
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
}

.section-head p { color: var(--gray); margin-top: 14px; }

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

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

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

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card .icon svg { width: 28px; height: 28px; }

.card h3 { color: var(--navy); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }

.card p { color: var(--gray); font-size: 0.95rem; }

.card ul {
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
  color: var(--gray);
  font-size: 0.92rem;
}

.card ul li { padding: 4px 0 4px 24px; position: relative; }

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--orange);
}

/* ---------- About / split section ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split h2 { margin-bottom: 18px; }

.split p { color: var(--gray); margin-bottom: 16px; }

.split .btn { margin-top: 8px; }

.logo-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-panel img { max-width: 340px; width: 100%; }

.checklist { list-style: none; margin-top: 8px; }

.checklist li {
  position: relative;
  padding: 6px 0 6px 34px;
  font-weight: 600;
  color: var(--navy);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

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

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 8px; }

.step p { color: var(--gray); font-size: 0.95rem; }

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

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--plum) 140%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 { color: #fff; margin-bottom: 12px; }

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 30px;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
}

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

.info-card h3 { font-size: 1.3rem; margin-bottom: 8px; }

.info-card > p { color: rgba(255, 255, 255, 0.8); margin-bottom: 26px; font-size: 0.95rem; }

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.info-item .icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(215, 109, 58, 0.25);
  color: #f0a377;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item .icon svg { width: 20px; height: 20px; }

.info-item strong { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #f0a377; }

.info-item a { color: #fff; text-decoration: none; font-weight: 600; }
.info-item a:hover { text-decoration: underline; }

.info-item p { color: rgba(255, 255, 255, 0.92); }

/* ---------- Form ---------- */

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

.form-card h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 6px; }

.form-card > p { color: var(--gray); font-size: 0.95rem; margin-bottom: 24px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

/* Honeypot spam trap — moved off-screen, not display:none, so bots still fill it */
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field.full { grid-column: 1 / -1; }

.field label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}

.field label .req { color: var(--orange); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 110px; }

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

.form-actions { grid-column: 1 / -1; margin-top: 6px; }

.form-actions .btn { width: 100%; }

.form-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status.success { display: block; background: #e8f5ec; color: #1e6b3a; border: 1px solid #bfe3cb; }

.form-status.error { display: block; background: #fdeeee; color: #a02c2c; border: 1px solid #f2c6c6; }

/* ---------- Photo gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: none;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

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

/* Lightbox (markup injected by main.js) */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 11, 11, 0.93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 76vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
  max-width: 84vw;
}

.lb-btn {
  position: fixed;
  z-index: 201;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-btn:hover { background: var(--orange); }

.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

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

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 0;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 64px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; }

.footer-grid li { padding: 4px 0; }

.footer-grid a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }

.footer-grid a:hover { color: #f0a377; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

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

@media (max-width: 900px) {
  .card-grid, .steps { grid-template-columns: 1fr 1fr; }
  .split, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .logo-panel { order: -1; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-top: 1px solid var(--line); }

  .nav-links a { display: block; padding: 14px 2px; border-bottom: none; }

  .nav-links .nav-cta { margin: 14px 0 0; }

  .card-grid, .steps, .trust-grid, .form-grid { grid-template-columns: 1fr; }

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

  .hero { padding: 64px 0; }

  .section { padding: 56px 0; }
}
