/* =========================================================
   STI Flooring Deluxe — Design System (v2, darker + higher contrast)
   Same brand colors (walnut / honey), moved to a moodier dark base
   so text and borders actually stand out instead of washing out.
   ========================================================= */

:root {
  --honey: #b9812f;
  --honey-light: #e5b876;
  --walnut: #5a3826;
  --walnut-deep: #2c1a10;

  --bg: #1b120c;
  --bg-elevated: #271a12;
  --bg-elevated-2: #322217;
  --nav-bg: rgba(23, 16, 11, 0.94);

  --text: #f5ecdd;
  --text-dim: #cbb69a;
  --text-faint: #9c8a72;

  --border: rgba(232, 218, 194, 0.22);
  --border-strong: rgba(232, 218, 194, 0.42);

  --white: #fffdf9;
  --success: #7fae66;
  --error: #e0836e;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max-w: 1180px;
  --radius: 6px;
  --shadow-soft: 0 16px 34px -16px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em 0;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-light);
  display: inline-block;
  margin-bottom: 0.9em;
}

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

.section { padding: 108px 0; }
.section--tight { padding: 64px 0; }
.section--tan { background: var(--bg-elevated); }
.section--walnut { background: var(--walnut-deep); color: var(--white); }
.section--walnut h2, .section--walnut h3 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--honey); color: #1b120c; }
.btn--primary:hover { background: var(--honey-light); }
.btn--outline { background: transparent; border-color: var(--text-dim); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.08); border-color: var(--honey-light); }
.btn--dark { background: var(--bg); color: var(--white); border-color: var(--border-strong); }
.btn--dark:hover { background: var(--bg-elevated-2); border-color: var(--honey); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 46px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.1;
}
.brand-text span { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--honey-light); text-transform: uppercase; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--text); position: relative; }
.nav-links a:hover { color: var(--honey-light); }

.has-dropdown { position: relative; padding-bottom: 20px; margin-bottom: -20px; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  margin-top: 0;
  padding-top: 8px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  min-width: 240px;
  display: none;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  margin: 0 8px 8px 8px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
}
.dropdown a:last-child { margin-bottom: 8px; }
.dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--honey-light); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem; text-decoration: none; color: var(--text); }
.nav-phone:hover { color: var(--honey-light); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* ---------- Hero (single real photo, no broken slicing) ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--walnut-deep);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 1.4s cubic-bezier(.2,.7,.2,1) forwards;
  transform-origin: center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,13,8,0.92) 0%, rgba(20,13,8,0.78) 42%, rgba(20,13,8,0.55) 100%);
}
@keyframes heroZoom {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; opacity: 1; transform: none; }
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 720px;
  padding: 0 24px;
}
.hero-content h1 { color: var(--white); }
.hero-content p.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero--page { min-height: 46vh; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 32px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-elevated);
  border: 1px solid rgba(232, 218, 194, 0.10);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.card h3 { color: var(--text); }
.card p { color: var(--text-dim); }
.service-card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--border-strong); }
.service-card .icon-num { font-family: var(--font-mono); font-weight: 600; color: var(--honey-light); font-size: 0.85rem; letter-spacing: 0.08em; }
.service-card h3 { margin-top: 10px; }
.service-card a.more { font-weight: 600; font-size: 0.9rem; color: var(--honey-light); text-decoration: none; }
.service-card a.more:hover { color: var(--white); }

.trust-row { display: flex; gap: 40px; flex-wrap: wrap; }
.trust-item { flex: 1; min-width: 220px; }
.trust-item h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; color: var(--text); }
.trust-item p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 26px;
}
.stars { color: var(--honey-light); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 10px; }
.review-card p.text { font-size: 0.96rem; color: var(--paper, #f2e9d8); }
.review-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 0.85rem; color: var(--text-dim); font-family: var(--font-mono); }

/* ---------- Before / after slider ---------- */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  border: 1px solid var(--border-strong);
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: var(--honey); transform: translateX(-50%);
}
.ba-handle::after {
  content: "⇔";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; background: var(--honey); color: #1b120c;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-soft);
}
.ba-label { position: absolute; top: 14px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(0,0,0,0.65); color: var(--white); padding: 5px 10px; border-radius: 3px; }
.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid a { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--border); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--bg-elevated);
  color: var(--text);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-faint); }
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--honey);
  outline-offset: 1px;
  border-color: var(--honey);
}
#form-status { margin-top: 14px; font-weight: 600; font-size: 0.92rem; }
#form-status.ok { color: var(--success); }
#form-status.err { color: var(--error); }

.contact-info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info-card:last-child { border-bottom: none; }
.contact-info-card .ic { font-family: var(--font-mono); color: var(--honey-light); font-size: 1.1rem; }
.contact-info-card div { color: var(--text-dim); }
.contact-info-card strong { color: var(--text); }
.contact-info-card a { color: var(--honey-light); text-decoration: none; }
.contact-info-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #120c07; color: var(--text-dim); padding: 64px 0 28px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--white); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: var(--text-dim); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--honey-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-faint); flex-wrap: wrap; gap: 10px; }

/* ---------- Blog ---------- */
.blog-card { border-bottom: 1px solid var(--border); padding: 30px 0; display: grid; grid-template-columns: 140px 1fr; gap: 26px; align-items: start; }
.blog-card .date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--honey-light); letter-spacing: 0.06em; }
.blog-card h3 { color: var(--text); }
.blog-card p { color: var(--text-dim); }
.blog-post h1 { margin-bottom: 0.3em; }
.blog-post .meta { font-family: var(--font-mono); font-size: 0.82rem; color: var(--honey-light); margin-bottom: 2em; }
.blog-post p { color: var(--text-dim); }
.blog-post h2 { margin-top: 1.4em; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--honey);
  border-radius: var(--radius);
  padding: 48px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 { color: #1b120c; margin: 0; }
.cta-banner p { margin: 6px 0 0; color: #3a2712; }

/* ---------- Service areas ---------- */
.areas-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 24px; list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); font-size: 0.88rem; color: var(--text-dim); }
.areas-list li::before { content: "— "; color: var(--honey-light); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--honey-light);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-dim); margin: 14px 0 0; font-size: 0.96rem; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--honey);
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: #1b120c;
  text-decoration: none;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
}
@media (max-width: 720px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 56px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .areas-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .nav-phone { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-elevated-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .has-dropdown .dropdown { position: static; display: block; box-shadow: none; border: none; margin: 6px 0 0; padding-left: 10px; background: transparent; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-card { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .section { padding: 56px 0; }
}
