/*
  Global styles for the Oz Restorations website.
  Color palette inspired by emerald greens and yellow brick road golds.
*/

/* Ensure Font Awesome icons swap quickly without blocking text rendering */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/webfonts/fa-solid-900.woff2') format('woff2'),
       url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/webfonts/fa-solid-900.woff') format('woff');
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #004c3f;
  z-index: 1000;
}

/* Basic resets and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Use modern sans serif font for body copy */
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #2a2a2a;
  background-color: #fdfaf4;
}
html {
  scroll-behavior: smooth;
}

a {
  color: #006a4e;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  /* Elegant serif for headings */
  font-family: 'Playfair Display', serif;
  color: #004c3f;
  margin-bottom: 0.5rem;
}
/* Ensure section headings are centered consistently */
section h2 { text-align: center; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.logo img {
  height: 50px;
  width: auto;
}
/* Navigation styles */
.main-nav {
  position: relative;
}
.main-nav .nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #004c3f;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 201;
  padding: 0.25rem;
}
.main-nav .nav-toggle .burger {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #004c3f;
  position: relative;
  border-radius: 1px;
}
.main-nav .nav-toggle .burger::before,
.main-nav .nav-toggle .burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #004c3f;
  border-radius: 1px;
}
.main-nav .nav-toggle .burger::before { transform: translateY(-7px); }
.main-nav .nav-toggle .burger::after  { transform: translateY(7px); }
.main-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.main-nav a {
  font-weight: bold;
  color: #004c3f;
  transition: color 0.2s ease-in-out;
  position: relative;
}
.main-nav a:hover {
  color: #007f63;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-in-out;
}
.main-nav a:hover::after { transform: scaleX(1); }

/* Hero section */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}
.hero picture.hero-bg,
.hero picture.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.hero picture.hero-bg img {
  object-fit: cover;
  object-position: center calc(50% + var(--hero-parallax, 0px));
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,var(--hero-overlay-top, 0.45)) 0%,
      rgba(0,0,0,var(--hero-overlay-mid, 0.35)) 40%,
      rgba(0,0,0,var(--hero-overlay-bottom, 0.55)) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 800px;
  padding: 1rem;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #fdfaf4;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #e6e5e1;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #d6b000;
  color: #004c3f;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background-color: #e8c400;
}
/* Button ripple effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}
.btn:active::after {
  width: 200%;
  height: 200%;
  opacity: 0;
  transition: 0s;
}

/* Emphasized call-to-action button for gallery link */
.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.see-more-btn i {
  transition: transform 0.3s ease;
}
.see-more-btn:hover i {
  transform: translateX(4px);
}

/* Spacing and centering for the see more restorations button */
.more-restorations {
  margin-top: 2rem;
  text-align: center;
}

/* Section styles */
section {
  padding: 4rem 0;
  scroll-margin-top: 80px; /* avoid sticky header overlap when using anchors */
}
.section-description {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #555;
}
.photo-section {
  text-align: center;
}
.photo-section .back-home {
  margin-bottom: 2rem;
}

/* Restorations grid layout */
.restorations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

