/* ================================================================
   MOSS BAY FLOORING CO. — Design System
   Palette: Ebony #1C1814, Birch White #FAF7F2, Raw Brass #C4933A,
            Warm Walnut #6B5B47, Limestone #E8E0D0, Moss #2A5741
   Type: Playfair Display (display) + DM Sans (body) + DM Mono (utility)
================================================================ */

:root {
  --ebony:       #1C1814;
  --ebony-soft:  #3A322A;
  --birch:       #FAF7F2;
  --birch-dim:   #F0EAE0;
  --brass:       #C4933A;
  --brass-dark:  #A87A28;
  --walnut:      #6B5B47;
  --limestone:   #E8E0D0;
  --moss:        #2A5741;
  --moss-pale:   #EAF1EC;
  --white:       #FFFFFF;
  --gray-300:    #D4C9B8;
  --gray-500:    #9A8C7A;
  --shadow-sm:   0 2px 12px rgba(28,24,20,0.08);
  --shadow-md:   0 8px 32px rgba(28,24,20,0.12);
  --shadow-lg:   0 20px 60px rgba(28,24,20,0.18);
  --radius:      12px;
  --radius-lg:   20px;
}

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

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--birch);
  color: var(--ebony);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ebony);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: 'DM Sans', sans-serif; }

a { color: inherit; text-decoration: none; }
p { color: var(--walnut); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ── UTILITY ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass); font-weight: 500;
}
.eyebrow::before { content: "—"; }

.mono { font-family: 'DM Mono', monospace; }

