/* ==========================================================================
   EL NISR AUTOMOTIVE INNER TUBES — V2 "QUIET LUXURY" DESIGN SYSTEM
   Mobile-First • Ultra-Premium • Calm & Minimalist Industrial Craft
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette — Light Mode (Calm, Silk & Brushed Titanium) */
  --bg-app: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FCFCFD;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F1F3F5;
  --bg-translucent: rgba(255, 255, 255, 0.85);

  --border-hairline: rgba(0, 0, 0, 0.06);
  --border-subtle: rgba(0, 0, 0, 0.10);
  --border-focus: #B89355;

  /* Typography Colors */
  --text-main: #18191B;
  --text-secondary: #52555A;
  --text-muted: #7A7E85;
  --text-inverse: #FFFFFF;

  /* Refined Champagne Gold / Bronze Accent (Quiet, Not Neon) */
  --accent-gold: #A47E3B;
  --accent-gold-hover: #8E6B2E;
  --accent-gold-soft: rgba(164, 126, 59, 0.08);
  --accent-gold-border: rgba(164, 126, 59, 0.22);
  --accent-gold-glow: rgba(164, 126, 59, 0.15);

  /* Functional Accents */
  --accent-emerald: #0D9488;
  --accent-emerald-soft: rgba(13, 148, 136, 0.08);
  --accent-wa: #10B981;
  --accent-wa-hover: #059669;
  --accent-wa-soft: rgba(16, 185, 129, 0.10);

  /* Shadows (Ultra-gentle & Natural) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.03), 0 6px 18px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.06);
  --shadow-dock: 0 -4px 20px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-modal: 0 20px 48px rgba(0, 0, 0, 0.12);

  /* Geometry & Rhythm */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Mobile Ergonomics */
  --touch-target: 48px;
  --header-height: 60px;
  --dock-height: 64px;
  --content-max-w: 1140px;

  /* Typography */
  --font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 180ms var(--ease-smooth);
  --transition-normal: 260ms var(--ease-smooth);
}

/* --------------------------------------------------------------------------
   Dark Mode Theme (Obsidian & Soft Champagne)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-app: #0D1015;
  --bg-card: #141820;
  --bg-card-hover: #1A1F2A;
  --bg-elevated: #1A202C;
  --bg-subtle: #181E29;
  --bg-translucent: rgba(13, 16, 21, 0.88);

  --border-hairline: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-focus: #C5A467;

  --text-main: #F4F5F7;
  --text-secondary: #9FA4AE;
  --text-muted: #6B7280;
  --text-inverse: #0D1015;

  --accent-gold: #C5A467;
  --accent-gold-hover: #D4B67E;
  --accent-gold-soft: rgba(197, 164, 103, 0.12);
  --accent-gold-border: rgba(197, 164, 103, 0.28);
  --accent-gold-glow: rgba(197, 164, 103, 0.20);

  --accent-wa: #10B981;
  --accent-wa-hover: #34D399;
  --accent-wa-soft: rgba(16, 185, 129, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-dock: 0 -4px 24px rgba(0, 0, 0, 0.40);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.65);
}

/* --------------------------------------------------------------------------
   2. Reset & Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: calc(var(--dock-height) + 16px);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* RTL / LTR Directional Handling */
html[dir="rtl"] { direction: rtl; text-align: right; }
html[dir="ltr"] { direction: ltr; text-align: left; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

/* --------------------------------------------------------------------------
   3. Layout & Typography Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   4. Glassmorphic Navigation Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-height);
  background: var(--bg-translucent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
}

.brand-name .gold-dot {
  color: var(--accent-gold);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.1;
  font-weight: 400;
}

/* Header Controls & Desktop Nav */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.ctrl-btn:hover {
  border-color: var(--border-subtle);
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.ctrl-btn:active {
  transform: scale(0.97);
}

.desktop-nav {
  display: none;
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
  .desktop-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
  }
  .desktop-nav a:hover, .desktop-nav a.active {
    color: var(--accent-gold);
  }
  .desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--accent-gold);
    border-radius: var(--radius-full);
  }
}

/* --------------------------------------------------------------------------
   5. Calm & Minimalist Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
}

.hero-pill .flag-icon {
  font-size: 1rem;
}

.hero-headline {
  font-size: clamp(1.85rem, 5.5vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero-headline span.gold-highlight {
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 1.85rem;
}

/* Primary Action Buttons */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 2.5rem;
}

@media (min-width: 520px) {
  .hero-cta-group {
    flex-direction: row;
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: var(--touch-target);
  padding: 0 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-gold);
  color: #FFFFFF;
  box-shadow: 0 2px 10px var(--accent-gold-glow);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  box-shadow: 0 4px 16px var(--accent-gold-glow);
}

