/* ==========================================================================
   LEGEND'CHX - MODERN ALPINE CSS
   Charte graphique:
   - Bleu signature: #2ea3f2 (Legend Blue) & #1696ea (Hover)
   - Bleu nuit / Alpin: #0a0f1d, #0f172a, #1e293b
   - Blanc glacier: #ffffff, #f8fafc
   - Gris technique: #64748b, #94a3b8, #cbd5e1
   - Or / Ambre montagne: #f59e0b
   - Polices: Montserrat (Titres outdoor & audacieux) + Inter (Lecture optimale)
   ========================================================================== */

:root {
  --color-primary: #2ea3f2;
  --color-primary-hover: #1696ea;
  --color-primary-light: rgba(46, 163, 242, 0.12);
  --color-primary-glow: rgba(46, 163, 242, 0.35);
  --color-dark: #090e1a;
  --color-dark-surface: #0f172a;
  --color-dark-card: #141e33;
  --color-dark-border: rgba(255, 255, 255, 0.08);
  --color-light: #ffffff;
  --color-light-bg: #f8fafc;
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #f1f5f9;
  --color-gold: #f59e0b;
  --color-green: #10b981;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.15);
  --shadow-neon: 0 0 20px rgba(46, 163, 242, 0.4);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Season: Winter theme variations */
body.theme-winter {
  --color-primary: #38bdf8;
  --color-primary-hover: #0284c7;
  --color-primary-light: rgba(56, 189, 248, 0.15);
  --color-primary-glow: rgba(56, 189, 248, 0.4);
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1.05rem; font-weight: 600; }

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

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

body.modal-open {
  overflow: hidden;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.container-narrow {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-muted {
  background-color: var(--color-light-bg);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 55px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-dark .section-tag {
  background-color: rgba(46, 163, 242, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(46, 163, 242, 0.3);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}

.section-dark .section-subtitle {
  color: #94a3b8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
  max-width: 100%;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 18px var(--color-primary-glow);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px var(--color-primary-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--color-dark);
  color: #ffffff !important;
}

.btn-dark:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary) !important;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Topbar */
.topbar {
  background-color: #070b14;
  color: #cbd5e1;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  position: relative;
  z-index: 101;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
}

.topbar-item:hover {
  color: var(--color-primary);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}

.badge-status-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Language and Season Switcher */
.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px;
  border-radius: var(--radius-full);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.lang-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
}

.season-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.season-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-primary);
}

/* Header Navigation */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(9, 14, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(9, 14, 26, 0.98);
  box-shadow: var(--shadow-lg);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: 84px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 64px;
  width: auto;
  flex: none;
  object-fit: contain;
}

.logo-tagline {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 12px;
  display: none;
}

@media (min-width: 1100px) {
  .logo-tagline { display: block; }
}

.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 20px;
}

.nav-link {
  color: #e2e8f0;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 12px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  flex: none;
}

@media (min-width: 861px) and (max-width: 1000px) {
  .nav-menu {
    justify-content: space-between;
    gap: 8px;
  }
  .nav-link {
    flex-shrink: 0;
    font-size: 0.68rem;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #070b14;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 20, 0.6) 0%,
    rgba(7, 11, 20, 0.75) 55%,
    rgba(7, 11, 20, 0.95) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  color: #ffffff;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e0f2fe;
  margin-bottom: 22px;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-title .highlight {
  color: var(--color-primary);
  background: linear-gradient(135deg, #38bdf8 0%, #2ea3f2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #cbd5e1;
  margin-bottom: 34px;
  line-height: 1.7;
  max-width: 720px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 45px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 650px;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.82rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Quick Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-img-box:hover img {
  transform: scale(1.04);
}

.about-badge-float {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: rgba(9, 14, 26, 0.9);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.about-badge-float strong {
  display: block;
  font-size: 1.4rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.about-badge-float span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.about-checklist {
  margin: 28px 0;
  display: grid;
  gap: 12px;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--color-dark);
}

.about-checklist li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Products Showcase (Catalogue) */
.product-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--color-text-dark);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 163, 242, 0.4);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-badge.winter {
  background-color: #0284c7;
}

.product-badge.sale {
  background-color: #e11d48;
}

.product-thumb {
  background-color: #f8fafc;
  padding: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  overflow: hidden;
}

.product-thumb img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.08);
}

.product-info {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-features {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.product-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-green);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Workshop Section (Atelier Vélo 7j/7) */
.workshop-banner {
  background: linear-gradient(135deg, #090e1a 0%, #172554 100%);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  color: #ffffff;
  margin-bottom: 50px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.workshop-banner h2 {
  color: #ffffff;
  margin-bottom: 12px;
}

.workshop-banner p {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 680px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.step-card {
  background: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-neon);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.85;
}

.step-card h4 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.step-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Workshop services pills */
.services-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.service-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-pill svg {
  color: var(--color-primary);
}

/* Store & Dual-Season Showcase */
.season-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.season-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.season-block-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 1;
}

.season-block:hover .season-block-bg {
  transform: scale(1.06);
}

.season-block-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(9, 14, 26, 0.1) 0%, rgba(9, 14, 26, 0.88) 75%);
  z-index: 2;
}

.season-block-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
}

