/* -------------------------------------------------------------
 * PODLUNŠEK SIGNATURE LUXURY ATELIER COLOR SYSTEM
 * Deep Alpine Spruce (#0c474d), Warm Terracotta Earth (#d06848), Warm Linen Alabaster (#f9f4ee)
 * ------------------------------------------------------------- */

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

:root {
  --bg-surface: #f9f4ee;
  --bg-surface-container: #f2ece2;
  --bg-surface-container-low: #f6f0e7;
  --bg-surface-container-lowest: #ffffff;
  --bg-surface-variant: #e8ded2;

  --color-primary: #0c474d;          /* Deep Alpine Spruce */
  --color-primary-dark: #083338;
  --color-terracotta: #d06848;        /* Signature Warm Terracotta */
  --color-terracotta-hover: #b85233;
  --color-on-surface: #123033;       /* High-contrast spruce text */
  --color-secondary: #3b585b;        /* Readable muted spruce */
  --color-tertiary: #627e81;
  --color-outline: rgba(12, 71, 77, 0.15);
  --color-border: rgba(12, 71, 77, 0.09);
  --color-accent: #d06848;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 18.2px; /* 10% Zoomed in for PC */
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background-color: var(--bg-surface);
  color: var(--color-on-surface);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  background-color: var(--bg-surface);
  color: var(--color-on-surface);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Smooth i18n Dissolve Transition */
[data-i18n], [data-i18n-placeholder] {
  transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

body.i18n-transitioning [data-i18n] {
  opacity: 0.15;
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: #d4c8b8;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a99b89;
}

/* Typography Utility Classes */
.font-display-lg {
  font-family: var(--font-sans);
  letter-spacing: -0.038em;
  font-weight: 700;
  color: var(--color-primary);
}

.text-label-caps {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
}

/* 3-Column Fixed Anchored Header */
.header-col-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-col-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.header-col-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header-col-left {
    width: 240px;
  }
  .header-col-right {
    width: 310px;
  }
}

.header-cta-btn {
  min-width: 130px;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

/* Luxury Surface Cards */
.surface-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 8px rgba(12, 71, 77, 0.03), 0 1px 2px rgba(12, 71, 77, 0.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.surface-card:hover {
  border-color: rgba(208, 104, 72, 0.35);
  box-shadow: 0 20px 44px -10px rgba(12, 71, 77, 0.09), 0 8px 16px -4px rgba(208, 104, 72, 0.06);
  transform: translateY(-3px);
}

/* Spec Chips */
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background-color: #f4eee5;
  border: 1px solid rgba(12, 71, 77, 0.1);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Scaled Buttons */
.btn-primary-dark {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 3px 10px rgba(12, 71, 77, 0.2);
}

.btn-primary-dark:hover {
  background-color: var(--color-terracotta);
  box-shadow: 0 8px 22px rgba(208, 104, 72, 0.35);
  transform: translateY(-1.5px);
}

.btn-primary-dark:active {
  transform: translateY(0);
}

.btn-secondary-white {
  background-color: #ffffff;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(12, 71, 77, 0.18);
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 2px 5px rgba(12, 71, 77, 0.04);
}

.btn-secondary-white:hover {
  background-color: #faf5ed;
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
  box-shadow: 0 6px 16px rgba(208, 104, 72, 0.12);
  transform: translateY(-1.5px);
}

/* Badges */
.badge-sonic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(12, 71, 77, 0.06);
  border: 1px solid rgba(12, 71, 77, 0.15);
  border-radius: 9999px;
}

.badge-sonic-terracotta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--color-terracotta);
  background: rgba(208, 104, 72, 0.08);
  border: 1px solid rgba(208, 104, 72, 0.25);
  border-radius: 9999px;
}