/* ── HEADER ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--limestone);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 18px 28px;
}
.logo { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  font-weight: 700; color: var(--ebony); letter-spacing: -0.01em;
}
.logo-tag {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  color: var(--brass); letter-spacing: 0.08em; text-transform: uppercase;
}
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--walnut); transition: color 0.2s; }
.nav a:hover { color: var(--brass); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ebony); color: var(--birch);
  padding: 12px 24px; border-radius: 6px;
  font-weight: 600; font-size: 0.88rem;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--ebony-soft); transform: translateY(-1px); }
.btn-brass {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brass); color: var(--white);
  padding: 14px 28px; border-radius: 6px;
  font-weight: 650; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-brass:hover { background: var(--brass-dark); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ebony);
  border: 1.5px solid var(--ebony); padding: 14px 28px; border-radius: 6px;
  font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
}
.btn-outline:hover { background: var(--ebony); color: var(--birch); }

@media (max-width: 900px) { .nav { display: none; } }

/* ── HERO ── */
.hero {
  padding: 80px 0 0;
  background: var(--birch);
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-eyebrow { margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero-sub { font-size: 1.1rem; color: var(--walnut); max-width: 480px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 32px; padding-top: 32px;
  border-top: 1px solid var(--limestone);
}
.stat-num {
  font-family: 'DM Mono', monospace; font-size: 1.6rem;
  font-weight: 700; color: var(--ebony); display: block;
}
.stat-label { font-size: 0.8rem; color: var(--gray-500); }

/* ── SIGNATURE: MATERIAL SELECTOR ── */
.material-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 200px;
  overflow: hidden;
}
.mat-swatch {
  position: relative; cursor: pointer;
  display: flex; align-items: flex-end;
  padding: 16px 14px;
  transition: flex 0.4s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.mat-swatch:hover { flex: 2.5; }
.mat-swatch::before {
  content: ''; position: absolute; inset: 0;
  background: inherit; transition: filter 0.3s;
}
.mat-swatch:hover::before { filter: brightness(1.08); }
.mat-hardwood { background: repeating-linear-gradient(90deg, #8B6914 0, #8B6914 48px, #7A5C10 48px, #7A5C10 50px, #A07820 50px, #A07820 98px, #7A5C10 98px, #7A5C10 100px); }
.mat-tile { background: repeating-conic-gradient(#B8A898 0% 25%, #C9BBB0 0% 50%) 0 0 / 40px 40px; }
.mat-laminate { background: repeating-linear-gradient(90deg, #C8A878 0, #C8A878 58px, #B89868 58px, #B89868 60px, #D4B48A 60px, #D4B48A 118px, #B89868 118px, #B89868 120px); }
.mat-vinyl { background: linear-gradient(135deg, #6B8C7B 0%, #5A7A68 50%, #4A6A58 100%); }
.mat-carpet { background: repeating-conic-gradient(#C4B0A0 0% 25%, #B8A498 0% 50%) 0 0 / 8px 8px; }
.mat-refinish { background: linear-gradient(160deg, #5C3A1A 0%, #8B6030 40%, #C4933A 100%); }

.mat-label {
  position: relative; z-index: 1;
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: white; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity 0.3s 0.1s;
  writing-mode: vertical-lr; transform: rotate(180deg);
}
.mat-swatch:hover .mat-label { opacity: 1; }
.mat-cta {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--brass); color: white;
  font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 4px;
  opacity: 0; transition: opacity 0.3s 0.15s;
  white-space: nowrap;
}
.mat-swatch:hover .mat-cta { opacity: 1; }

/* ── SECTIONS ── */
.section { padding: 88px 0; }
.section-alt { background: var(--birch-dim); }
.section-dark { background: var(--ebony); color: var(--birch); }
.section-dark h2, .section-dark h3 { color: var(--birch); }
.section-dark p { color: var(--gray-300); }
.section-moss { background: var(--moss); color: var(--birch); }
.section-moss h2, .section-moss h3 { color: var(--birch); }
.section-moss p { color: rgba(255,255,255,0.8); }

.sec-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.sec-head p { font-size: 1.05rem; margin-top: 14px; }

/* ── SERVICES GRID ── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.svc-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; border: 1px solid var(--limestone);
  box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s;
  display: block;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.svc-icon { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { font-size: 0.92rem; margin-bottom: 16px; }
.svc-arrow { color: var(--brass); font-weight: 700; font-size: 0.88rem; }

/* ── PROCESS ── */
.process-steps { display: flex; flex-direction: column; gap: 0; max-width: 780px; margin: 0 auto; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--limestone);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brass); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace; font-size: 1.1rem; font-weight: 700;
  flex-shrink: 0;
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: 0.94rem; }

/* ── TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center;
  border: 1px solid var(--limestone); box-shadow: var(--shadow-sm);
}
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700;
  color: white;
}
.team-name { margin-bottom: 4px; }
.team-role { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--brass); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.team-bio { font-size: 0.88rem; }
.team-spec { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.spec-tag {
  background: var(--birch-dim); border: 1px solid var(--limestone);
  padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; color: var(--walnut);
}

/* ── B2B BLOCK ── */
.b2b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.b2b-features { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.b2b-feature { display: flex; gap: 16px; align-items: flex-start; }
.b2b-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.b2b-feature h4 { color: var(--birch); margin-bottom: 4px; }
.b2b-feature p { font-size: 0.9rem; }
.b2b-form-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-lg);
}
.b2b-form-card h3 { color: var(--ebony); margin-bottom: 6px; }
.b2b-form-card > p { font-size: 0.9rem; margin-bottom: 24px; }

/* ── SERVICE AREAS ── */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.area-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 20px 18px;
  transition: background 0.2s, border-color 0.2s;
}
.area-card:hover { background: rgba(255,255,255,0.14); border-color: var(--brass); }
.area-card h4 { color: var(--birch); font-size: 1rem; margin-bottom: 4px; }
.area-card p { font-size: 0.8rem; color: var(--gray-300); }
.area-card a { color: var(--brass); font-size: 0.8rem; font-weight: 600; display: inline-block; margin-top: 8px; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--ebony-soft); padding: 18px 0; }
.trust-items {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 14px;
}
.trust-item { color: var(--limestone); font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.trust-item span { color: var(--brass); }

/* ── REVIEWS ── */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.review-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--limestone); box-shadow: var(--shadow-sm);
}
.review-stars { color: var(--brass); font-size: 0.95rem; margin-bottom: 12px; }
.review-text { font-size: 0.95rem; color: var(--walnut); font-style: italic; margin-bottom: 18px; line-height: 1.7; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brass); display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.reviewer-name { font-weight: 650; font-size: 0.92rem; }
.reviewer-loc { font-size: 0.78rem; color: var(--gray-500); }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--brass); border-radius: var(--radius-lg);
  padding: 64px 48px; text-align: center;
  max-width: 1200px; margin: 0 auto;
}
.cta-banner h2 { color: var(--ebony); }
.cta-banner p { color: rgba(28,24,20,0.75); margin: 14px 0 32px; font-size: 1.05rem; }
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ebony); color: var(--birch);
  padding: 16px 32px; border-radius: 8px; font-weight: 650; font-size: 1rem;
  transition: transform 0.2s;
}
.btn-dark:hover { transform: translateY(-2px); }
.btn-birch {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ebony);
  border: 2px solid var(--ebony); padding: 16px 32px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; transition: all 0.2s;
}
.btn-birch:hover { background: var(--ebony); color: var(--birch); }

/* ── FORM ── */
.estimate-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--limestone);
}
.estimate-card h3 { margin-bottom: 6px; }
.estimate-card > p { font-size: 0.9rem; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--ebony); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1.5px solid var(--limestone); font-family: inherit; font-size: 0.94rem;
  background: var(--birch); color: var(--ebony);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brass);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
  width: 100%; background: var(--ebony); color: var(--birch); border: none;
  padding: 15px; border-radius: 8px; font-weight: 650; font-size: 1rem;
  cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.btn-submit:hover { background: var(--ebony-soft); }
