/* Font imports */
@font-face {
  font-family: 'Playfair Display SC';
  src: url('../fonts/PlayfairDisplaySC-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display SC';
  src: url('../fonts/PlayfairDisplaySC-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables */
:root {
  /* Color palette */
  --color-white: #F5F5F5;
  --color-brown: #8B5E3C;
  --color-brown-light: #A67C5B;
  --color-brown-dark: #6A472D;
  --color-blue: #A4C6E0;
  --color-blue-light: #C7DEF0;
  --color-blue-dark: #7AAFD1;
  --color-gray: #3B3B3B;
  --color-gray-light: #555555;
  --color-gray-lighter: #777777;
  --color-gray-dark: #292929;
  
  /* Spacing system (8px) */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-5: 2.5rem;    /* 40px */
  --space-6: 3rem;      /* 48px */
  --space-7: 3.5rem;    /* 56px */
  --space-8: 4rem;      /* 64px */
  
  /* Typography */
  --font-heading: 'Playfair Display SC', serif;
  --font-body: 'Open Sans', sans-serif;
  --line-height-heading: 1.2;
  --line-height-body: 1.5;
  
  /* Border radiuses */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Container width */
  --container-width: 1200px;
  --container-padding: var(--space-3);
}

/* Base styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--color-gray);
  background-color: var(--color-white);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--color-brown);
  margin-bottom: var(--space-2);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-2);
}

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

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

a:hover {
  color: var(--color-brown-light);
}

ul {
  list-style-type: none;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 0.875rem;
}

.btn:focus {
  outline: none;
}

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

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

.btn-secondary {
  background-color: var(--color-blue);
  color: var(--color-gray-dark);
}

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

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

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-brown);
}

.btn-small {
  padding: var(--space-1) var(--space-2);
  font-size: 0.75rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  transition: background-color var(--transition-medium);
}

.header.scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.header.scrolled .nav-link,
.header.scrolled .logo,
.header.scrolled .tagline {
  color: var(--color-gray);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--container-padding);
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo-container {
  text-align: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0;
  transition: color var(--transition-medium);
}

.tagline {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-white);
  transition: color var(--transition-medium);
}

.nav-left,
.nav-right {
  display: flex;
  gap: var(--space-3);
}

.nav-link {
  color: var(--color-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding-bottom: var(--space-1);
  position: relative;
  transition: color var(--transition-medium);
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brown);
  transition: width var(--transition-medium);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  height: 2px;
  width: 100%;
  background-color: var(--color-white);
  transition: all var(--transition-fast);
}

.header.scrolled .mobile-menu-toggle span {
  background-color: var(--color-gray);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-gray-dark);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  text-align: center;
}

.mobile-menu ul li {
  margin-bottom: var(--space-4);
}

.mobile-menu ul li a {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--space-4);
}

.hero-title {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Page Banner */
.page-banner {
  height: 50vh;
  background-image: url('/images/page-banner.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-bottom: var(--space-6);
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--space-4);
}

.banner-content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-1);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
  color: var(--color-white);
  font-size: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.section-header h2 {
  margin-bottom: var(--space-1);
}

.section-header.light h2,
.section-header.light p {
  color: var(--color-white);
}

.divider {
  width: 80px;
  height: 2px;
  background-color: var(--color-brown);
  margin: var(--space-1) auto var(--space-2);
}

.divider.light {
  background-color: var(--color-white);
}

/* Parallax Sections */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.parallax-section > * {
  position: relative;
  z-index: 2;
}

/* CTA Section */
.cta-section {
  padding: var(--space-7) 0;
  background-image: url('/images/summerbg.webp');
  background-size: cover;
  background-position: center;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-1);
  font-size: 2.5rem;
}

.cta-section p {
  color: var(--color-white);
  margin-bottom: var(--space-3);
  font-size: 1.25rem;
}

/* Availability Modal */
.availability-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.availability-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.close-modal {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gray);
}

.availability-form {
  margin-top: var(--space-3);
}

.form-group {
  margin-bottom: var(--space-3);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-1) var(--space-2);
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Footer */
.footer {
  background-color: var(--color-gray-dark);
  color: var(--color-white);
  padding: var(--space-6) 0 var(--space-2);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.footer-brand {
  flex-basis: 300px;
  margin-bottom: var(--space-4);
}

.footer-logo {
  color: var(--color-white);
  font-size: 1.8rem;
  margin-bottom: var(--space-1);
}

.footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-gray-lighter);
  margin-bottom: var(--space-2);
}

.footer-description {
  color: var(--color-gray-lighter);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-column {
  flex-basis: 180px;
  margin-bottom: var(--space-4);
}

.footer-column h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul li {
  margin-bottom: var(--space-1);
}

.footer-column ul li a,
.footer-column ul li p {
  color: var(--color-gray-lighter);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--color-gray-lighter);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.season-btn {
  background: none;
  border: 1px solid var(--color-gray-lighter);
  color: var(--color-gray-lighter);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.season-btn.active {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-gray-dark);
}

/* Center button container */
.center-button {
  text-align: center;
  margin-top: var(--space-4);
}

/* Snowfall Animation */
.snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Media Queries */
@media (max-width: 991px) {
  .nav-left, .nav-right {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-brand {
    margin-bottom: var(--space-4);
    text-align: center;
  }
  
  .footer-links {
    justify-content: space-around;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .theme-toggle {
    margin-top: var(--space-2);
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* Utility Classes */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.text-center {
  text-align: center;
}