.restoration-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1rem 1rem 1.25rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.restoration-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: #006a4e;
  color: #ffffff;
  font-weight: 700;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  cursor: pointer;
}
.icon-btn:hover { background: #007f63; }
.icon-btn i { pointer-events: none; font-size: 14px; }
.icon-btn .label { font-size: 0.9rem; letter-spacing: 0.2px; }
.restoration-card h3 {
  text-align: left;
  margin: 0 0 0.75rem 0.25rem;
  font-size: 1.25rem;
  color: #004c3f;
}
.restoration-card .ba-slider {
  max-width: none;
  width: 100%;
  margin: 0;
}

/* Consistent card aspect ratio for BA sliders */
.ba-fixed-ar {
  /* Portrait-friendly ratio; adjust if desired */
  aspect-ratio: 4 / 5;
}
@media (max-width: 520px) {
  .ba-fixed-ar { aspect-ratio: 3 / 4; }
}

/* Lightbox modal */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}
.lightbox-content {
  position: relative;
  z-index: 1;
  width: min(96vw, 1280px);
  max-height: 92vh;
  padding: 0.5rem;
  background: rgba(11,31,27,0.92);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-body {
  width: 100%;
  max-height: calc(92vh - 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox .ba-slider {
  max-width: none;
  width: 100%;
  margin: 0;
  height: auto;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(0,0,0,0.5); }

/* Prevent background scroll when modal is open */
body.modal-open { overflow: hidden; }

/* Before/after slider */
.ba-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  /* Keep images tight to the bottom; slider overlays images */
  --handle-space: 0px;
  --ba-obj-x: 50%; /* tweak to align focal point horizontally */
  --ba-obj-y: 50%; /* tweak to align focal point vertically */
  
  /* Fine-tune alignment of the restored image relative to the original */
  --ba-offset-x: 0px; /* nudge AFTER image horizontally (negative = left, positive = right) */
  --ba-offset-y: 0px; /* nudge AFTER image vertically (negative = up, positive = down) */
  --ba-scale: 1; /* scale factor; keep at 1 for perfect 1:1 */
  
  padding-bottom: var(--handle-space);
  background: transparent; /* canvas will own the background */
}

/* Inner canvas for images (excludes handle space) */
.ba-slider .ba-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* no reserved gap below the images */
  overflow: hidden;
  border-radius: inherit; /* match outer rounding */
  background: #000; /* hide any letterboxing only behind images */
  touch-action: pan-y; /* allow vertical scrolling on mobile */
  -webkit-user-select: none;
  user-select: none;
}

/* Base image fills the canvas area exactly (same as overlay) */
.ba-slider .ba-canvas img.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ba-obj-x) var(--ba-obj-y);
}

/* Overlay container is absolutely positioned and clipped by JS/CSS */
.ba-slider .ba-canvas .resize {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  /* allow dragging on the container without the overlay blocking events */
  pointer-events: none;
  z-index: 1;
  /* start with half reveal; JS updates this via clip-path */
  -webkit-clip-path: inset(0 50% 0 0);
  clip-path: inset(0 50% 0 0);
  will-change: clip-path; /* performance hint for mobile */
}

/* Overlay image fills the overlay area and uses object-fit to avoid cropping issues */
.ba-slider .ba-canvas .resize .ba-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ba-obj-x) var(--ba-obj-y);
  transform: translate(var(--ba-offset-x), var(--ba-offset-y));
  transform-origin: center center;
}
/* Vertical slider line */
.slider-line {
  position: absolute;
  top: 0;
  bottom: 0; /* sits inside the canvas */
  left: 50%;
  width: 3px;
  background-color: rgba(214, 176, 0, 0.9);
  cursor: ew-resize;
  pointer-events: auto;
  transition: left 0.1s ease-out;
  will-change: left; /* performance hint */
}

.ba-slider input[type='range'] {
  /* Position the range input at the bottom of the container.
     Setting bottom to 0 places it directly beneath the images */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: #e6e6e6;
  outline: none;
  cursor: ew-resize;
  margin: 0; /* remove default mobile margins */
  z-index: 2;
  transform: translateY(-1px); /* overlap the track by 1px to hide hairline gaps */
  touch-action: pan-y; /* allow vertical scrolling without slider activation */
}
.ba-slider input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #d6b000;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}
.ba-slider input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #d6b000;
  border-radius: 50%;
  border: none;
}

/* Video section */
.video-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}
.video-column {
  flex: 1 1 300px;
  max-width: 500px;
}
.video-column h3 {
  margin-bottom: 0.5rem;
  text-align: center;
  color: #004c3f;
  font-size: 1.25rem;
}
.video-column video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive YouTube embeds */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile video layout fixes */
@media (max-width: 768px) {
  .video-wrapper { flex-direction: column; gap: 1.25rem; }
  .video-column { flex: 1 1 auto; width: 100%; max-width: none; }
  .video-column h3 { text-align: left; margin: 0 0 0.25rem 0.25rem; }
  .video-embed { width: 100%; }
}

/* Footer */
.site-footer {
  background-color: #004c3f;
  color: #fdfaf4;
  padding: 3rem 0 1rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-left,
.footer-right {
  flex: 1 1 300px;
}
.footer-left h2,
.footer-right h3 {
  color: #d6b000;
}
.footer-left p,
.footer-right p {
  margin-bottom: 1rem;
}
.social-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.social-links li a {
  color: #fdfaf4;
  font-weight: bold;
  transition: color 0.2s ease;
}
.social-links li a:hover {
  color: #d6b000;
}
.copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  color: #cde4d8;
}

/* === Additional sections and components === */

