/* Western Renovations — DIY vs. Professional Bathroom Remodeling (render property)
   Brand tokens are evidenced values from output/brand-profile.json.
   Do not substitute a generic palette. Layout: alternating-band comparison
   article with a sticky in-page section nav, distinct from the sibling
   properties' worksheet-card and TOC-sidebar layouts. */

:root {
  --color-primary: #40766c;              /* muted sage/teal — evidenced primary */
  --color-primary-dark: #29403c;         /* derived primary-900, white text on dark teal */
  --color-primary-tint: #f0f9f7;         /* derived primary-50, alternating band surface */
  --color-secondary: #d08753;            /* terracotta — evidenced secondary/CTA */
  --color-secondary-hover: #c0743f;      /* evidenced secondary-500 hover */
  --color-secondary-accessible: #96502a; /* derived accessible text-on-secondary */
  --color-text: #461c0c;                 /* evidenced neutral-900, body text */
  --color-deep: #2a1107;                 /* evidenced neutral-950, deep surface */
  --color-bg: #f7f5f0;                   /* evidenced page background (cream) */
  --color-border: #e4ddd2;

  --font-heading: "Outfit Variable", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-body: "Inter Variable", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  --radius-button: 0.5rem;   /* evidenced rounded-lg */
  --radius-pill: 9999px;     /* evidenced rounded-full */
  --radius-card: 0.75rem;    /* evidenced rounded-xl */

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--color-secondary-accessible);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-text);
}

a:focus-visible,
.cta-button:focus-visible,
.toc-list a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #ffffff;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-button);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

/* Header */

.site-header {
  background: var(--color-deep);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  padding: var(--space-2) var(--space-3) var(--space-1);
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0.15rem 0 0;
}

/* Section quick-nav */

.toc-nav {
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.toc-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.toc-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0.6rem 0;
  white-space: nowrap;
}

.toc-list a {
  display: inline-block;
  color: #f3ede3;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.toc-list a:hover {
  background: var(--color-secondary);
  color: var(--color-text);
}

/* Hero */

.hero {
  background: var(--color-primary);
  padding: var(--space-5) 0 var(--space-4);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-copy h1 {
  color: #ffffff;
  font-size: 1.9rem;
}

.lead {
  color: #ffffff;
  font-size: 1.0625rem;
}

.lead-secondary {
  margin-top: var(--space-2);
}

.path-cards {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
}

.path-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-card);
  padding: var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.path-card--pro {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--color-secondary);
}

.path-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
}

.path-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-secondary);
}

.path-card--pro .path-icon svg {
  fill: #ffffff;
}

.path-label {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.path-divider {
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Comparison section bands */

.band {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}

.band--tint {
  background: var(--color-primary-tint);
}

.section-inner {
  position: relative;
}

.section-index {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-secondary-accessible);
  background: #ffffff;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.65rem;
  margin-bottom: var(--space-2);
}

.band h2 {
  color: var(--color-text);
  font-size: 1.4rem;
}

.band p {
  color: var(--color-text);
}

.band p a,
.footer-business + p a {
  font-weight: 600;
}

/* CTA band */

.cta-band {
  background: var(--color-primary-dark);
  padding: var(--space-5) 0;
  text-align: center;
}

.cta-band h2 {
  color: #ffffff;
  font-size: 1.6rem;
}

.cta-band p {
  color: #f3ede3;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  margin-top: var(--space-2);
  background: var(--color-secondary);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-button);
  box-shadow: 0 1px 2px rgba(42, 17, 7, 0.15);
}

.cta-button:hover {
  background: var(--color-secondary-hover);
  color: var(--color-text);
}

/* Footer */

.site-footer {
  background: var(--color-deep);
  color: #f0ece4;
  padding: var(--space-3) 0 var(--space-4);
  font-size: 0.875rem;
}

