/* 
 * HorseCulture.love - Main Stylesheet
 * A responsive design for the Philippine horse culture website
 */

/* ---------- Base Styles ---------- */
:root {
  --primary-color: #8b2131;
  --secondary-color: #2c3e50;
  --accent-color: #d4af37;
  --light-color: #f9f9f9;
  --dark-color: #333;
  --text-color: #4a4a4a;
  --border-radius: 6px;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--dark-color);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 15px auto 0;
}

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

section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

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

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

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

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

/* ---------- Header Styles ---------- */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

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

.logo img {
  max-height: 60px;
}

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

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 25px;
}

.nav-list a {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

.nav-list a:hover {
  color: var(--primary-color);
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px 0;
  background-color: var(--dark-color);
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 12rem 0 8rem;
  margin-top: 90px;
}

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

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ---------- Featured Section ---------- */
.featured {
  background-color: white;
}

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

.featured-item {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.featured-image {
  height: 250px;
  overflow: hidden;
}

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

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

.featured-item h3, .featured-item p {
  padding: 0 20px;
}

.featured-item h3 {
  margin-top: 20px;
  color: var(--secondary-color);
}

.read-more {
  display: inline-block;
  margin: 0 0 20px 20px;
  font-weight: 600;
  position: relative;
}

.read-more:after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 10px;
}

/* ---------- Gaming Section ---------- */
.gaming {
  background-color: #f5f5f5;
}

.section-description {
  text-align: center;
  margin: -2rem auto 3rem;
  max-width: 700px;
}

.gaming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.gaming-links {
  list-style: none;
  margin-top: 20px;
}

.gaming-links li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

.gaming-links li:before {
  content: '♦';
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 0;
}

.gaming-links a {
  font-weight: 500;
  transition: var(--transition);
}

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

.gaming-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ---------- About Section ---------- */
.about {
  background-color: white;
}

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

.about-content h2 {
  text-align: left;
}

.about-content h2:after {
  margin-left: 0;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  background-color: var(--secondary-color);
  color: white;
}

.testimonials .section-title {
  color: white;
}

.testimonials .section-title:after {
  background-color: var(--accent-color);
}

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

.testimonial-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.testimonial-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content p {
  font-style: italic;
  position: relative;
}

.testimonial-content p:before, .testimonial-content p:after {
  content: '"';
  font-size: 30px;
  color: var(--accent-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-info h4 {
  color: white;
  margin-bottom: 5px;
}

.author-info p {
  margin-bottom: 0;
  font-size: 14px;
  opacity: 0.8;
}

/* ---------- Newsletter Section ---------- */
.newsletter {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
}

.newsletter h2 {
  color: white;
}

.newsletter-form {
  display: flex;
  margin-top: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 16px;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--accent-color);
  color: var(--dark-color);
  font-weight: 700;
}

.newsletter-form button:hover {
  background-color: #c09b2f;
}

/* ---------- Footer ---------- */
.footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 5rem 0 1rem;
}

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

.footer-logo p {
  margin-top: 15px;
}

.social-icons {
  display: flex;
  margin-top: 20px;
}

.social-icons a {
  color: #ccc;
  margin-right: 15px;
  font-size: 20px;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--accent-color);
}

.footer h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
}

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

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

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-logo-small {
  margin: 0 20px;
}

.gaming-links-footer {
  font-size: 14px;
  margin-top: 15px;
  width: 100%;
  text-align: center;
}

.gaming-links-footer a {
  color: #aaa;
  margin: 0 5px;
}

.gaming-links-footer a:hover {
  color: var(--accent-color);
}

/* ---------- Icon font ---------- */
@font-face {
  font-family: 'icomoon';
  src: url('../fonts/icomoon.eot');
  src: url('../fonts/icomoon.eot?#iefix') format('embedded-opentype'),
       url('../fonts/icomoon.woff') format('woff'),
       url('../fonts/icomoon.ttf') format('truetype'),
       url('../fonts/icomoon.svg#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

[class^="icon-"], [class*=" icon-"] {
  font-family: 'icomoon';
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-facebook:before {
  content: "\ea90";
}

.icon-instagram:before {
  content: "\ea92";
}

.icon-twitter:before {
  content: "\ea96";
}

.icon-youtube:before {
  content: "\ea9d";
}

/* ---------- Responsive Design ---------- */
@media screen and (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .about-grid,
  .gaming-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .about-content h2:after {
    margin: 15px auto 0;
  }
  
  .about-content {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 10rem 0 6rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .nav-list {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }
  
  .nav-list.active {
    left: 0;
  }
  
  .nav-list li {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-list a {
    display: block;
    padding: 12px 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: var(--border-radius);
  }
  
  .newsletter-form button {
    margin-top: 10px;
  }
  
  .footer-bottom {
    flex-direction: column;
  }
  
  .footer-logo-small {
    margin: 15px 0;
  }
  
  .gaming-links-footer {
    margin-top: 20px;
  }
}

@media screen and (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
}
