/*
 * ============================================
 * BRASIER CHARPENTE - MODERN BUSINESS THEME
 * ============================================
 * Theme: Vibrant & Energetic Design
 * Palette: Sunny Yellows, Sky Blues, Coral Reds
 * Typography: Playful, rounded, friendly
 * ============================================
 */

/* ============================================
   COLOR PALETTE - VIBRANT & ENERGETIC
   ============================================ */
:root {
  /* Primary Colors - Vibrant Palette */
  --color-primary: #2b2d42;
  --color-primary-dark: #1a1a2e;

  /* Secondary Colors */
  --color-secondary: #8d99ae;
  --color-secondary-light: #b8c5d6;

  /* Accent Colors */
  --color-accent: #edf2f4;
  --color-accent-dark: #d9e2ec;

  /* Neutral Colors */
  --color-neutral: #ef233c;
  --color-neutral-dark: #d71c32;

  /* Background Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;

  /* Text Colors */
  --color-text: #1a1a1a;
  --color-text-light: #4a4a4a;
  --color-text-muted: #6c757d;

  /* Vibrant Theme Colors */
  --color-sunny-yellow: #FFD93D;
  --color-sky-blue: #4D9DE0;
  --color-coral-red: #E15554;
  --color-mint-green: #3BB273;
  --color-lavender: #A78BFA;
  --color-peach: #FF9F7F;

  /* Glassmorphism Header */
  --glass-bg: rgba(26, 26, 46, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --neon-cyan: #00F5FF;
  --neon-magenta: #FF00FF;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  line-height: 1.8;
}

a {
  color: var(--color-sky-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-coral-red);
}

/* ============================================
   GLASSMORPHISM HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Animated Grid Lines Background */
.header__grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Logo with Light Particle Effect */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  position: relative;
  z-index: 2;
}

.header__logo-img {
  width: 464px;
  height: auto;
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.7)); }
}

/* Particle Effect */
.header__logo-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(20px, -20px) scale(0.5);
    opacity: 0.5;
  }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: var(--spacing-sm);
  align-items: center;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neon-cyan);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.2), transparent);
  transition: var(--transition-normal);
}

.nav__link:hover::before {
  left: 100%;
}

.nav__link:hover {
  color: var(--neon-magenta);
  background: rgba(255, 0, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.nav__icon {
  font-size: 1.2rem;
}

/* Hamburger Menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  cursor: pointer;
  padding: 5px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav__hamburger:hover {
  background: rgba(255, 0, 255, 0.2);
  animation: hamburgerPulse 0.5s ease;
}

@keyframes hamburgerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transition: var(--transition-normal);
  box-shadow: 0 0 5px var(--neon-cyan);
}

.nav__hamburger:hover span {
  background: var(--neon-magenta);
  box-shadow: 0 0 10px var(--neon-magenta);
}

/* CTA Button */
.header__cta {
  padding: var(--spacing-xs) var(--spacing-md);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--glass-bg);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
  animation: ctaGlow 2s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.7);
  }
}

.header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 0, 255, 0.8);
}

/* Mobile Menu */
.nav__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: var(--spacing-md);
  animation: slideDown 0.3s ease;
}

.nav__mobile.active {
  display: block;
}

.nav__mobile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-md);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--color-coral-red);
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero__subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-coral-red), var(--color-sunny-yellow));
  color: white;
}

.btn--secondary {
  background: linear-gradient(135deg, var(--color-sky-blue), var(--color-mint-green));
  color: white;
}

.btn--accent {
  background: linear-gradient(135deg, var(--color-sunny-yellow), var(--color-peach));
  color: var(--color-text);
}

.btn--large {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1.125rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.section--yellow {
  background: linear-gradient(135deg, #FFF3B0 0%, #FFD93D 100%);
}

.section--blue {
  background: linear-gradient(135deg, #B8E4F7 0%, #4D9DE0 100%);
}

.section--coral {
  background: linear-gradient(135deg, #FFB4A2 0%, #E15554 100%);
}

.section--mint {
  background: linear-gradient(135deg, #B8F2C8 0%, #3BB273 100%);
}

.section--lavender {
  background: linear-gradient(135deg, #D8BBF9 0%, #A78BFA 100%);
}

.section--peach {
  background: linear-gradient(135deg, #FFD6C4 0%, #FF9F7F 100%);
}

.section--white {
  background: var(--color-bg);
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.section__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  animation: fadeInUp 0.8s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-sunny-yellow), var(--color-sky-blue), var(--color-coral-red));
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, var(--color-sunny-yellow), var(--color-peach));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: var(--shadow-md);
}

.card__title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.card__text {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   BACKGROUND WITH OVERLAY
   ============================================ */
.bg-section {
  position: relative;
  padding: var(--spacing-xl) var(--spacing-md);
  overflow: hidden;
}

.bg-section__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
}

.bg-section__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form {
  max-width: 600px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--spacing-md);
}

.form__label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-primary);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: var(--spacing-sm);
  font-size: 1rem;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-md);
  font-family: 'Lato', sans-serif;
  transition: var(--transition-fast);
  background: white;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-coral-red);
  box-shadow: 0 0 0 3px rgba(225, 85, 84, 0.1);
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary-dark);
  color: white;
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer__title {
  color: var(--color-sunny-yellow);
  margin-bottom: var(--spacing-sm);
}

.footer__text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--spacing-xs);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-sunny-yellow);
  padding-left: 5px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

.slide-in-right {
  animation: slideInRight 0.8s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
  .nav__list {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .hero__content {
    padding: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-lg: 3rem;
  }

  .header__logo-img {
    max-width: 150px;
  }

  .section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .btn--large {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-coral-red);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-sm);
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
