/* === Le Ski Mastery — Site Styles === */

/* --- Custom Properties --- */
:root {
  --blue: #0c5eab;
  --red: #c03437;
  --dark: #333;
  --gray: #666;
  --light-gray: #f5f5f5;
  --white: #fff;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-heading: 'Open Sans', Arial, sans-serif;
  --container-width: 1200px;
  --header-height: 120px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Base Typography --- */
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* --- Layout --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}
.section {
  padding: 4rem 0;
}
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo img {
  width: 200px;
}
.site-nav ul {
  display: flex;
  gap: 2rem;
}
.site-nav a {
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.25em 0;
  position: relative;
  transition: color 0.2s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 3px;
  background: var(--red);
  transition: right 0.3s ease-out;
}
.site-nav a:hover::after,
.site-nav a.active::after {
  right: 0;
}
.site-nav a:hover { color: var(--blue); }

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  position: relative;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  position: absolute;
  left: 4px;
  transition: transform 0.3s;
}
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { content: ''; top: -9px; }
.hamburger::after { content: ''; top: 9px; }
.mobile-nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.mobile-nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* --- Main content offset for fixed header --- */
main { margin-top: calc(var(--header-height) + 1.5rem); }

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: #aaa;
  padding: 2.5rem 0;
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-col a { color: var(--blue); }
.footer-col a:hover { color: var(--white); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.75em 2em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--secondary:hover {
  background: var(--blue);
  color: var(--white);
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  overflow: hidden;
}
.slider {
  display: grid;
}
.slider img {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 56.25vw;
  max-height: 80vh;
  object-fit: cover;
}
.slider img:first-child { z-index: 10; }
.slider img:last-child { z-index: 5; }
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.scroll-down:hover { opacity: 1; }
.scroll-down::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg) translateY(-2px);
}

/* Hero image (single) */
.hero-image {
  line-height: 0;
}
.hero-image img { width: 100%; max-height: 60vh; object-fit: cover; }

