@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette (Nordic Cabin Luxury) */
  --bg-primary: #0f1412;
  --bg-secondary: #1a2420;
  --surface-glass: rgba(255, 255, 255, 0.06);
  --surface-glass-hover: rgba(255, 255, 255, 0.09);
  
  --accent-primary: #c8a97e;
  --accent-secondary: #e8d3b9;
  --highlight-accent: #f5e6d3;
  
  --text-primary: #f5f5f4;
  --text-secondary: #a8b3ad;
  --text-dark: #0f1412;

  --border-glow: rgba(200, 169, 126, 0.2);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 4px 20px rgba(200, 169, 126, 0.15);

  /* Spacing System */
  --spacing-y: 100px;
  --spacing-x: 40px;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  
  /* Transitions */
  --transition-smooth: all 0.3s ease;
}

@media (max-width: 1024px) {
  :root {
    --spacing-y: 70px;
    --spacing-x: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-y: 50px;
    --spacing-x: 20px;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--highlight-accent);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Layout System */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-x);
  width: 100%;
}

.section {
  padding: var(--spacing-y) 0;
}

.section-bg {
  background-color: var(--bg-secondary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(200, 169, 126, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--surface-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
}

.btn-secondary:hover {
  background: var(--surface-glass-hover);
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Header (Glass Cabin Navbar) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 20, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glow);
  padding: 20px 0;
  transition: var(--transition-smooth);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--highlight-accent);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
}

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

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

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

#menu-checkbox {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px; /* Offset for header */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 20, 18, 0.9) 0%, rgba(15, 20, 18, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--text-primary);
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* Accommodation Showcase */
.showcase-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.cabin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.cabin-card {
  background: var(--surface-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.cabin-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.cabin-image {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.cabin-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cabin-card:hover .cabin-image img {
  transform: scale(1.05);
}

.cabin-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cabin-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cabin-desc {
  font-size: 0.95rem;
  flex-grow: 1;
}

.cabin-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cabin-price {
  font-family: var(--font-heading);
  color: var(--highlight-accent);
  font-size: 1.25rem;
}

/* Experience Highlights */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.experience-card {
  background: var(--bg-primary);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.experience-card:hover {
  background: var(--surface-glass);
  border-color: var(--border-glow);
}

.experience-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--surface-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

/* Features/Amenities (Grid) */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--surface-glass);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.amenity-item svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-primary);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(200, 169, 126, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Forms & Pages Content */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  background: var(--surface-glass);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glow);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.4);
}

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

/* Content Blocks for Terms & Privacy */
.legal-content h2 {
  margin-top: 40px;
  font-size: 1.8rem;
}

.legal-content p, .legal-content li {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.legal-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 24px;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 16px;
}

.footer-title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 24px;
}

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

.footer-links a {
  color: var(--text-secondary);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(15, 20, 18, 0.7) 0%, rgba(15, 20, 18, 0.9) 100%);
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .btn-group {
    justify-content: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-wrapper {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 1px solid transparent;
  }

  #menu-checkbox:checked ~ .nav-wrapper {
    max-height: 400px;
    border-bottom: 1px solid var(--border-glow);
  }

  .nav-menu {
    flex-direction: column;
    padding: 30px var(--spacing-x);
    gap: 24px;
    align-items: flex-start;
  }
  
  .header-cta {
    display: none; /* Hide button in mobile header, add to menu if needed */
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}