/* Main CSS file for Rossco Mining Company Arcade and Rink website */

/* Import component-specific styles */
@import url('/assets/css/header.css');
@import url('/assets/css/footer.css');
@import url('/assets/css/newsletter.css');
@import url('/assets/css/events.css');
@import url('/assets/css/cta-section.css');

/* Base Styles */
:root {
  --primary-color: #2a4b8d;
  --secondary-color: #e67e22;
  --accent-color: #3498db;
  --text-color: #333;
  --light-gray: #f4f4f4;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Hero Section */
.hero-section {
  background-color: var(--accent-color);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  /* Fixed path to make sure background image loads - verify the correct path */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative; /* Added to ensure proper rendering */
}

/* Backup style in case the image doesn't load */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative; /* Ensure content is above the background */
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Welcome Section */
.welcome-section {
  padding: 60px 0;
  text-align: center;
}

/* Features Section */
.features-section {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
}

.feature-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.feature-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
}

/* Newsletter Styling */
.newsletter-section {
  background-color: var(--light-gray);
  padding: 40px 0;
  margin-top: 30px;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.newsletter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  width: 100%;
  margin-top: 20px;
  max-width: 500px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

.newsletter-button {
  padding: 12px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.newsletter-button:hover {
  background-color: var(--secondary-color);
}

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    width: 90%;
  }
  
  .newsletter-input {
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .newsletter-button {
    border-radius: 4px;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .container {
    width: 95%;
  }
}