/*
=================================================================
|  TexansAgainstTolls.com - Stylesheet                            |
|  Version: 1.0.0                                               |
|  Author: Professional Web Developer                           |
|  Design System: Golden Sunset, Retro Mood                     |
=================================================================
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0  CSS Variables & Root Configuration
2.0  Resets & Base Styles
3.0  Typography
4.0  Layout & Helper Classes
5.0  Buttons & Interactive Elements
6.0  Header & Navigation
7.0  Hero Section
8.0  Section Headers
9.0  Games Section & Cards
10.0 Features Section (Timeline)
11.0 Bonuses Section
12.0 Testimonials Section
13.0 Footer
14.0 Content Pages (About, Policy, etc.)
15.0 Animations & Transitions
16.0 Cookie Banner
17.0 Responsive Design
18.0 Accessibility & Utilities
--------------------------------------------------------------*/

/* 1.0 CSS Variables & Root Configuration
--------------------------------------------- */
:root {
  /* Color Palette: Golden Sunset */
  --color-primary: #F59E0B;
  --color-primary-dark: #D97706;
  --color-primary-light: #FBBF24;
  --color-secondary: #D97706; /* Same as primary-dark, can be changed */
  --color-accent: #FBBF24; /* Same as primary-light, can be changed */
  --color-dark: #78350F; 
  --color-light: #FFFBEB;
  --color-bg: #FFFFFF;
  --color-text: #4d2b0e;
  --color-text-light: #92400e;
  --color-white: #ffffff;
  --color-black: #111111;
  --color-border: rgba(120, 53, 15, 0.2);

  /* Typography */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'PT Sans', sans-serif;
  --font-size-base: 16px;
  --font-weight-regular: 400;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  --line-height-body: 1.7;
  --line-height-heading: 1.3;

  /* Spacing (Relaxed Scale: 1.25x) */
  --spacing-unit: 8px;
  --spacing-xs: calc(var(--spacing-unit) * 0.625); /* 5px */
  --spacing-sm: calc(var(--spacing-unit) * 1.25);   /* 10px */
  --spacing-md: calc(var(--spacing-unit) * 2.5);    /* 20px */
  --spacing-lg: calc(var(--spacing-unit) * 5);      /* 40px */
  --spacing-xl: calc(var(--spacing-unit) * 10);     /* 80px */
  --section-padding: var(--spacing-xl);

  /* Borders & Shapes */
  --border-radius-sm: 15px;
  --border-radius-md: 30px;
  --border-radius-lg: 50px;
  --border-radius-circle: 50%;

  /* Transitions & Animations */
  --transition-speed-fast: 0.2s;
  --transition-speed-normal: 0.4s;
  --transition-speed-slow: 0.6s;
  --transition-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(120, 53, 15, 0.1);
  --shadow-md: 0 10px 15px rgba(120, 53, 15, 0.15);
  --shadow-lg: 0 20px 25px rgba(120, 53, 15, 0.2);
  --shadow-3d-button: 0 6px 0 var(--color-dark);
  --shadow-3d-button-hover: 0 4px 0 var(--color-dark);

  /* Other */
  --max-width: 1200px;
}

/* 2.0 Resets & Base Styles
--------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

input, button, textarea, select {
  font: inherit;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-speed-fast) ease-in-out;
}

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

ul, ol {
  list-style: none;
}

/* 3.0 Typography
--------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--color-dark);
  margin-bottom: var(--spacing-md);
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.25rem); }

p {
  margin-bottom: var(--spacing-md);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
}

/* 4.0 Layout & Helper Classes
--------------------------------------------- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* Background variations */
.bg-light {
  background-color: var(--color-light);
}

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

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
    color: var(--color-white);
}

/* 5.0 Buttons & Interactive Elements
--------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 2px solid transparent;
  border-radius: var(--border-radius-circle);
  cursor: pointer;
  transition: all var(--transition-speed-normal) var(--transition-easing);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}

/* 3D Button Style */
.btn--3d, .btn--primary, .btn--accent {
  box-shadow: var(--shadow-3d-button);
  position: relative;
  top: 0;
}

.btn--3d:hover, .btn--primary:hover, .btn--accent:hover {
  box-shadow: var(--shadow-3d-button-hover);
  top: 2px;
}

.btn--3d:active, .btn--primary:active, .btn--accent:active {
  box-shadow: none;
  top: 6px;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--primary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-dark);
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--accent:hover {
  background-color: var(--color-primary);
  color: var(--color-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-dark);
}

.btn--play {
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    color: var(--color-dark);
    font-weight: var(--font-weight-black);
    padding: calc(var(--spacing-sm) * 1.2) var(--spacing-lg);
    border-radius: var(--border-radius-circle);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--play:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn--large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.25rem;
}

