/* Shared layout for LOEF Media sample/demo sites.
   Each demo page overrides the --brand-* variables to create a distinct look. */

:root {
  --brand-primary: #2563eb;
  --brand-primary-dark: #1d4ed8;
  --brand-secondary: #f59e0b;
  --brand-bg: #f7f9fc;
  --brand-surface: #ffffff;
  --brand-text: #1a1f2b;
  --brand-muted: #5b6472;
  --brand-border: #e4e8f0;
  --brand-heading-font: "Inter", sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--brand-text);
  background: var(--brand-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--brand-heading-font); }

/* Sample ribbon */
.sample-ribbon {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #0b1e3f;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 16px;
}

.sample-ribbon a {
  color: #6f9dff;
  font-weight: 700;
  text-decoration: underline;
}

/* Nav */
.demo-header {
  background: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
}

.demo-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.demo-logo {
  font-weight: 800;
  font-size: 1.25rem;
  font-family: var(--brand-heading-font);
  color: var(--brand-primary-dark);
}

.demo-nav-links { display: flex; align-items: center; gap: 28px; }
.demo-nav-links a { font-weight: 600; font-size: 0.92rem; color: var(--brand-text); }
.demo-nav-links a:hover { color: var(--brand-primary); }

.demo-nav-cta {
  background: var(--brand-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
}

.demo-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.demo-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.demo-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.demo-nav-toggle.open span:nth-child(2) { opacity: 0; }
.demo-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.dbtn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.dbtn-primary { background: var(--brand-primary); color: #fff; }
.dbtn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.dbtn-secondary { background: var(--brand-secondary); color: #1a1f2b; }

/* Hero */
.demo-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-primary-dark);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 90px 0 80px;
}

.demo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand-primary-dark) 92%, transparent) 0%, color-mix(in srgb, var(--brand-primary) 82%, transparent) 100%);
  z-index: 0;
}

.demo-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.demo-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.demo-hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}

.demo-hero p.lead {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 30px;
  max-width: 520px;
}

.demo-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
.dsection { padding: 76px 0; }
.dsection-head { max-width: 600px; margin: 0 auto 44px; text-align: center; }
.dsection-head h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; }
.dsection-head p { color: var(--brand-muted); }

.dgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.dcard {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

.dcard-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-primary) 14%, white);
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.dcard h3 { font-size: 1.05rem; margin-bottom: 8px; }
.dcard p { color: var(--brand-muted); font-size: 0.92rem; }

/* Why us / features */
.dwhy { background: var(--brand-surface); }
.dwhy-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.dwhy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--brand-bg);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.94rem;
}
.dwhy-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; flex-shrink: 0; margin-top: 1px;
}

/* CTA banner */
.dcta {
  background: linear-gradient(150deg, var(--brand-primary-dark), var(--brand-primary));
  color: #fff;
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
}
.dcta h2 { font-size: 1.7rem; margin-bottom: 12px; }
.dcta p { opacity: 0.92; margin-bottom: 26px; }

/* Testimonial */
.dquote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.dquote .mark { font-size: 2.2rem; color: var(--brand-primary); font-weight: 800; }
.dquote p { font-size: 1.1rem; color: var(--brand-text); margin: 8px 0 16px; }
.dquote .cite { font-weight: 700; color: var(--brand-muted); font-size: 0.9rem; }

/* Footer */
.demo-footer {
  background: #10131c;
  color: #b7c0d6;
  padding: 40px 0;
  text-align: center;
  font-size: 0.85rem;
}
.demo-footer a { color: #8fb0ff; font-weight: 600; }

/* ---- Extra structural components for differentiated demo layouts ---- */

/* Feature strip: 3-4 short stat/trust items in a row under the hero */
.dfeature-strip {
  background: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
}
.dfeature-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 28px 0;
}
.dfeature-item { display: flex; align-items: center; gap: 12px; }
.dfeature-item .dfeature-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-primary) 14%, white);
  color: var(--brand-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.dfeature-item strong { display: block; font-size: 0.92rem; }
.dfeature-item span { display: block; font-size: 0.82rem; color: var(--brand-muted); }

/* Multi-review grid (testimonial wall) */
.dreviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.dreview-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 24px;
}
.dreview-stars { color: var(--brand-secondary); font-size: 0.9rem; margin-bottom: 10px; letter-spacing: 2px; }
.dreview-card p { font-size: 0.92rem; color: var(--brand-text); margin-bottom: 14px; }
.dreview-name { font-weight: 700; font-size: 0.88rem; }
.dreview-loc { font-size: 0.8rem; color: var(--brand-muted); }

