/* --------------------------------------------------------------------------
   AiS Demo Websites — Shared Modern Styling Framework
   Three Radically Distinct Visual Identities:
   1. Starter ($250): Fresh Sunlit Morning Garden & Farm Market (Crisp White + Basil Green + Harvest Orange)
   2. Business ($500): Architectural Engineering & Stonework (Slate + Obsidian + Emerald)
   3. Store ($1,000): Nocturnal Velvet Luxury Scent Atelier (Deep Obsidian Espresso + Champagne Gold)
   -------------------------------------------------------------------------- */

:root {
  --sans-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif-font: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --luxury-serif: "Didot", "Bodoni MT", "Cinzel", Charter, Georgia, serif;
  --mono-font: "SF Mono", Menlo, Monaco, Consolas, monospace;
  
  --transition-smooth: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -8px rgba(0, 0, 0, 0.12), 0 10px 15px -6px rgba(0, 0, 0, 0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* --------------------------------------------------------------------------
   AiS Demo Bar & Floating Header
   -------------------------------------------------------------------------- */
.ais-demo-bar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  background: #061122;
  color: #c4d7f0;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(140, 185, 255, 0.16);
}

.ais-demo-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ais-demo-bar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.ais-demo-bar__tier {
  font-weight: 700;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.ais-demo-bar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ais-demo-bar__link {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.ais-demo-bar__link:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Global Layout Shells
   -------------------------------------------------------------------------- */
.demo-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.demo-shell--narrow {
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   1. STARTER THEME ($250) — Fresh Sunlit Morning Garden & Farm Market
   -------------------------------------------------------------------------- */
body.theme-starter {
  background-color: #f7faf5;
  color: #1a2e1d;
}

/* --------------------------------------------------------------------------
   2. BUSINESS THEME ($500) — Architectural Slate & Evergreen
   -------------------------------------------------------------------------- */
body.theme-business {
  background-color: #f8fafc;
  color: #1e293b;
}

/* Summit Landscape Architecture Header */
.biz-header {
  position: sticky;
  top: 0;
  z-index: 95;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.biz-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.biz-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
  transition: opacity 0.2s ease;
}

.biz-brand small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  margin-top: 2px;
}

.biz-brand:hover {
  opacity: 0.9;
}

.biz-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.biz-nav-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.biz-nav-links a:hover,
.biz-nav-links a.is-active {
  color: #ffffff;
}

.biz-nav-links a.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #10b981;
  border-radius: 2px;
}

.biz-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #059669;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.biz-cta-btn:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

@media (max-width: 860px) {
  .biz-nav-links {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   3. STORE THEME ($1,000) — Nocturnal Velvet Luxury Scent Atelier
   -------------------------------------------------------------------------- */
body.theme-store {
  background-color: #0c0a09;
  color: #fafaf9;
}

/* Universal Slide-out Drawers & Modals */
.demo-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.demo-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.demo-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  width: min(440px, 100%);
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.demo-drawer-backdrop.is-open .demo-drawer {
  transform: translateX(0);
}

/* Store Luxury Drawer Override */
body.theme-store .demo-drawer {
  background: #14110f;
  border-left: 1px solid rgba(230, 202, 101, 0.2);
  color: #fafaf9;
}

body.theme-store .demo-drawer__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-store .demo-drawer__close {
  background: #26201c;
  color: #e6ca65;
}

body.theme-store .demo-drawer__close:hover {
  background: #3a322c;
  color: #ffffff;
}

body.theme-store .demo-drawer__footer {
  background: #0c0a09;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.demo-drawer__title {
  font-size: 18px;
  font-weight: 700;
}

.demo-drawer__close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
  transition: background 0.18s ease;
}

.demo-drawer__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.demo-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.demo-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}

/* Toast feedback message */
.demo-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-toast.is-active {
  transform: translateY(0);
  opacity: 1;
}

body.theme-store .demo-toast {
  background: #1c1815;
  color: #e6ca65;
  border: 1px solid rgba(230, 202, 101, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   Responsive Mobile Framework (<= 860px & <= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  /* Demo Top Bar — Clean, single-line header without text squishing */
  .ais-demo-bar {
    padding: 6px 14px;
    font-size: 11px;
    gap: 8px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ais-demo-bar__badge {
    gap: 6px;
    flex-shrink: 0;
  }
  .ais-demo-bar__badge > span:not(.ais-demo-bar__dot):not(.ais-demo-bar__tier) {
    display: none !important; /* Hide verbose 'AiS Production Prototype' text */
  }
  .ais-demo-bar__actions {
    gap: 12px;
    flex-shrink: 0;
  }
  .ais-demo-bar__actions > span {
    display: none !important; /* Hide verbose subtitle text */
  }

  /* Universal Navigation Links Collapse on Mobile */
  .biz-nav-links,
  .starter-nav-links,
  .store-nav-links {
    display: none !important;
  }

  /* Sticky Navigation Bars — Proportional spacing & alignment */
  .biz-nav-inner,
  .starter-nav-inner,
  .store-nav-inner {
    padding: 12px 0 !important;
    gap: 12px !important;
  }

  /* Store Nav Elements */
  .store-brand {
    font-size: 20px !important;
    letter-spacing: 0.04em !important;
  }
  .store-brand small {
    font-size: 8px !important;
    letter-spacing: 0.12em !important;
  }
  .store-bag-btn {
    padding: 6px 14px !important;
    font-size: 12px !important;
    gap: 6px !important;
    white-space: nowrap;
  }

  /* Starter Nav Elements */
  .starter-brand {
    font-size: 20px !important;
    gap: 8px !important;
  }
  .starter-brand span {
    font-size: 9px !important;
    padding: 2px 6px !important;
  }
  .starter-cta-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* Business Nav Elements */
  .biz-brand {
    font-size: 19px !important;
  }
  .biz-brand small {
    font-size: 9px !important;
  }
  .biz-cta-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* Universal Shell Margins */
  .demo-shell, .demo-shell--narrow {
    width: calc(100% - 32px);
  }
}

@media (max-width: 480px) {
  .demo-shell, .demo-shell--narrow {
    width: calc(100% - 24px);
  }
  .ais-demo-bar {
    padding: 5px 10px;
    font-size: 10.5px;
  }
}