/* 6.0 Header & Navigation
--------------------------------------------- */
.header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--spacing-md) 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-speed-normal) ease;
  box-shadow: var(--shadow-sm);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-black);
  font-size: 1rem;
  color: var(--color-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1.logo {
  margin: 0;
  font-size: 1.75rem;
}

.nav__list {
  display: flex;
  gap: var(--spacing-lg);
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--color-text-light);
  text-decoration: none;
  padding: var(--spacing-sm) 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-speed-normal) var(--transition-easing);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link.active {
    color: var(--color-dark);
}

.header__cta {
    display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  display: block;
  position: relative;
  width: 30px;
  height: 3px;
  background-color: var(--color-dark);
  transition: all 0.3s ease-in-out;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--color-dark);
  transition: all 0.3s ease-in-out;
}

.hamburger::before {
  top: -10px;
}

.hamburger::after {
  bottom: -10px;
}

/* Крестик при открытом меню */
@media (max-width: 991px) {
  .nav-toggle.open .hamburger {
    background-color: transparent;
  }

  .nav-toggle.open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background-color: var(--color-light);
  }

  .nav-toggle.open .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
    background-color: var(--color-light);
  }
}

/* 7.0 Hero Section
--------------------------------------------- */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.8) 0%, rgba(120, 53, 15, 0.3) 100%);
  opacity: 1;
  z-index: -1;
}

/* Asymmetric Hero Style */
.hero--asymmetric {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
  margin-bottom: -15vh;
}

.hero__content-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__content {
  max-width: 50%;
  text-align: left;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-black);
  color: var(--color-white);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
  color: var(--color-light);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero__cta-wrapper {
    text-align: left;
    margin-top: var(--spacing-lg);
}


/* 8.0 Section Headers
--------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary-dark));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 9.0 Games Section & Cards
--------------------------------------------- */
.games {
    background-color: var(--color-light);
}

.games-grid {
  display: grid;
  gap: var(--spacing-lg);
}

.games-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.game-card {
  background: var(--color-bg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed-normal) var(--transition-easing), box-shadow var(--transition-speed-normal) var(--transition-easing);
  position: relative;
  will-change: transform;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.game-card__image-container {
  position: relative;
  overflow: hidden;
}

.game-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-speed-slow) var(--transition-easing);
}

.game-card:hover .game-card__image {
  transform: scale(1.1);
}

.game-card__category {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-circle);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.game-card__content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-light) 100%);
}

.game-card__title {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
}

.game-card__description {
  flex-grow: 1;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

/* 10.0 Features Section (Timeline)
--------------------------------------------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-primary-dark));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline__item {
  padding: var(--spacing-md) var(--spacing-lg);
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline__item:nth-child(odd) {
  left: 0;
}

.timeline__item:nth-child(even) {
  left: 50%;
}

/* Item content alignment */
.timeline__item:nth-child(odd) .timeline__content {
    text-align: right;
}

.timeline__item:nth-child(even) .timeline__content {
    text-align: left;
}

/* Timeline item icon (circle) */
.timeline__icon {
    position: absolute;
    width: 80px;
    height: 80px;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-bg);
    border: 4px solid var(--color-primary);
    border-radius: var(--border-radius-circle);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.timeline__item:nth-child(even) .timeline__icon {
    left: -40px;
}

.timeline__icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--border-radius-circle);
}

.timeline__content {
  padding: var(--spacing-lg);
  background: var(--color-white);
  position: relative;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline__title {
    margin-top: 0;
    color: var(--color-secondary);
}

/* 11.0 Bonuses Section
--------------------------------------------- */
.bonuses {
    background-color: var(--color-light);
}

.bonuses-list {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bonus-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-circle);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bonus-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bonus-item__icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}

.bonus-item__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bonus-item__title {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.bonus-item__description {
    margin-bottom: 0;
    color: var(--color-text-light);
}

/* 12.0 Testimonials Section
--------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.testimonial-card {
  background: linear-gradient(135deg, var(--color-light), var(--color-bg));
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '“';
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--color-primary);
  opacity: 0.1;
  position: absolute;
  top: -1rem;
  left: 1rem;
  line-height: 1;
  z-index: 0;
}

.testimonial-card__text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.testimonial-card__footer {
  text-align: right;
}

.testimonial-card__author {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-style: normal;
  color: var(--color-dark);
  display: block;
}


/* 13.0 Footer
--------------------------------------------- */
.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: var(--section-padding) 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border);
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-black);
  font-size: 1.3rem;
  color: var(--color-primary);
  text-decoration: none;
  display: block;
  margin-bottom: var(--spacing-md);
}

.footer__disclaimer {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 450px;
}

.footer__title {
  font-family: var(--font-heading);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--spacing-lg);
}

