/* ==========================================================================
   Lokality Design System - Layout & Navigation
   Responsive header, section containers, and footer for mobile & desktop
   ========================================================================== */

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 100%;
  transition: all 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(13, 31, 24, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 60px;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .header-inner {
    height: 72px;
    gap: 16px;
  }
}

/* Brand Link */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand-logo-img {
    height: 36px;
    width: 36px;
  }
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--brand-dark);
  letter-spacing: -0.035em;
  line-height: 1;
}

@media (min-width: 768px) {
  .brand-name {
    font-size: 1.35rem;
  }
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  color: var(--brand-primary);
}

.nav-link.active {
  color: var(--brand-primary);
}

/* Header Action Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 10px;
  }
}

/* Locality Selector Pill */
.locality-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--brand-primary-light);
  border: 1px solid rgba(18, 128, 84, 0.18);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--brand-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .locality-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

.locality-pill:hover {
  background: rgba(18, 128, 84, 0.12);
  transform: translateY(-1px);
}

.locality-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
}

/* Header Buttons */
.seller-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
  background: #FFFFFF;
  white-space: nowrap;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

@media (min-width: 640px) {
  .seller-app-btn {
    padding: 7px 15px;
    font-size: 0.84rem;
  }
}

.seller-app-btn:hover {
  background: var(--brand-primary-light);
  transform: translateY(-1px);
}

.header-cta-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--brand-primary-glow);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .header-cta-btn {
    display: inline-flex;
  }
}

/* Page Section Wrappers */
.page-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .page-section {
    padding: 76px 0;
  }
}

.page-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

@media (min-width: 768px) {
  .page-section-header {
    margin-bottom: 48px;
  }
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.page-section-title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 850;
  color: var(--brand-dark);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-section-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Site Footer */
.site-footer {
  padding: 40px 0 32px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  height: 28px;
  width: auto;
}

.footer-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--brand-primary);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}
