@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Poiret+One&display=swap");

:root {
  --bg-color: #1a1a1a;
  --surface-color: #2c2c2c;
  --text-color: #f0f0f0;
  --accent-color: #d4af37;
  --border-color: #444;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 300;
  margin: 0;
  line-height: 1.8;
  overflow-x: hidden;
}

#preloader {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  /* This z-index ensures it's on top of the video but below the header */
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#preloader.preloader--hidden {
  display: none;
}
.loader-bar-container {
  width: 80%;
  max-width: 400px;
  height: 6px;
  background-color: var(--surface-color);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar {
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 3px;
  transform: translateX(-100%);
  animation: fill-bar 3s ease-in-out forwards;
}

/* This class will be added by JS to hide the preloader */

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

/* Define the loading bar animation */
@keyframes fill-bar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}
/* Screen reader only utility class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h3 {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2 {
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* --- NAVBAR STYLING --- */

header {
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.4s ease-out;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* max-width: 1200px; */
  /* margin: 0 auto; */
  padding: 1rem 3rem;
  box-sizing: border-box;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  border: 2px solid var(--text-color);
  padding: 0.05rem 1rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 1.2s ease-in-out, border-color 1.2s ease-in-out;
  z-index: 1000;
}

.mobile-nav-toggle {
  display: none;
}

.primary-navigation {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.primary-navigation a {
  color: var(--text-color);
  text-decoration: none;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  position: relative;
  transition: color 0.3s, opacity 1.2s ease-in-out;
  display: inline-block; /* ADDED */
}

.primary-navigation a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease-out;
}

.primary-navigation a:hover {
  color: var(--accent-color);
}

.primary-navigation a:hover::after {
  width: 100%;
}

/* --- HOME PAGE SPECIFIC STYLES --- */

.home-page header {
  background-color: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.home-page header .logo,
.home-page .primary-navigation a {
  opacity: 0;
}

.home-page header .logo {
  border-color: transparent;
}

.home-page header.video-finished {
  background-color: rgba(26, 26, 26, 0.2);
  backdrop-filter: blur(5px);
}

.home-page header.video-finished .logo,
.home-page .video-finished .primary-navigation a {
  opacity: 0.4;
}

.home-page header.video-finished .logo {
  border-color: rgba(240, 240, 240, 0.4);
}

.home-page header.scrolled {
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.home-page header.scrolled .logo,
.home-page .scrolled .primary-navigation a {
  opacity: 1;
}

.home-page header.scrolled .logo {
  border-color: var(--text-color);
}

/* --- HERO AND CONTENT STYLES --- */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.content-section {
  padding: 4rem 0;
}

.hero {
  position: relative;
  z-index: 1;
  height: 85vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* The wrapper and video are now positioned inside the hero */
.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* This is the default DESKTOP video style */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Back to 'cover' for a better default */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: -1;
}

.video-overlay.visible {
  opacity: 1;
}

.hero-text {
  z-index: 1;
  padding: 0 2rem;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-text.visible {
  opacity: 1;
}

.hero-text h1 {
  font-size: clamp(1.2rem, 7vw, 4rem);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  text-transform: none;
}

.hero-text .subtitle {
  font-family: "Poiret One", cursive;
  font-size: clamp(0.9rem, 3.3vw, 1.6rem);
  letter-spacing: 3px;
  color: #ccc;
  margin-bottom: 2.5rem;
  font-weight: bold;
}

.cta-button {
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 5vw, 3rem);
  text-decoration: none;
  border: 2px solid var(--accent-color);
  border-radius: 2px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--accent-color);
}
.replay-button {
  /* Positioning and Layout */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem auto 0;

  /* Appearance */
  background: transparent;
  border: 1px solid rgba(240, 240, 240, 0.5);
  color: rgba(240, 240, 240, 0.8);
  border-radius: 50px; /* Pill shape */
  padding: 0.3rem 1.2rem;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  cursor: pointer;

  /* Initial State (Hidden) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out,
    background-color 0.3s, border-color 0.3s;
}

.replay-button.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.replay-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor; /* Makes the SVG icon match the text color */
}

.replay-button:hover {
  background-color: rgba(240, 240, 240, 0.1);
  border-color: rgba(240, 240, 240, 0.9);
}
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.reason {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reason img {
  max-width: 120px;
  height: auto;
  padding: 1rem;
  margin-bottom: 1rem;
}

#process {
  scroll-margin-top: 90px;
}

.timeline {
  position: relative;
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  height: 100%;
  width: 2px;
  background: var(--border-color);
}
.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  padding-left: 80px;
}
.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--surface-color);
  border: 2px solid var(--accent-color);
  text-align: center;
  line-height: 50px;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}