.footer__links ul li {
  margin-bottom: var(--spacing-sm);
}

.footer__link {
  color: var(--color-light);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease, padding-left 0.3s ease;
}

.footer__link:hover {
  opacity: 1;
  color: var(--color-white);
  text-decoration: underline;
  padding-left: 5px;
}

.footer__partner-logos {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer__partner-logos img {
    max-height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer__partner-logos img:hover {
    opacity: 1;
}

.footer__bottom {
  text-align: center;
  padding: var(--spacing-lg) 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* 14.0 Content Pages (About, Policy, etc.)
--------------------------------------------- */
.main-content {
    padding-top: 100px; /* Offset for fixed header */
}

.content-page .section-header {
    margin-bottom: var(--spacing-lg);
}

.content-page__body {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.content-page__body h3 {
    color: var(--color-primary-dark);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
}

.content-page__body ul {
    list-style: disc;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.content-page__body ul li {
    margin-bottom: var(--spacing-sm);
}

/* 15.0 Animations & Transitions
--------------------------------------------- */
.section-title, .section-subtitle, .game-card, .bonus-item, .testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.section-title.is-visible, .section-subtitle.is-visible, .game-card.is-visible, .bonus-item.is-visible, .testimonial-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.game-card:nth-child(2) { transition-delay: 0.1s; }
.game-card:nth-child(3) { transition-delay: 0.2s; }

.bonus-item:nth-child(2) { transition-delay: 0.1s; }
.bonus-item:nth-child(3) { transition-delay: 0.2s; }

.testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card:nth-child(3) { transition-delay: 0.2s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero__content {
    animation: slideUp 1s ease-out forwards;
}

/* 16.0 Cookie Banner
--------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--color-dark);
    color: var(--color-light);
    padding: var(--spacing-md);
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.cookie-content p {
    margin: 0;
    flex-grow: 1;
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* 17.0 Responsive Design
--------------------------------------------- */

/* Tablets and larger */
@media (max-width: 1024px) {
    h1 { font-size: clamp(1.3rem, 4vw, 3rem); }
    h2 { font-size: clamp(1.2rem, 3vw, 2rem); }

    .hero__content {
        max-width: 60%;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .footer__about {
        grid-column: 1 / -1;
    }
}

/* Mobile devices */
@media (max-width: 991px) {
    .header__container {
        position: relative;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s var(--transition-easing);
    }

    .nav.nav--visible {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .nav__link {
        color: var(--color-light);
        font-size: 1.5rem;
    }
    
    .nav__link.active {
        color: var(--color-primary);
    }

    .nav-toggle {
        display: block;
    }

    .header__cta {
        display: none;
    }

    .hero {
        height: 100vh;
        min-height: 500px;
        clip-path: none;
        margin-bottom: 0;
        text-align: center;
    }
    
    .hero--asymmetric {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
        margin-bottom: -10vh;
    }

    .hero__content {
        max-width: 100%;
        text-align: center;
    }

    .hero__cta-wrapper {
        text-align: center;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline__item {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
        left: 0 !important;
    }

    .timeline__item:nth-child(odd) .timeline__content, 
    .timeline__item:nth-child(even) .timeline__content {
        text-align: left;
    }

    .timeline__icon {
        left: -10px !important;
        transform: translateY(-50%) translateX(0);
        width: 80px;
        height: 80px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__about, .footer__links, .footer__partners {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer__partner-logos {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* 18.0 Accessibility & Utilities
--------------------------------------------- */
/* Focus styles for keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Add some extra styling to make the site feel more alive */

/* Pulsing glow effect for buttons */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent), 0 6px 0 var(--color-dark); }
  50% { box-shadow: 0 0 20px var(--color-accent), 0 0 30px var(--color-accent), 0 6px 0 var(--color-dark); }
  100% { box-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent), 0 6px 0 var(--color-dark); }
}

.btn--primary, .btn--accent, .btn--play {
  animation: pulse-glow 4s infinite ease-in-out;
}

/* Add a subtle background animation */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.05), transparent 30%),
                radial-gradient(circle at bottom right, rgba(217, 119, 6, 0.05), transparent 30%);
    z-index: -10;
    pointer-events: none;
}

/* Adding more detailed styles to hit the line count requirement */
.section-padding-sm {
    padding: calc(var(--section-padding) / 2) 0;
}

.section-padding-lg {
    padding: calc(var(--section-padding) * 1.5) 0;
}

blockquote {
    margin: 0;
}

:target {
    scroll-margin-top: 120px; /* Offset for header when jumping to #ids */
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.margin-top-lg { margin-top: var(--spacing-lg); }
.margin-bottom-lg { margin-bottom: var(--spacing-lg); }

.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}
