/* Shared demo landing pages — theme modifiers per vertical */
:root {
  --demo-bg: #f7f8fa;
  --demo-surface: #ffffff;
  --demo-text: #0f172a;
  --demo-muted: #475569;
  --demo-soft: #64748b;
  --demo-accent: #0e7490;
  --demo-accent-2: #0891b2;
  --demo-border: rgba(15, 23, 42, 0.08);
  --demo-radius: 14px;
  --demo-font-display: "Manrope", system-ui, sans-serif;
  --demo-font-body: "Manrope", system-ui, sans-serif;
  --demo-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  --demo-max: 1120px;
  --demo-pad: clamp(1.25rem, 4vw, 2.5rem);
  --demo-hero-img: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.demo-page {
  font-family: var(--demo-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--demo-text);
  background: var(--demo-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Theme modifiers */
.demo-theme--detailing {
  --demo-accent: #0e7490;
  --demo-accent-2: #22d3ee;
  --demo-hero-img: url("https://images.unsplash.com/photo-1607860108855-64acf2078ed9?auto=format&fit=crop&w=1800&q=80");
}

.demo-theme--barber {
  --demo-accent: #44403c;
  --demo-accent-2: #a8a29e;
  --demo-hero-img: url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1800&q=80");
}

.demo-theme--restaurant {
  --demo-accent: #9a3412;
  --demo-accent-2: #ea580c;
  --demo-hero-img: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1800&q=80");
}

.demo-theme--contractor {
  --demo-accent: #166534;
  --demo-accent-2: #4ade80;
  --demo-hero-img: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=80");
}

.demo-theme--cleaning {
  --demo-accent: #0369a1;
  --demo-accent-2: #38bdf8;
  --demo-hero-img: url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=1800&q=80");
}

.demo-wrap {
  width: 100%;
  max-width: var(--demo-max);
  margin-inline: auto;
  padding-inline: var(--demo-pad);
}

/* Top bar — portfolio chrome only */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.55rem var(--demo-pad);
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  font-size: 0.8125rem;
}

.demo-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.demo-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.demo-banner__links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: color 0.2s;
}

.demo-banner__links a:hover {
  color: #fff;
}

.demo-banner__cta {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  background: #fff;
  color: #0f172a !important;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: opacity 0.2s, transform 0.2s;
}

.demo-banner__cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Local nav */
.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  background: var(--demo-surface);
}

.demo-nav__brand {
  font-family: var(--demo-font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.demo-nav__links {
  display: flex;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--demo-muted);
}

.demo-nav__links a {
  transition: color 0.2s;
}

.demo-nav__links a:hover {
  color: var(--demo-accent);
}

.demo-nav__phone {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--demo-accent);
  transition: opacity 0.2s;
}

.demo-nav__phone:hover {
  opacity: 0.8;
}

/* Hero — full-bleed photo */
.demo-hero {
  position: relative;
  color: #fff;
  min-height: clamp(420px, 68vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
  background-color: #0f172a;
  background-image: var(--demo-hero-img);
  background-size: cover;
  background-position: center;
}

.demo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 15, 30, 0.88) 0%,
    rgba(8, 15, 30, 0.62) 48%,
    rgba(8, 15, 30, 0.35) 100%
  );
  pointer-events: none;
}

.demo-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--demo-max);
  margin-inline: auto;
  padding: clamp(3.5rem, 9vw, 5.5rem) var(--demo-pad) clamp(2.75rem, 6vw, 4rem);
}

.demo-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.demo-hero h1 {
  font-family: var(--demo-font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: 1rem;
}

.demo-hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  opacity: 0.92;
  max-width: 34rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.demo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.demo-btn:hover {
  transform: translateY(-2px);
}

.demo-btn--primary {
  background: #fff;
  color: var(--demo-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.demo-btn--primary:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.demo-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.demo-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.demo-btn--accent {
  background: var(--demo-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.demo-btn--accent:hover {
  filter: brightness(1.08);
}

/* Sections */
.demo-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.demo-section--muted {
  background: var(--demo-surface);
}

.demo-section__header {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.demo-section__header h2 {
  font-family: var(--demo-font-display);
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.demo-section__header p {
  color: var(--demo-muted);
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.demo-card-item {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius);
  overflow: hidden;
  box-shadow: var(--demo-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.demo-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.demo-card-item__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--demo-bg);
}

.demo-card-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.demo-card-item:hover .demo-card-item__media img {
  transform: scale(1.05);
}

.demo-card-item__body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.demo-card-item h3 {
  font-family: var(--demo-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  letter-spacing: -0.015em;
}

.demo-card-item p {
  color: var(--demo-muted);
  font-size: 0.95rem;
}

.demo-card-item__price {
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--demo-accent);
  font-size: 1rem;
}

.demo-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.demo-split__photo {
  border-radius: var(--demo-radius);
  overflow: hidden;
  box-shadow: var(--demo-shadow);
  aspect-ratio: 4 / 3;
}

.demo-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-panel {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius);
  padding: 1.75rem;
  box-shadow: var(--demo-shadow);
}

.demo-panel h3 {
  font-family: var(--demo-font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.demo-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--demo-muted);
  font-size: 0.95rem;
}

.demo-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--demo-accent);
}

.demo-hours {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.demo-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--demo-border);
  font-size: 0.95rem;
}

.demo-hours div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.demo-hours span:last-child {
  color: var(--demo-muted);
  font-weight: 500;
  text-align: right;
}

/* Gallery */
.demo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.demo-gallery__item {
  aspect-ratio: 1;
  border-radius: var(--demo-radius);
  overflow: hidden;
  box-shadow: var(--demo-shadow);
}

.demo-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.demo-gallery__item:hover img {
  transform: scale(1.06);
}

/* Contact band */
.demo-contact {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: calc(var(--demo-radius) + 4px);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--demo-shadow);
  text-align: center;
}

.demo-contact h2 {
  font-family: var(--demo-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.demo-contact p {
  color: var(--demo-muted);
  margin-bottom: 1.5rem;
  max-width: 30rem;
  margin-inline: auto;
}

.demo-contact__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--demo-soft);
}

.demo-contact__meta a {
  color: var(--demo-accent);
  font-weight: 600;
}

.demo-contact__meta a:hover {
  text-decoration: underline;
}

/* Footer */
.demo-footer {
  padding: 2.25rem 0 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--demo-border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--demo-soft);
}

.demo-footer a {
  color: var(--demo-accent);
  font-weight: 600;
}

.demo-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .demo-cards {
    grid-template-columns: 1fr;
  }

  .demo-split {
    grid-template-columns: 1fr;
  }

  .demo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-nav__links {
    display: none;
  }

  .demo-hero {
    min-height: 440px;
  }
}

@media (max-width: 600px) {
  .demo-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .demo-btn:hover,
  .demo-card-item:hover {
    transform: none;
  }

  .demo-card-item:hover .demo-card-item__media img,
  .demo-gallery__item:hover img {
    transform: none;
  }
}
