/* 
   OBWALDEN EQUINE SYSTEMS - STYLE.CSS
   Retro Design System with Warped Grid Elements
   Complementary Color Scheme
   Particle Animation Style
*/

/* ----- CSS VARIABLES ----- */
:root {
  /* Primary Colors - Complementary Scheme */
  --primary: #4a3b94; /* Deep Purple */
  --primary-dark: #372a71; /* Darker Purple */
  --primary-light: #6a5cb4; /* Lighter Purple */
  
  --secondary: #b88a3f; /* Golden Brown */
  --secondary-dark: #96702f; /* Darker Gold */
  --secondary-light: #d9a560; /* Lighter Gold */
  
  /* Neutral Colors */
  --dark: #333333;
  --dark-medium: #555555;
  --medium: #777777;
  --light-medium: #aaaaaa;
  --light: #e1e1e1;
  --white: #ffffff;
  
  /* Accent Colors */
  --accent1: #e84c65; /* Coral Red */
  --accent2: #2fc9b2; /* Teal */
  --accent3: #f3ca40; /* Yellow */
  
  /* UI Colors */
  --success: #28a745;
  --error: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  
  /* Background Colors */
  --bg-light: #f8f9fa;
  --bg-dark: #2c2536;
  --bg-gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  --bg-gradient-alt: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
  
  /* Overlay Colors */
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-light: rgba(255, 255, 255, 0.8);
  
  /* Text Colors */
  --text-dark: #222222;
  --text-medium: #666666;
  --text-light: #f8f9fa;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  
  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-width: 1px;
  --border-color: #e5e5e5;
  
  --box-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --box-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  
  /* Z-index layers */
  --z-below: -1;
  --z-normal: 1;
  --z-above: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /* Animation Durations */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  
  /* Container Widths */
  --container-max-width: 1200px;
  --container-padding: 1rem;
}

/* ----- RESET & BASE STYLES ----- */
*, 
*::before, 
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  padding-top: 0px !important;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--duration-normal) ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-md);
}

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

ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

/* ----- LAYOUT & CONTAINERS ----- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--secondary);
  margin: var(--space-sm) auto;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  color: var(--text-medium);
}

/* ----- RETRO STYLING & WARPED GRID ELEMENTS ----- */
.retro-bg {
  background-image: linear-gradient(45deg, var(--bg-light) 25%, transparent 25%), 
                    linear-gradient(-45deg, var(--bg-light) 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, var(--bg-light) 75%), 
                    linear-gradient(-45deg, transparent 75%, var(--bg-light) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.retro-border {
  border: 2px solid var(--dark);
  position: relative;
}

.retro-border::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: -5px;
  bottom: -5px;
  background: var(--secondary-light);
  z-index: var(--z-below);
}

.warped-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  transform: perspective(1000px) rotateX(2deg);
}

.warped-card {
  transform: perspective(1000px) rotateY(2deg);
  transition: transform var(--duration-normal) ease;
}

.warped-card:hover {
  transform: perspective(1000px) rotateY(-2deg) translateZ(10px);
}

/* ----- BUTTONS ----- */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--font-size-md);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  transition: all var(--duration-normal) ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--white);
  text-decoration: none;
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  text-decoration: none;
}

/* ----- HEADER & NAVIGATION ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--box-shadow-md);
  z-index: var(--z-fixed);
  padding: var(--space-md) 0;
  transition: all var(--duration-normal) ease;
}

.site-header.scrolled {
  padding: var(--space-sm) 0;
  background-color: rgba(255, 255, 255, 0.95);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  max-width: 50px;
}

.logo img {
  height: auto;
  width: 100%;
  transition: all var(--duration-normal) ease;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: var(--space-lg);
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--duration-normal) ease;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: all var(--duration-normal) ease;
}

/* ----- HERO SECTION ----- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  margin-top: 80px; /* Account for fixed header */
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-lg);
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
}

/* ----- VISION SECTION ----- */
.vision-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.vision-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
}

.vision-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.vision-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  margin: 0 auto;
}

.vision-text {
  flex: 1;
  min-width: 300px;
}

/* ----- MISSION SECTION ----- */
.mission-section {
  padding: var(--space-xl) 0;
  background-color: var(--white);
  position: relative;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('./image/mission-pattern-bg.jpg') repeat;
  opacity: 0.05;
  z-index: 0;
}

.mission-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.mission-text {
  flex: 1;
  min-width: 300px;
}

.mission-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.mission-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  margin: 0 auto;
}

/* ----- CLIENTELE SECTION ----- */
.clientele-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-light);
}

.clientele-slider {
  position: relative;
  margin: 0 auto;
  max-width: 1000px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.prev-btn,
.next-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 var(--space-sm);
  transition: all var(--duration-normal) ease;
}

.prev-btn:hover,
.next-btn:hover {
  background: var(--primary-dark);
}

