/* ============================================
   PAGE BUILDER - Professional Layout System
   ============================================ */

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

:root {
  /* LBPF Brand Tokens (colors) */
  --lbpf-color-primary: #8b1436;        /* Deep wine red */
  --lbpf-color-primary-dark: #5e0d25;   /* Darker wine for hover */
  --lbpf-color-secondary: #0b8a44;      /* Dark emerald green */
  --lbpf-color-accent: #d4af37;         /* Warm gold */
  --lbpf-color-accent-soft: rgba(212, 175, 55, 0.12); /* Soft gold for tags/badges */
  --lbpf-surface: #f9f5f0;              /* Warm off-white surfaces */
  --lbpf-text: #262220;                 /* Deep charcoal text */
  --lbpf-text-muted: #5b524b;          /* Softer text */

  /* Typography tokens */
  --font-heading: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale (4/8 system) */
  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-40: 2.5rem;
  --space-64: 4rem;

  /* Legacy template tokens mapped to brand pack */
  --primary: var(--lbpf-color-primary);
  --primary-dark: var(--lbpf-color-primary-dark);
  --secondary: var(--lbpf-color-secondary);
  --text-primary: var(--lbpf-text);
  --text-secondary: var(--lbpf-text-muted);
  --background: #f4efe8;
  --surface: var(--lbpf-surface);
  --footer-surface: #efe1d5;
  --border: #e3d8cc;
  
  /* Layout Dimensions */
  --page-max-width: 1280px;
  --content-width: 880px;
  --navbar-height: 119px;
  
  /* Effects */
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --blur: blur(12px);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Page Container - Max 1280px */
.page-container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding-top: 0;
  background-color: var(--surface);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

/* ============================================
   NAVBAR (Sticky)
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--navbar-height);
  background: transparent;
  border-bottom: none;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar.scrolled {
  background: transparent;
  border-bottom: none;
}

/* Main wrapper - respects 1280px boundary */
.navbar-wrapper {
  width: 100%;
  max-width: var(--page-max-width);
  padding: 0 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 100%;
}

/* Right side with two rows */
.navbar-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

/* Top row: pills + actions */
.navbar-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Search bar full width */
.navbar-search {
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.navbar-logo {
  height: 93.5px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  mix-blend-mode: screen;
}

.navbar.scrolled .navbar-logo {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  mix-blend-mode: normal;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.03);
}

/* Veepee-style Category Pills */
.navbar-categories {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-pill {
  padding: 0.36rem 0.92rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #333;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 1.7px 6.8px rgba(0, 0, 0, 0.08);
}

/* Hide Docs pill in navbar (docs are handled via TOBE Lab archive instead) */
.navbar-categories .nav-pill[href^="docs/"] {
  display: none;
}

.navbar.scrolled .nav-pill {
  background: rgba(249, 245, 240, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 3.4px 13.6px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled .nav-pill:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.navbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.5;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.btn-primary {
  padding: 0.36rem 0.92rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #333;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 1.7px 6.8px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .btn-primary {
  background: rgba(249, 245, 240, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 3.4px 13.6px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled .btn-primary:hover {
  background: #5a4f4a;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-text {
  padding: 0.36rem 0.92rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #333;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 1.7px 6.8px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .btn-text {
  background: rgba(249, 245, 240, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-text:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 3.4px 13.6px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled .btn-text:hover {
  background: #5a4f4a;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Search Bar */
.search-container {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 0.72rem;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  color: #666;
  opacity: 0.7;
  transition: var(--transition);
}

.navbar.scrolled .search-icon {
  color: var(--text-secondary);
  opacity: 0.8;
}

.search-input {
  width: 100%;
  padding: 0.54rem 0.72rem 0.54rem 2.2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 1.7px 6.8px rgba(0, 0, 0, 0.08);
}

.search-input::placeholder {
  color: #333;
  opacity: 0.8;
  font-weight: 500;
}

.navbar.scrolled .search-input {
  background: rgba(249, 245, 240, 0.98);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled .search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.9;
  font-weight: 500;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 3.4px 13.6px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled .search-input:focus {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

/* ============================================
   HERO SECTION (Full width, full viewport)
   ============================================ */

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: var(--content-width);
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.hero-subheadline {
  font-size: 1.5rem;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ============================================
   CONTENT SECTION (Constrained width)
   ============================================ */

.content-section {
  padding: 5rem 2rem;
  width: 100%;
  min-height: 400px;
  display: flex;
  justify-content: center;
  background-color: #F5F5F5;
}

.content-section > div {
  max-width: var(--content-width);
  width: 100%;
}

.content-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-family: var(--font-heading);
}

.content-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 65ch;
}

/* Demo Cards & Elements */
.demo-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.demo-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.demo-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-box {
  background: var(--lbpf-color-accent-soft);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.info-box p {
  margin: 0;
  color: var(--text-primary);
}

.map-container {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

/* ============================================
   IMAGE SECTION (Connects to footer)
   ============================================ */

.image-section {
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  height: 700px;
  min-height: 700px;
}

.image-section img {
  width: 100%;
  height: 120%;
  min-height: 840px;
  object-fit: cover;
  display: block;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* ============================================
   CTA SECTION (Full width)
   ============================================ */

.cta-section {
  width: 100%;
  padding: 5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-headline {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}

.cta-section .btn {
  background-color: white;
  color: var(--primary);
  font-weight: 700;
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.cta-section .btn:hover {
  background-color: var(--surface);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER (Full width, professional)
   ============================================ */

footer {
  width: 100%;
  background: transparent;
  color: var(--text-primary);
}

.footer-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Main Footer Section */
.footer-main {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--footer-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-column h6 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--primary);
}

/* Payment Icons */
.payment-icons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-icon {
  opacity: 0.7;
  transition: var(--transition);
}

.payment-icon:hover {
  opacity: 1;
}

/* Social Media Section */
.footer-social {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg,
    rgba(139, 20, 54, 0.10) 0%,
    rgba(11, 138, 68, 0.10) 50%,
    rgba(212, 175, 55, 0.10) 100%);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.footer-social .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex: 1;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
  background: #ffffff;
}

.social-icons a:hover {
  background: var(--lbpf-color-accent-soft);
  border-color: var(--lbpf-color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.language-selector {
  position: absolute;
  right: 2rem;
}

.language-selector select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.language-selector select:hover {
  background: #ffffff;
  border-color: var(--lbpf-color-accent);
}

.language-selector select:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--lbpf-color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.language-selector select option {
  background: #ffffff;
  color: var(--text-primary);
}

/* Brand Section */
.footer-brand {
  padding: 1.5rem 0;
  background: var(--footer-surface);
  border-top: 1px solid var(--border);
}

.footer-brand p {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.footer-brand a {
  color: var(--primary);
  text-decoration: underline;
  transition: var(--transition);
  font-weight: 600;
}

.footer-brand a:hover {
  color: var(--lbpf-color-accent);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --content-width: 90%;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: auto;
  }

  .navbar {
    height: auto;
    padding: 1rem;
  }

  .navbar-wrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .navbar-logo {
    height: 60px;
  }

  .navbar-right {
    width: 100%;
  }

  .navbar-top-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .navbar-categories {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-pill {
    padding: 0.34rem 0.85rem;
    font-size: 0.68rem;
  }

  .navbar-actions {
    width: 100%;
    justify-content: center;
  }

  .search-input {
    font-size: 0.7225rem;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-subheadline {
    font-size: 1.25rem;
  }

  .content-section {
    padding: 3rem 1.5rem;
  }

  .content-title {
    font-size: 2rem;
  }

  .content-description {
    font-size: 1rem;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }

  .cta-headline {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .language-selector {
    position: static;
    margin-top: 1rem;
  }

  .footer-social .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem;
  }

  .hero-subheadline {
    font-size: 1rem;
  }

  .content-title {
    font-size: 1.75rem;
  }

  .cta-headline {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .social-icons {
    flex-wrap: wrap;
  }
}
