/* ==========================================================================
   CORE STYLES - DOUBLE DIAMOND MOVING
   Built with Vanilla CSS, responsive and highly performant.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;700&display=swap');

@import 'variables.css';

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  opacity: 0.8;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.eyebrow {
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}

section[id],
footer[id] {
  scroll-margin-top: 110px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--text-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(145deg, var(--color-white), var(--color-gray-100));
  color: var(--color-black);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #ffffff, #b3b3b3, #ffffff, #b3b3b3, #ffffff);
  background-size: 200% auto;
  animation: diamondShimmer 2s linear infinite;
  color: var(--color-black);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.7), inset 0 0 10px rgba(255, 255, 255, 1);
  /* Removed transform to prevent fighting with the Magnetic JS */
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--bg-inverse);
  color: var(--text-inverse);
}

/* --- NAVIGATION --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: var(--space-4) 0;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom-color: var(--glass-border);
  padding: var(--space-2) 0;
}

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

.logo-container {
  display: inline-block;
  position: relative;
  overflow: hidden;
  /* Contains the shimmer */
}

.logo-img {
  width: 250px;
  height: auto;
  display: block;
  transition: width var(--transition-normal);
  z-index: 1;
  position: relative;
}

@media (max-width: 1400px) {
  .logo-img {
    width: 240px;
  }
}

@media (max-width: 1300px) {
  .nav-links {
    gap: var(--space-6);
  }
  .logo-img {
    width: 230px;
  }
}

.logo-shimmer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.78) 0%, rgba(205, 225, 244, 0.36) 32%, transparent 72%) no-repeat,
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.46) 48%, transparent 100%) no-repeat;
  background-position: -62% 50%, -62% 50%;
  background-size: 34% 220%, 22% 210%;
  filter: blur(1px);
  animation: sweepShimmer 4s infinite;
  z-index: 2;
  -webkit-mask-image: url("../../DD_ASSETS/dd_logo_white.png");
  mask-image: url("../../DD_ASSETS/dd_logo_white.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
}

@keyframes sweepShimmer {
  0% {
    background-position: -62% 50%, -62% 50%;
    opacity: 0;
  }

  7% {
    opacity: 0.9;
  }

  22% {
    background-position: 162% 50%, 162% 50%;
    opacity: 0;
  }

  100% {
    background-position: 162% 50%, 162% 50%;
    opacity: 0;
  }
}

.nav-content {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-link.active,
.nav-link[aria-current="location"] {
  opacity: 1;
}

.nav-link.active::after,
.nav-link[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-login-link {
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
}

.hero-brand-line {
  position: absolute;
  z-index: 3;
  top: 38%;
  left: 50%;
  width: min(1180px, 94vw);
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-heading);
  font-size: clamp(4rem, 11vw, 9.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.88;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 0 48px rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  transform: translate(-50%, -100%);
}

.hero-support-line {
  position: absolute;
  z-index: 4;
  top: 45%;
  left: 50%;
  width: min(1080px, 92vw);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.45vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  text-transform: none;
  transform: translate(-50%, 0);
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1000px;
  padding: 0 var(--space-4);
  margin-top: 26vh;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.5s;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

/* --- SERVICES GRID --- */
.services-section {
  background-color: var(--bg-primary);
}

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

.section-header h2 {
  font-size: var(--text-3xl);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-kicker {
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
  text-transform: uppercase;
}

.storage-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.55fr);
  gap: var(--space-8);
  align-items: stretch;
  margin: 0 0 var(--space-6);
  padding: var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  overflow: hidden;
  isolation: isolate;
}

.storage-showcase::before {
  display: none;
}

.storage-showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: var(--space-6) 0 var(--space-6) var(--space-2);
}

.storage-showcase-copy h3 {
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1.02;
  max-width: 720px;
  text-transform: uppercase;
}

.storage-showcase-copy p:not(.eyebrow) {
  max-width: 620px;
  font-size: var(--text-lg);
  line-height: 1.6;
}

.storage-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.storage-points span {
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.storage-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: var(--space-4);
  min-height: 650px;
}

.storage-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.storage-media-feature {
  grid-row: span 2;
}

.storage-media img,
.storage-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform var(--transition-slow), filter var(--transition-normal);
}

.storage-media:hover img,
.storage-media:hover video {
  transform: scale(1.055);
  filter: saturate(1.12) contrast(1.05);
}

.storage-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
  pointer-events: none;
}

