/* =========================================================
   SK Interior — Final shell polish (header / mobile menu / footer)
   Loaded last. Does not alter app logic.
========================================================= */

/* ---------- Desktop header ---------- */
.luxury-nav {
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(96vw, 1400px) !important;
  max-width: 1400px !important;
  height: 84px !important;
  padding: 0 !important;
  z-index: 1000;
}

.luxury-nav.scrolled {
  height: 74px !important;
}

.nav-container {
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(18px, 2.2vw, 32px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(16px, 2vw, 28px) !important;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.nav-brand img {
  height: 58px !important;
  width: auto !important;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.luxury-nav.scrolled .nav-brand img {
  height: 50px !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(12px, 1.35vw, 26px) !important;
  min-width: 0;
}

.nav-link {
  position: relative;
  white-space: nowrap;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.72);
  text-decoration: none;
  padding: 8px 0 !important;
  transition: color 0.28s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: #111;
}

.nav-link::before {
  bottom: 0 !important;
  width: 4px !important;
  height: 4px !important;
}

.nav-link::after {
  bottom: -2px !important;
  height: 2px !important;
  background: #c6a96a !important;
}

.nav-link.active::before,
.nav-link:hover::before {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 18px !important;
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 99px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-phone,
.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box;
}

.nav-phone {
  gap: 8px;
  padding: 0 16px !important;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #111;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta {
  gap: 8px;
  padding: 0 20px !important;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #c6a96a;
  color: #111 !important;
}

.nav-toggle {
  width: 46px !important;
  height: 46px !important;
  border: 0;
  border-radius: 50%;
  background: #111;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid #c6a96a;
  outline-offset: 3px;
}

@media (max-width: 1320px) {
  .nav-phone {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .nav-menu,
  .nav-actions {
    display: none !important;
  }

  .nav-toggle {
    display: flex !important;
  }

  .luxury-nav {
    top: 12px !important;
    width: calc(100% - 24px) !important;
    height: 68px !important;
    border-radius: 22px;
  }

  .luxury-nav.scrolled {
    top: 8px !important;
    height: 62px !important;
  }

  .nav-brand img,
  .luxury-nav.scrolled .nav-brand img {
    height: 46px !important;
  }
}

/* ---------- Mobile menu ---------- */
.mobile-menu-backdrop {
  z-index: 9997;
}

.mobile-menu {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  z-index: 9998 !important;
  right: auto !important;
  left: 0 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none !important;
  background: #f7f5f1 !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: opacity 0.35s ease, visibility 0.35s ease !important;
  overflow: hidden;
}

.mobile-menu.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  right: auto !important;
  transform: none !important;
}

.mobile-menu-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom)) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: hidden;
  box-sizing: border-box;
}

.mobile-menu-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  min-height: 56px;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 0 8px !important;
}

.mobile-logo {
  height: clamp(76px, 22vw, 104px) !important;
  width: auto !important;
  max-width: min(42vw, 110px) !important;
  object-fit: contain !important;
  display: block;
}

.mobile-close {
  width: 46px !important;
  height: 46px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #111 !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.mobile-close i {
  font-size: 18px;
  line-height: 1;
}

.mobile-close:hover,
.mobile-close:focus-visible {
  background: #c6a96a !important;
  color: #111 !important;
  transform: scale(1.04);
}

.mobile-close:focus-visible {
  outline: 2px solid #c6a96a;
  outline-offset: 3px;
}

.mobile-menu-links {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  grid-template-columns: none !important;
}

