/* ==========================================================================
   Waxahachie Flooring Co. — Site Stylesheet
   Palette derived from Waxahachie/DFW flooring competitor research:
   warm espresso (wood tone) + amber accent + warm off-white neutral.
   ========================================================================== */

:root {
  --color-dark: #2b241d;      /* espresso brown - header, footer, overlay */
  --color-dark-2: #3a3025;    /* lighter panel on dark bg */
  --color-accent: #c17f3e;    /* warm amber/wood-tone accent - CTAs */
  --color-accent-dark: #a3672f;
  --color-light: #f7f4ef;     /* warm off-white background */
  --color-white: #ffffff;
  --color-text: #2b241d;
  --color-muted: #6b6258;
  --color-border: #e2dad0;
  --max-width: 1180px;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(43, 36, 29, 0.12);
  --shadow-hover: 0 8px 24px rgba(43, 36, 29, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}

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

a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

section { padding: 60px 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-white);
  font-weight: 600;
}
.nav-links a:hover { color: var(--color-accent); text-decoration: none; }

/* icon-badge header CTA */
.call-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  font-weight: 700;
}
.call-badge:hover { background: var(--color-accent-dark); text-decoration: none; }
.call-badge .icon-circle {
  background: var(--color-white);
  color: var(--color-accent);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.call-badge .call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.call-badge .call-label { font-size: 0.68rem; text-transform: uppercase; opacity: 0.9; }
.call-badge .call-number { font-size: 0.95rem; }

.header-right { display: flex; align-items: center; gap: 24px; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--color-dark-2);
  padding: 10px 20px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--color-white);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--color-white);
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(43,36,29,0.92) 15%, rgba(43,36,29,0.55) 55%, rgba(43,36,29,0.25) 100%),
    repeating-linear-gradient(135deg, #4a3f32, #4a3f32 12px, #3d3427 12px, #3d3427 24px);
}
.hero-photo-caption {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 60px 20px;
}
.hero h1 {
  font-size: 2.6rem;
  color: var(--color-white);
}
.hero .subhead { font-size: 1.15rem; margin-bottom: 26px; color: #f1ece3; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--color-white);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.15rem;
}
.hero-phone-btn:hover { background: rgba(255,255,255,0.18); text-decoration: none; }
.hero-phone-btn .icon-circle {
  background: var(--color-white);
  color: var(--color-dark);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-cta {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
}
.btn-cta:hover { background: var(--color-accent-dark); text-decoration: none; }

/* smaller hero variant for service pages */
.page-hero { min-height: 380px; }
.page-hero h1 { font-size: 2.2rem; }

/* ---------- Content + Form two-column section ---------- */
.content-form-section {
  background: var(--color-light);
}
.content-form-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 46px;
  align-items: start;
}
.content-col h2 { color: var(--color-dark); }

.form-col { position: sticky; top: 96px; }

.quote-form-card {
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.quote-form-banner {
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  text-align: center;
  padding: 14px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.quote-form { padding: 22px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--color-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit-btn {
  width: 100%;
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 700;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
.form-submit-btn:hover { background: var(--color-dark-2); }
.form-status {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.success { color: #2e7d32; }
.form-status.error { color: #b3261e; }

/* ---------- Photo placeholders ---------- */
.photo-placeholder {
  background: repeating-linear-gradient(135deg, #ece5da, #ece5da 12px, #e1d8ca 12px, #e1d8ca 24px);
  border: 2px dashed var(--color-muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  padding: 20px;
  min-height: 180px;
}

.inline-photo { margin: 26px 0; }
.inline-photo .photo-placeholder { aspect-ratio: 16 / 9; min-height: 240px; }

.inline-photo-float {
  float: right;
  width: 42%;
  margin: 6px 0 20px 26px;
}
.inline-photo-float .photo-placeholder { aspect-ratio: 3 / 4; min-height: 260px; }

@media (max-width: 640px) {
  .inline-photo-float { float: none; width: 100%; margin: 20px 0; }
}

/* ---------- Services section ---------- */
.services-section { background: var(--color-white); }
.services-section h2 { text-align: center; color: var(--color-dark); }
.services-intro { text-align: center; max-width: 700px; margin: 0 auto 40px; color: var(--color-muted); }

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

.service-card {
  display: block;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
  text-decoration: none;
}
.service-card .photo-placeholder {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 0;
  border-width: 0 0 2px;
}
.service-card-body { padding: 18px; }
.service-card-body h3 { margin-bottom: 8px; color: var(--color-dark); }
.service-card-body p { color: var(--color-muted); margin-bottom: 12px; font-size: 0.95rem; }
.service-card-learn-more {
  font-weight: 700;
  color: var(--color-accent-dark);
  font-size: 0.9rem;
}

/* ---------- Trust section ---------- */
.trust-section { background: var(--color-dark); color: var(--color-white); }
.trust-section h2 { text-align: center; color: var(--color-white); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 34px;
}
.trust-item { text-align: center; padding: 0 10px; }
.trust-item .trust-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.trust-item h3 { color: var(--color-white); font-size: 1.05rem; }
.trust-item p { color: #d8d0c4; font-size: 0.92rem; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--color-light); }
.faq-section h2 { color: var(--color-dark); }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.faq-item h3 { margin-bottom: 10px; color: var(--color-dark); font-size: 1.1rem; }
.faq-item p { margin-bottom: 0; color: var(--color-muted); }

/* ---------- Generic body section ---------- */
.body-section h2 { color: var(--color-dark); }
.body-section-alt { background: var(--color-light); }

/* ---------- Final CTA band ---------- */
.final-cta {
  background: var(--color-accent);
  color: var(--color-white);
  text-align: center;
}
.final-cta h2 { color: var(--color-white); }
.final-cta .btn-cta { background: var(--color-dark); }
.final-cta .btn-cta:hover { background: var(--color-dark-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: #d8d0c4; padding: 60px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 34px;
  margin-bottom: 36px;
}
.site-footer h3 { color: var(--color-white); font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #d8d0c4; }
.site-footer a:hover { color: var(--color-accent); }
.map-placeholder {
  background: var(--color-dark-2);
  border: 2px dashed #6b6258;
  border-radius: var(--radius);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a89f92;
  font-size: 0.85rem;
  text-align: center;
  padding: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  text-align: center;
  color: #a89f92;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .header-right .call-badge { display: none; }
  .mobile-menu-toggle { display: block; }

  .content-form-grid {
    grid-template-columns: 1fr;
  }
  /* Form above text on mobile, sticky disabled */
  .form-col {
    order: -1;
    position: static;
    top: auto;
  }
  .content-col { order: 1; }

  .hero h1 { font-size: 2rem; }
  .hero-inner { padding: 40px 20px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
