/* GAP Starter Demo — Base Override Layer
 * Sits ON TOP of ../../css/style.css
 * Each demo sets --demo-primary and --demo-accent in a <style> block or
 * by overriding these defaults in its own copy of this file.
 * Version: ?v=20260619a
 */

/* ── Demo-level color tokens ─────────────────────────────────────────────
   Override per client. These map onto the GAP design system at the
   component level — navbars, hero backgrounds, CTA buttons.              */
:root {
  --demo-primary:  #0B2447;   /* overrides navbar/hero bg — client brand  */
  --demo-accent:   #FF6B35;   /* overrides CTA button color — client brand */
  --demo-biz-name: "Business Name"; /* CSS custom property; presentational use only */
}

/* ── Disclosure Banner ───────────────────────────────────────────────────
   Sticky, always visible, never collapses.
   Must be the first element inside <body>.
   No JS, no close button, no toggle.                                      */
.gap-demo-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #15233B; /* --navy: never hides behind custom brand colors */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.6rem 1.25rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.gap-demo-banner__text {
  opacity: 0.92;
}

.gap-demo-banner__link {
  color: #E8A33D; /* --orange: warm amber against navy */
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.gap-demo-banner__link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ── Body offset — account for sticky banner height ─────────────────────
   The sticky banner adds ~40px at the top. The nav is position:relative
   below it, so no extra offset needed — normal document flow handles it. */
body {
  padding-top: 0; /* banner is in-flow sticky; no offset required */
}

/* ── Demo Nav ────────────────────────────────────────────────────────────
   Minimal nav pattern used across all demo pages.
   Uses --demo-primary for background so each vertical brand shows.        */
.demo-nav {
  background: var(--demo-primary, #0B2447);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: relative;
  z-index: 100;
}

.demo-nav__logo {
  color: #fff;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.demo-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-nav__links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.demo-nav__links a:hover {
  color: #fff;
}

/* ── Demo Hero ───────────────────────────────────────────────────────────
   Full-width hero with background image + overlay.
   Image path is set via inline style on the element.                      */
.demo-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: var(--demo-primary, #0B2447);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.demo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.58) 0%,
    rgba(0,0,0,0.35) 60%,
    rgba(0,0,0,0.18) 100%
  );
}

.demo-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  color: #fff;
}

.demo-hero__headline {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  max-width: 700px;
}

.demo-hero__tagline {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  line-height: 1.5;
  opacity: 0.9;
  margin: 0 0 2rem;
  max-width: 560px;
}

.demo-hero__cta {
  display: inline-block;
  background: var(--demo-accent, #FF6B35);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.demo-hero__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Demo Sections ───────────────────────────────────────────────────────*/
.demo-section {
  padding: 4rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.demo-section--alt {
  background: #FBF8F3; /* --offwhite */
  max-width: 100%;
  padding: 4rem 0;
}

.demo-section--alt .demo-section__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.demo-section__heading {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #15233B;
  margin: 0 0 1rem;
}

.demo-section__subhead {
  font-size: 1.0625rem;
  color: #444;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 2.5rem;
}

/* ── Card Grids ──────────────────────────────────────────────────────────*/
.demo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.demo-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 3px rgba(21,35,59,0.08), 0 4px 16px rgba(21,35,59,0.06);
  display: flex;
  flex-direction: column;
}

.demo-card__title {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #15233B;
  margin: 0 0 0.5rem;
}

.demo-card__desc {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
  margin: 0 0 1rem;
}

.demo-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--demo-accent, #FF6B35);
  margin: 0;
}

/* ── Testimonials ────────────────────────────────────────────────────────*/
.demo-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.demo-testimonial {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(21,35,59,0.06), 0 4px 14px rgba(21,35,59,0.05);
  border-left: 4px solid var(--demo-primary, #0B2447);
}

.demo-testimonial__quote {
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.65;
  margin: 0 0 1rem;
  font-style: italic;
}

.demo-testimonial__author {
  font-size: 0.875rem;
  font-weight: 700;
  color: #15233B;
  margin: 0;
}

/* ── Trust bar ───────────────────────────────────────────────────────────*/
.demo-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  padding: 2rem 1.5rem;
  background: var(--demo-primary, #0B2447);
  color: #fff;
  text-align: center;
}

.demo-trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.demo-trust-bar__number {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.demo-trust-bar__label {
  font-size: 0.8125rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Inventory Cards ─────────────────────────────────────────────────────*/
.demo-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.demo-inventory-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(21,35,59,0.10);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-inventory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21,35,59,0.14);
}

.demo-inventory-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #1A3A5C;
  display: block;
}

.demo-inventory-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.demo-inventory-card__name {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #15233B;
  margin: 0 0 0.25rem;
}

.demo-inventory-card__desc {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 0.75rem;
  flex: 1;
}

.demo-inventory-card__price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--demo-accent, #FF6B35);
  margin: 0;
}

/* ── Lead Form ───────────────────────────────────────────────────────────*/
.demo-form {
  max-width: 560px;
  margin: 0 auto;
}

.demo-form__group {
  margin-bottom: 1.25rem;
}

.demo-form__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #15233B;
  margin-bottom: 0.4rem;
}

.demo-form__input,
.demo-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(21,35,59,0.18);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #2A2620;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.demo-form__input:focus,
.demo-form__textarea:focus {
  outline: none;
  border-color: var(--demo-accent, #FF6B35);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

.demo-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.demo-form__submit {
  display: inline-block;
  width: 100%;
  background: var(--demo-accent, #FF6B35);
  color: #fff;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.demo-form__submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.demo-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.demo-form__success {
  display: none;
  background: #3FB7A6;
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

.demo-form__error {
  display: none;
  background: #fee;
  color: #c00;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  margin-top: 0.75rem;
}

/* ── CTA Footer Section ──────────────────────────────────────────────────*/
.demo-cta-footer {
  background: var(--demo-primary, #0B2447);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.demo-cta-footer__heading {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.demo-cta-footer__phone {
  font-size: 1.375rem;
  font-weight: 700;
  color: #E8A33D;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.demo-cta-footer__btn {
  display: inline-block;
  background: var(--demo-accent, #FF6B35);
  color: #fff;
  padding: 0.875rem 2.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.demo-cta-footer__btn:hover {
  opacity: 0.85;
}

/* ── Footer ──────────────────────────────────────────────────────────────*/
.demo-footer {
  background: #111;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.8125rem;
  font-family: 'Inter', system-ui, sans-serif;
}

.demo-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.demo-footer a:hover {
  color: #fff;
}

/* ── Updates page ────────────────────────────────────────────────────────*/
.demo-update-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.demo-update-item {
  border-left: 4px solid var(--demo-primary, #0B2447);
  padding-left: 1.5rem;
}

.demo-update-item__date {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.demo-update-item__title {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #15233B;
  margin: 0 0 0.5rem;
}

.demo-update-item__body {
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.65;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────*/
@media (max-width: 640px) {
  .demo-nav__links {
    gap: 1rem;
  }

  .demo-nav__links a {
    font-size: 0.875rem;
  }

  .demo-hero {
    min-height: 400px;
  }

  .demo-trust-bar {
    gap: 1.5rem 2rem;
  }
}