.storage-media figcaption {
  position: absolute;
  left: var(--space-5);
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 1;
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.25;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .storage-showcase {
    grid-template-columns: 1fr;
  }

  .storage-showcase-copy {
    padding: 0;
  }

  .storage-showcase-copy h3,
  .storage-showcase-copy p:not(.eyebrow) {
    max-width: 860px;
  }

  .storage-gallery {
    min-height: 520px;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.service-card {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.1s ease-out, box-shadow var(--transition-normal), border-color 0.3s ease;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
}

/* Base overlay for Service Cards with Images */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* Hardware accelerated dark overlay */
  z-index: 1;
  pointer-events: none;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.service-card:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
}

.service-card.is-selected {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.service-card-content,
.service-icon {
  position: relative;
  z-index: 4;
  backface-visibility: hidden;
  transform: translateZ(0);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 1);
  /* Fallback legibility */
}

.relative-z {
  position: relative;
  z-index: 2;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  /* Heavy overlay for About section */
  z-index: 1;
}

.map-container {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-normal);
}

.map-container:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(100%) invert(90%) contrast(80%);
  /* Makes the map visually fit the dark luxury theme */
}

.service-icon {
  margin-bottom: var(--space-6);
  height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.service-icon img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon img {
  transform: translateY(-5px) scale(1.05);
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
}

.service-icon i, 
.service-icon span {
  font-size: var(--text-3xl);
  opacity: 0.8;
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: var(--space-4);
  opacity: 0.75;
  text-transform: uppercase;
}

.service-card-cta::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-left: var(--space-2);
  background: currentColor;
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-cta::after,
.service-card.is-selected .service-card-cta::after {
  transform: scaleX(1.5);
}

.service-detail-panel {
  position: relative;
  margin: var(--space-12) auto 0;
  max-width: 980px;
  min-height: 250px;
  padding: var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.service-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity var(--transition-normal), transform var(--transition-slow);
  pointer-events: none;
}

.service-detail-panel.is-changing::before {
  opacity: 1;
  transform: translateX(40%);
}

.service-detail {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.service-detail.is-active {
  opacity: 1;
  transform: translateY(0);
}

.service-detail h3 {
  font-size: clamp(1.6rem, 3vw, var(--text-3xl));
  line-height: 1.15;
  max-width: 820px;
}

.service-detail p:last-child {
  max-width: 760px;
  margin-bottom: 0;
}

/* --- TEAM BANNER SECTION --- */
.team-banner {
  position: relative;
  width: 100vw;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 5rem;
}

.team-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.team-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: contrast(1.15) brightness(0.9);
}

.team-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Cinematic vignette pushing dark gradients from edges */
  background: radial-gradient(circle at center, transparent 30%, rgba(10, 10, 10, 0.6) 80%, var(--bg-primary) 100%),
    linear-gradient(to bottom, var(--bg-primary) 0%, transparent 15%, transparent 70%, var(--bg-primary) 100%);
}

.team-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-8);
  transform: translateY(20px);
}

.heading-massive {
  font-size: clamp(3rem, 10vw, 8rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transform: scaleY(1.1);
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.9));
}

/* --- CURSOR DIGITAL MAGNIFYING MASK --- */
.masked-heading-container {
  position: relative;
  display: inline-block;
  --x: 50%;
  --y: 50%;
}

.outline-text {
  color: transparent !important;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  margin: 0;
}

.fill-text {
  color: #ffffff !important;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Transparent until hover mask exposes it */
  -webkit-mask-image: radial-gradient(
    120px circle at var(--x) var(--y),
    white 20%,
    transparent 100%
  );
  mask-image: radial-gradient(
    120px circle at var(--x) var(--y),
    white 20%,
    transparent 100%
  );
}

/* --- EXPERTS SECTION HIERARCHY --- */
.owners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-12);
  max-width: 900px;
  margin: 0 auto var(--space-16);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

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

@media (max-width: 768px) {
  /* Owners (Zack & Lupe) always stay side-by-side */
  .owners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* Rest of team: 3-wide on mobile */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 420px) {
  /* Even on very small screens, owners stay side-by-side */
  .owners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* Keep team 3-wide, just tighter spacing */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .expert-content {
    padding: var(--space-3);
  }

  .expert-content h3 {
    font-size: var(--text-sm);
  }

  .expert-title {
    font-size: var(--text-xs);
    letter-spacing: 0;
  }

  .expert-card-large h3 {
    font-size: var(--text-lg) !important;
  }
}

.expert-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.expert-card-large {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.expert-card-large h3 {
  font-size: var(--text-2xl) !important;
}

.expert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.expert-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.expert-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  filter: grayscale(80%) contrast(1.1);
}

.expert-card:hover .expert-image-wrapper img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1);
}

.expert-content {
  padding: var(--space-6);
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.expert-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-white);
  transition: color 0.3s;
}

.expert-card:hover .expert-content h3 {
  color: var(--color-white);
}

.expert-title {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
/* --- COMMERCIAL VIDEO THEATER --- */
.commercial-section {
  background-color: var(--bg-primary);
}

.commercial-theater {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: var(--space-12) auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color 0.3s;
}

.commercial-theater:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(0, 0, 0, 0.4);
}

