/* =========================================
   BASIC PAGE SETUP
   Global layout, fonts, and page structure
   ========================================= */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #dcdcdc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Default background color for main pages */
body.home-page,
body.overview-page,
body.comparison-page {
  background-color: #dcdcdc;
}

/* Main content wrapper pushes footer down */
.main-wrapper {
  flex: 1;
  padding: 20px;
}


/* =========================================
   PAGE BANNER BACKGROUNDS
   Hero images for each page
   (Decorative backgrounds; alt text not used in CSS)
   ========================================= */
.page-banner {
  background-size: cover;
  background-position: center;
  border-radius: 40px;
  min-height: calc(100vh - 80px);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

/* Homepage hero background image */
.home-page .page-banner {
  background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.4)),
  url("images/skierjumpmute.jpg");
}

/* Skis overview hero background image */
.overview-page .page-banner {
  background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.4)),
  url("images/skisoverview.jpg");
}

/* Comparison page hero background image */
.comparison-page .page-banner {
  background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.4)),
  url("images/comparisonskis.jpg");
}

/* Park terrain hero background image */
.park-page .page-banner {
  background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.4)),
  url("images/parkskier.jpg");
}

/* Ski fit guide hero background image */
.fit-page .page-banner {
  background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.4)),
  url("images/whatfits.jpg");
}

/* Maintenance page hero background image */
.maintenance-page .page-banner {
  background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.4)),
  url("images/maintenance.jpg");
}

/* Contact page hero background image */
.contact-page .page-banner {
  background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.4)),
  url("images/contact.jpg");
}


/* =========================================
   HEADER AND NAVIGATION
   Site title, menu buttons, navigation
   ========================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px;
  flex-wrap: wrap;
}

/* Navigation link container */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Navigation button styling */
.button {
  padding: 10px 20px;
  border: 2px solid black;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  color: white;
  background-color: black;
  border-radius: 6px;
  font-weight: bold;
  transition: .3s ease;
}

/* Hover effect and active page button */
.button:hover,
.button.active {
  background-color: white;
  color: black;
}

/* Site title positioning */
.title-container {
  padding-left: 30px;
}

/* Rounded title styling */
.curved-title {
  display: inline-block;
  background-color: white;
  color: black;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 24px;
  font-weight: bold;
}


/* =========================================
   HERO INTRO SECTION
   Main banner heading and intro text
   ========================================= */
.intro-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 60px;
  gap: 20px;
}

/* Large main hero heading */
.main-heading {
  color: white;
  font-size: 72px;
  margin: 0;
  max-width: 600px;
  line-height: 1.1;
}

/* Intro text container */
.description-box {
  max-width: 500px;
}

/* Intro paragraph styling */
.description-box p {
  color: white;
  font-size: 18px;
  line-height: 1.5;
  text-shadow: 1px 1px 10px rgba(0,0,0,.5);
}


/* =========================================
   CONTENT SECTIONS
   White content cards and feature sections
   ========================================= */
.content-section {
  background: white;
  margin: 30px auto;
  padding: 40px;
  max-width: 1000px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

/* Section headings */
.content-section h2 {
  margin-top: 0;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}


/* =========================================
   BRAND FEATURE SIDE-BY-SIDE LAYOUT
   Image and text layout for ski features
   ========================================= */
.brand-feature {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 40px 0;
}

/* Feature images
   Ensure matching HTML has descriptive alt text */
.brand-feature img {
  flex-shrink: 0;
  width: 300px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Feature description text container */
.brand-text {
  flex: 1;
}

/* Feature titles */
.brand-text h3 {
  margin-top: 0;
  font-size: 22px;
}

/* Feature paragraph styling */
.brand-text p {
  line-height: 1.6;
  color: #444;
}

/* Divider between brand sections */
hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 40px 0;
}


/* =========================================
   FOOTER
   Bottom copyright section
   ========================================= */
footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  letter-spacing: 2px;
  background-color: #dcdcdc;
  border-top: 1px solid #bbb;
}


/* =========================================
   MOBILE RESPONSIVENESS
   Breakpoint adjustments for smaller screens
   ========================================= */

/* Hide mobile menu controls on desktop */
#menu-toggle,
.hamburger {
  display: none;
}

@media (max-width: 900px) {

  /* Stack feature image and text vertically */
  .brand-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  /* Resize images for mobile */
  .brand-feature img {
    width: 100%;
    max-width: 400px;
  }

  /* Stack header elements */
  .header {
    flex-direction: column;
    margin: 10px;
    gap: 15px;
  }

  /* Mobile hamburger menu button */
  .hamburger {
    display: block;
    background: black;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
  }

  /* Hidden mobile navigation menu */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: center;
    background: rgba(0,0,0,.9);
    padding: 20px 0;
    border-radius: 20px;
  }

  /* Show menu when checkbox is checked */
  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* Full-width mobile buttons */
  .nav-links .button {
    width: 80%;
    text-align: center;
  }

  /* Scale hero heading down on mobile */
  .main-heading {
    font-size: 36px;
  }

  /* Reduce site title size on mobile */
  .curved-title {
    font-size: 18px;
  }
}