/*
Theme Name: Ember Flooring
Theme URI: https://example.com/ember-flooring
Author: Codex
Description: A one-page flooring business theme with editable Customizer text, image sections, and custom CSS.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ember-flooring
*/

:root {
  --ember-black: #111;
  --ember-dark: #1a1a1a;
  --ember-mid: #3a3c41;
  --ember-muted: #777;
  --ember-light: #f5f5f5;
  --ember-off: #fafafa;
  --ember-white: #fff;
  --ember-orange: #ff684c;
  --ember-amber: #ffa54c;
  --ember-border: #e8e8e8;
  --ember-heading: "Arial Black", "Open Sans", Arial, sans-serif;
  --ember-body: "Open Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ember-white);
  color: var(--ember-black);
  font-family: var(--ember-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

.topbar {
  background: var(--ember-black);
  color: rgba(255,255,255,.72);
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.topbar a { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--ember-orange); }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 66px;
  padding: 0 40px;
  background: var(--ember-white);
  border-bottom: 1px solid var(--ember-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.nav-logo, .footer-logo {
  font-family: var(--ember-heading);
  font-size: 25px;
  font-weight: 900;
  color: var(--ember-black);
  text-decoration: none;
  letter-spacing: .02em;
  line-height: 1;
}

.nav-logo span, .footer-logo span, .accent { color: var(--ember-orange); }
.nav-links { order: 2; display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.nav-links a { color: var(--ember-mid); font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-links a:hover { color: var(--ember-orange); }
.nav-r { order: 3; display: flex; align-items: center; gap: 12px; }
.nav-tel { font-weight: 800; color: var(--ember-black); text-decoration: none; white-space: nowrap; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ember-border);
  border-radius: 4px;
  background: var(--ember-white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span:not(.screen-reader-text) {
  width: 20px;
  height: 2px;
  background: var(--ember-black);
  display: block;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn,
.btn-nav,
.btn-pill-solid,
.btn-pill-ghost,
.btn-white,
.btn-outline-w {
  min-width: 180px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn:hover,
.btn-nav:hover,
.btn-pill-solid:hover,
.btn-pill-ghost:hover,
.btn-white:hover,
.btn-outline-w:hover { transform: translateY(-1px); }

.btn-nav, .btn-orange, .btn-pill-solid {
  background: var(--ember-orange);
  color: var(--ember-white);
}

.btn-dark { background: var(--ember-black); color: var(--ember-white); }
.btn-pill-ghost {
  border-color: rgba(255,104,76,.7);
  color: var(--ember-orange);
  background: rgba(255,255,255,.03);
}
.btn-white { background: var(--ember-white); color: var(--ember-black); }
.btn-outline-w { border-color: rgba(255,255,255,.75); color: var(--ember-white); }

.hero {
  position: relative;
  min-height: calc(100vh - 106px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ember-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,.35), rgba(10,10,10,.9));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  padding: 70px 40px 84px;
}

.proof { color: rgba(255,255,255,.76); font-size: 14px; margin-bottom: 22px; }
.stars { color: var(--ember-amber); letter-spacing: 2px; margin-right: 8px; }
.hero h1 {
  margin: 0 0 22px;
  color: var(--ember-white);
  font-family: var(--ember-heading);
  font-size: clamp(44px, 8vw, 78px);
  line-height: 1.04;
}

.hero p {
  max-width: 560px;
  color: rgba(255,255,255,.68);
  font-size: 18px;
  margin: 0 0 28px;
}

.hero-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  margin: 0 0 34px;
  list-style: none;
  color: rgba(255,255,255,.86);
  font-size: 14px;
  font-weight: 700;
}

.hero-ticks li::before { content: "\2713"; color: var(--ember-orange); margin-right: 8px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-contact-label { display: block; color: rgba(255,255,255,.45); font-size: 13px; }
.hero-contact-num {
  color: var(--ember-white);
  font-family: var(--ember-heading);
  font-size: 30px;
  font-weight: 900;
  text-decoration: none;
}

.stats {
  background: var(--ember-orange);
  color: var(--ember-white);
  padding: 24px 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 18px;
  text-align: center;
}
.stat-n { display: block; font-family: var(--ember-heading); font-size: 30px; font-weight: 900; line-height: 1; }
.stat-l { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .86; }

.s { padding: 84px 40px; }
.s-off { background: var(--ember-off); }
.s-light { background: var(--ember-light); }
.s-dark { background: var(--ember-black); color: var(--ember-white); }
.s-inner { max-width: 1120px; margin: 0 auto; }
.s-tag {
  display: inline-block;
  color: var(--ember-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.s-dark .s-tag { color: rgba(255,255,255,.45); }
.s-h2 {
  margin: 0 0 18px;
  font-family: var(--ember-heading);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}
.s-h2 span, .guarantee-h2 span { color: var(--ember-orange); }
.s-lead { max-width: 720px; color: var(--ember-muted); font-size: 18px; margin: 0 0 40px; }
.s-dark .s-lead, .s-dark p { color: rgba(255,255,255,.7); }

.reviews-track,
.reasons,
.diff-grid,
.how-grid,
.supplier-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.r-card,
.reason,
.diff-cell,
.how-step,
.supplier-box,
.contact-opt {
  background: var(--ember-white);
  border: 1px solid var(--ember-border);
  border-radius: 8px;
  padding: 26px;
}

.r-stars { color: var(--ember-amber); letter-spacing: 2px; }
.r-job, .reason-title, .diff-title, .how-title, .supplier-name { color: var(--ember-black); font-weight: 900; margin: 8px 0; }
.r-text, .reason-body, .diff-body, .how-body, .supplier-desc { color: var(--ember-muted); margin: 0; }
.r-who { display: block; margin-top: 16px; font-size: 13px; color: var(--ember-muted); }

.full-img {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: cover;
  background: var(--ember-light);
}
.full-caption { margin: 0; padding: 10px 40px; color: var(--ember-muted); font-size: 13px; text-align: center; }

.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: 54px;
  align-items: center;
}
.who-body p { color: var(--ember-mid); margin: 0 0 18px; }
.who-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }

.reason { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.reason-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,104,76,.12);
  color: var(--ember-orange);
  font-weight: 900;
}

.floor-list { border-top: 1px solid var(--ember-border); }
.floor-row {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--ember-border);
  align-items: start;
}
.floor-name { font-family: var(--ember-heading); font-weight: 900; font-size: 22px; }
.floor-desc { margin: 0; color: var(--ember-mid); }
.floor-note { color: var(--ember-orange); font-size: 13px; font-weight: 800; }

.s-dark .diff-cell {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}
.s-dark .diff-title { color: var(--ember-white); }
.diff-n { color: var(--ember-orange); font-family: var(--ember-heading); font-size: 46px; font-weight: 900; }

.how-n { color: var(--ember-orange); font-family: var(--ember-heading); font-size: 36px; font-weight: 900; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.work-item { position: relative; min-height: 310px; overflow: hidden; background: var(--ember-light); }
.work-item-tall { grid-row: span 2; }
.work-item img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.work-lbl {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  color: var(--ember-white);
  font-weight: 900;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}

.guarantee-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--ember-orange);
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 22px;
}
.guarantee-h2 { margin: 0 0 20px; font-family: var(--ember-heading); font-size: clamp(40px, 7vw, 72px); line-height: 1; }
.guarantee-fine { font-size: 13px; opacity: .75; }

.cta-band {
  background: var(--ember-orange);
  color: var(--ember-white);
  padding: 56px 40px;
  text-align: center;
}
.cta-band-h2 { margin: 0 0 12px; font-family: var(--ember-heading); font-size: clamp(30px, 5vw, 52px); line-height: 1.08; }
.cta-band-sub { max-width: 640px; margin: 0 auto 24px; color: rgba(255,255,255,.82); }
.cta-band-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.areas {
  columns: 2;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--ember-mid);
}
.areas li { padding: 5px 0; }
.areas li::before { content: "\2713"; color: var(--ember-orange); margin-right: 8px; font-weight: 900; }

.contact-num {
  display: inline-block;
  color: var(--ember-orange);
  font-family: var(--ember-heading);
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
  margin-top: 8px;
}

.footer {
  background: var(--ember-black);
  color: rgba(255,255,255,.68);
  padding: 50px 40px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 42px;
}
.footer-logo { color: var(--ember-white); display: inline-block; margin-bottom: 14px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--ember-orange); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

@media (max-width: 980px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
    height: auto;
    min-height: 64px;
    padding: 10px 24px;
  }
  .nav-logo { font-size: 22px; }
  .nav-logo { order: 1; }
  .nav-r {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--ember-border);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a {
    display: block;
    padding: 12px 0;
  }
  .nav .btn-nav {
    min-width: 136px;
    min-height: 42px;
    padding: 11px 16px;
    font-size: 12px;
  }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-grid, .floor-row, .footer-inner { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .topbar, .nav, .hero-inner, .s, .cta-band, .footer { padding-left: 20px; padding-right: 20px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 6px; }
  .nav { grid-template-columns: minmax(92px, 1fr) auto; }
  .nav-logo { font-size: clamp(16px, 5vw, 20px); }
  .nav-r { align-items: center; flex-direction: row; }
  .btn, .btn-nav, .btn-pill-solid, .btn-pill-ghost, .btn-white, .btn-outline-w { width: 100%; min-width: 0; }
  .nav .btn-nav { width: auto; min-width: 118px; padding-left: 12px; padding-right: 12px; }
  .hero-btns, .cta-band-actions { flex-direction: column; }
  .reviews-track, .reasons, .diff-grid, .how-grid, .supplier-grid, .contact-grid, .work-grid { grid-template-columns: 1fr; }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
    padding: 22px 20px;
  }
  .floor-row { gap: 10px; }
  .areas { columns: 1; }
  .work-item, .work-item-tall { min-height: 280px; grid-row: auto; }
}

@media (max-width: 390px) {
  .nav { padding-left: 14px; padding-right: 14px; gap: 10px; }
  .nav-logo { font-size: 15px; }
  .nav .btn-nav { min-width: 102px; min-height: 40px; padding: 10px; font-size: 11px; }
  .nav-toggle { width: 40px; height: 40px; }
}