.slider-container {
  display: flex;
  overflow: hidden;
}

.slider-item {
  flex: 0 0 100%;
  padding: 0 var(--space-md);
  transition: transform var(--duration-slow) ease;
}

.client-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  transition: transform var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) ease;
}

.client-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-lg);
  text-align: center;
}

.card-content h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

/* ----- RESEARCH SECTION ----- */
.research-section {
  padding: var(--space-xl) 0;
  background: var(--bg-gradient);
  color: var(--white);
}

.research-section .section-title {
  color: var(--white);
}

.research-section .section-title::after {
  background: var(--white);
}

.research-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
}

.research-text {
  flex: 1;
  min-width: 300px;
}

.research-text p {
  color: var(--white);
}

.research-gallery {
  flex: 1;
  min-width: 300px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--duration-normal) ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ----- BEHIND THE SCENES SECTION ----- */
.behind-scenes-section {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.behind-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
}

.behind-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.behind-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  margin: 0 auto;
}

.behind-text {
  flex: 1;
  min-width: 300px;
}

/* ----- RESOURCES SECTION ----- */
.resources-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-light);
}

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

.resource-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  transition: transform var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.resource-card .card-image {
  width: 100%;
  height: 200px;
}

.resource-card .card-content {
  padding: var(--space-lg);
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-link {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--primary);
  font-weight: 600;
  position: relative;
}

.resource-link::after {
  content: '→';
  margin-left: 5px;
  transition: transform var(--duration-normal) ease;
}

.resource-link:hover {
  color: var(--primary-dark);
}

.resource-link:hover::after {
  transform: translateX(5px);
}

/* ----- CUSTOMER STORIES SECTION ----- */
.stories-section {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.stories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.story-card {
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  transition: transform var(--duration-normal) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-card:hover {
  transform: translateY(-5px);
}

.story-card .card-image {
  width: 100%;
  height: 280px;
}

.story-card .card-content {
  padding: var(--space-lg);
}

.story-quote {
  font-style: italic;
  position: relative;
  padding: 0 var(--space-lg);
}

.story-quote::before,
.story-quote::after {
  content: '"';
  font-size: 2rem;
  color: var(--primary-light);
  position: absolute;
}

.story-quote::before {
  top: 0;
  left: 0;
}

.story-quote::after {
  bottom: 0;
  right: 0;
}

.story-author {
  text-align: right;
  margin-top: var(--space-md);
  font-weight: 600;
  color: var(--primary);
}

/* ----- COMMUNITY SECTION ----- */
.community-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-gradient-alt);
  color: var(--white);
}

.community-section .section-title {
  color: var(--white);
}

.community-section .section-title::after {
  background: var(--white);
}

.community-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
}

.community-text {
  flex: 1;
  min-width: 300px;
}

.community-text p {
  color: var(--white);
}

.community-gallery {
  flex: 1;
  min-width: 300px;
}

/* ----- PRESS SECTION ----- */
.press-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-light);
}

.press-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.press-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.press-item {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--box-shadow-md);
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--duration-normal) ease;
}

.press-item:hover {
  transform: translateY(-5px);
}

.press-logo {
  width: 200px;
  height: 120px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.press-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.press-quote {
  text-align: center;
}

.press-quote p {
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.press-source {
  display: block;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
}

/* ----- CONTACT SECTION ----- */
.contact-section {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.info-item {
  margin-bottom: var(--space-lg);
}

.info-item h4 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.social-links h4 {
  margin-bottom: var(--space-sm);
}

.social-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 59, 148, 0.2);
  outline: none;
}

.form-toggle {
  display: flex;
  align-items: center;
}

.toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  background-color: var(--light-medium);
  border-radius: 10px;
  margin-right: var(--space-sm);
  transition: background-color var(--duration-normal) ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: var(--white);
  border-radius: 50%;
  transition: transform var(--duration-normal) ease;
}

.toggle input[type="checkbox"]:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-label {
  user-select: none;
}

/* ----- FOOTER ----- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.footer-logo img {
  margin-bottom: var(--space-md);
  max-width: 150px;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 150px;
  margin-bottom: var(--space-lg);
}

.footer-column h3 {
  color: var(--white);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column ul li a {
  color: var(--light);
  transition: color var(--duration-normal) ease;
}

.footer-column ul li a:hover {
  color: var(--secondary-light);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ----- LEGAL PAGES ----- */
.legal-hero {
  height: 300px;
  min-height: auto;
  background-color: var(--primary);
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.legal-content-section {
  padding: var(--space-xl) 0;
  padding-top: 100px; /* Ensure content doesn't overlap with header */
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-intro {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
}

.legal-section {
  margin-bottom: var(--space-xl);
}

.legal-section h2 {
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.legal-section ul {
  margin-bottom: var(--space-md);
}

/* ----- SUCCESS PAGE ----- */
.success-section {
  min-height: 100vh;
  padding: var(--space-xl) 0;
  display: flex;
  align-items: center;
  margin-top: 80px; /* Account for fixed header */
}

.success-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.success-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto var(--space-lg);
}

.success-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.success-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.info-card {
  background-color: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-md);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  text-align: center;
}

.info-phone {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--primary);
  margin-top: var(--space-sm);
}