.footer-business {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer p {
  margin: 0.2rem 0;
  max-width: none;
}

/* Responsive breakpoints */

@media (min-width: 640px) {
  .wrap {
    padding: 0 var(--space-4);
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .band h2 {
    font-size: 1.6rem;
  }

  .hero-grid {
    flex-direction: row;
    align-items: center;
  }

  .hero-copy {
    flex: 1.3;
  }

  .path-cards {
    flex: 1;
  }
}

@media (min-width: 960px) {
  .wrap {
    max-width: 880px;
  }

  .hero {
    padding: var(--space-6) 0 var(--space-5);
  }
}

@media print {
  .site-header,
  .toc-nav,
  .hero,
  .cta-band,
  .site-footer {
    background: none !important;
    color: var(--color-text) !important;
  }

  .hero-copy h1,
  .lead,
  .cta-band h2,
  .cta-band p {
    color: var(--color-text) !important;
  }

  .path-cards,
  .skip-link {
    display: none;
  }

  .band {
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* Footer links: social profiles + press/media mentions */
.site-footer .footer-social{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem}

.site-footer .wrap{width:100%}
.site-footer{display:flex;flex-wrap:wrap;gap:2rem 3rem;align-items:flex-start}
.site-footer>*{flex:1 1 220px;min-width:200px}

/* Header logo, centered */
.site-logo{height:48px;width:auto;display:block;margin:0 auto}
.site-header>div:first-child{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.6rem}

/* Header row: name (left) / logo (center) / phone number (right) */
.header-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;width:100%}
.header-row .site-logo{margin:0 auto}
.header-name{justify-self:start;font-family:var(--font-heading,inherit);font-weight:700;font-size:1.0625rem;color:#F7F5F0;text-decoration:none;margin:0}
.header-row .header-call{justify-self:end}
.header-call{display:inline-flex;align-items:center;gap:0.5rem;background-color:#96502A;color:#fff;padding:0.55rem 1rem;border-radius:9999px;font-size:0.9375rem;font-weight:600;text-decoration:none;white-space:nowrap}
.header-call:hover,.header-call:focus-visible{filter:brightness(0.92);color:#fff}
.icon-phone{width:1rem;height:1rem;fill:currentColor;flex-shrink:0}
@media (max-width:640px){
  .header-row{grid-template-columns:1fr;justify-items:center;gap:.75rem}
  .header-name{justify-self:center}
  .header-row .header-call{justify-self:center}
}

/* Footer links: redesigned (ui-ux-pro-max pass) */
.site-footer .footer-links{margin-top:1.5rem;padding-top:1.5rem;position:relative;display:flex;flex-wrap:wrap;gap:2rem 3rem}
.site-footer .footer-links::before{content:"";position:absolute;top:0;left:0;width:64px;height:2px;background:rgba(208,135,83,0.45)}
.site-footer .footer-links-col{flex:1 1 200px;min-width:180px}
.site-footer .footer-links-heading{font-family:var(--font-heading,inherit);font-weight:700;margin:0 0 .85rem;font-size:.75rem;letter-spacing:.09em;text-transform:uppercase;color:#E3A874}
.site-footer .footer-social,.site-footer .footer-press{list-style:none;margin:0;padding:0}
.site-footer .footer-social{display:flex;flex-wrap:wrap;gap:.6rem}
.site-footer .footer-press{display:flex;flex-direction:column;gap:.5rem}

/* Footer link styling v2: icon-only circular social badges, plain press links */
.site-footer .footer-social a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,0.12);color:#F7F5F0;transition:background-color .15s ease,transform .15s ease}
.site-footer .footer-social a svg{width:18px;height:18px;flex-shrink:0;fill:currentColor}
.site-footer .footer-social a:hover,.site-footer .footer-social a:focus-visible{background:#D08753;transform:translateY(-2px)}
.site-footer .footer-press a{display:inline-block;color:#F7F5F0;text-decoration:underline;text-underline-offset:3px;font-size:.9rem;font-weight:500;transition:color .15s ease}
.site-footer .footer-press a:hover,.site-footer .footer-press a:focus-visible{color:#ffffff}
.site-footer .footer-links a:focus-visible{outline:2px solid #E3A874;outline-offset:2px}
