﻿/* ─── Navbar offset variable ─────────────────────────────────────── */
:root {
  --site-nav-offset: 110px;
}

/* ─── Fixed wrapper ───────────────────────────────────────────────── */
#site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  transform: translateY(0);
  transition: transform .22s ease;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* No shadow at top - it creates a visible "line" over coloured hero sections */
  box-shadow: none;
}

/* Shadow appears only after user scrolls */
#site-navbar.is-scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.14);
  transition: transform .22s ease, box-shadow .22s ease;
}

#site-navbar.nav-hidden {
  transform: translateY(-110%);
}

.page-container {
  padding-top: var(--site-nav-offset);
}

/* ─── Top info bar ────────────────────────────────────────────────── */
/* No alpha-overlay so no colour "glitch" between the two bars */
.sn-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 8px;
  padding: 2px 16px;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(255,255,255,.88);
  border-bottom: none;
  /* Same background as parent .bgc-mint - no dark overlay */
  background: transparent;
}

.sn-topbar-item .fa {
  margin-right: 5px;
}

a.sn-topbar-link {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  transition: color .2s;
}

a.sn-topbar-link:hover,
a.sn-topbar-link:focus {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

/* Desktop: city LEFT, phone RIGHT - fills the full width */
@media (min-width: 768px) {
  .sn-topbar {
    justify-content: space-between;
  }
}

/* ─── Main bar ────────────────────────────────────────────────────── */
.sn-bar {
  display: flex;
  align-items: center;
  padding: 2px 16px;
  gap: 9px;
}

/* ─── Logo ────────────────────────────────────────────────────────── */
.sn-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sn-logo img {
  height: 82px;
  width: auto;
  display: block;
}

/* ─── Center nav links ────────────────────────────────────────────── */
.sn-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sn-links ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sn-links ul li a {
  display: block;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.sn-links ul li a:hover,
.sn-links ul li a:focus {
  background: rgba(255,255,255,.16);
  transform: translateY(-1px);
  outline: none;
}

/* ─── Right action buttons ────────────────────────────────────────── */
.sn-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.95) !important;
  text-decoration: none !important;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.sn-btn:hover,
.sn-btn:focus {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.38);
  transform: translateY(-2px);
  outline: none;
}

.sn-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 17px;
}

.sn-btn-icon .icon-tiktok {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.sn-btn-pill {
  height: 40px;
  border-radius: 20px;
  gap: 7px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ─── Hamburger button (hidden on desktop) ────────────────────────── */
.sn-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .2s ease;
}

.sn-toggle:hover { background: rgba(255,255,255,.24); }

.sn-hbr-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .28s ease, opacity .28s ease;
  transform-origin: center;
}

.sn-toggle.is-open .sn-hbr-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sn-toggle.is-open .sn-hbr-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.sn-toggle.is-open .sn-hbr-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Keep topbar visible on mobile so contact markers stay above navbar */
  .sn-topbar {
    display: flex;
    justify-content: center;
    gap: 2px 7px;
    padding: 3px 8px;
    font-size: 10px;
    line-height: 1.35;
  }

  .sn-topbar-item {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sn-bar     { padding: 4px 9px; gap: 0; }
  .sn-links,
  .sn-actions { display: none; }
  .sn-toggle  { display: flex; width: 38px; height: 38px; flex-shrink: 0; }

  /* Logo: allow it to shrink so hamburger always has room */
  .sn-logo    { flex-shrink: 1; min-width: 0; overflow: hidden; }
  .sn-logo img {
    height: 66px;
    max-width: calc(100vw - 90px);  /* always leave 90px for the hamburger + gap */
    width: auto;
    object-fit: contain;
    object-position: left center;
  }
}

/* ─── Very small phones (≤ 360px) ────────────────────────────────── */
@media (max-width: 360px) {
  .sn-bar     { padding: 4px 7px; }
  .sn-logo img { height: 52px; max-width: calc(100vw - 80px); }
  .sn-toggle  { width: 40px; height: 40px; }
}

/* ─── Tablet ──────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 991px) {
  .sn-bar    { padding: 2px 9px; gap: 5px; }
  .sn-topbar { padding: 2px 9px; }
  .sn-logo img { height: 72px; }

  .sn-links ul li a { padding: 5px 8px; font-size: 12px; }
  .sn-btn-pill      { padding: 0 12px;   font-size: 12px;   }
}


/* ═══════════════════════════════════════════════════════════════════
   FULLSCREEN MOBILE OVERLAY
   ═══════════════════════════════════════════════════════════════════ */

#sn-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(150deg, #5099DB 0%, #2d78c0 100%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease, transform .26s ease;
  transform: translateY(-6px) scale(.99);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#sn-overlay.sno-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
  #sn-overlay { display: none !important; }
}

.sno-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  /* safe-area insets for notched phones */
  padding: max(20px, env(safe-area-inset-top)) 24px
           max(24px, env(safe-area-inset-bottom)) 24px;
  box-sizing: border-box;
}

/* ── Header: logo + close btn ─────────────────────────────────────── */
.sno-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
  flex-shrink: 0;
}

/* Logo MUST shrink so the × button is never hidden */
.sno-logo {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.sno-logo img {
  height: 36px;
  max-width: calc(100vw - 110px); /* always leave room for × + padding */
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* Close button MUST NOT shrink */
.sno-close {
  flex-shrink: 0;
}

/* Close button - robust: uses a text × inside a flex circle */
.sno-close {
  width: 44px;
  height: 44px;
  min-width: 44px;  /* never shrink on tiny screens */
  border-radius: 50%;
  background: rgba(255,255,255,.20);
  border: 1.5px solid rgba(255,255,255,.36);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  transition: background .2s;
  /* Ensure no Bootstrap interference */
  padding: 0;
  box-shadow: none;
  outline: none;
}

.sno-close:hover,
.sno-close:focus {
  background: rgba(255,255,255,.32);
  outline: none;
}

/* ── Nav links ────────────────────────────────────────────────────── */
.sno-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
}

.sno-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.sno-nav ul li {
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.sno-nav ul li:first-child { border-top: 1px solid rgba(255,255,255,.14); }

.sno-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  text-decoration: none;
  font-family: Ubuntu, Helvetica, sans-serif;
  /* clamp: 22px on 320px, 30px on 414px+ */
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 700;
  padding: clamp(14px, 5vw, 22px) 16px;
  letter-spacing: -.2px;
  transition: background .2s, padding-left .2s;
}

.sno-nav ul li a:hover,
.sno-nav ul li a:focus {
  background: rgba(255,255,255,.10);
  outline: none;
}

.sno-main {
  flex: 1;
  display: block;
}

/* ── Footer: buttons + phone ──────────────────────────────────────── */
.sno-footer {
  flex-shrink: 0;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
}

.sno-phone {
  margin-left: 0;
  color: rgba(255,255,255,.85);
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sno-phone .fa { opacity: .8; }

.sno-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sno-footer-social .sn-btn-icon {
  width: 38px;
  height: 38px;
}

/* tiny screens: stack footer items */
@media (max-width: 360px) {
  .sno-footer { flex-direction: row; align-items: center; gap: 8px; }
  .sno-phone  { margin-left: 0; font-size: 13px; }
  .sno-footer-social .sn-btn-icon { width: 34px; height: 34px; }
  .sno-inner  { padding-left: 18px; padding-right: 18px; }
}