.btn-wa {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-wa:hover {
  border-color: var(--accent-wa);
  color: var(--accent-wa);
  background: var(--accent-wa-soft);
}

.btn-wa svg {
  color: var(--accent-wa);
}

.btn-sm {
  height: 38px;
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* 4 Inline Metric Chips */
.hero-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-chips-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   6. Mobile-Optimized Smart Tube Finder
   -------------------------------------------------------------------------- */
.finder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}

@media (min-width: 640px) {
  .finder-card {
    padding: 2.25rem;
  }
}

.finder-header-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.finder-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.finder-lead-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.finder-lead-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Finder Step Pills (Horizontal Mobile Grid) */
.finder-cat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  display: block;
}

.finder-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .finder-cat-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.cat-pill-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 58px;
  transition: all var(--transition-fast);
}

.cat-pill-btn svg {
  margin-bottom: 0.35rem;
  opacity: 0.7;
}

.cat-pill-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-hairline);
}

.cat-pill-btn.active {
  background: var(--accent-gold-soft);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
}

.cat-pill-btn.active svg {
  opacity: 1;
  color: var(--accent-gold);
}

/* Step 2: Size Dropdown or Chip Selector */
.finder-size-select-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.select-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.select-input:focus {
  border-color: var(--accent-gold);
  background: var(--bg-card);
}

.select-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}
html[dir="rtl"] .select-arrow { left: 1rem; }
html[dir="ltr"] .select-arrow { right: 1rem; }

/* Finder Result Card */
.finder-result {
  display: none;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  animation: fadeIn 0.25s ease forwards;
}

.finder-result.show {
  display: block;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.result-badge {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
}

.result-size-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.result-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 1rem;
}

.result-specs-row strong {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   7. Horizontal Filterable Product Catalog
   -------------------------------------------------------------------------- */
.catalog-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.catalog-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--text-main);
  color: var(--bg-app);
  border-color: var(--text-main);
  font-weight: 600;
}

/* Product Cards Grid */
.products-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .products-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-feed {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-item {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.product-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-hover);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-subtle);
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-smooth);
}

.product-item:hover .product-thumb {
  transform: scale(1.03);
}

.product-top-badge {
  position: absolute;
  top: 10px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--bg-translucent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
}
html[dir="rtl"] .product-top-badge { right: 10px; }
html[dir="ltr"] .product-top-badge { left: 10px; }

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat-tag {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.product-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.product-summary {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.product-meta-list {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.product-meta-item {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.product-meta-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.product-actions-row {
  display: flex;
  gap: 0.5rem;
}

.product-actions-row .btn {
  flex: 1;
  font-size: 0.82rem;
  height: 42px;
}

/* --------------------------------------------------------------------------
   8. Quality & Laboratory Standards (Quiet Engineering Pillars)
   -------------------------------------------------------------------------- */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quality-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color var(--transition-fast);
}

.quality-card:hover {
  border-color: var(--accent-gold-border);
}

.quality-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quality-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

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

/* --------------------------------------------------------------------------
   9. Direct Wholesale Quote Form (Clean & Minimalist)
   -------------------------------------------------------------------------- */
.quote-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-card);
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .quote-section-card {
    padding: 2.5rem;
  }
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 0.95rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  background: var(--bg-card);
  border-color: var(--accent-gold);
}

textarea.form-input {
  height: 90px;
  padding: 0.75rem 0.95rem;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   10. Minimalist Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-hairline);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   11. Persistent Mobile Bottom Dock (Floating Thumb Navigation)
   -------------------------------------------------------------------------- */
.mobile-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  height: calc(var(--dock-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-translucent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-dock);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 900px) {
  .mobile-bottom-dock {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  min-width: 56px;
  height: 48px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.dock-item svg {
  width: 22px;
  height: 22px;
  transition: transform var(--transition-fast);
}

.dock-item:hover, .dock-item.active {
  color: var(--accent-gold);
}

.dock-item:active svg {
  transform: scale(0.9);
}

.dock-item.dock-wa {
  color: var(--accent-wa);
}

/* --------------------------------------------------------------------------
   12. Native-Feeling Mobile Bottom Sheet & Dialog Modals
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-smooth);
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  width: 100%;
  max-width: 540px;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-modal);
  padding: 1.5rem 1.25rem 2rem;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-smooth);
}

@media (min-width: 640px) {
  .bottom-sheet {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    transform: scale(0.95) translateY(0);
    padding: 2rem;
  }
}

.modal-overlay.open .bottom-sheet {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay.open .bottom-sheet {
    transform: scale(1) translateY(0);
  }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  margin: 0 auto 1.25rem;
}

@media (min-width: 640px) {
  .sheet-handle {
    display: none;
  }
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.sheet-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.sheet-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