.season-block-content h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.season-block-content p {
  color: #cbd5e1;
  font-size: 0.98rem;
  margin-bottom: 22px;
}

/* Brand Partners Grid */
.brands-section {
  background-color: #ffffff;
  padding: 60px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 35px 45px;
}

.brand-item {
  height: 45px;
  max-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: var(--transition);
}

.brand-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.brand-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Instagram Gallery Grid */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.insta-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.insta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 163, 242, 0.85);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  font-size: 1.5rem;
}

.insta-item:hover .insta-overlay {
  opacity: 1;
}

.insta-item:hover img {
  transform: scale(1.1);
}

/* Homepage FAQ Accordion */
.accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(46, 163, 242, 0.12);
}

.accordion-header {
  padding: 22px 26px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  gap: 15px;
}

.accordion-header span:first-child {
  flex: 1;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 26px;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.accordion-content p {
  padding-bottom: 22px;
}

/* Product Page FAQ Section & Accordion */
.faq-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 50px 45px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 50px;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
  color: #0284c7;
}

.faq-answer {
  display: none;
  margin-top: 14px;
  color: #475569;
  line-height: 1.8;
  font-size: 0.98rem;
  animation: faqFadeIn 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
  display: block;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Contact & Info Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--color-dark-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-dark-border);
}

