:root {
  --bg: #050507;
  --bg-elevated: #0d0d12;
  --bg-glass: rgba(12, 12, 18, 0.72);
  --text: #f5f5f7;
  --text-muted: #9a9aa6;
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.24);
  --rgb-red: #ff3b30;
  --rgb-green: #00c864;
  --rgb-blue: #4e38d8;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle RGB Ambient Glows */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow::before,
.ambient-glow::after {
  content: '';
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
  transition: transform 0.6s ease-out;
}

.ambient-glow::before {
  top: -15vw;
  right: -10vw;
  background: radial-gradient(circle, var(--rgb-red), var(--rgb-blue));
}

.ambient-glow::after {
  bottom: -20vw;
  left: -15vw;
  background: radial-gradient(circle, var(--rgb-green), var(--rgb-blue));
}

/* Scroll Progress RGB Line */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1000;
  background: linear-gradient(90deg, var(--rgb-blue), var(--rgb-green), var(--rgb-red));
  box-shadow: 0 0 12px rgba(0, 200, 100, 0.6);
  transition: width 0.08s linear;
}

/* Floating Minimal Header */
.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1360px, calc(100% - 32px));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  transition: all 0.35s ease;
}

.site-header.scrolled {
  top: 12px;
  padding: 10px 20px;
  background: rgba(8, 8, 12, 0.86);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  height: 34px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.btn-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-pill.primary {
  background: #ffffff;
  color: #050507;
  border-color: #ffffff;
}

.btn-pill.primary:hover {
  background: #e6e6eb;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

/* Hero Section */
.hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 72px;
  overflow: hidden;
  z-index: 1;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-backdrop img,
.hero-backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: brightness(0.58) contrast(1.08);
  transition: transform 0.2s ease-out;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 35%, rgba(5, 5, 7, 0.15) 0%, rgba(5, 5, 7, 0.78) 75%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.45) 0%, rgba(5, 5, 7, 0.15) 40%, var(--bg) 100%);
}

.hero-content {
  width: min(1320px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hero-logo-badge {
  width: clamp(190px, 24vw, 260px);
  height: auto;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.8));
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 920px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  color: rgba(245, 245, 247, 0.78);
  max-width: 580px;
  font-weight: 400;
  line-height: 1.5;
}

.scroll-indicator {
  margin-top: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.scroll-indicator:hover {
  color: #fff;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: #fff;
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* Dynamic Scrollytelling Showcase Grid (Exact Aspect Ratio Justified Rows) */
.showcase-section {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 16px 20px 110px;
}

.gallery-stream {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}

/* Card Item & Scroll Reveal Animation */
.media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  flex: 0 0 auto;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
  will-change: transform, opacity;
}

.media-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.media-card.in-view:hover {
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(-4px) scale(1);
}

.media-card-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card img,
.media-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1);
  transition: filter 0.4s ease;
}

/* Subtle Caption Only When Present */
.media-caption-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 22px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  pointer-events: none;
}

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

/* Card Share Button */
.card-share-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  opacity: 0.88;
  transition: transform 0.2s, background 0.2s, opacity 0.2s, border-color 0.2s;
}

.card-share-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.82);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Lightbox (Cinema Fullscreen Modal) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 3, 5, 0.94);
  backdrop-filter: blur(22px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  max-width: 92vw;
  max-height: 86vh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-stage img,
.lightbox-stage video {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}

.lightbox-caption {
  margin-top: 14px;
  font-size: 0.98rem;
  color: var(--text);
  text-align: center;
}

.lightbox-btn {
  position: fixed;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.86);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.2rem;
}

.lightbox-btn:hover {
  background: rgba(30, 30, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.65);
  transform: scale(1.05);
}

.lightbox-close {
  top: max(18px, env(safe-area-inset-top, 18px));
  right: 18px;
  width: auto;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 6px;
}

.lightbox-share {
  top: max(18px, env(safe-area-inset-top, 18px));
  left: 18px;
  width: auto;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 7px;
}

.share-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 3000;
  background: rgba(15, 15, 22, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 200, 100, 0.55);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* Contact & Footer Section */
.site-footer {
  position: relative;
  z-index: 2;
  overflow-anchor: none;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13, 13, 18, 0.4) 0%, #030305 100%);
  padding: 72px 24px 40px;
}

.footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.seo-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.seo-service-card {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seo-service-card h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.seo-service-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-brand {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-brand img {
  width: 185px;
  height: auto;
}

.footer-brand h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.footer-ig-card {
  width: 100%;
  margin-top: 4px;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
  flex: 1;
  min-width: min(100%, 600px);
}

.branch-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
}

.branch-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.branch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}

.branch-title {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.branch-list {
  display: flex;
  flex-direction: column;
}

.branch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 0.88rem;
}

.branch-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.branch-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 74px;
}

.branch-val-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.branch-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  text-align: right;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.branch-link:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(265px, 1fr));
  gap: 16px;
  flex: 1;
  min-width: min(100%, 560px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.contact-value {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.contact-subvalue {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.phone-link {
  color: var(--text);
  text-decoration: none;
}

.phone-link:hover {
  text-decoration: underline;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #25D366;
  color: #04140a;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
  background: #2ee673;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.admin-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .seo-services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-stream {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .contact-cards,
  .branches-grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    padding: 10px 14px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .brand-wordmark {
    height: 28px;
  }
  .btn-pill span.hide-mobile {
    display: none;
  }
  .hero {
    height: 84vh;
    padding-bottom: 48px;
  }
  .gallery-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .media-card {
    width: 100% !important;
    height: auto !important;
  }
  .media-card-inner {
    height: auto;
  }
  .media-card img,
  .media-card video {
    width: 100%;
    height: auto;
  }
  .lightbox-stage {
    max-height: calc(100dvh - 140px);
  }
  .lightbox-stage img,
  .lightbox-stage video {
    max-width: 94vw;
    max-height: calc(100dvh - 165px);
  }
  .lightbox-prev,
  .lightbox-next {
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    top: auto;
    transform: none;
  }
  .lightbox-prev { left: 30%; }
  .lightbox-next { right: 30%; }
}
