/* Ride Oasis - Gaming Website Styles */

/* CSS Custom Properties */
:root {
  /* Colors - Gaming Theme with Canadian Accent */
  --primary: 220 100% 50%; /* #0066FF - Gaming Blue */
  --primary-dark: 220 100% 40%; /* #0052CC */
  --primary-light: 220 100% 60%; /* #1A75FF */
  --secondary: 0 84% 60%; /* #FF3333 - Canadian Red */
  --secondary-dark: 0 84% 50%; /* #E62E2E */
  --accent: 45 100% 50%; /* #FFCC00 - Gaming Gold */
  --background: 210 11% 98%; /* #F8F9FB */
  --surface: 0 0% 100%; /* #FFFFFF */
  --surface-alt: 210 11% 96%; /* #F1F3F6 */
  --text: 210 11% 15%; /* #222528 */
  --text-light: 210 7% 45%; /* #6B7280 */
  --text-muted: 210 7% 65%; /* #9CA3AF */
  --border: 210 11% 90%; /* #E5E7EB */
  --shadow: 210 11% 15% / 0.1; /* rgba(34, 37, 40, 0.1) */
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-display: 'Segoe UI', system-ui, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--text));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: hsl(var(--text));
  margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: hsl(var(--text-light));
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: hsl(var(--text));
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: hsl(var(--primary-dark));
  border-color: hsl(var(--primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(var(--shadow));
}

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

.btn-secondary:hover {
  background-color: hsl(var(--secondary-dark));
  border-color: hsl(var(--secondary-dark));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(var(--shadow));
}

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

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: hsla(0 0% 100% / 0.95);
  backdrop-filter: blur(10px);
  z-index: var(--z-fixed);
  border-bottom: 1px solid hsl(var(--border));
}

.navbar {
  padding: var(--space-md) 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo .logo {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
}

.nav-link {
  color: hsl(var(--text));
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: hsl(var(--text));
  transition: 0.3s;
  border-radius: 2px;
}

/* Main Content */
.main-content {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--secondary) / 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="hsl(220 100% 50%)" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  z-index: -1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-title {
  font-size: 3rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: hsl(var(--text));
  margin-bottom: var(--space-md);
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(var(--text-light));
  margin-bottom: var(--space-xl);
}

.banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px hsla(var(--shadow));
}

/* Sections */
section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--text-light));
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-features {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px hsla(var(--shadow));
}

/* Services Section */
.services {
  background-color: hsl(var(--surface-alt));
}

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

.service-card {
  background-color: hsl(var(--surface));
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid hsl(var(--border));
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px hsla(var(--shadow));
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  border-radius: var(--radius-xl);
}

.service-icon img {
  width: 50px;
  height: 50px;
}

.service-card h3 {
  margin-bottom: var(--space-md);
}

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

.testimonial-card {
  background-color: hsl(var(--surface));
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px hsla(var(--shadow));
}

.testimonial-content {
  margin-bottom: var(--space-lg);
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.125rem;
  color: hsl(var(--text));
}

.testimonial-author strong {
  color: hsl(var(--text));
  display: block;
  margin-bottom: var(--space-xs);
}

.testimonial-author span {
  color: hsl(var(--text-muted));
}

/* Blog Section */
.blog {
  background-color: hsl(var(--surface-alt));
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-md);
}

.blog-card {
  background-color: hsl(var(--surface));
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid hsl(var(--border));
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px hsla(var(--shadow));
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

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

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

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

.blog-content h3 a {
  color: hsl(var(--text));
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-content h3 a:hover {
  color: hsl(var(--primary));
}

.blog-meta {
  color: hsl(var(--text-muted));
  font-size: 0.875rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

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

.contact-item strong {
  color: hsl(var(--text));
  display: block;
  margin-bottom: var(--space-sm);
}

.social-icons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.social-icons a {
  color: hsl(var(--primary));
  text-decoration: none;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.social-icons a:hover {
  background-color: hsl(var(--primary) / 0.1);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  background-color: hsl(var(--surface));
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary) / 0.1);
}

/* Footer */
.footer {
  background-color: hsl(var(--text));
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-icon {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-section h4 {
  margin-bottom: var(--space-lg);
  color: white;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: hsl(var(--text-muted));
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: hsl(var(--primary-light));
}

.footer-bottom {
  border-top: 1px solid hsl(var(--text-light));
  padding-top: var(--space-lg);
  text-align: center;
  color: hsl(var(--text-muted));
}

/* Legal Pages */
.legal-page {
  padding: var(--space-2xl) 0;
}

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

.legal-content h1 {
  margin-bottom: var(--space-md);
}

.last-updated {
  color: hsl(var(--text-muted));
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.legal-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
  color: hsl(var(--primary));
}

.legal-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-content ul {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.legal-content li {
  margin-bottom: var(--space-sm);
}

/* Thank You Page */
.thank-you {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.thank-you-content h1 {
  font-size: 3rem;
  color: hsl(var(--primary));
  margin-bottom: var(--space-lg);
}

.thank-you-message {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.thank-you-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.thank-you-info {
  background-color: hsl(var(--surface));
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.thank-you-info ul {
  list-style: none;
  padding: 0;
}

.thank-you-info li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid hsl(var(--border));
}

.thank-you-info li:last-child {
  border-bottom: none;
}

/* Blog Post Pages */
.blog-post {
  padding: var(--space-2xl) 0;
}

.blog-header {
  margin-bottom: var(--space-2xl);
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

.blog-meta {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  color: hsl(var(--text-muted));
}

.featured-img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px hsla(var(--shadow));
}

.blog-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.7;
}

.blog-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.blog-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.tag {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.blog-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: hsl(var(--text));
  color: white;
  padding: var(--space-lg);
  z-index: var(--z-modal);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.cookie-consent.show {
  transform: translateY(0);
}

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

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

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsla(0 0% 0% / 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-lg);
}

.cookie-modal.show {
  display: flex;
}

.modal-content {
  background-color: hsl(var(--surface));
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-category {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid hsl(var(--border));
}

.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  cursor: pointer;
}

.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: hsl(var(--surface));
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px hsla(var(--shadow));
    padding: var(--space-lg) 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .thank-you-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .blog-nav {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .blog-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .modal-buttons {
    flex-direction: column;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus and accessibility */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .cookie-consent,
  .cookie-modal {
    display: none;
  }
  
  .main-content {
    margin-top: 0;
  }
  
  * {
    box-shadow: none !important;
  }
}
