/**
 * Riding Stable Arisa - Main Stylesheet
 * A unique design for riding-stable-arisa.com focusing on equestrian experiences
 */

:root {
  --primary: #3A5F0B;       /* Forest Green - main brand color */
  --primary-dark: #2A4708;  /* Darker green for hover states */
  --secondary: #FFB347;     /* Pastel Orange - accent color */
  --secondary-dark: #F09819; /* Darker orange for hover states */
  --accent: #8C5E58;        /* Terracotta - warm earth tone accent */
  --dark: #333333;          /* Near black - for text */
  --light: #FFFFFF;         /* White - for light backgrounds */
  --gray: #F5F5F5;          /* Light gray - for sections */
  --gray-dark: #AAAAAA;     /* Darker gray - for borders */
  --font-main: 'Lora', serif;
  --font-heading: 'Montserrat', sans-serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 2.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2 {
  font-size: 2.25rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.2rem;
  font-weight: 400;
}

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

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

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

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

.btn-secondary {
  background: var(--secondary);
  color: var(--dark);
  border: 2px solid var(--secondary);
}

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

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

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

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--gray);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
}

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

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

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}

.logo-text span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger div {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.hamburger div:nth-child(1) {
  top: 0;
}

.hamburger div:nth-child(2) {
  top: 9px;
}

.hamburger div:nth-child(3) {
  top: 18px;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: url('../images/hero-bg.svg') no-repeat center center;
  background-size: cover;
  color: var(--light);
  text-align: left;
  margin-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

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

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

.hero h1 {
  margin-bottom: 20px;
  color: var(--light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* Features Section */
.features {
  background-color: var(--gray);
}

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

.feature-item {
  background: var(--light);
  padding: 30px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.feature-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.feature-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary);
}

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

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

.game-card {
  background: var(--light);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-radius: 5px;
}

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

.game-image {
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray);
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.game-title {
  padding: 20px 20px 10px;
  font-size: 1.3rem;
}

.game-text {
  padding: 0 20px;
  margin-bottom: 15px;
  color: var(--gray-dark);
}

.game-link {
  display: block;
  padding: 15px 20px;
  background: var(--primary);
  color: var(--light);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

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

/* Testimonials Section */
.testimonials {
  background-color: var(--gray);
  position: relative;
  overflow: hidden;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--light);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: """;
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 60px;
  color: var(--secondary);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-text {
  position: relative;
  z-index: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-info h4 {
  margin-bottom: 5px;
  color: var(--primary);
}

.author-info p {
  margin-bottom: 0;
  color: var(--gray-dark);
  font-size: 0.9rem;
}

/* News Section */
.news {
  background-color: var(--light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  border: 1px solid var(--gray-dark);
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.news-content {
  padding: 20px;
}

.news-date {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gray-dark);
  margin-bottom: 10px;
}

.news-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.news-excerpt {
  margin-bottom: 20px;
  color: var(--gray-dark);
}

.news-link {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
}

.news-link svg {
  margin-left: 5px;
  transition: all 0.3s ease;
}

.news-link:hover svg {
  transform: translateX(5px);
}

/* CTA Section */
.cta {
  position: relative;
  background: url('../images/pattern-light.svg'), var(--primary);
  color: var(--light);
  text-align: center;
  padding: 80px 0;
  overflow: hidden;
}

.cta h2 {
  color: var(--light);
  margin-bottom: 20px;
}

.cta h2::after {
  background-color: var(--secondary);
}

.cta p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.email-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  font-family: var(--font-main);
}

.email-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  background: var(--secondary);
  color: var(--dark);
}

.email-form .btn:hover {
  background: var(--secondary-dark);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

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

.footer-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--light);
}

.footer-about p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary);
  color: var(--dark);
}

.footer-title {
  font-size: 1.2rem;
  color: var(--light);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-links li {
  margin-bottom: 10px;
}

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

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
  margin-right: 10px;
  min-width: 24px;
  color: var(--secondary);
}

.copyright {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-bottom: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .hamburger {
    display: block;
    z-index: 101;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--light);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 30px 30px;
    transition: all 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .hero {
    height: auto;
    padding: 120px 0 80px;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-btns .btn {
    margin-bottom: 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .features-grid,
  .games-grid,
  .testimonial-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .email-form {
    flex-direction: column;
  }
  
  .email-form input {
    margin-bottom: 15px;
    border-radius: 5px;
  }
  
  .email-form .btn {
    border-radius: 5px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section-title {
    margin-bottom: 30px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