/* About section with magical background */
.about-section {
  position: relative;
  /* Add a soft blend with the hero above */
  --blend-size: clamp(32px, 6vw, 72px);
  margin-top: calc(-1 * var(--blend-size));
  padding: calc(6rem + var(--blend-size)) 0 6rem;
  background-image: url('../images/abstract-bg.png');
  background-image: image-set(
    url('../images/abstract-bg.webp') type('image/webp'),
    url('../images/abstract-bg.png') type('image/png')
  );
  background-size: cover;
  background-position: center calc(50% + var(--about-parallax, 0px));
  will-change: background-position;
  color: #fdfaf4;
  /* Fade the first ~var(--blend-size) pixels from transparent to opaque so hero shows through */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,1) var(--blend-size));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,1) var(--blend-size));
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(60% 50% at 50% 35%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.7) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 0;
}
.about-section::after {
  /* Gentle fade from the about background into the light page background */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--blend-size);
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #fdfaf4 100%);
  z-index: 0;
  pointer-events: none;
}
.about-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.about-section h2 { color: #f1f6f4; text-shadow: 0 3px 12px rgba(0,0,0,0.6); }
.about-section .section-description {
  color: #eef4f1;
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.28);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}
.about-section .feature h3 { color: #f2f7f5; }
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.feature {
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
  color: #fdfaf4;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #d6b000;
  color: #004c3f;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Testimonials section */
.testimonials-section {
  background-color: #f5f5f5;
  color: #2a2a2a;
  padding: 4rem 0;
}
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.testimonial {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.testimonial .quote {
  font-style: italic;
  margin-bottom: 1rem;
  color: #004c3f;
}
.testimonial .author {
  text-align: right;
  font-weight: bold;
  color: #006a4e;
}

/* Contact section */
.contact-section {
  background-color: #fdfaf4;
  padding: 4rem 0;
}
.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}
.contact-form .form-group {
  margin-bottom: 1rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #004c3f;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #fff;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form .submit-btn {
  margin-top: 1rem;
  width: 100%;
}
.contact-form .form-response {
  margin-top: 1rem;
  font-weight: bold;
  color: #006a4e;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #d6b000;
  color: #004c3f;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 480px) {
  .back-to-top {
    width: 42px; height: 42px; right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 8px 16px rgba(0,0,0,0.18);
  }
  .back-to-top:active { transform: scale(0.96); }
}

/* Improve keyboard focus visibility */
:focus-visible {
  outline: 3px solid #d6b000;
  outline-offset: 2px;
}

/* Fade animation for sections */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* Enlarged range slider thumb for the before/after component */
.ba-slider input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #d6b000;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}
.ba-slider input[type='range']::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #d6b000;
  border-radius: 50%;
  border: none;
}

/* Responsive adjustments for features and testimonials on small screens */
@media (max-width: 768px) {
  .features-grid,
  .testimonials-grid {
    flex-direction: column;
    align-items: center;
  }
  .feature,
  .testimonial {
    max-width: 100%;
  }
}

/* Desktop refinements */
@media (min-width: 1200px) {
  .hero h1 { font-size: 3.75rem; }
  .hero p { font-size: 1.35rem; }
  .section-description { max-width: 850px; }
  .ba-slider { max-width: 1000px; }
}

/* Subtle interactive cards on desktop */
@media (hover: hover) {
  .testimonial { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
}

/* Tighter handle space on very small screens */
@media (max-width: 480px) {
  .ba-slider { --handle-space: 1rem; }
}

/* Responsive navigation */
@media (max-width: 900px) {
  .main-nav .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
  }
  .main-nav .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 0.5rem 0;
    z-index: 150;
  }
  .main-nav .nav-links.open {
    display: flex;
  }
  .main-nav .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .main-nav ul {
    gap: 1rem;
  }
  .site-footer {
    text-align: center;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
  }
  .video-wrapper {
    flex-direction: column;
  }
}

/* Mobile navigation styles */
@media (max-width: 768px) {
  /* Show the hamburger toggle on small screens */
  .main-nav .nav-toggle { display: inline-flex !important; }
  /* Hide the nav links by default and stack them vertically */
  .main-nav .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    width: min(86vw, 260px);
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    display: none;
    z-index: 300;
  }
  .main-nav .nav-links.open { display: flex; }
  .main-nav .nav-links li { margin: 0; }
  .main-nav .nav-links a { padding: 0.75rem 0.75rem; display: block; }
}