.form-note { text-align: center; font-size: 0.82rem; color: var(--gray-500); margin-top: 12px; }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--limestone); padding: 20px 0;
}
.faq-item summary {
  font-weight: 650; font-size: 1.02rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; color: var(--brass); font-size: 1.4rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
.faq-body { margin-top: 12px; font-size: 0.94rem; color: var(--walnut); line-height: 1.7; }

/* ── PAGE HERO ── */
.page-hero { background: var(--birch-dim); padding: 60px 0 52px; border-bottom: 1px solid var(--limestone); }
.page-hero-inner { max-width: 800px; margin: 0 auto; padding: 0 28px; text-align: center; }
.page-hero p { font-size: 1.05rem; margin-top: 14px; }
.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pill {
  background: var(--white); border: 1px solid var(--limestone);
  padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; color: var(--walnut); font-weight: 500;
}

/* ── CONTENT LAYOUT ── */
.content-wrap { max-width: 1200px; margin: 0 auto; padding: 64px 28px; }
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.content-body h2 { margin: 36px 0 14px; font-size: 1.6rem; }
.content-body h2:first-child { margin-top: 0; }
.content-body p { margin-bottom: 14px; }
.content-body ul.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.content-body ul.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; }
.content-body ul.checklist li::before { content: "✓"; color: var(--brass); font-weight: 700; flex-shrink: 0; }
.aside-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-md); border: 1px solid var(--limestone);
  position: sticky; top: 100px;
}
.aside-card h4 { margin-bottom: 8px; }
.aside-card > p { font-size: 0.88rem; margin-bottom: 18px; }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--limestone); box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-thumb { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; }
.blog-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-cat { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--brass); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.blog-card h3 { font-size: 1rem; margin-bottom: 10px; flex: 1; }
.blog-read { color: var(--walnut); font-weight: 600; font-size: 0.84rem; }

/* ── FOOTER ── */
.footer { background: var(--ebony); color: var(--gray-300); padding: 72px 0 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 48px;
}
.footer-brand p { font-size: 0.88rem; margin-top: 14px; line-height: 1.7; }
.f-logo-name { font-family: 'Playfair Display', serif; color: var(--birch); font-size: 1.15rem; font-weight: 700; }
.footer-col h5 { color: var(--birch); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 16px; font-weight: 600; font-family: 'DM Mono', monospace; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 0.88rem; color: var(--gray-300); transition: color 0.2s; }
.footer-col a:hover { color: var(--brass); }
.footer-bottom {
  margin-top: 56px; padding: 22px 28px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  max-width: 1200px; margin-left: auto; margin-right: auto; font-size: 0.8rem;
}
.license-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 16px; border-radius: 8px; margin-top: 16px;
  font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--gray-300);
}
.license-badge strong { color: var(--brass); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-inner, .b2b-grid, .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .material-strip { grid-template-columns: repeat(3, 1fr); height: 300px; }
  .mat-label { writing-mode: horizontal-tb; transform: none; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .material-strip { grid-template-columns: repeat(2, 1fr); height: 360px; }
}