.quote-form form {
  max-width: 800px;
  margin: 2rem auto;
  background-color: var(--surface-color);
  padding: 3rem;
  border: 1px solid var(--border-color);
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-group {
  flex: 1;
}
.quote-form label {
  display: block;
  margin-bottom: 0.5rem;
}
.form-cta-container {
  text-align: center;
  margin-top: 1.5rem;
}
.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 2px;
  transition: border-color 0.3s;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 300;
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}
.callout-heading {
  font-family: "Poiret One", cursive;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
  text-transform: none;
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
}
.framed-section {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 3rem;
  margin-bottom: 4rem;
  border-radius: 2px;
}

.pricing-details {
  text-align: center;
}
.base-price-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-color);
  padding: 3rem 2rem;
  border: 1px solid var(--border-color);
  margin-bottom: 4rem;
}
.price-display {
  font-family: "Poppins", sans-serif;
  font-size: 6rem;
  font-weight: 600;
  color: var(--accent-color);
  line-height: 1;
}
.price-description h3 {
  font-size: 1.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.price-description p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #ccc;
}
.discount-section {
  background-color: var(--surface-color);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 4rem;
}
.discount-section h3 {
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.discount-table {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto 0;
  border-collapse: collapse;
  font-size: 1.1rem;
}
.discount-table thead {
  border-bottom: 2px solid var(--accent-color);
}
.discount-table th {
  padding: 1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-align: center;
}
.discount-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}
.discount-table tbody tr:last-child td {
  border-bottom: none;
}
.storage-options-section {
  padding-top: 2rem;
}
.storage-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}
.storage-cta-container {
  text-align: center;
  margin-top: 3rem;
}
.storage-plan {
  background-color: var(--surface-color);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}
.storage-plan h3 {
  font-size: 1.8rem;
  margin-top: 0;
}
.storage-plan p {
  flex-grow: 1;
  color: #ccc;
}
.price-tag {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

/* --- UPDATED FOOTER STYLES --- */

footer {
  text-align: center;
  padding: 2.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  background: #111;
  /* ADDED: Creates space at the bottom for the fixed banner */
  padding-bottom: 5rem;
}

/* --- FLOATING BANNER STYLES --- */

.static-banner {
  /* This locks the banner to the bottom of the screen */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;

  background-color: var(--bg-color);
  padding: 1rem 0; /* A bit more padding for a floating element */
  text-align: center;
}

.banner-text span {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-color); /* UPDATED */
  /* This makes the font size shrink with the screen */
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  padding: 0 1rem; /* Adjusted padding for mobile */
}
/* --- COMPREHENSIVE MOBILE STYLES --- */
@media (max-width: 768px) {
  .primary-navigation {
    position: fixed;
    inset: 0 0 0 30%;
    z-index: 999;
    height: 100%;
    flex-direction: column;
    padding: min(20vh, 10rem) 2rem;
    gap: 2rem;
    background: hsl(0 0% 10% / 0.9);
    backdrop-filter: blur(1rem);
    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
  }

  .mobile-nav-toggle {
    display: block;
    position: fixed; /* UPDATED: This locks it to the viewport */
    top: 2rem; /* Positions from the top of the screen */
    right: 2rem; /* Positions from the right of the screen */
    z-index: 10000; /* Ensures it's on top of everything, including the menu */
    background: transparent;
    border: 0;
    width: 2rem;
    aspect-ratio: 1;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240, 240, 240, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240, 240, 240, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e");
  }
  .home-page .primary-navigation[data-visible="true"] a {
    opacity: 1;
  }
  main {
    padding: 0 1.5rem;
  }
  nav {
    padding: 1rem 1.5rem;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }
  .storage-plans {
    grid-template-columns: 1fr;
  }

  .framed-section {
    padding: 2rem 1.5rem;
  }
  .discount-section {
    padding: 2rem 1.5rem;
  }

  .discount-table th,
  .discount-table td {
    font-size: 0.9rem;
    padding: 0.8rem 0.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .timeline-item {
    padding-left: 60px;
  }
  .timeline-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1.2rem;
    left: 5px;
  }

  /* --- NEW MOBILE VIDEO STYLES --- */
  .hero {
    /* Sets a fixed aspect ratio for the container */
    aspect-ratio: 9 / 7.5; /* Taller than 9:16 to crop less */
    height: auto; /* Height is now controlled by the aspect ratio */
  }

  .video-wrapper {
    /* These styles ensure the wrapper fills the new aspect-ratio container */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .hero-video {
    /* The video is made much taller than its container */
    height: 100%;
    /* 177.78% is 16/9. This makes the 16:9 video wide enough to fill the 9:14 container vertically */
    width: 177.78%;
    max-width: none; /* Override any other max-width that might interfere */

    /* Center the tall video horizontally */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