.badge-dark {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.badge-terracotta {
  background-color: var(--color-terracotta);
  color: #ffffff;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Hero Slide Progress Bar */
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: var(--color-terracotta);
  width: 0%;
  transition: width 0.1s linear;
  z-index: 20;
}

/* -------------------------------------------------------------
 * PRECISION HOTSPOT INSPECTOR
 * ------------------------------------------------------------- */
.hotspot-pin-container {
  position: absolute;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hotspot-core-dot {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 2.5px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(12, 71, 77, 0.22);
  transition: all 0.25s ease;
  z-index: 10;
}

.hotspot-ping-circle {
  display: none;
}

.hotspot-active-label {
  display: none;
}

.hotspot-pin-container:hover .hotspot-core-dot {
  transform: scale(1.12);
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
  box-shadow: 0 5px 14px rgba(208, 104, 72, 0.35);
}

/* Single Active Selected Pin */
.hotspot-pin-container.active {
  z-index: 30;
  transform: scale(1.15);
}

.hotspot-pin-container.active .hotspot-ping-circle {
  display: block;
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background-color: rgba(208, 104, 72, 0.45);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  box-shadow: 0 0 22px rgba(208, 104, 72, 0.7);
}

.hotspot-pin-container.active .hotspot-core-dot {
  background-color: var(--color-terracotta);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 3.5px var(--color-terracotta), 0 6px 20px rgba(208, 104, 72, 0.5);
}

.hotspot-pin-container.active .hotspot-active-label {
  display: block;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  white-space: nowrap;
  background: var(--color-primary);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 5px 15px rgba(12, 71, 77, 0.35);
  pointer-events: none;
}

@keyframes ping {
  75%, 100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

/* -------------------------------------------------------------
 * GALLERY FILTER PILLS (HIGH-CONTRAST & INTERACTIVE)
 * ------------------------------------------------------------- */
.gallery-filter-pill {
  padding: 0.65rem 1.45rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  color: var(--color-primary);
  background-color: #ffffff;
  border: 1.5px solid rgba(12, 71, 77, 0.18);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(12, 71, 77, 0.04);
  user-select: none;
}

.gallery-filter-pill:hover {
  color: #ffffff;
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(208, 104, 72, 0.25);
}

.gallery-filter-pill.active {
  color: #ffffff !important;
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(12, 71, 77, 0.3) !important;
  transform: translateY(-1px);
}

/* Gallery Hover Overlay */
.gallery-hover-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
  color: var(--color-primary);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .gallery-hover-indicator {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox Modal */
.sonic-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 71, 77, 0.95);
  backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* -------------------------------------------------------------
 * LUXURY ACCESS GATE / PIN LOCK SCREEN (CODE: 9211)
 * ------------------------------------------------------------- */
#security-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 51, 56, 0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
}

#security-gate-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.security-gate-card {
  background: #ffffff;
  border: 1px solid rgba(12, 71, 77, 0.15);
  border-radius: 32px;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pin-digit-box {
  width: 54px;
  height: 60px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  border-radius: 16px;
  border: 2px solid rgba(12, 71, 77, 0.2);
  background: #f9f4ee;
  color: #0c474d;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-digit-box:focus, .pin-digit-box.filled {
  border-color: #d06848;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(208, 104, 72, 0.25);
  outline: none;
}

.pin-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 1.25rem auto 0 auto;
}

.pin-key-btn {
  height: 54px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #0c474d;
  background: #f6f0e7;
  border: 1px solid rgba(12, 71, 77, 0.12);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.pin-key-btn:hover {
  background: #d06848;
  color: #ffffff;
  border-color: #d06848;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(208, 104, 72, 0.3);
}

.pin-key-btn:active {
  transform: translateY(0);
}

.pin-shake {
  animation: pinShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes pinShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* -------------------------------------------------------------
 * LOCALHOST DEVELOPER MOBILE SIMULATOR
 * ------------------------------------------------------------- */
#dev-mobile-simulator-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 51, 56, 0.92);
  backdrop-filter: blur(20px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#dev-mobile-simulator-overlay.active {
  display: flex;
}

.dev-simulator-frame {
  width: 393px;
  height: 852px;
  max-height: 92vh;
  background: #f9f4ee;
  border-radius: 54px;
  border: 12px solid #1a2729;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 2px #324c4f;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, height 0.3s ease;
  padding-top: 36px;
}

.dev-simulator-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #000000;
  border-radius: 9999px;
  z-index: 10000;
  pointer-events: none;
}

.dev-simulator-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #f9f4ee;
}

.dev-simulator-toolbar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 13px;
}

.dev-simulator-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dev-simulator-btn:hover, .dev-simulator-btn.active {
  background: #ffffff;
  color: #0c474d;
}

/* Floating Launcher Button */
#dev-simulator-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--color-primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(12, 71, 77, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#dev-simulator-launcher:hover {
  transform: translateY(-2px) scale(1.04);
  background: var(--color-terracotta);
  box-shadow: 0 14px 30px -5px rgba(208, 104, 72, 0.6);
}

/* Mobile Media Queries */
@media (max-width: 768px) {
  html {
    font-size: 15.5px !important;
  }

  #overview {
    padding-top: 1.75rem !important;
    padding-bottom: 2.75rem !important;
    gap: 1.5rem !important;
  }

  .badge-sonic, .badge-sonic-terracotta {
    padding: 0.4rem 0.9rem;
    font-size: 10.5px;
    margin-bottom: 0.75rem !important;
  }

  h1.font-display-lg {
    font-size: 2.45rem !important;
    line-height: 1.12 !important;
    margin-bottom: 0.75rem !important;
  }

  p[data-i18n="hero_sub"] {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.15rem !important;
    padding: 0 0.5rem;
  }

  .btn-primary-dark, .btn-secondary-white {
    padding: 0.75rem 1.4rem !important;
    font-size: 0.8rem !important;
  }

  .hero-card-container {
    margin-top: 0.65rem !important;
    border-radius: 1.5rem !important;
  }

  .hero-card-inner {
    aspect-ratio: 16 / 10.5 !important;
    min-height: 310px !important;
  }

  .spec-chip {
    font-size: 11.5px;
    padding: 0.35rem 0.7rem;
  }

  .hotspot-pin-container {
    width: 42px;
    height: 42px;
    margin-left: -21px;
    margin-top: -21px;
  }

  .hotspot-core-dot {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .gallery-filter-pill {
    padding: 0.5rem 1rem !important;
    font-size: 0.78rem !important;
  }

  .security-gate-card {
    padding: 2rem 1.25rem !important;
    border-radius: 24px !important;
  }

  .pin-digit-box {
    width: 46px !important;
    height: 52px !important;
    font-size: 22px !important;
  }

  .pin-key-btn {
    height: 48px !important;
    font-size: 18px !important;
  }
}
