/* Atlanta Carpet Pros — site styles */
:root {
  --bg: #F8F4ED;
  --bg-2: #F3EDE2;
  --white: #FFFFFF;
  --ink: #2A2420;
  --ink-2: #4A3F37;
  --muted: #6B5F55;
  --faint: #8A7D70;
  --line: #E1D7C8;
  --line-2: #D9CDBE;
  --accent: #B4552F;
  --accent-hover: #96431F;
  --dark: #2E2622;
  --dark-text: #F3EBE0;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
h1, h2, h3, p, li { text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img, svg { display: block; max-width: 100%; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
input::placeholder, textarea::placeholder { color: #9A8D80; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 5vw, 66px); line-height: 1.04; letter-spacing: -0.015em; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.01em; }
.h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.lead { font-size: 19px; color: var(--ink-2); }
.body { font-size: 17px; color: var(--ink-2); }
.small { font-size: 15px; color: var(--muted); }
.fine { font-size: 13px; color: var(--faint); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 6px; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #000; color: var(--bg); }
.btn-outline { height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); color: var(--ink); font-size: 15px; background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.cta-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.or-call { font-size: 16px; color: var(--muted); }
.or-call a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: #D9C7B5; text-underline-offset: 4px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.nav { display: flex; gap: 32px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1.5px solid var(--line); border-radius: 6px; color: var(--ink); cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav a { display: block; padding: 16px 20px; font-size: 17px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav .btn { margin: 16px 20px; width: calc(100% - 40px); }
.nav-open .mobile-nav { display: block; }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .lead { max-width: 520px; }
.page-hero { padding-top: 72px; padding-bottom: 56px; }
.page-hero .stack { max-width: 720px; }

/* Cards & grids */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; box-shadow: 0 18px 40px -28px rgba(42, 36, 32, 0.35); }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tile-alt { background: var(--bg); }
.tile p { font-size: 15px; color: var(--muted); }
.icon { width: 28px; height: 28px; color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.split .body { max-width: 400px; }
.split-estimate { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-sand { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust .grid-3 { padding-top: 28px; padding-bottom: 28px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { flex-shrink: 0; margin-top: 2px; width: 24px; height: 24px; color: var(--accent); }
.trust-item strong { display: block; font-weight: 600; }

/* Steps */
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 2px solid var(--ink); }
.step-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); font-weight: 500; }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { font-size: 15px; color: var(--muted); }

/* Reviews */
.review { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 16px; color: var(--ink-2); font-style: italic; }
.review cite { font-size: 14px; font-weight: 600; color: var(--muted); font-style: normal; }
.stars { width: 96px; height: 16px; color: var(--accent); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.chip { padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; font-weight: 500; background: var(--white); }
.chip-more { border-style: dashed; border-color: #C9B9A6; color: var(--faint); background: transparent; }

/* Detail rows (repairs / installation pages) */
.detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); align-items: start; }
.detail:first-of-type { border-top: 0; padding-top: 0; }
.detail-head { display: flex; flex-direction: column; gap: 12px; }
.detail-head h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.12; letter-spacing: -0.01em; }
.detail-body { display: flex; flex-direction: column; gap: 14px; }
.detail-body p, .detail-body li { color: var(--ink-2); }
.detail-body ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); width: fit-content; }
.tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Note box */
.note { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; display: flex; gap: 16px; align-items: flex-start; }
.note svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.note p { color: var(--ink-2); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input { height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 15px; background: #FDFBF8; color: var(--ink); width: 100%; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.45; min-height: 96px; }
input[type="file"].input { padding: 11px 14px; height: auto; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hidden { display: none; }

/* CTA band */
.cta-band { background: var(--dark); color: var(--dark-text); }
.cta-band .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.01em; max-width: 640px; color: var(--dark-text); }
.cta-contact { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.cta-contact a { color: var(--dark-text); }
.cta-contact a.email { color: #C9B9A6; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-grid { padding-top: 40px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand span { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.footer-bottom { padding-bottom: 28px; }

/* Form feedback (js/forms.js) */
.form-error { background: #FBEFEA; border: 1px solid #E5B9A6; color: #7A3419; border-radius: 6px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.form-error a { color: #7A3419; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-error[hidden] { display: none; }
button[disabled].btn { opacity: 0.7; cursor: default; }

/* Landing pages (site/lp/) */
.lp-header .brand { cursor: default; }
.lp-header .call-label { display: inline; }
.lp-hero .card { scroll-margin-top: 92px; }
.symptoms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.symptom { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; font-size: 16px; color: var(--ink-2); }
.symptom svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--accent); margin-top: 1px; }
.prose p { color: var(--ink-2); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--accent); flex-shrink: 0; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 0 20px; color: var(--ink-2); }
.lp-footer .footer-col a { font-weight: 500; }

/* Responsive */
@media (max-width: 900px) {
  .split, .split-estimate { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 48px; padding-bottom: 56px; }
  .hero-grid, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-grid { gap: 36px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .page-hero { padding-top: 48px; padding-bottom: 40px; }
  .nav { display: none; }
  .menu-btn { display: flex; }
  .call-label { display: none; }
  .btn-outline { padding: 0 12px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { flex-direction: column; gap: 24px; }
  .cta-band .wrap { padding-top: 56px; padding-bottom: 56px; }
  .card { padding: 22px; }
  .symptoms { grid-template-columns: minmax(0, 1fr); }
  .lp-header .btn-outline { padding: 0 14px; }
  .lp-hero .card { scroll-margin-top: 80px; }
}

/* Rebrand: longer wordmark */
.brand-name { font-size: 22px; }
@media (max-width: 760px) {
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 10px; }
}
