/* =====================================================
   The Nabe Website Redesign - Main Stylesheet
   ===================================================== */

/* =====================================================
   CSS Custom Properties (Design Tokens)
   ===================================================== */

:root {
  /* Primary Colors */
  --color-terracotta: #C45D3A;
  --color-terracotta-dark: #A44D2E;
  --color-terracotta-light: #E8A88D;

  /* Neutral Colors */
  --color-cream: #FDF8F3;
  --color-cream-dark: #F5EDE4;
  --color-white: #FFFFFF;
  --color-charcoal: #2D2A26;
  --color-charcoal-light: #5A5651;
  --color-warm-gray: #8B8580;

  /* Accent Colors */
  --color-sage: #7A8B6E;
  --color-sage-light: #A8B89E;
  --color-gold: #D4A853;

  /* Typography Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(2rem, 1.6rem + 2vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2.25rem + 3.75vw, 4.5rem);

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout Constants */
  --max-width: 1280px;
  --max-width-narrow: 800px;
  --header-height: 80px;
  --container-padding: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(45, 42, 38, 0.05);
  --shadow-md: 0 4px 6px rgba(45, 42, 38, 0.07);
  --shadow-lg: 0 10px 15px rgba(45, 42, 38, 0.1);
  --shadow-xl: 0 20px 25px rgba(45, 42, 38, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* =====================================================
   CSS Reset & Base Styles
   ===================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-charcoal);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

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

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: all var(--transition-base);
}

a:hover {
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =====================================================
   Utility Classes
   ===================================================== */

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Eyebrow text - small label above headings */
.eyebrow {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-charcoal-light);
  line-height: 1.7;
}

/* =====================================================
   Components - Buttons
   ===================================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  line-height: 1;
}

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

.btn-primary:hover {
  background-color: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-terracotta);
  border: 2px solid var(--color-terracotta);
}

.btn-secondary:hover {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  text-decoration: none;
}

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

.btn-ghost:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 3px;
}

/* =====================================================
   Components - Cards
   ===================================================== */

.card {
  background-color: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image {
  transform: scale(1.02);
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-charcoal);
}

.card-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--color-charcoal-light);
  margin-bottom: var(--space-md);
  flex: 1;
}

.card-link {
  color: var(--color-terracotta);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-top: auto;
}

.card-link:hover {
  color: var(--color-terracotta-dark);
}

/* =====================================================
   Components - Navigation
   ===================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(253, 248, 243, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 133, 128, 0.15);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

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

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

.logo {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-terracotta);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-terracotta-dark);
}

.nav-menu {
  display: none;
  gap: var(--space-xl);
  align-items: center;
}

.nav-link {
  color: var(--color-charcoal);
  font-weight: 500;
  font-size: var(--text-sm);
  position: relative;
}

.nav-link:hover {
  color: var(--color-terracotta);
  text-decoration: none;
}

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

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

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--color-charcoal);
  cursor: pointer;
  padding: var(--space-sm);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-cream);
  padding: var(--space-2xl) var(--container-padding);
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav-link {
  font-size: var(--text-lg);
  color: var(--color-charcoal);
  padding: var(--space-sm) 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Desktop Navigation */
@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }

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

/* =====================================================
   Components - Footer
   ===================================================== */

.footer {
  background-color: var(--color-charcoal);
  color: var(--color-cream);
  padding: var(--space-4xl) 0 var(--space-xl);
  margin-top: var(--space-5xl);
}

.footer-grid {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-column h3 {
  color: var(--color-white);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  color: var(--color-cream);
  font-size: var(--text-sm);
}

.footer-link:hover {
  color: var(--color-terracotta-light);
}

.footer-text {
  color: var(--color-cream);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-warm-gray);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =====================================================
   Components - Video Embed
   ===================================================== */

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  background-color: var(--color-charcoal);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================================================
   Components - Forms
   ===================================================== */

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-charcoal);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background-color: var(--color-white);
  border: 1px solid var(--color-warm-gray);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: var(--text-base);
  font-family: 'DM Sans', sans-serif;
  color: var(--color-charcoal);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(196, 93, 58, 0.1);
}

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

/* =====================================================
   Layout - Hero Sections
   ===================================================== */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-4xl);
  background: linear-gradient(to bottom, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  position: relative;
}

.hero-shorter {
  min-height: 50vh;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-content .eyebrow {
  font-size: var(--text-base);
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.hero-text {
  margin-bottom: var(--space-2xl);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   Layout - Sections
   ===================================================== */

.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header .eyebrow {
  display: inline-block;
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-text {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-charcoal-light);
}

/* Accent background sections */
.section-accent {
  background-color: var(--color-cream-dark);
}

.section-dark {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

.section-dark .section-title,
.section-dark .section-text,
.section-dark .card-text {
  color: var(--color-white);
}

.section-dark .eyebrow {
  color: var(--color-terracotta-light);
}

/* =====================================================
   Layout - Grids
   ===================================================== */

.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =====================================================
   Layout - Split (Image + Content)
   ===================================================== */

.split {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.split-content .eyebrow {
  margin-bottom: var(--space-sm);
}

.split-content h2 {
  margin-bottom: var(--space-md);
}

.split-content p {
  color: var(--color-charcoal-light);
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-reverse {
    direction: rtl;
  }

  .split-reverse > * {
    direction: ltr;
  }
}

/* =====================================================
   Layout - Stats Bar
   ===================================================== */

.stats {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

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

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-terracotta);
  display: block;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-charcoal-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =====================================================
   Page-Specific - Homepage
   ===================================================== */

.hero-video {
  margin-top: var(--space-3xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   Page-Specific - Event/Rental Detail Pages
   ===================================================== */

.detail-hero {
  padding-top: var(--header-height);
  min-height: 60vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(45, 42, 38, 0.3) 0%, rgba(45, 42, 38, 0.7) 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  width: 100%;
}

.detail-hero-content .eyebrow {
  color: var(--color-terracotta-light);
}

.detail-hero-content h1 {
  color: var(--color-white);
}

.detail-layout {
  display: grid;
  gap: var(--space-3xl);
  padding: var(--space-4xl) 0;
}

.detail-content {
  /* Main column */
}

.detail-sidebar {
  /* Sidebar */
}

.info-card {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}

.info-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-cream-dark);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: var(--text-base);
  color: var(--color-charcoal);
}

@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: 2fr 1fr;
  }

  .detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    align-self: start;
  }
}

/* =====================================================
   Page-Specific - Image Gallery
   ===================================================== */

.gallery {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-sm);
}

.gallery-thumb {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.gallery-thumb:hover {
  opacity: 0.8;
}

/* =====================================================
   Page-Specific - Badge
   ===================================================== */

.badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-terracotta);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 9999px;
  margin: var(--space-sm) 0;
}

/* =====================================================
   Page-Specific - Feature List
   ===================================================== */

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-terracotta);
  font-weight: 700;
}

/* =====================================================
   Animations
   ===================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Stagger delays for hero elements */
.hero-content .eyebrow {
  animation-delay: 0.1s;
  opacity: 0;
}

.hero-content .hero-title {
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-content .hero-text {
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-content .hero-cta {
  animation-delay: 0.4s;
  opacity: 0;
}

/* =====================================================
   Accessibility - Focus Styles
   ===================================================== */

*:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline-offset: 3px;
}

/* =====================================================
   Print Styles
   ===================================================== */

@media print {
  .header,
  .footer,
  .mobile-menu-toggle,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
