/* ============================================================
   Sand Dollar — shared brand chrome (header + Tours megamenu + footer)
   Ported verbatim from sanddollarboattours.com so the two sister
   sites read as ONE brand. The CSS variables below pin SDBT's exact
   palette + fonts onto the chrome subtree only; the shelling body
   keeps its own :root. SDBT's `.container` is renamed `.sdc` here so
   it doesn't clobber the shelling body's wider `.container`.
   ============================================================ */

/* SDBT palette + fonts, scoped to the chrome only */
.topbar, .header, .footer, .scrim, .megamenu {
  --deep: #06323d;  --deep-2: #04242d;
  --teal: #0c7385;  --teal-2: #0f93a6;  --aqua: #1ec8d8;  --aqua-2: #7fe6ee;
  --coral: #ff6a3d; --coral-2: #ff875e; --coral-d: #e8542b;
  --sun: #ffc24a;   --sun-2: #ffd982;
  --sand: #f7efdd;  --sand-2: #efe3c9;  --paper: #fffdf6;
  --ink: #0c2a2f;   --muted: #5b6e72;   --line: rgba(12, 42, 47, 0.12);
  --shadow-sm: 0 2px 12px rgba(6, 50, 61, 0.07);
  --display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script:  "Pacifico", "Brush Script MT", cursive;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* chrome container (SDBT .container, renamed to avoid body collision) */
.sdc { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--deep-2); color: rgba(255, 253, 246, 0.85); font-family: var(--sans); font-size: 0.82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 253, 246, 0.78); }
.topbar__item .ic { width: 14px; height: 14px; fill: var(--aqua); }
.topbar__item a:hover { color: var(--aqua-2); }
.topbar__badge { color: var(--sun); font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Header / nav ---------- */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; font-family: var(--sans); }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 253, 246, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; transition: min-height .25s ease; }
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header.is-scrolled .header__inner { min-height: 64px; }

.brand { display: inline-flex; align-items: center; }
.brand__logo { width: auto; height: 62px; transition: height .25s ease; }
.header.is-scrolled .brand__logo { height: 50px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { position: relative; font-family: var(--display); font-size: 0.93rem; font-weight: 600; color: var(--ink); padding: 10px 14px; border-radius: 9px; transition: color .2s, background .2s; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--coral); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.nav__link:hover { color: var(--teal); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--teal); }
.nav__cta { margin-left: 10px; font-family: var(--display); font-size: 0.93rem; font-weight: 700; padding: 11px 22px; border-radius: 100px; background: linear-gradient(135deg, var(--coral-2), var(--coral-d)); color: #fff; box-shadow: 0 8px 20px rgba(255, 106, 61, 0.34); transition: transform .2s, box-shadow .2s; }
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 106, 61, 0.46); }

.navtoggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 9px; border-radius: 12px; transition: background .35s ease; }
.navtoggle span { width: 26px; height: 2.5px; background: var(--deep); border-radius: 3px; transform-origin: center; transition: transform .42s cubic-bezier(.55,.06,.1,1.5), opacity .25s ease, background .35s ease, width .3s ease; }
.navtoggle.is-open { background: rgba(255, 253, 246, .14); }
.navtoggle.is-open span { background: var(--paper); }
.navtoggle.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.navtoggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.navtoggle.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Tours megamenu ---------- */
.nav__mega { position: static; display: inline-flex; }
.nav__mega-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border: 0; padding: 8px 4px; margin: 0; font-family: var(--display); font-size: 0.95rem; font-weight: 600; color: var(--deep); letter-spacing: .01em; position: relative; transition: color .2s ease; }
.nav__mega-trigger:hover, .nav__mega.is-open .nav__mega-trigger { color: var(--teal); }
.nav__mega-trigger .mm-chev { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.nav__mega.is-open .nav__mega-trigger .mm-chev { transform: rotate(180deg); }

.megamenu { position: absolute; left: 0; right: 0; top: calc(100% - 2px); z-index: 55; padding: 0 28px; opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.megamenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.megamenu__inner { max-width: min(1040px, 95vw); margin: 0 auto; background: var(--paper, #fffdf6); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 32px 72px rgba(4,36,45,.30); display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; }
.mm-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 22px 4px; }
.mm-head h3 { font-family: var(--display); font-size: 1.02rem; font-weight: 800; color: var(--deep); margin: 0; }
.mm-head a { font-family: var(--display); font-weight: 700; font-size: .82rem; color: var(--teal); text-decoration: none; }
.mm-head a:hover { text-decoration: underline; }
.mm-list { padding: 8px 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; align-content: start; }
.mm-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 13px; cursor: pointer; text-decoration: none; color: var(--deep); transition: background .2s ease, transform .15s ease; }
.mm-item:hover { transform: translateX(2px); }
.mm-item:hover, .mm-item.is-active { background: rgba(12,115,133,.10); }
.mm-item.is-active { box-shadow: inset 0 0 0 1.6px rgba(12,115,133,.28); }
.mm-item__ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; background: linear-gradient(135deg, var(--teal), var(--aqua-2, #1ec8d8)); box-shadow: 0 5px 12px rgba(12,115,133,.3); }
.mm-item__txt { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.mm-item__txt b { font-family: var(--display); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.mm-item__txt small { font-size: .71rem; color: #5b6b6f; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mm-preview { position: relative; min-height: 330px; background: var(--deep-2, #04242d); overflow: hidden; margin: 4px 14px 14px 8px; border-radius: 16px; }
.mm-prev__art { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.mm-prev__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,50,61,.10) 26%, rgba(4,36,45,.42) 58%, rgba(4,36,45,.88) 100%); }
.mm-prev__emoji { position: absolute; left: 24px; top: 26px; font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); will-change: transform; }
.mm-prev__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 24px 22px; color: #fff; }
.mm-prev__body h4 { font-family: var(--display); font-size: 1.32rem; font-weight: 800; margin: 0 0 6px; line-height: 1.1; }
.mm-prev__body p { font-size: .85rem; line-height: 1.45; color: rgba(255,255,255,.9); margin: 0 0 13px; max-width: 34ch; }
.mm-prev__cta { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--deep); background: var(--sun, #ffc24a); padding: 9px 17px; border-radius: 999px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 6px 16px rgba(255,194,74,.4); }
.mm-prev__cta:hover { transform: translateX(3px); box-shadow: 0 9px 20px rgba(255,194,74,.5); }

@keyframes mmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mmSpin { to { transform: rotate(360deg); } }
@keyframes mmLeap { 0%,100% { transform: translateY(8px) rotate(-10deg); } 50% { transform: translateY(-22px) rotate(16deg); } }
@keyframes mmRise { 0% { transform: translateY(16px) scale(.86); filter: drop-shadow(0 0 0 rgba(255,190,90,0)); } 100% { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 0 24px rgba(255,190,90,.9)); } }
@keyframes mmFlicker { 0%,100% { transform: scale(1) rotate(-2deg); opacity: 1; } 28% { transform: scale(1.13) rotate(3deg); opacity: .85; } 62% { transform: scale(.95) rotate(-3deg); opacity: 1; } }
@keyframes mmBob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes mmGlide { 0% { transform: translateX(-14px) rotate(-2deg); } 100% { transform: translateX(66px) rotate(2deg); } }
@keyframes mmSway { 0%,100% { transform: rotate(-13deg); } 50% { transform: rotate(11deg); } }
@keyframes mmPop { 0% { transform: scale(.3) rotate(-14deg); opacity: 0; } 60% { transform: scale(1.2) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.mm-prev__art--in { animation: mmFade .42s ease; }
.mm-anim--spin { animation: mmSpin 7s linear infinite; transform-origin: 50% 50%; }
.mm-anim--leap { animation: mmLeap 2.3s ease-in-out infinite; }
.mm-anim--rise { animation: mmRise 2.8s ease-in-out infinite alternate; }
.mm-anim--flicker { animation: mmFlicker 1.05s ease-in-out infinite; }
.mm-anim--bob { animation: mmBob 2.6s ease-in-out infinite; }
.mm-anim--glide { animation: mmGlide 3s ease-in-out infinite alternate; }
.mm-anim--sway { animation: mmSway 2.8s ease-in-out infinite; transform-origin: 50% 90%; }
.mm-anim--pop { animation: mmPop .62s cubic-bezier(.34,1.56,.64,1) both; }

/* ---------- Nav scrim (created by chrome.js) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(4, 36, 45, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease; z-index: 40; }
.scrim.is-open { opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */
.footer { background: var(--deep-2); color: rgba(255, 253, 246, 0.78); padding-top: 60px; font-family: var(--sans); }
.footer__inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer__brand { max-width: 340px; }
.footer__logo { height: 64px; width: auto; margin-bottom: 10px; }
.footer__name { font-family: var(--display); color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; margin: 0 0 12px; }
.footer__line { font-size: 0.92rem; line-height: 1.65; }
.footer__crest { margin-top: 14px; color: var(--aqua-2); font-weight: 600; }
.footer__col h4 { font-family: var(--display); color: #fff; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a, .footer__muted { display: block; font-size: 0.92rem; margin-bottom: 11px; color: rgba(255, 253, 246, 0.72); }
.footer__col a:hover { color: var(--aqua-2); }
.footer__muted { color: rgba(255, 253, 246, 0.5); }
.footer__policy { border-top: 1px solid rgba(127, 230, 238, 0.12); padding: 26px 0 4px; }
.footer__policy h4 { font-family: var(--display); color: rgba(255, 253, 246, 0.82); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.footer__policy p { font-size: 0.8rem; line-height: 1.7; color: rgba(255, 253, 246, 0.5); max-width: 92ch; }
.footer__bar { border-top: 1px solid rgba(127, 230, 238, 0.14); }
.footer__bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 0.84rem; color: rgba(255, 253, 246, 0.6); gap: 16px; flex-wrap: wrap; }
.footer__bar-inner a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 760px) {
  /* megamenu -> mobile accordion inside the nav overlay */
  .nav__mega { display: block; width: 100%; }
  .nav__mega-trigger { width: 100%; justify-content: space-between; font-size: 1.4rem; font-weight: 600; color: var(--paper); padding: 6px 0; }
  .nav__mega-trigger:hover, .nav__mega.is-open .nav__mega-trigger { color: var(--sun); }
  .nav__mega-trigger .mm-chev { width: 18px; height: 18px; }
  .megamenu { position: static; padding: 0; opacity: 1; visibility: visible; transform: none; pointer-events: auto; max-height: 0; overflow: hidden; transition: max-height .42s ease; }
  .megamenu.is-open { max-height: 1600px; }
  .megamenu__inner { display: block; max-width: none; margin: 6px 0 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); box-shadow: none; border-radius: 16px; }
  .mm-head { display: none; }
  .mm-list { grid-template-columns: 1fr; padding: 7px; gap: 2px; }
  .mm-item { color: var(--paper); }
  .mm-item:hover, .mm-item.is-active { background: rgba(255,255,255,.12); box-shadow: none; transform: none; }
  .mm-item__txt b { white-space: normal; }
  .mm-item__txt small { color: rgba(255,253,246,.62); white-space: normal; }
  .mm-preview { display: none; }

  /* mobile nav drawer */
  .nav { position: fixed; inset: 0 0 0 auto; width: min(87vw, 390px); z-index: 55; flex-direction: column; align-items: stretch; justify-content: center; gap: 2px; padding: 96px 36px 110px; background: linear-gradient(165deg, #0a4a59 0%, var(--deep) 46%, var(--deep-2) 100%); box-shadow: -26px 0 64px rgba(0, 0, 0, .5); transform: translateX(106%); transition: transform .5s cubic-bezier(.62,.04,.18,1); overflow: hidden; }
  .nav.is-open { transform: translateX(0); }
  .nav::before { content: ""; position: absolute; top: -70px; right: -70px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(30,200,216,.32), transparent 70%); pointer-events: none; }
  .nav::after { content: ""; position: absolute; left: -40px; bottom: -30px; width: 240px; height: 200px; background: radial-gradient(circle, rgba(255,106,61,.22), transparent 68%); pointer-events: none; }
  .nav__link { position: relative; z-index: 1; padding: 15px 6px; font-family: var(--display); font-weight: 700; font-size: 1.55rem; color: var(--paper); border-bottom: 1px solid rgba(255,253,246,.1); border-radius: 0; opacity: 0; transform: translateX(36px); transition: opacity .5s ease, transform .55s cubic-bezier(.22,1,.36,1), color .2s ease, padding-left .25s ease; }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link:active, .nav__link.is-active { color: var(--sun); padding-left: 14px; }
  .nav.is-open .nav__link { opacity: 1; transform: none; }
  .nav.is-open .nav__link:nth-child(1) { transition-delay: .13s; }
  .nav.is-open .nav__link:nth-child(2) { transition-delay: .19s; }
  .nav.is-open .nav__link:nth-child(3) { transition-delay: .25s; }
  .nav.is-open .nav__link:nth-child(4) { transition-delay: .31s; }
  .nav.is-open .nav__link:nth-child(5) { transition-delay: .37s; }
  .nav__cta { position: relative; z-index: 1; margin: 28px 0 0; text-align: center; padding: 16px; font-size: 1.1rem; opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1), box-shadow .2s ease; }
  .nav.is-open .nav__cta { opacity: 1; transform: none; transition-delay: .45s; }
  .navtoggle { display: flex; z-index: 60; }
  .topbar__item--hide-sm { display: none; }
}

@media (max-width: 420px) {
  .sdc { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-prev__emoji { animation: none !important; }
  .mm-prev__art--in { animation: none !important; }
  .megamenu { transition: opacity .2s ease, visibility .2s; transform: none; }
}
