
/* Southside Sites — trade demo sites (complete rules, flat + layout-scoped) */
:root {
  --accent: #E85D04;
  --navy: #0B1F3A;
  --text: #1a2332;
  --muted: #4a5568;
  --bg: #fff;
  --soft: #f4f6f8;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.has-sticky-call { padding-bottom: 4.5rem; }
a { color: var(--accent); }
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin-top: 0; }
.wrap { width: min(100% - 2rem, 1040px); margin-inline: auto; }

/* Demo banner */
.demo-banner {
  background: #0a0a0a;
  color: #fde68a;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.55rem 1rem;
  position: relative;
  z-index: 60;
}
.demo-banner strong { color: #fff; font-weight: 800; }
.demo-banner a { color: #93c5fd; margin-left: 0.35rem; }

/* Header / nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e5e7eb;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}
.brand {
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
  font-size: 1.05rem;
}
.brand small {
  display: block;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.1rem; }

/* Sections / cards / grids */
.section { padding: 2.75rem 0; }
.section.soft { background: var(--soft); }
.section h2 { margin: 0 0 0.55rem; color: var(--navy); font-size: 1.5rem; letter-spacing: -0.02em; }
.lead { color: var(--muted); margin: 0 0 1.25rem; max-width: 40rem; font-size: 1.02rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.35rem; }
.card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 6px 16px rgba(11,31,58,0.05);
}
.card h3 { margin: 0 0 0.35rem; font-size: 1.02rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Badges — flat (work on any background) */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  justify-content: flex-start;
}
.badge {
  background: #fff;
  border: 1px solid #dbe1ea;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0B1F3A;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.04);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}
.layout-emergency .trust-bar {
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
}
.layout-emergency .trust-bar span { color: #fff; }

.trust-bar span::before { content: "✓ "; color: var(--accent); }

/* Photos / quotes / faq */
.photos-sm { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.photos-sm img {
  width: 120px; height: 84px; object-fit: cover;
  border-radius: 8px; border: 1px solid #e5e7eb;
}
.quote {
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0;
}
.quote p { margin: 0 0 0.5rem; font-style: italic; color: var(--text); }
.quote cite { font-style: normal; font-weight: 700; color: var(--muted); font-size: 0.88rem; }
.faq details {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
}
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.faq p { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.94rem; }

/* Forms */
.form-card label {
  display: block; font-weight: 600; color: var(--navy);
  margin-bottom: 0.28rem; font-size: 0.86rem;
}
.form-card .field { margin-bottom: 0.85rem; }
.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d0d7e0;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.form-card input:focus,
.form-card textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-card textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.55rem; }
.phone-lg {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
  margin: 0.25rem 0 0.85rem;
}
.note { font-size: 0.8rem; color: var(--muted); }

/* Sticky call — flat */
.sticky-call {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--accent);
  color: #fff !important;
  text-align: center;
  padding: 0.85rem 1rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
  letter-spacing: 0.01em;
}
.sticky-call span { font-weight: 600; opacity: 0.9; margin-left: 0.35rem; }

.footer {
  background: #0a1220;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 1.35rem 0;
  font-size: 0.88rem;
}
.footer a { color: #93c5fd; }
.footer .note { color: rgba(255,255,255,0.5); }

/* ========== FLAT layout pieces (apply even without body scope) ========== */

/* Emergency / plumber */
.hero-emergency {
  background: linear-gradient(135deg, #7f1d1d, #c1121f 55%, #e85d04);
  color: #fff;
  padding: 2.5rem 0 2.75rem;
  text-align: center;
}
.hero-emergency h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 0 0 0.5rem;
  color: #fff;
  max-width: none;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
}
.hero-emergency .lede,
.hero-emergency p { color: rgba(255,255,255,0.92); }
.mega-phone {
  display: inline-block;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #fff !important;
  text-decoration: none;
  background: rgba(0,0,0,0.25);
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  margin: 1rem 0;
  letter-spacing: 0.02em;
}
.pulse {
  display: inline-block;
  background: #fff;
  color: #c1121f;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.svc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid #f0d0d0;
}
.svc-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: #c1121f; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.hero-emergency .badges { justify-content: center; }
.hero-emergency .badge { color: #1b1b1b; }

/* Utility / HVAC */
.promo-strip {
  background: #023e8a;
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.hero-utility {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem 0;
  background: linear-gradient(180deg, #eef7fc, #fff);
}
@media (max-width: 800px) {
  .hero-utility { grid-template-columns: 1fr; }
}
.hero-utility .side-img {
  width: 100%;
  max-width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-left: auto;
  border: 3px solid #90e0ef;
}
.svc-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.svc-tabs a {
  text-decoration: none;
  background: #fff;
  border: 2px solid #0077b6;
  color: #023e8a;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Industrial / electrician */
.hero-industrial {
  padding: 2.75rem 0;
  background: #0d0f12;
  border-bottom: 1px solid #2a2f38;
  color: #e9ecef;
}
.hero-industrial h1 { color: #f8f9fa; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.25rem 2.5rem;
  border-left: 2px solid #f4a261;
  margin-left: 0.75rem;
}
.timeline li::before {
  content: attr(data-step);
  position: absolute;
  left: -0.9rem; top: 0;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: #f4a261;
  color: #121417;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}

/* Gallery / roofer */
.ba-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 1rem 0 0;
}
@media (max-width: 640px) { .ba-lead { grid-template-columns: 1fr; } }
.ba-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
}
.ba-card img { width: 100%; height: 100%; object-fit: cover; }
.ba-card span {
  position: absolute;
  left: 0.6rem; top: 0.6rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
}
.hero-after-ba { padding: 1.75rem 0 2.25rem; }

/* Outdoor / landscaper */
.hero-outdoor {
  padding: 3rem 0;
  background:
    linear-gradient(120deg, rgba(251,253,251,0.94), rgba(240,247,244,0.88)),
    url("/demos/img/landscaper-hero.jpg") center/cover;
}
.hero-outdoor h1 {
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  max-width: 14ch;
  font-family: Georgia, "Times New Roman", serif;
  color: #1b4332;
}

/* Story / decks */
.story-first { padding: 2.5rem 0; background: #fefae0; }
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 800px) { .story-grid { grid-template-columns: 1fr; } }
.story-photo {
  width: 100%;
  max-width: 260px;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid #dda15e;
}
.hero-secondary {
  background: #283618;
  color: #fff;
  padding: 2rem 0;
}
.hero-secondary h1 { color: #fff; }

/* Services nav / handyman */
.svc-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.85rem 0;
  background: #3d2b1f;
  position: sticky;
  top: 52px;
  z-index: 30;
}
.svc-jump a {
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.svc-block {
  scroll-margin-top: 120px;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eadfce;
}
.hero-util { padding: 2rem 0; background: #faf6f1; }

/* ========== Layout body themes (variables + dark shell) ========== */
.layout-emergency {
  --accent: #c1121f;
  --navy: #1b1b1b;
  --soft: #fff5f5;
  --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
}
.layout-utility {
  --accent: #0077b6;
  --navy: #023e8a;
  --soft: #eef7fc;
  --font-display: "Trebuchet MS", "Segoe UI", sans-serif;
}
.layout-industrial {
  --accent: #f4a261;
  --navy: #e9ecef;
  --text: #e9ecef;
  --muted: #adb5bd;
  --bg: #121417;
  --soft: #1a1e24;
  --font-display: "Courier New", Courier, monospace;
}
.layout-industrial .site-header { background: #0d0f12; border-color: #2a2f38; }
.layout-industrial .brand,
.layout-industrial .nav a { color: #e9ecef; }
.layout-industrial .card { background: #1a1e24; border-color: #2a2f38; }
.layout-industrial .card h3,
.layout-industrial .section h2,
.layout-industrial .faq summary { color: #f8f9fa; }
.layout-industrial .badge { background: #1a1e24; border-color: #3d4450; color: #f4a261; }
.layout-industrial .quote { background: #1a1e24; }
.layout-industrial .faq details { background: #1a1e24; border-color: #2a2f38; }
.layout-industrial .form-card input,
.layout-industrial .form-card textarea {
  background: #0d0f12; border-color: #3d4450; color: #e9ecef;
}
.layout-industrial .form-card label { color: #e9ecef; }
.layout-industrial .btn-outline { border-color: #f4a261; color: #f4a261; }
.layout-industrial .phone-lg { color: #f8f9fa; }
.layout-industrial .trust-bar { background: #151920; color: #e9ecef; border-color: #2a2f38; }
.layout-gallery {
  --accent: #9b2226;
  --navy: #370617;
  --soft: #f8f1f0;
  --font-display: "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
}
.layout-outdoor {
  --accent: #2d6a4f;
  --navy: #1b4332;
  --soft: #f0f7f4;
  --font-display: Georgia, "Times New Roman", serif;
  --bg: #fbfdfb;
}
.layout-outdoor .card { border-radius: 18px; border-color: #d8e8df; }
.layout-story {
  --accent: #bc6c25;
  --navy: #283618;
  --soft: #fefae0;
  --font-display: "Palatino Linotype", Palatino, Georgia, serif;
}
.layout-servicesnav {
  --accent: #e85d04;
  --navy: #3d2b1f;
  --soft: #faf6f1;
  --font-display: "Segoe UI", system-ui, sans-serif;
}

/* ========== Restaurant / retail layouts ========== */

/* Hospitality / restaurant — warm burgundy */
.layout-hospitality {
  --accent: #9b2226;
  --navy: #370617;
  --soft: #faf3f0;
  --font-display: Georgia, "Times New Roman", serif;
  --bg: #fffdfb;
}
.hours-strip {
  background: #370617;
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.hours-strip span { opacity: 0.85; font-weight: 600; margin-left: 0.35rem; }
.hero-hospitality {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem 0;
  background: linear-gradient(160deg, #faf3f0, #fff 60%);
}
@media (max-width: 800px) { .hero-hospitality { grid-template-columns: 1fr; } }
.hero-hospitality h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  color: var(--navy);
  max-width: 14ch;
  font-weight: 500;
}
.hero-hospitality .side-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid #e9c4b8;
}
.menu-card {
  background: #fff;
  border: 1px solid #edd9d0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 6px 18px rgba(55,6,23,0.05);
}
.menu-card h3 { margin: 0 0 0.25rem; color: var(--navy); font-size: 1.05rem; }
.menu-card .price { font-weight: 800; color: var(--accent); font-size: 0.95rem; }
.menu-card p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* Bakery / sweets — soft rose */
.layout-bakery {
  --accent: #c9184a;
  --navy: #590d22;
  --soft: #fff0f3;
  --font-display: "Palatino Linotype", Palatino, Georgia, serif;
  --bg: #fffafb;
}
.hero-bakery {
  padding: 2.75rem 0 2.25rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,240,243,0.95), rgba(255,250,251,0.92)),
    url("/demos/img/bakery-hero.jpg") center/cover;
}
.hero-bakery h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  color: var(--navy);
  font-weight: 500;
  margin: 0 auto 0.5rem;
  max-width: 16ch;
}
.pastry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}
.pastry-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 160px;
  background: #ffe5ec;
}
.pastry-tile img { width: 100%; height: 100%; object-fit: cover; }
.pastry-tile span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(89,13,34,0.85));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 1.5rem 0.65rem 0.55rem;
}

/* Boutique / retail — sage & blush */
.layout-boutique {
  --accent: #6a994e;
  --navy: #386641;
  --soft: #f7f9f4;
  --font-display: Georgia, "Times New Roman", serif;
  --bg: #fcfdfb;
}
.hero-boutique {
  padding: 3rem 0;
  background: linear-gradient(125deg, #f7f9f4 40%, #fff 100%);
  border-bottom: 1px solid #e4ecd9;
}
.hero-boutique h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  color: var(--navy);
  font-weight: 500;
  max-width: 14ch;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}
.collection-card {
  background: #fff;
  border: 1px solid #e4ecd9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(56,102,65,0.06);
}
.collection-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.collection-card .body { padding: 1rem 1.1rem 1.2rem; }
.collection-card h3 { margin: 0 0 0.3rem; color: var(--navy); font-size: 1.05rem; }
.collection-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Cafe / fast-casual — coffee brown */
.layout-cafe {
  --accent: #bc6c25;
  --navy: #283618;
  --soft: #fefae0;
  --font-display: "Trebuchet MS", "Segoe UI", sans-serif;
  --bg: #fffcf5;
}
.order-strip {
  background: #283618;
  color: #fefae0;
  text-align: center;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.hero-cafe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2.4rem 0;
  background: linear-gradient(180deg, #fefae0, #fffcf5);
}
@media (max-width: 800px) { .hero-cafe { grid-template-columns: 1fr; } }
.hero-cafe h1 {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  color: var(--navy);
  margin: 0 0 0.45rem;
}
.hero-cafe .side-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid #dda15e;
}
.menu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}
.menu-chips a {
  text-decoration: none;
  background: #fff;
  border: 2px solid #bc6c25;
  color: #283618;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
}