.contact-detail {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(46, 163, 242, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  color: #ffffff;
  margin-bottom: 6px;
}

.contact-detail p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hours-list {
  margin-top: 8px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.hours-row:last-child {
  border-bottom: none;
}

.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  color: var(--color-dark);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Product reservation form: keep controls legible at every card width. */
.bottom-rental-section .form-steps-container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.bottom-rental-section .form-step-col {
  min-width: 0;
}

.bottom-rental-section .form-step-col h3 {
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.bottom-rental-section .form-label {
  font-size: 0.9rem;
  line-height: 1.45;
}

.bottom-rental-section .form-step-col .form-group > div[style*="grid-template-columns"] {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 3fr) minmax(7rem, 2fr) !important;
  gap: 0.5rem !important;
}

.bottom-rental-section .form-control {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.4;
}

.bottom-rental-section select.form-control {
  padding-right: 30px;
  white-space: normal;
}

.bottom-rental-section .rental-models-panel {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  margin-bottom: 1rem;
  padding: 0.875rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.32);
  color: var(--color-light);
}

.bottom-rental-section .rental-model-list {
  display: grid;
  gap: 0.625rem;
  min-width: 0;
}

.bottom-rental-section .rental-model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.5rem, 0.32fr) 3rem;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.bottom-rental-section .rental-model-row > * {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.bottom-rental-section .rental-model-row select.form-control {
  padding-right: 1.75rem;
  text-overflow: ellipsis;
}

.bottom-rental-section .rental-model-row input[type="number"] {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  text-align: center;
}

.bottom-rental-section .rental-model-remove {
  width: 3rem;
  min-height: 3rem;
  padding: 0;
  border-radius: 50%;
}

.bottom-rental-section .rental-model-add {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
}

@media (max-width: 1100px) {
  .bottom-rental-section .form-steps-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-rental-section .form-step-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .bottom-rental-section .form-steps-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .bottom-rental-section .form-step-col:last-child {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .bottom-rental-section .form-step-col .form-group > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .bottom-rental-section .rental-model-row {
    grid-template-columns: minmax(0, 1fr) minmax(4.5rem, 0.35fr);
  }

  .bottom-rental-section .rental-model-remove {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 2.75rem;
    border-radius: var(--radius-full);
  }
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background-color: #060911;
  color: #94a3b8;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: #64748b;
  margin: 18px 0 24px;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links a {
  color: #94a3b8;
}

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

.legal-document h1 {
  margin-bottom: 32px;
}

.legal-document h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.legal-document p,
.legal-document address {
  margin: 10px 0;
}

.legal-document address {
  font-style: normal;
}

/* Modal Popup (Booking / Rental Quote) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
  padding: 20px;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 24px 30px;
  background: var(--color-dark);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: #ffffff;
  font-size: 1.3rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close:hover {
  color: #ffffff;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .season-split {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header .container {
    gap: 12px;
  }
  .nav-menu {
    flex: initial;
    justify-content: initial;
  }
  .nav-actions {
    margin-left: 0;
  }
  .nav-menu {
    position: fixed;
    top: 84px;
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .menu-toggle {
    display: block;
  }
  .topbar-left, .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .workshop-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .workshop-banner p {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  [style*="minmax(280px, 1fr)"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .modal-body form > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .section {
    padding: 50px 0;
  }
  .features-grid {
    margin-top: -30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-btns .btn {
    width: 100%;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-stats {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .product-filters {
    gap: 6px;
    margin-bottom: 25px;
  }
  .filter-btn {
    padding: 7px 14px;
    font-size: 0.78rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-thumb {
    height: 220px;
  }
  .topbar {
    padding: 8px 0;
  }
  .topbar .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .topbar-left, .topbar-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .header .container {
    height: 72px;
  }
  .logo-img {
    height: 54px;
  }
  .modal-dialog {
    width: 95%;
    margin: 20px auto;
  }
  .rates-table-wrap {
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
  }
  .rates-table th, .rates-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .key-specs-grid {
    grid-template-columns: 1fr;
  }
  .product-gallery {
    padding: 15px;
  }
  .gallery-main-img {
    height: 240px;
  }
  .editorial-content {
    padding: 24px 16px;
    font-size: 0.96rem;
  }
  .editorial-content h2 {
    font-size: 1.35rem;
    padding-left: 10px;
  }
  .bottom-rental-section {
    padding: 28px 16px;
  }
  .form-steps-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .faq-section {
    padding: 28px 16px;
  }
  .faq-question {
    font-size: 0.98rem;
  }
}

/* Universal Form Submit Button Wrapping & Responsive Fitting */
button[type="submit"].btn,
.bottom-rental-section button[type="submit"] {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-align: center !important;
  line-height: 1.35 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}

@media (max-width: 600px) {
  .bottom-rental-section button[type="submit"] {
    padding: 14px 18px !important;
    font-size: 0.98rem !important;
    border-radius: var(--radius-full) !important;
  }
}

@media (max-width: 420px) {
  .header .container {
    height: 64px;
  }
  .header .logo-img {
    height: 48px;
  }
  .header .btn-sm {
    padding: 6px 10px;
    font-size: 0.76rem;
  }
  .bottom-rental-section {
    padding: 22px 12px;
  }
  .bottom-rental-section h2 {
    font-size: 1.35rem;
  }
  .form-step-col {
    padding: 16px 12px;
  }
  .form-step-col h3 {
    font-size: 1.05rem;
  }
  .bottom-rental-section button[type="submit"] {
    padding: 12px 14px !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
  }
  .rates-table th, .rates-table td {
    padding: 8px 6px;
    font-size: 0.76rem;
  }
  .key-spec-box {
    padding: 10px 14px;
  }
  .key-spec-box strong {
    font-size: 0.9rem;
  }
}

@media (max-width: 340px) {
  .header .btn-sm span {
    font-size: 0.7rem;
  }
  .bottom-rental-section button[type="submit"] {
    font-size: 0.82rem !important;
    padding: 10px 12px !important;
  }
}