.commercial-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

/* Cinematic vignette frame over the video */
.commercial-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  border-radius: var(--radius-lg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .commercial-theater {
    border-radius: var(--radius-md);
    margin-top: var(--space-8);
  }

  .commercial-vignette {
    border-radius: var(--radius-md);
  }
}

/* --- MEDIA GALLERY SECTION --- */
.media-gallery {
  display: flex;
  gap: var(--space-4);
  height: 500px;
  width: 100%;
}

@media (max-width: 1024px) {
  .media-gallery {
    flex-wrap: wrap;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .media-gallery .media-card {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .media-gallery.reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

.media-card {
  position: relative;
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  background: var(--bg-tertiary);
}

/* Accordion hover effect only on desktop */
@media (min-width: 1025px) {
  .media-gallery:hover .media-card {
    filter: grayscale(80%) brightness(0.4);
  }

  .media-gallery .media-card:hover {
    flex: 3.5;
    filter: grayscale(0%) brightness(1.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    z-index: 2;
  }
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  filter: grayscale(50%);
}

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

.media-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-6);
  background: linear-gradient(to top, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.6) 50%, transparent 100%);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .media-overlay {
    opacity: 1;
    transform: translateY(0);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9));
    background: linear-gradient(to top, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.4) 100%);
  }

  .media-card img {
    filter: grayscale(0%);
  }
}

.media-card:hover .media-overlay {
  opacity: 1;
  transform: translateY(0);
}

.media-overlay h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  white-space: nowrap;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.media-overlay p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  opacity: 0.9;
  margin: 0;
}

/* --- ABOUT HIGHLIGHT --- */
.about-section {
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.feature-item h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

/* --- LOCAL SERVICE AREA --- */
.service-area-section {
  background:
    linear-gradient(180deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0.035) 100%);
}

.service-area-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: var(--space-12);
  align-items: center;
}

.service-area-copy h2 {
  font-size: clamp(2rem, 5vw, var(--text-4xl));
  max-width: 860px;
  text-transform: uppercase;
}

.service-area-copy p:last-child {
  max-width: 820px;
}

.service-area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3, 0.75rem);
}

.service-area-list span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-sm);
  letter-spacing: 1px;
  padding: var(--space-4);
  text-align: center;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.035);
}

/* --- BENTO FOOTER --- */
.site-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer-contact-hero {
  max-width: 920px;
  margin: 0 auto var(--space-16);
  text-align: center;
}

.footer-contact-hero h2 {
  font-size: clamp(2rem, 5vw, var(--text-4xl));
  text-transform: uppercase;
}

.footer-contact-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.footer-action-row {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}

.contact-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.bento-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.bento-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.locations-box {
  grid-column: 1 / -1;
  padding: var(--space-8);
}

.box-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  filter: grayscale(100%) brightness(1.5);
}