.related-products {
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.product-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  transition: transform var(--duration-normal) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card .card-image {
  width: 100%;
  height: 200px;
}

/* ----- COOKIE CONSENT ----- */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: var(--space-md);
  z-index: 9999;
}

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

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-btn {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background-color var(--duration-normal) ease;
}

.cookie-btn:hover {
  background-color: var(--secondary-dark);
}

/* ----- PARTICLE ANIMATION ----- */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--primary-light);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 5s infinite ease-in-out;
}

.particle:nth-child(2n) {
  background-color: var(--secondary-light);
  animation-duration: 7s;
  animation-delay: 1s;
}

.particle:nth-child(3n) {
  background-color: var(--accent1);
  animation-duration: 6s;
  animation-delay: 2s;
}

.particle:nth-child(4n) {
  background-color: var(--accent2);
  animation-duration: 8s;
  animation-delay: 3s;
}

/* ----- RESPONSIVE STYLES ----- */
@media (max-width: 992px) {
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .vision-content,
  .mission-content,
  .research-content,
  .behind-content,
  .community-content {
    flex-direction: column;
  }
  
  .vision-image,
  .mission-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    transition: height var(--duration-normal) ease;
    box-shadow: var(--box-shadow-md);
  }
  
  .nav-links.active {
    height: calc(100vh - 80px);
    padding: var(--space-lg) 0;
  }
  
  .nav-links li {
    margin: var(--space-md) 0;
  }
  
  .hero {
    height: auto;
    padding: var(--space-xl) 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo {
    margin-bottom: var(--space-lg);
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links {
    width: 100%;
  }
  
  .footer-column {
    text-align: center;
    min-width: 100%;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .form-columns {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  :root {
    --space-xl: 3rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: var(--font-size-md);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .stories-container {
    grid-template-columns: 1fr;
  }
  
  .success-buttons {
    flex-direction: column;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- UTILITY CLASSES ----- */
.text-center {
  text-align: center;
}

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

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

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.py-1 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-2 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-3 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-4 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

.px-1 { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-2 { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-3 { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-4 { padding-left: var(--space-xl); padding-right: var(--space-xl); }

/* For map tabs */
.map-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.map-tab {
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--light);
  border: none;
  margin: 0 var(--space-sm);
  cursor: pointer;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  transition: all var(--duration-normal) ease;
}

.map-tab.active {
  background-color: var(--primary);
  color: var(--white);
}

.map-display {
  position: relative;
}

.map-image {
  display: none;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-md);
}

.map-image.active {
  display: block;
}

/* Team Section Styles */
.team-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-light);
}

.team-slider {
  position: relative;
  margin: 0 auto;
  max-width: 1000px;
}

.team-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  transition: transform var(--duration-normal) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card .card-image {
  width: 100%;
  height: 300px;
}

.team-position {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* Sales Team Section */
.sales-team-section {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.team-contact {
  margin-bottom: var(--space-xs);
  color: var(--text-medium);
}

/* Certifications Section */
.certifications-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-light);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.certification-item {
  padding: var(--space-lg);
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.certification-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: var(--space-md);
}

.certification-item h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

/* Global Presence Section */
.global-section {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.global-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
}

.global-map {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.global-map img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-md);
  max-width: 100%;
  margin: 0 auto;
}

.global-text {
  flex: 1;
  min-width: 300px;
}

/* Contact CTA Section */
.contact-cta-section {
  padding: var(--space-xl) 0;
  background: var(--bg-gradient);
  color: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-content p {
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-lg);
}

/* Interest Group in Contact Form */
.interest-group {
  margin-top: var(--space-lg);
}

.interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.toggle-option {
  display: flex;
  align-items: center;
  margin-right: var(--space-lg);
  cursor: pointer;
}

.toggle-option input[type="checkbox"] {
  margin-right: var(--space-sm);
}

/* Form Columns */
.form-columns {
  display: flex;
  gap: var(--space-lg);
}

.form-column {
  flex: 1;
}

/* Page Hero */
.page-hero {
  height: 400px;
  min-height: auto;
  margin-top: 80px; /* Account for fixed header */
}

/* History Section */
.history-section {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.history-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
}

.history-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.history-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  margin: 0 auto;
}

.history-text {
  flex: 1;
  min-width: 300px;
}

/* Values Section */
.values-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-light);
}

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

.value-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  transition: transform var(--duration-normal) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card .card-image {
  width: 100%;
  height: 200px;
}

html,body{
  overflow-x: hidden;
}