/* ==========================================================================
   THROWDOWN STUDIOS - CUSTOM STYLES
   A dark, cinematic, premium aesthetic for a professional recording studio
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --accent-gold: #D4A843;
  --accent-gold-light: #E8C876;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --whatsapp-green: #25D366;
  
  /* Spacing */
  --section-padding: 6rem;
  --container-max-width: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
  
  /* Shadows */
  --shadow-gold: 0 0 20px rgba(212, 168, 67, 0.3);
  --shadow-gold-subtle: 0 4px 20px rgba(212, 168, 67, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Mobile viewport height fix */
@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 500;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  margin-top: 1rem;
}

.section-title--centered::after {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

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

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
}

.navbar__logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.navbar__brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.navbar__brand-text span {
  color: var(--accent-gold);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navbar__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition-normal);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__cta {
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Mobile Menu */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
  padding: 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color var(--transition-fast);
  padding: 0.5rem 1rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.25s; }

.mobile-menu a:hover {
  color: var(--accent-gold);
}

.mobile-menu .navbar__cta {
  margin-top: 1rem;
  font-size: 1.125rem;
  padding: 0.875rem 2rem;
}

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

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 0;
}

.hero__bg-noise {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  will-change: transform;
}

.hero__bg-spotlight {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.08) 0%, transparent 60%);
  will-change: transform;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 40%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn--primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

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

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

.btn--secondary:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards, bounce 2s infinite 1.5s;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-muted);
}

/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.about__graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__waveform {
  width: 100%;
  max-width: 400px;
}

/* --------------------------------------------------------------------------
   SERVICES SECTION
   -------------------------------------------------------------------------- */
.services {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: 12px;
  padding: 2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold-subtle);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--accent-gold);
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card__description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   EQUIPMENT MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  padding: 1.5rem 0;
  background: var(--bg-primary);
  border-top: 1px solid rgba(212, 168, 67, 0.15);
  border-bottom: 1px solid rgba(212, 168, 67, 0.15);
  overflow: hidden;
}

.marquee__content {
  display: flex;
  animation: marquee 30s linear infinite;
  width: fit-content;
}

.marquee__item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.marquee__item::after {
  content: '•';
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   SOCIAL PROOF SECTION
   -------------------------------------------------------------------------- */
.social-proof {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
  text-align: center;
}

.social-proof__title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.social-proof__subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
}