.footer-logo {
  width: 250px;
  margin-bottom: var(--space-6);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.brand-tagline {
  color: var(--text-primary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.founder-credit {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.contact-box h4,
.portal-box h4,
.locations-header h4 {
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  font-size: var(--text-lg);
}

.contact-box p,
.portal-box p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.hover-glow {
  font-size: var(--text-xl);
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s;
  display: block;
  margin-top: var(--space-2);
  color: var(--text-primary);
}

.hover-glow:hover {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.maps-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  width: 100%;
  margin-top: var(--space-6);
}

.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(100%) contrast(1.2) invert(1) hue-rotate(180deg);
  transition: filter 0.5s;
}

.map-wrapper:hover iframe {
  filter: grayscale(0%) contrast(1) invert(0) hue-rotate(0deg);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.5s;
}

.map-wrapper:hover .map-overlay {
  opacity: 0;
}

.map-overlay span {
  font-size: var(--text-xl);
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-2);
}

.map-overlay p {
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 900px) {
  .contact-bento-grid {
    grid-template-columns: 1fr;
  }

  .footer-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .maps-container {
    grid-template-columns: 1fr;
  }

  .map-wrapper {
    aspect-ratio: 16/9;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

/* --- REVEAL EFFECTS --- */
.reveal-text-container {
  overflow: hidden;
  display: block;
}

.reveal-text {
  display: block;
  transform: translateY(100%);
  transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.active .reveal-text {
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes diamondShimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* --- HAMBURGER BUTTON (Hidden on Desktop) --- */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 10;
  width: 36px;
  height: 28px;
  position: relative;
  flex-shrink: 0;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger-bar:nth-child(1) { top: 4px; }
.hamburger-bar:nth-child(2) { top: 13px; }
.hamburger-bar:nth-child(3) { top: 22px; }

/* Animated X state */
.nav-hamburger.active .hamburger-bar:nth-child(1) {
  top: 13px;
  transform: rotate(45deg);
}
.nav-hamburger.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active .hamburger-bar:nth-child(3) {
  top: 13px;
  transform: rotate(-45deg);
}

/* --- RESPONSIVE NAVIGATION TIERS --- */

/* TIER 2: TABLET / SMALL LAPTOP (1200px - 900px) — Keep horizontal nav */
@media (max-width: 1200px) and (min-width: 901px) {
  .nav-container {
    flex-direction: column;
    padding-top: var(--space-4);
    padding-bottom: var(--space-2);
  }

  .logo-img {
    width: 220px;
    margin-bottom: var(--space-2);
  }

  .nav-content {
    flex-direction: column;
    width: 100%;
    gap: var(--space-2);
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-6);
    justify-content: center;
    padding: var(--space-3) var(--space-8);
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
  }

  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links { -ms-overflow-style: none; scrollbar-width: none; }
  .nav-links li { flex-shrink: 0; }

}

/* TIER 3: MOBILE (<= 900px) — Hamburger drawer mode */
@media (max-width: 900px) {
  section[id],
  footer[id] {
    scroll-margin-top: 86px;
  }

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

  .storage-showcase {
    gap: var(--space-6);
    padding: var(--space-6);
  }

  .storage-showcase-copy h3 {
    font-size: clamp(2rem, 9vw, 3.6rem);
  }

  .storage-showcase-copy p:not(.eyebrow) {
    font-size: var(--text-base);
  }

  .storage-gallery {
    grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.9fr);
    grid-template-rows: repeat(2, minmax(170px, 1fr));
    min-height: 460px;
  }

  .nav-hamburger {
    display: block;
  }

  .nav-container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .site-nav {
    padding: var(--space-2) 0;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .site-nav.scrolled {
    padding: var(--space-1, 0.25rem) 0;
  }

  .logo-img {
    width: 180px;
  }

  /* ---- Collapsible Nav Panel ---- */
  .nav-content {
    position: relative;
    z-index: 9;
    flex-direction: column;
    width: 100%;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-content.open {
    max-height: min(74vh, 560px);
    opacity: 1;
  }

  /* Links as stacked items inside the drawer */
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-5);
    margin-top: var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.78)),
      rgba(0, 0, 0, 0.86);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    overflow: visible;
  }

  /* Remove the old scroll-fade masks */
  .nav-links::before,
  .nav-links::after {
    display: none;
  }

  .nav-links {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 17px var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.055);
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
    opacity: 1;
  }

  .nav-link::after {
    display: none;
  }

  .nav-links li:last-child a {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
  }

  /* Glass backdrop for scrolled state */
  .site-nav.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* About section stacks on small screens */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    background-attachment: scroll !important;
  }

  .hero {
    min-height: 680px;
    align-items: flex-end;
    padding-bottom: var(--space-16);
  }

  .hero-content {
    margin-top: 0;
    max-width: 560px;
  }

  .hero-support-line {
    top: 45%;
    font-size: var(--text-base);
    line-height: 1.5;
  }

  .hero-content h1 {
    font-size: var(--text-base);
    line-height: 1.5;
  }

  .hero-brand-line {
    top: 33%;
    width: min(92vw, 620px);
    font-size: clamp(3.3rem, 17vw, 6rem);
    line-height: 0.88;
  }

  .hero-actions,
  .footer-action-row {
    flex-direction: column;
  }

  .hero-actions .btn,
  .footer-action-row .btn {
    width: 100%;
  }

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

  .service-card {
    height: auto;
    min-height: 360px;
    padding: var(--space-6);
    border-radius: var(--radius-md);
  }

  .service-detail-panel {
    margin-top: var(--space-8);
    padding: var(--space-6);
  }

  .service-area-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .service-area-list {
    grid-template-columns: 1fr;
  }

  .footer-contact-hero {
    margin-bottom: var(--space-12);
  }

  .bento-box {
    border-radius: var(--radius-md);
    padding: var(--space-6);
  }

  .footer-logo {
    width: 220px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 var(--space-4);
  }

  .logo-img {
    width: 150px;
  }

  .hero {
    min-height: 760px;
  }

  .section-header h2 {
    font-size: clamp(2rem, 14vw, var(--text-3xl));
  }

  .service-card h3,
  .media-overlay h3 {
    white-space: normal;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .storage-showcase {
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }

  .storage-points {
    grid-template-columns: 1fr;
  }

  .storage-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .storage-media,
  .storage-media-feature {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .storage-media-feature {
    aspect-ratio: 3 / 4;
  }
}

@media (hover: none) {
  #custom-cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .hero-video {
    animation: none !important;
  }
}
