/* 
 * SagaTrail.digital - Main Stylesheet
 * Theme: Nature-inspired Outdoor Adventure
 */

/* Import Google Fonts - Montserrat (headings) and Open Sans (body text) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* CSS Reset and Base Styles */
:root {
  /* Color palette - Nature-inspired */
  --primary: #3d683c;      /* Forest green */
  --primary-light: #5a9658; /* Light green */
  --primary-dark: #2a472b; /* Dark green */
  --secondary: #d2a679;    /* Trail/path brown */
  --secondary-light: #e8c9a7; /* Light brown */
  --accent: #3a89c9;       /* Sky blue */
  --accent-light: #83b4de; /* Light blue */
  --text-light: #f5f5f5;   /* Light text */
  --text-dark: #333333;    /* Dark text */
  --bg-light: #f9f7f4;     /* Light background */
  --bg-dark: #1f2d1e;      /* Dark background */
  --warning: #d9534f;      /* Red for alerts */
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

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

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

p {
  margin-bottom: 1rem;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--primary-light);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

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

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

/* Header and Navigation */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 0.5rem;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

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

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../img/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--text-light);
  margin-top: 70px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(5px) brightness(0.8);
  transform: scale(1.1); /* avoid edge cutoff */
  z-index: 0;
  background-attachment:fixed ;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  color: var(--primary-dark);
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(210, 166, 121, 0.1);
  border-radius: 50%;
  transform: translate(150px, -150px);
  z-index: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content {
  z-index: 1;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.about-image img {
  display: block;
  transition: transform 0.5s ease;
}

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

/* Features Section */
.features {
  background-color: #f5f9f5;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 200px;
  height: 200px;
  background-color: rgba(58, 137, 201, 0.1);
  border-radius: 50%;
  transform: translate(-100px, -100px);
}

.features-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(61, 104, 60, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Game Section */
.game-section {
  padding: 4rem 0;
  background-color: white;
  text-align: center;
}

.game-heading {
  margin-bottom: 2rem;
}

.game-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.game-header {
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  padding: 1rem;
  color: white;
}

.game-frame {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Disclaimer Card */
.disclaimer-card {
  background-color: #f9f7f4;
  border: 1px solid rgba(210, 166, 121, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
}

.disclaimer-title {
  font-size: 1.2rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.disclaimer-title::before {
  content: "⚠️";
  margin-right: 0.5rem;
}

/* Age Verification Popup */
.age-verify-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
}

.age-popup-content {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.age-popup-content h2 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.age-popup-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.age-yes-btn, .age-no-btn {
  padding: 0.75rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.age-yes-btn {
  background-color: var(--primary);
  color: white;
  border: none;
}

.age-no-btn {
  background-color: var(--warning);
  color: white;
  border: none;
}

.age-yes-btn:hover, .age-no-btn:hover {
  opacity: 0.9;
}

/* Contact Page */
.contact-section {
  background-color: white;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  padding: 2rem;
  background-color: #f5f9f5;
  border-radius: 8px;
}

.contact-info-item {
  margin-bottom: 1.5rem;
  display: flex;
}

.contact-info-item i {
  margin-right: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 5px;
}

.contact-form {
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1.5px solid #cfd8dc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: #f9f7f4;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(61,104,60,0.04);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(61,104,60,0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}
/* Improved checkbox styles for all forms */
.form-checkbox input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
  margin-right: 0.7rem;
  border-radius: 4px;
  border: 1.5px solid #cfd8dc;
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(61,104,60,0.07);
}
.form-checkbox input[type="checkbox"]:focus {
  box-shadow: 0 0 0 2px rgba(61,104,60,0.15);
  border-color: var(--primary);
}

/* Legal Pages */
.legal-page {
  max-width: 900px;
  margin: 6rem auto 3rem;
  background-color: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

.legal-list {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  color: var(--text-light);
  padding: 3rem 0 1rem;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  margin-right: 0.5rem;
}

.footer-heading {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

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

.footer-disclaimer {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .about-grid,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-top: 2rem;
    order: 2;
  }
  
  .game-frame {
    height: 500px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  .header-container {
    padding: 0.8rem 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .main-nav.show {
    height: auto;
    padding: 1rem 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 0 1rem;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .game-frame {
    height: 400px;
  }
  
  .legal-page {
    padding: 1.5rem;
    margin-top: 5rem;
  }
  
  .age-popup-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .game-frame {
    height: 350px;
  }
}