/* --- Pricing Table --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.pricing-table th,
.pricing-table td {
  padding: 0.6em 1em;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}
.pricing-table thead th {
  font-weight: 700;
  font-size: 1.1rem;
  padding-top: 1.5em;
  border-bottom: 2px solid var(--dark);
}
.pricing-table thead:first-child th { padding-top: 0; }
.rate-daily { color: var(--red); font-weight: 700; }
.rate-web { color: var(--blue); font-weight: 700; }
.pricing-table tbody td:nth-child(2) { color: var(--red); font-weight: 600; }
.pricing-table tbody td:nth-child(3) { color: var(--blue); font-weight: 600; }

/* --- Services List (dl) --- */
.services-list {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.services-list dt {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.1rem;
  padding: 0.75em 0 0.25em;
  border-top: 2px solid var(--light-gray);
}
.services-list dt:first-child { border-top: none; padding-top: 0; }
.services-list dd {
  color: var(--gray);
  margin-bottom: 0.25em;
  font-size: 0.95rem;
  overflow: hidden;
}
.services-list dt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.services-list dd:has(.price) {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.services-list .price {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1rem;
  margin-left: 1rem;
  white-space: nowrap;
}

/* --- Testimonials --- */
.testimonials { background: var(--light-gray); }
.testimonials h2 { text-align: center; margin-bottom: 1.5rem; }
.testimonial-card {
  background: var(--red);
  color: var(--white);
  padding: 2rem;
  border-radius: 8px;
}
.testimonial-card p { color: var(--white); }
.testimonial-card cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  opacity: 0.9;
}

/* --- Perks Panel --- */
.perks-panel {
  background: linear-gradient(135deg, var(--blue) 0%, #094a8a 100%);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(12, 94, 171, 0.3);
}
.perks-panel h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 1.25rem; }
.perks-panel ul { margin: 0; }
.perks-panel li {
  padding: 0.75em 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 1.1rem;
  line-height: 1.4;
}
.perks-panel li:last-child { border-bottom: none; }
.perks-panel li::before {
  content: '\2713';
  margin-right: 0.6em;
  font-weight: 700;
  color: #7fccff;
}

/* --- Brand Logo Grid --- */
.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
}
.brand-logo-grid img {
  max-height: 70px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* --- Partners --- */
.partner-card {
  text-align: center;
}
.partner-card img {
  max-height: 100px;
  width: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}
.partner-card figcaption { font-size: 0.95rem; }

/* --- Full bleed image --- */
.full-bleed { margin: 0; line-height: 0; }
.full-bleed img { width: 100%; max-height: 400px; object-fit: cover; }

/* --- Gallery --- */
.gallery .grid-2col { gap: 1.5rem; }
.gallery img { border-radius: 8px; }

/* --- CTA Section --- */
.cta { text-align: center; }
.cta .btn { margin-top: 1rem; }

/* --- Thank You --- */
.thank-you {
  text-align: center;
  padding: 6rem 0;
}
.thank-you img {
  max-width: 500px;
  margin: 0 auto 2rem;
}
.thank-you p {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--dark);
}
.form-group .required { color: var(--red); }
.form-input,
.form-select {
  width: 100%;
  padding: 0.6em 0.8em;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--blue);
  outline: none;
}
.form-error-field { border-color: var(--red) !important; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-page {
  border: none;
  padding: 0;
  margin: 0;
}
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.form-error {
  color: var(--red);
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.3rem;
}
.form-radio-group label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.form-radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

/* Progress bar */
.progress-bar {
  background: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  height: 28px;
}
.progress-bar__fill {
  background: var(--blue);
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  transition: width 0.4s ease;
}

/* Booking section */
.booking-section { background: var(--light-gray); }
.container--narrow { max-width: 800px; }

/* Renter card */
.renter-card {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.renter-card h3 { margin-bottom: 1rem; }

/* sr-only for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Gravity Forms compatibility (reservation form) --- */
/* Neutralize Divi wrappers inside the reservation form */
.gc-booking-section { background: var(--light-gray); padding: 3rem 0; }
.gc-booking-section .et_pb_row,
.gc-booking-section .et_pb_column,
.gc-booking-section .et_pb_module,
.gc-booking-section .et_pb_text,
.gc-booking-section .et_pb_code,
.gc-booking-section .et_pb_text_inner,
.gc-booking-section .et_pb_code_inner,
.gc-booking-section .et_builder_inner_content,
.gc-booking-section .entry-content,
.gc-booking-section .et-boc,
.gc-booking-section .et-l,
.gc-booking-section article {
  display: block;
  float: none;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  position: static;
}
.gc-booking-section .et_pb_section { padding: 0; background: transparent; }
.gc-booking-heading h1 { color: var(--blue); text-align: center; margin-bottom: 1.5rem; }
.gc-booking-heading .et_pb_text_inner { text-align: center; }
.gc-booking-heading .et_pb_text_inner p { text-align: center; }
.gform_wrapper { max-width: 100%; }
.gform_fields { list-style: none; padding: 0; }
.gfield { margin-bottom: 1.25rem; }
.gfield_label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 0.3rem; }
.gfield_required { color: var(--red); }
.ginput_container input,
.ginput_container select,
.ginput_container_email input,
.ginput_container_number input,
.ginput_container_select select {
  width: 100%;
  padding: 0.6em 0.8em;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.ginput_container input:focus,
.ginput_container select:focus {
  border-color: var(--blue);
  outline: none;
}
.ginput_complex { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ginput_full { grid-column: 1 / -1; }
.ginput_complex label { font-size: 0.85rem; color: var(--gray); margin-top: 0.2rem; display: block; }
.ginput_complex input,
.ginput_complex select { width: 100%; }
.gf_progressbar {
  background: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  height: 28px;
}
.gf_progressbar_percentage {
  background: var(--blue);
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  transition: width 0.4s ease;
}
.gf_progressbar_title { margin-bottom: 0.5rem; font-size: 0.95rem; }
.gform_page_footer { display: flex; gap: 1rem; margin-top: 1.5rem; }
.gform_next_button,
.gform_previous_button,
.gform_button {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.75em 2em;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.gform_next_button:hover,
.gform_button:hover { background: var(--red); }
.gform_previous_button { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.gform_previous_button:hover { background: var(--blue); color: var(--white); }
/* Override inline widths on form buttons */
input.gform_next_button,
input.gform_previous_button,
input.gform_button { width: auto !important; }
/* Form page visibility */
.gform_page { margin-top: 1rem; }
.gform_page_fields { padding: 0; }
.gform_body { margin-top: 1rem; }
/* Address sub-fields layout */
.ginput_left, .ginput_right { display: inline-block; width: 48%; vertical-align: top; }
.ginput_left { margin-right: 2%; }
.ginput_full { display: block; width: 100%; }
.ginput_left input, .ginput_right input, .ginput_right select,
.ginput_full input { width: 100%; }
.ginput_left label, .ginput_right label, .ginput_full label {
  font-size: 0.85rem; color: var(--gray); margin-top: 0.2rem; display: block;
}
/* Name sub-fields */
.name_first, .name_last { display: inline-block; width: 48%; vertical-align: top; }
.name_first { margin-right: 2%; }
.name_first input, .name_last input { width: 100%; }
.name_first label, .name_last label {
  font-size: 0.85rem; color: var(--gray); margin-top: 0.2rem; display: block;
}
/* Phone input */
.ginput_container_phone input { width: 100%; }
/* Renter sections */
.gc-booking-section #skiers .gfield { margin-bottom: 0.75rem; }
/* Liability text */
.gc-booking-section .gfield_description,
.gc-booking-section p { color: var(--gray); line-height: 1.6; }
.gfield_radio { display: flex; gap: 1.5rem; margin-top: 0.3rem; list-style: none; padding: 0; }
.gfield_radio label { font-weight: 400; display: flex; align-items: center; gap: 0.4rem; }
.gfield_radio input[type="radio"] { width: 18px; height: 18px; accent-color: var(--blue); }
.gfield_description { font-size: 0.85rem; color: var(--gray); margin-top: 0.3rem; }

/* --- Fade animation for sliders --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fadeIn { animation: fadeIn 1.5s; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .grid-2col { grid-template-columns: 1fr; }
  .grid-3col { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .mobile-nav-toggle { display: block; }
  .site-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem 0;
  }
  .site-nav.open ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .site-nav.open a {
    display: block;
    padding: 0.75em 2em;
    font-size: 1.2rem;
  }
  .site-nav.open a::after { display: none; }
  .logo img { width: 160px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .brand-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .section { padding: 2.5rem 0; }
  .logo img { width: 130px; }
  h1 { font-size: 1.5rem; }
  .brand-logo-grid { grid-template-columns: 1fr 1fr; }
  .thank-you { padding: 3rem 0; }
  .thank-you img { max-width: 80%; }
}

/* --- Font faces --- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url(font.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url(font.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url(font.ttf) format('truetype');
}