.mobile-link {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 13px 0 !important;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  color: #111 !important;
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(32px, 8.2vw, 40px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.15 !important;
  opacity: 1 !important;
  transform: none !important;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.mobile-menu.active .mobile-link,
.mobile-menu.active .mobile-link:nth-child(n) {
  transform: none !important;
  opacity: 1 !important;
  transition-delay: 0ms !important;
}

.mobile-link:hover,
.mobile-link:focus-visible {
  color: #c6a96a !important;
  padding-left: 6px !important;
}

.mobile-menu-footer {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin-top: auto !important;
  padding-top: 14px !important;
  flex-shrink: 0;
  justify-content: stretch !important;
}

.mobile-phone,
.mobile-admin {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.mobile-phone {
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: #111;
  background: #fff;
}

.mobile-admin {
  background: #111;
  color: #fff !important;
}

.mobile-admin:hover,
.mobile-admin:focus-visible {
  background: #c6a96a;
  color: #111 !important;
}

@media (max-width: 380px) {
  .mobile-logo {
    height: 76px !important;
  }

  .mobile-link {
    font-size: 32px !important;
    padding: 11px 0 !important;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(48px, 5vw, 68px) 0 24px !important;
  background: #0d0d0d;
}

.site-footer .footer-container {
  width: min(100% - clamp(24px, 4vw, 64px), 1400px) !important;
  margin: 0 auto;
}

.footer-grid,
.footer-grid--clean {
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 1fr !important;
  gap: clamp(28px, 3vw, 48px) !important;
  align-items: start;
}

.footer-logo img {
  height: 42px !important;
  width: auto !important;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-company p {
  margin: 14px 0 0 !important;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.58);
}

.footer-col h4 {
  margin: 0 0 14px !important;
}

.footer-col ul {
  gap: 8px !important;
}

.footer-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: #c6a96a;
  border-color: #c6a96a;
  color: #111 !important;
}

.footer-divider {
  margin: 28px 0 18px !important;
}

.site-footer .footer-bottom {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  justify-content: flex-start;
}

.site-footer .footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}

.footer-credit {
  display: none !important;
}

@media (max-width: 900px) {
  .footer-grid,
  .footer-grid--clean {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .site-footer {
    padding: 40px 0 22px !important;
  }

  .site-footer .footer-container {
    width: calc(100% - 40px) !important;
  }

  .footer-divider {
    margin: 22px 0 16px !important;
  }
}

/* ---------- Contact section breathing room ---------- */
.contact-section {
  padding-bottom: clamp(64px, 8vw, 100px) !important;
}

.contact-section .build-form-actions,
.contact-form .build-form-actions {
  margin-top: 12px;
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.contact-section .btn-primary,
.contact-form .btn-primary {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 769px) {
  .contact-section .btn-primary,
  .contact-form .btn-primary {
    width: auto;
    min-width: 220px;
  }
}

/* ---------- Floating dock ---------- */
.floating-dock {
  position: fixed;
  right: 20px;
  bottom: 108px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  background: rgba(17, 17, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.floating-dock-btn:hover,
.floating-dock-btn:focus-visible {
  transform: translateY(-2px);
  background: #c6a96a;
  color: #111;
}

.back-to-top {
  right: 20px !important;
  bottom: 24px !important;
}

@media (max-width: 768px) {
  .floating-dock {
    right: 12px;
    bottom: 96px;
    gap: 8px;
  }

  .floating-dock-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 14px;
  }

  .back-to-top {
    right: 12px !important;
    bottom: 18px !important;
    width: 42px !important;
    height: 42px !important;
  }
}

@media (max-width: 360px) {
  .floating-dock {
    bottom: 88px;
  }

  .floating-dock-btn {
    width: 40px;
    height: 40px;
  }
}

/* Prevent accidental page overflow from shell chrome */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- Hero mobile overflow safety ---------- */
.hero-content,
.hero-content-inner {
  max-width: 100%;
  min-width: 0;
}

.hero-title,
.hero-subtitle {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767px) {
  .hero-content {
    width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box;
  }

  .hero-content-inner {
    max-width: 100% !important;
  }

  .hero-title {
    font-size: clamp(36px, 10.5vw, 48px) !important;
    line-height: 1.05 !important;
  }

  .hero-title em {
    display: inline !important;
  }

  .hero-subtitle {
    font-size: 14px !important;
    line-height: 1.7 !important;
    max-width: 100% !important;
  }

  .hero-label {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
}

/* ---------- Compact mobile footer ---------- */
@media (max-width: 768px) {
  .site-footer {
    padding: 40px 0 22px !important;
  }

  .site-footer .footer-container {
    width: calc(100% - 40px) !important;
  }

  .footer-grid,
  .footer-grid--clean {
    gap: 24px !important;
  }

  .footer-company p {
    margin-top: 10px !important;
  }

  .footer-col h4 {
    margin-bottom: 10px !important;
  }

  .footer-col ul {
    gap: 6px !important;
  }

  .footer-social {
    margin-top: 12px;
  }

  .footer-divider {
    margin: 18px 0 14px !important;
  }
}