.testimonial-card__quote {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-card__role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Testimonials - Simple unified style */
.testimonials {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px;
  margin: 0 auto;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border: 1px solid rgba(212, 168, 67, 0.1);
}

.testimonial-card:hover {
  border-color: rgba(212, 168, 67, 0.3);
}

.testimonial-card__stars {
  color: var(--accent-gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.testimonial-card__quote {
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card__footer .testimonial-card__name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.testimonial-card__footer .testimonial-card__role {
  display: block;
  font-size: 0.8125rem;
  color: #c44e4e;
  margin-bottom: 0.25rem;
}

.testimonial-card__footer .testimonial-card__company {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.testimonial-card__footer .testimonial-card__via {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.contact__detail svg {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.contact__map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.contact__map iframe {
  width: 100%;
  height: 400px;
  border: none;
  filter: grayscale(100%) invert(92%) contrast(83%);
}

/* WhatsApp Button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--whatsapp-green);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn svg {
  width: 24px;
  height: 24px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition-fast);
  animation: pulse 3s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  color: white;
}

.whatsapp-float.hidden {
  opacity: 0;
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand .navbar__brand {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--accent-gold);
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.footer__social a:hover {
  color: var(--accent-gold);
  background: rgba(212, 168, 67, 0.1);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
}

.footer__bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer__bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__bottom a:hover {
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   PAGE HERO (for inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding-top: 80px;
}

.page-hero__content {
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
}

.page-hero__title {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   SERVICES PAGE
   -------------------------------------------------------------------------- */
.service-detail {
  padding: var(--section-padding) 0;
}

.service-detail:nth-child(odd) {
  background: var(--bg-primary);
}

.service-detail:nth-child(even) {
  background: var(--bg-secondary);
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail:nth-child(even) .service-detail__grid {
  direction: rtl;
}

.service-detail:nth-child(even) .service-detail__content {
  direction: ltr;
}

.service-detail__icon {
  width: 64px;
  height: 64px;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.service-detail__title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-detail__description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-detail__graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --------------------------------------------------------------------------
   ABOUT PAGE
   -------------------------------------------------------------------------- */
.story {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

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

.story__content p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.ecosystem {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.ecosystem-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
}

.ecosystem-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--accent-gold);
}

.ecosystem-card__description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.team {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.team__placeholder {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 2px dashed rgba(212, 168, 67, 0.3);
}

.team__placeholder p {
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   FACILITIES SECTION
   -------------------------------------------------------------------------- */
.facilities {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.facilities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.facility-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.facility-card__image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.facility-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.facility-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}

.facility-card__placeholder-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  opacity: 0.5;
}

.facility-card__content {
  padding: 2rem;
}

.facility-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent-gold);
}

.facility-card__description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.facility-card__specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.facility-card__specs li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.facility-card__specs li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* Facility Card with Dual Preview */
.facility-card__gallery-preview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  height: 280px;
}

.facility-card__preview-main,
.facility-card__preview-secondary {
  overflow: hidden;
}

.facility-card__preview-main img,
.facility-card__preview-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.facility-card:hover .facility-card__preview-main img,
.facility-card:hover .facility-card__preview-secondary img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   GALLERY PAGE
   -------------------------------------------------------------------------- */
.gallery-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: var(--bg-card);
}

.gallery-item__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item__image {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__caption {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.gallery-item__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  color: var(--accent-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__icon {
  opacity: 1;
}

/* Masonry Layout Variations */
.gallery-item--square {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item--tall {
  grid-row: span 3;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-lightbox__content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-lightbox__caption {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.gallery-lightbox__close,
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 2001;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
  background: var(--accent-gold);
  transform: scale(1.1);
}

.gallery-lightbox__close {
  top: 1rem;
  right: 1rem;
}

.gallery-lightbox__close svg {
  width: 24px;
  height: 24px;
}

.gallery-lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
  transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox__prev svg,
.gallery-lightbox__next svg {
  width: 32px;
  height: 32px;
}

/* --------------------------------------------------------------------------
   CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-full {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.contact-full__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-full__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-full__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-full__item svg {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-full__item h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-full__item p {
  color: var(--text-primary);
  font-size: 1rem;
}

.contact-full__map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.contact-full__map iframe {
  width: 100%;
  height: 500px;
  border: none;
  filter: grayscale(100%) invert(92%) contrast(83%);
}

.hours {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hours h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--accent-gold);
}

.hours p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   ANIMATIONS (Keyframes)
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
  }
}

/* --------------------------------------------------------------------------
   SCROLL-TRIGGERED ANIMATIONS
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"] {
  transform: translateY(30px);
}

[data-animate="fade-left"] {
  transform: translateX(-30px);
}

[data-animate="fade-right"] {
  transform: translateX(30px);
}

[data-animate="fade-in"] {
  transform: scale(0.95);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger children */
[data-animate="stagger"] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate="stagger"].is-visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.07s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.14s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.21s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(5) { transition-delay: 0.28s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(6) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(7) { transition-delay: 0.42s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(8) { transition-delay: 0.49s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(9) { transition-delay: 0.56s; opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   ACCESSIBILITY & FOCUS STYLES
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero__bg-noise,
  .hero__bg-spotlight {
    display: none;
  }
  
  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE STYLES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 4rem;
  }
  
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ecosystem__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
  
  .facilities__grid {
    gap: 1.5rem;
  }
  
  .facility-card__image {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .navbar__menu {
    display: none;
  }
  
  .navbar__toggle {
    display: flex;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
  }
  
  .navbar__toggle span {
    width: 22px;
    height: 2px;
  }
  
  .navbar__logo {
    height: 28px;
  }
  
  .navbar__brand-text {
    font-size: 1.1rem;
  }
  
  .hero {
    min-height: 100svh;
    min-height: -webkit-fill-available;
  }
  
  .hero__title {
    font-size: clamp(2rem, 10vw, 3.5rem);
    line-height: 1.1;
  }
  
  .hero__subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .hero__cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    min-height: 48px;
    font-size: 0.9375rem;
  }
  
  .mobile-menu a {
    font-size: 1.5rem;
    padding: 0.75rem 0;
  }
  
  .page-hero {
    min-height: 40vh;
    padding-top: 70px;
  }
  
  .page-hero__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  
  .about__grid,
  .contact__grid,
  .service-detail__grid,
  .contact-full__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about__graphic {
    order: -1;
  }
  
  .about__waveform {
    max-width: 280px;
  }
  
  .service-detail:nth-child(even) .service-detail__grid {
    direction: ltr;
  }
  
  .service-detail__icon {
    width: 48px;
    height: 48px;
  }
  
  .service-detail__title {
    font-size: 1.5rem;
  }
  
  .services__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card__icon {
    width: 40px;
    height: 40px;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    gap: 0.75rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 0.75rem;
  }
  
  .gallery-item--wide {
    grid-column: span 2;
  }
  
  .gallery-lightbox__prev,
  .gallery-lightbox__next {
    width: 40px;
    height: 40px;
  }
  
  .gallery-lightbox__prev {
    left: 0.5rem;
  }
  
  .gallery-lightbox__next {
    right: 0.5rem;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer__brand {
    text-align: center;
  }
  
  .footer__social {
    justify-content: center;
  }
  
  .ecosystem__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ecosystem-card {
    padding: 1.5rem;
  }
  
  .facilities__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .facility-card__image {
    height: 220px;
  }
  
  .facility-card__gallery-preview {
    height: 200px;
  }
  
  .facility-card__content {
    padding: 1.5rem;
  }
  
  .facility-card__title {
    font-size: 1.25rem;
  }
  
  .contact__map,
  .contact-full__map {
    margin: 0 -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .contact__map iframe,
  .contact-full__map iframe {
    height: 250px;
  }
  
  .contact-full__item {
    gap: 0.75rem;
  }
  
  .contact-full__item svg {
    width: 20px;
    height: 20px;
  }
  
  .contact-full__item p {
    font-size: 0.9375rem;
    word-break: break-word;
  }
  
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  
  .marquee__item {
    font-size: 0.75rem;
    padding: 0 1rem;
  }
  
  .scroll-indicator {
    bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 3rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .service-card,
  .testimonial-card,
  .ecosystem-card {
    padding: 1.5rem;
  }
  
  .navbar__logo {
    height: 24px;
  }
  
  .navbar__brand-text {
    font-size: 1rem;
  }
  
  .navbar__brand {
    gap: 0.5rem;
  }
}