/* Split section: image beside text (about / story / community) */
.dsplit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.dsplit-media { border-radius: var(--radius); overflow: hidden; }
.dsplit-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dsplit-content h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.dsplit-content p { color: var(--brand-muted); margin-bottom: 14px; }
.dsplit.reverse { direction: rtl; }
.dsplit.reverse > * { direction: ltr; }

/* Photo service cards (image thumbnail + label + link) */
.dphoto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.dphoto-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dphoto-card img { width: 100%; height: 150px; object-fit: cover; }
.dphoto-card-body { padding: 18px 20px; }
.dphoto-card-tag { font-size: 0.76rem; font-weight: 700; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 0.04em; }
.dphoto-card h3 { font-size: 1.02rem; margin: 6px 0 8px; }
.dphoto-card p { font-size: 0.88rem; color: var(--brand-muted); }

/* Trust / credential grid (license, insurance, warranty, safety) */
.dtrust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.dtrust-card { padding: 22px; border-radius: var(--radius); background: var(--brand-bg); border: 1px solid var(--brand-border); }
.dtrust-card h4 { font-size: 0.98rem; margin-bottom: 8px; }
.dtrust-card p { font-size: 0.86rem; color: var(--brand-muted); }

/* Blog / article preview cards */
.dblog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.dblog-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.dblog-card img { width: 100%; height: 150px; object-fit: cover; }
.dblog-card-body { padding: 16px 18px; }
.dblog-card-meta { font-size: 0.76rem; color: var(--brand-muted); margin-bottom: 6px; }
.dblog-card h3 { font-size: 0.98rem; line-height: 1.35; }

/* Badge row (certifications / provider logos) */
.dbadge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.dbadge {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-muted);
}

/* Stat panel: used in place of a photo in a split section */
.dstat-panel {
  background: linear-gradient(150deg, var(--brand-primary-dark), var(--brand-primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  text-align: center;
}
.dstat-num { font-size: 3.4rem; font-weight: 800; margin-bottom: 12px; }
.dstat-label { font-size: 0.98rem; opacity: 0.92; line-height: 1.5; }

/* Blog/article card without an image — colored top bar instead */
.dblog-card-noimg { border-top: 5px solid var(--brand-primary); }
.dblog-card-noimg .dblog-card-body { padding-top: 20px; }

/* Numbered process steps (used for "how it works" style sections) */
.dsteps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.dstep-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.dstep h4 { font-size: 0.98rem; margin-bottom: 6px; }
.dstep p { font-size: 0.86rem; color: var(--brand-muted); }

@media (max-width: 860px) {
  .demo-nav-toggle { display: flex; }

  .demo-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--brand-surface);
    border-bottom: 1px solid var(--brand-border);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .demo-nav-links.open { max-height: 420px; }

  .demo-nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--brand-border);
    width: 100%;
  }

  .demo-nav-cta { border-radius: 0; text-align: center; }
}

@media (max-width: 720px) {
  .demo-hero h1 { font-size: 2rem; }
  .demo-hero-actions { flex-direction: column; align-items: stretch; }
  .demo-hero-actions .dbtn { text-align: center; }
  .dcta { padding: 36px 24px; }
  .emergency-bar { font-size: 0.78rem; padding: 8px; }
}

@media (max-width: 420px) {
  .demo-nav { padding: 14px 16px; }
  .container { padding: 0 16px; }
  .demo-hero h1 { font-size: 1.7rem; }
  .dcard { padding: 22px 18px; }
}

@media (max-width: 720px) {
  .dsplit { grid-template-columns: 1fr; gap: 28px; }
  .dsplit-media { order: -1; max-height: 260px; }
  .dsplit.reverse { direction: ltr; }
}
