/* Southern Renovations Solutions — Static site styles
   Brand: Nashville's Trusted Remodeling Experts
   Palette: warm cream + charcoal + copper accent (matches B&W logo) */

:root {
  --ink:        #1a1a1a;
  --ink-soft:   #2a2624;
  --paper:      #faf6f0;
  --paper-deep: #f0e9dc;
  --paper-card: #ffffff;
  --accent:     #b8754a;
  --accent-deep:#8a4f2c;
  --muted:      #6b6258;
  --line:       rgba(26, 26, 26, 0.12);
  --line-soft:  rgba(26, 26, 26, 0.06);
  --green:      #3f5c45;
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.06);
  --radius:     6px;
  --radius-lg:  12px;
  --maxw:       1180px;
  --pad-x:      clamp(1rem, 4vw, 2rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--cream { background: var(--paper-deep); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .eyebrow { color: #d4a373; }

/* === Skip link for accessibility === */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* === Top bar (phone + service area) === */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.topbar a { color: var(--paper); }
.topbar a:hover { color: #d4a373; }
.topbar__phone { font-weight: 600; }

/* === Header / nav === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.85rem; gap: 1rem;
}
.site-header__brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.site-header__brand img { width: 44px; height: 44px; }
.site-header__brand:hover { text-decoration: none; color: var(--accent-deep); }
.site-header__brand span { display: none; }
@media (min-width: 600px) { .site-header__brand span { display: inline; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: var(--radius);
  cursor: pointer; color: var(--ink);
}
.nav-toggle:hover { background: var(--paper-deep); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.site-nav {
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 0.25rem;
}
.site-nav a {
  display: block; padding: 0.6rem 0;
  color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--accent-deep); text-decoration: none;
}
.site-nav .nav-cta {
  display: inline-block; margin-top: 0.5rem;
  padding: 0.6rem 1.1rem; background: var(--accent);
  color: var(--paper); border-radius: var(--radius); font-weight: 600;
  border: none;
}
.site-nav .nav-cta:hover { background: var(--accent-deep); color: var(--paper); }
@media (min-width: 900px) {
  .site-nav { display: block !important; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.6rem; }
  .site-nav a { border: none; padding: 0.4rem 0; }
}

/* Mobile nav slide-down */
@media (max-width: 899px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--pad-x) 1.25rem;
  }
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  color: var(--paper);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--ink);
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.7) 100%);
}
.hero__inner {
  padding-block: clamp(4rem, 10vw, 8rem);
  max-width: 760px;
}
.hero h1 { color: var(--paper); margin-bottom: 1rem; }
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  margin-bottom: 1.75rem;
  color: rgba(255,255,255,0.92);
}
.hero .eyebrow { color: #e6b87b; }
.hero__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Smaller hero for interior pages */
.hero--page { min-height: 42vh; }
.hero--page .hero__inner { padding-block: clamp(3rem, 7vw, 5rem); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-soft); color: var(--paper); text-decoration: none; }

/* === Trust strip === */
.trust-strip {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: center;
}
.trust-strip__item .num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--accent-deep);
  font-weight: 700;
}
.trust-strip__item .label {
  font-size: 0.92rem; color: var(--muted);
  letter-spacing: 0.04em;
}

/* === Service cards grid === */
.cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4 / 3; background: var(--paper-deep); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 0.5rem; }
.card__body p  { color: var(--muted); margin-bottom: 1rem; flex: 1; }
.card__link {
  font-weight: 600; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.card__link::after { content: "\2192"; transition: transform 0.15s ease; }
.card__link:hover::after { transform: translateX(3px); }

/* === Two column intro === */
.split {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1.1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media img { border-radius: var(--radius-lg); width: 100%; height: auto; }

/* === Testimonials === */
.testimonials {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute; top: -0.4rem; left: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem; line-height: 1;
  color: var(--accent);
  opacity: 0.3;
}
.testimonial p { font-style: italic; color: var(--ink-soft); }
.testimonial cite {
  display: block; margin-top: 0.75rem;
  font-style: normal; font-weight: 600;
  color: var(--ink);
}
.testimonial cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }

/* === FAQ (details/summary) === */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.75rem; color: var(--muted); }

/* === Process / steps === */
.process {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.process__step {
  position: relative; padding-top: 2.4rem;
  counter-increment: step;
}
.process__step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem; color: var(--accent);
  font-weight: 700;
}
.process__step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.process__step p  { color: var(--muted); font-size: 0.95rem; }

/* === Breadcrumbs === */
.breadcrumbs {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li::after { content: "/"; margin-left: 0.4rem; opacity: 0.6; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: rgba(255,255,255,0.85); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li[aria-current] { color: #fff; }

/* === CTA banner === */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 720px) { .cta-banner { grid-template-columns: 2fr auto; } }
.cta-banner h2 { color: var(--paper); margin: 0 0 0.4rem; }
.cta-banner p  { margin: 0; color: rgba(255,255,255,0.85); }

/* === Service detail features list === */
.feature-list {
  list-style: none; padding: 0;
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-list li {
  position: relative; padding-left: 1.6rem;
  margin-bottom: 0;
}
.feature-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0.05rem;
  color: var(--accent); font-weight: 700;
}

/* === Form === */
.form { display: grid; gap: 1rem; max-width: 540px; }
.form label { font-size: 0.92rem; font-weight: 600; display: block; margin-bottom: 0.3rem; }
.form input, .form textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-card); color: var(--ink);
  font: inherit;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  font-size: 0.95rem;
}
.site-footer h4 {
  color: var(--paper); font-family: 'Inter', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.social { display: flex; gap: 0.75rem; align-items: center; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
}
.social a:hover { border-color: var(--accent); color: var(--accent); }

/* === Article (blog) === */
.article {
  max-width: 720px; margin-inline: auto;
}
.article header { margin-bottom: 2rem; }
.article .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.article h2 { margin-top: 2rem; }
.article h3 { margin-top: 1.5rem; }
.article img { border-radius: var(--radius-lg); margin: 1.5rem 0; }
.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0; color: var(--ink-soft); font-style: italic;
}

/* === Utilities === */
.lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Print */
@media print {
  .site-header, .site-footer, .topbar, .cta-banner { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
