/* =========================================================
   Mass Discount Floors — Stylesheet
   Brand palette pulled from logo (deep red, charcoal, cream)
   ========================================================= */

:root {
  /* Brand */
  --brand-red: #b6262b;          /* deep brick red from logo */
  --brand-red-dark: #8e1c20;
  --brand-red-light: #d63a40;

  /* Surfaces — warm dark, not flat black */
  --bg: #131418;                 /* page background */
  --bg-elevated: #1c1e24;        /* cards, sections */
  --bg-elevated-2: #24262d;      /* secondary cards / form fields */
  --border: #2e3138;
  --border-strong: #3e424b;

  /* Text */
  --text: #ece8e0;               /* warm cream */
  --text-dim: #b9b3a8;
  --text-muted: #8a857d;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow:    0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.55);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-display: 'Manrope', var(--font);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* Subtle wood-grain inspired ambient texture in the background.
   Pure CSS — no extra HTTP request. Layered very subtly. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(182,38,43,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(182,38,43,0.06), transparent 60%);
}
body > * { position: relative; z-index: 1; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-red-light);
  margin-bottom: 1rem;
}
.lede { font-size: 1.15rem; color: var(--text-dim); max-width: 60ch; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
section { padding: 5rem 0; }
@media (max-width: 700px) { section { padding: 3.5rem 0; } }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 20, 24, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.brand img { height: 64px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-dim);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--brand-red-light) !important;
  white-space: nowrap;            /* keep icon + number on one line */
  flex-shrink: 0;                 /* never let flex squish this link */
}
.nav-phone .phone-text {
  white-space: nowrap;            /* belt-and-suspenders */
  word-break: keep-all;
}
/* Hide the secondary text links so the phone + button don't get crammed */
@media (max-width: 820px) {
  .nav-links { gap: .9rem; }
  .nav-links a:not(.btn):not(.nav-phone) { display: none; }
}
/* On mobile, shrink everything just enough so the logo + phone number + button
   all fit horizontally without the phone number getting hidden. */
@media (max-width: 480px) {
  .nav { gap: .4rem; }
  .nav-links { gap: .55rem; }
  .brand img { height: 44px; }
  .nav-phone { font-size: .85rem; gap: .25rem; }
  .nav-phone svg { width: 14px; height: 14px; }
  .btn { padding: .55rem .85rem; font-size: .85rem; }
  .container { padding: 0 .75rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(182,38,43,.35);
}
.btn-primary:hover { background: var(--brand-red-light); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(182,38,43,.45); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,.04); }

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 7rem;
  background:
    linear-gradient(180deg, rgba(19,20,24,.55) 0%, rgba(19,20,24,.85) 60%, var(--bg) 100%),
    url('../assets/images/hero.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero::after {
  /* subtle red accent strip at bottom edge */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
  opacity: .5;
}
.hero-inner {
  max-width: 760px;            /* keep the headline + copy comfortably readable */
}
/* Logo at the top of the hero, above the eyebrow text.
   Light card treatment so the logo's white background looks intentional
   against the dark hero. Centered horizontally. */
.hero-logo {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2rem;
  background: linear-gradient(180deg, #fff 0%, #f3eee5 100%);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .4);
  line-height: 0;
}
.hero-logo img {
  max-height: 220px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .hero-logo { padding: .75rem 1.1rem; margin-bottom: 1.5rem; }
  .hero-logo img { max-height: 130px; }
}

.hero-content h1 { margin-bottom: 1.25rem; }
.hero-content h1 .accent { color: var(--brand-red-light); }
.hero-content p { color: var(--text-dim); font-size: 1.15rem; max-width: 50ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-meta {
  margin-top: 2.25rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: .92rem;
}
.hero-meta strong { color: var(--text); display: block; font-size: 1.05rem; font-family: var(--font-display); }

@media (max-width: 900px) {
  .hero { padding: 4rem 0 5rem; }
}

/* ---------- services ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .lede { margin: 1rem auto 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-red);
  background: var(--bg-elevated-2);
}
.service-card .icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  display: grid; place-items: center;
  margin-bottom: 1rem;
  color: #fff;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.service-card p { color: var(--text-dim); font-size: .94rem; }

/* ---------- gallery strip ---------- */
.gallery {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-grid figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #000;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .03em;
}
@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- service area ---------- */
.area {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.area-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.area-states {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem;
}
.state-chip {
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: .9rem;
}
.state-chip.primary { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.area-cta {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.area-cta h3 { margin-bottom: .75rem; }
.area-cta p { color: var(--text-dim); margin-bottom: 1.25rem; }
.phone-big {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-red-light);
  display: inline-flex; align-items: center; gap: .6rem;
}
@media (max-width: 800px) { .area-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- quote page ---------- */
.page-hero {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: .9rem; }
.page-hero p { color: var(--text-dim); max-width: 60ch; }

.quote-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; gap: 2rem; } }

.quote-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.quote-side {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky; top: 90px;
}
.quote-side h3 { margin-bottom: .75rem; }
.quote-side ul { list-style: none; padding: 0; margin-top: 1rem; }
.quote-side li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  display: flex; align-items: center; gap: .6rem;
}
.quote-side li:last-child { border-bottom: none; }
.quote-side .check { color: var(--brand-red-light); }
.quote-side .phone-big { font-size: 1.5rem; margin-top: 1rem; }

/* ---------- forms ---------- */
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--text);
}
label .req { color: var(--brand-red-light); margin-left: .15rem; }
input, select, textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(182,38,43,.18);
}
textarea { resize: vertical; min-height: 130px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b9b3a8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.4rem;
}
/* honeypot — hidden from real users, visible to dumb bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.form-submit { margin-top: .5rem; }
.note { color: var(--text-muted); font-size: .85rem; margin-top: 1rem; }

/* alerts (PHP messages) */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border: 1px solid;
}
.alert-success { background: rgba(40, 120, 60, .12); border-color: rgba(80, 180, 100, .4); color: #b6e5be; }
.alert-error   { background: rgba(182, 38, 43, .12); border-color: rgba(214, 58, 64, .4); color: #f3b3b6; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: auto;
  background: #0c0d10;
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  color: var(--text-muted);
  font-size: .9rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: center;
}
.footer-inner a { color: var(--text-dim); }
.footer-inner a:hover { color: var(--text); }
.footer-brand {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-display); font-weight: 700; color: var(--text);
}
.footer-brand img { height: 32px; }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top