/* ============================================================
   site-shell.css — Island Boy Kreationz shared shell
   Loads LAST on every page. Owns: top bar + dropdown nav,
   mobile nav panel, sitewide footer, and the .ibx page kit
   used by the generated city/service pages.
   ============================================================ */

:root {
  --ib-ink: #160805;
  --ib-espresso: #110700;
  --ib-paper: #fff8ec;
  --ib-shell: #fffdf6;
  --ib-cream: #ffe8b8;
  --ib-gold: #ffbd35;
  --ib-green: #1f7b4d;
  --ib-blue: #005aa9;
  --ib-lagoon: #00a7a7;
  --ib-coral: #f05a43;
  --ib-body: #5d3a24;
  --ib-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ib-card-shadow: 0 18px 50px rgba(22, 8, 5, 0.12);
}

/* ------------------------------------------------ top bar ------------- */

.topbar {
  position: sticky !important;
  top: 0;
  z-index: 70 !important;
  padding-top: env(safe-area-inset-top);
}
.topbar .wrap.nav {
  height: auto !important;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ib-paper) !important;
  font-weight: 1000;
  line-height: 1.1;
}
.topbar .brand .logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  overflow: hidden;
  background: #0d0500;
  flex: none;
}
.topbar .brand .logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topbar .brand small {
  display: block;
  color: var(--ib-gold);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
}
.topbar .links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 900;
  position: relative;
}
.topbar .links > a:not(.pill) {
  color: #fff3d4 !important;
  padding: 8px 2px;
  border-radius: 8px;
  transition: opacity 160ms var(--ib-ease);
}
.topbar .links > a:not(.pill):hover { opacity: 0.78; }
.topbar .links a:focus-visible,
.topbar .links button:focus-visible {
  outline: 3px solid rgba(255, 189, 53, 0.85);
  outline-offset: 2px;
  border-radius: 10px;
}

/* pills */
.topbar .links .pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 12px 18px !important;
  font-weight: 1000;
  background: var(--ib-gold);
  color: var(--ib-ink) !important;
  border: 1px solid var(--ib-gold);
  transition: transform 160ms var(--ib-ease), box-shadow 160ms var(--ib-ease);
}
.topbar .links .pill:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(255, 189, 53, 0.32); }
.topbar .links .pill:active { transform: translateY(0) scale(0.98); }

/* ------------------------------------------------ dropdowns ----------- */

.topbar .links .nav-dropdown { position: relative !important; display: inline-flex !important; align-items: center; }
.topbar .links .nav-dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 40px !important;
  padding: 8px 2px !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff3d4 !important;
  font: inherit !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer;
  border-radius: 8px;
  transition: opacity 160ms var(--ib-ease);
}
.topbar .links .nav-dropdown-toggle:hover { opacity: 0.78; }
.topbar .links .nav-dropdown-toggle .dd-caret {
  font-size: 10px;
  transform: translateY(1px);
  transition: transform 180ms var(--ib-ease);
}
.topbar .links .nav-dropdown:hover .dd-caret,
.topbar .links .nav-dropdown.open .dd-caret { transform: translateY(1px) rotate(180deg); }

.topbar .links .nav-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 12px) !important;
  left: 50% !important;
  right: auto !important;
  z-index: 160 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 4px !important;
  width: max-content !important;
  min-width: 240px;
  max-width: min(330px, calc(100vw - 32px)) !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 232, 184, 0.22) !important;
  border-radius: 18px !important;
  background: rgba(17, 7, 0, 0.98) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45) !important;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 170ms var(--ib-ease), transform 170ms var(--ib-ease), visibility 170ms var(--ib-ease);
}
/* hover bridge so the pointer can travel from toggle to menu */
.topbar .links .nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.topbar .links .nav-dropdown:hover .nav-dropdown-menu,
.topbar .links .nav-dropdown:focus-within .nav-dropdown-menu,
.topbar .links .nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.topbar .links .nav-dropdown-menu a {
  display: flex !important;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: var(--ib-paper) !important;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 140ms var(--ib-ease), color 140ms var(--ib-ease);
}
.topbar .links .nav-dropdown-menu a:hover { background: rgba(255, 189, 53, 0.18) !important; color: var(--ib-gold) !important; }
.topbar .links .nav-dropdown-menu a:active { background: rgba(255, 189, 53, 0.3) !important; }
.topbar .links .nav-dropdown-menu a.dd-lead {
  background: rgba(255, 189, 53, 0.12) !important;
  color: var(--ib-gold) !important;
  font-weight: 1000;
  margin-bottom: 4px;
}
.topbar .links .nav-dropdown-menu a.dd-lead:hover { background: rgba(255, 189, 53, 0.24) !important; }

/* mega menu (Locations) — anchored to the links row, never off-screen */
.topbar .links .nav-dropdown-wide { position: static !important; }
.topbar .links .nav-dropdown-wide .nav-dropdown-menu {
  left: auto !important;
  right: -8px !important;
  top: calc(100% + 16px) !important;
  transform: translate(0, -6px);
  width: min(820px, calc(100vw - 32px)) !important;
  max-width: none !important;
  grid-template-columns: 1.9fr 1fr 1fr 1fr !important;
  gap: 14px !important;
  padding: 18px !important;
}
.topbar .links .nav-dropdown-wide:hover .nav-dropdown-menu,
.topbar .links .nav-dropdown-wide:focus-within .nav-dropdown-menu,
.topbar .links .nav-dropdown-wide.open .nav-dropdown-menu { transform: translate(0, 0); }
.topbar .links .dd-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topbar .links .dd-col-title {
  display: block;
  color: var(--ib-gold);
  font-size: 10.5px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px 6px;
  white-space: nowrap;
}
.topbar .links .dd-col-links { display: grid; grid-template-columns: 1fr; gap: 2px; }
.topbar .links .dd-col-2up .dd-col-links { grid-template-columns: 1fr 1fr; }
.topbar .links .dd-col .dd-col-links a { min-height: 34px; padding: 7px 12px !important; }
.topbar .links .dd-all {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 6px;
  background: rgba(255, 189, 53, 0.12) !important;
  color: var(--ib-gold) !important;
  font-weight: 1000;
}
.topbar .links .dd-all:hover { background: rgba(255, 189, 53, 0.24) !important; }

/* ------------------------------------------------ mobile nav ---------- */

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 232, 184, 0.32);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.08);
  color: var(--ib-paper);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-toggle:active { transform: scale(0.94); }
.mobile-nav-toggle:focus-visible { outline: 3px solid rgba(255, 189, 53, 0.85); outline-offset: 2px; }

.ib-mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: calc(96px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
  background: rgba(13, 5, 0, 0.985);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 200ms var(--ib-ease), transform 200ms var(--ib-ease), visibility 200ms var(--ib-ease);
}
.ib-mobile-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.ib-mobile-panel .ib-mp-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ib-mobile-panel .ib-mp-primary a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 15px;
  color: var(--ib-ink);
  background: var(--ib-gold);
  -webkit-tap-highlight-color: transparent;
}
.ib-mobile-panel .ib-mp-primary a:last-child {
  background: linear-gradient(135deg, var(--ib-blue), var(--ib-lagoon));
  color: var(--ib-shell);
}
.ib-mobile-panel .ib-mp-primary a:active { transform: scale(0.97); }
.ib-mobile-panel .ib-mp-group { padding: 6px 0 2px; }
.ib-mobile-panel .ib-mp-label {
  display: block;
  color: var(--ib-gold);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 6px 6px;
}
.ib-mobile-panel .ib-mp-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ib-mobile-panel .ib-mp-links.ib-mp-1col { grid-template-columns: 1fr; }
.ib-mobile-panel .ib-mp-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 248, 236, 0.07);
  color: var(--ib-paper);
  font-weight: 800;
  font-size: 14.5px;
  -webkit-tap-highlight-color: transparent;
}
.ib-mobile-panel .ib-mp-links a:active { background: rgba(255, 189, 53, 0.26); color: var(--ib-gold); }

@media (max-width: 920px) {
  .topbar .links { display: none !important; }
  .mobile-nav-toggle { display: inline-flex; }
  body.ib-menu-open { overflow: hidden; }
  .ib-mobile-panel { display: flex; }
}
@media (min-width: 921px) {
  .ib-mobile-panel, .mobile-nav-toggle { display: none !important; }
}

/* ------------------------------------------------ footer -------------- */

.site-footer {
  color: var(--ib-cream);
  padding: 58px 0 26px;
  font-size: 14px;
}
.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}
.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ib-paper);
  font-weight: 1000;
  line-height: 1.1;
  margin-bottom: 14px;
}
.site-footer .brand .logo-mark { width: 46px; height: 46px; border-radius: 13px; overflow: hidden; background: #0d0500; flex: none; }
.site-footer .brand .logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-footer .brand small { display: block; color: var(--ib-gold); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 900; }
.site-footer p { color: rgba(255, 232, 184, 0.82); font-size: 13.5px; line-height: 1.65; margin: 0 0 12px; }
.site-footer .foot-tag { max-width: 330px; }
.site-footer .foot-contact a { color: var(--ib-paper); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .foot-contact a:hover { color: var(--ib-gold); }
.site-footer .foot-hours { color: rgba(255, 232, 184, 0.6); font-size: 12.5px; }
.site-footer .foot-col { display: flex; flex-direction: column; gap: 2px; }
.site-footer .foot-title {
  color: var(--ib-gold);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.site-footer .foot-col a {
  color: rgba(255, 248, 236, 0.88);
  font-weight: 700;
  padding: 5px 0;
  width: fit-content;
  border-radius: 6px;
  transition: color 140ms var(--ib-ease), transform 140ms var(--ib-ease);
}
.site-footer .foot-col a:hover { color: var(--ib-gold); transform: translateX(2px); }
.site-footer .foot-col a:focus-visible { outline: 3px solid rgba(255, 189, 53, 0.85); outline-offset: 2px; }
.site-footer .foot-col .foot-cta { color: var(--ib-gold); font-weight: 1000; margin-top: 8px; }
.site-footer .foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 232, 184, 0.18);
  color: rgba(255, 232, 184, 0.55);
  font-size: 12px;
}
@media (max-width: 980px) {
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .site-footer .foot-bottom { flex-direction: column; gap: 4px; }
}

/* ------------------------------------------------ .ibx page kit ------- */

.ibx-body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; background: linear-gradient(180deg, var(--ib-paper), #fff1d9); color: #180900; }
.ibx-body .wrap { max-width: 1180px; margin: auto; padding: 0 24px; }
.ibx-body a { text-decoration: none; color: inherit; }
.ibx-body p, .ibx-body li { color: var(--ib-body); font-size: 17px; line-height: 1.62; }
.ibx-body h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 12px; color: #1d0c00; }

.ibx-hero {
  position: relative;
  padding: clamp(64px, 9vw, 104px) 0 58px;
  color: var(--ib-paper);
  background:
    linear-gradient(160deg, rgba(13, 5, 0, 0.92) 8%, rgba(58, 16, 4, 0.62) 55%, rgba(13, 5, 0, 0.78)),
    var(--hero-img) center / cover no-repeat #1a0a00;
}
.ibx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 800; color: rgba(255, 232, 184, 0.66); margin-bottom: 22px; }
.ibx-crumbs a { color: rgba(255, 232, 184, 0.9); }
.ibx-crumbs a:hover { color: var(--ib-gold); }
.ibx-crumbs [aria-current] { color: var(--ib-gold); }
.ibx-hero .kicker {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 189, 53, 0.16);
  color: var(--ib-gold);
  border: 1px solid rgba(255, 189, 53, 0.28);
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ibx-hero h1 {
  max-width: 880px;
  margin: 16px 0 14px;
  font-size: clamp(40px, 5.8vw, 74px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: var(--ib-paper);
}
.ibx-hero .ibx-lead { max-width: 740px; color: rgba(255, 248, 236, 0.9); font-size: 19px; }
.ibx-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.ibx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 1000;
  font-size: 15px;
  background: var(--ib-gold);
  color: var(--ib-ink);
  border: 1px solid var(--ib-gold);
  transition: transform 160ms var(--ib-ease), box-shadow 160ms var(--ib-ease);
}
.ibx-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 189, 53, 0.35); }
.ibx-btn:active { transform: translateY(0) scale(0.98); }
.ibx-btn:focus-visible { outline: 3px solid rgba(255, 189, 53, 0.9); outline-offset: 3px; }
.ibx-btn-ghost { background: rgba(255, 248, 236, 0.08); color: var(--ib-paper); border-color: rgba(255, 248, 236, 0.38); }
.ibx-btn-ghost:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.ibx-btn-dark { background: var(--ib-espresso); color: var(--ib-gold); border-color: rgba(255, 189, 53, 0.4); }
.ibx-btn-dark:hover { box-shadow: 0 16px 40px rgba(17, 7, 0, 0.45); }
.ibx-badges { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 28px 0 0; padding: 0; }
.ibx-badges li {
  font-size: 12.5px;
  font-weight: 900;
  color: var(--ib-cream);
  background: rgba(255, 248, 236, 0.1);
  border: 1px solid rgba(255, 232, 184, 0.26);
  border-radius: 999px;
  padding: 7px 13px;
  line-height: 1.2;
}

.ibx-section { padding: 58px 0 8px; }
.ibx-section .ibx-sub { max-width: 700px; margin-top: -4px; }
.ibx-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.ibx-card {
  background: var(--ib-shell);
  border: 1px solid rgba(0, 90, 169, 0.14);
  border-radius: 22px;
  box-shadow: var(--ib-card-shadow);
  padding: 24px;
}
.ibx-card h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.025em; color: #1d0c00; }
.ibx-card p { font-size: 15.5px; margin: 0; }

.ibx-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.ibx-tile { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--ib-card-shadow); }
.ibx-tile img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform 450ms var(--ib-ease); }
.ibx-tile:hover img { transform: scale(1.05); }
.ibx-tile span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  color: var(--ib-paper);
  font-weight: 1000;
  font-size: 17px;
  letter-spacing: -0.02em;
  z-index: 2;
}
.ibx-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 5, 0, 0.72), rgba(13, 5, 0, 0.06) 55%); }
.ibx-tile span { z-index: 1; }
.ibx-tile::after { z-index: 0; }
.ibx-menu-links { margin-top: 18px; font-weight: 800; }
.ibx-menu-links a { color: #8a4a12; text-decoration: underline; text-underline-offset: 4px; }
.ibx-menu-links a:hover { color: var(--ib-green); }

.ibx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; counter-reset: ibxstep; }
.ibx-step { background: var(--ib-shell); border: 1px solid rgba(31, 123, 77, 0.18); border-radius: 22px; box-shadow: var(--ib-card-shadow); padding: 24px; counter-increment: ibxstep; }
.ibx-step::before {
  content: counter(ibxstep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--ib-gold);
  color: var(--ib-ink);
  font-weight: 1000;
  font-size: 17px;
  margin-bottom: 12px;
}
.ibx-step h3 { margin: 0 0 6px; font-size: 19px; color: #1d0c00; }
.ibx-step p { font-size: 15px; margin: 0; }

.ibx-note {
  margin-top: 22px;
  background: var(--ib-shell);
  border: 1px solid rgba(255, 189, 53, 0.45);
  border-left: 6px solid var(--ib-gold);
  border-radius: 18px;
  padding: 18px 22px;
}
.ibx-note p { margin: 0; font-size: 15.5px; }
.ibx-note strong { color: #1d0c00; }

.ibx-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ibx-cloud a {
  background: var(--ib-shell);
  border: 1px solid rgba(24, 9, 0, 0.12);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 900;
  font-size: 14px;
  color: #5a2100;
  transition: transform 150ms var(--ib-ease), background-color 150ms var(--ib-ease), border-color 150ms var(--ib-ease);
}
.ibx-cloud a:hover { background: rgba(255, 189, 53, 0.22); border-color: rgba(255, 189, 53, 0.6); transform: translateY(-1px); }
.ibx-cloud a:active { transform: translateY(0) scale(0.97); }
.ibx-cloud a:focus-visible { outline: 3px solid rgba(31, 123, 77, 0.6); outline-offset: 2px; }
.ibx-cloud .ibx-cloud-all { background: var(--ib-espresso); color: var(--ib-gold); border-color: var(--ib-espresso); }
.ibx-cloud .ibx-cloud-all:hover { background: #2a1203; }

.ibx-faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.ibx-faq .ibx-card h3 { font-size: 17.5px; }

.ibx-cta-wrap { padding-bottom: 72px; }
.ibx-cta {
  margin-top: 30px;
  background: linear-gradient(135deg, var(--ib-green), var(--ib-lagoon) 48%, var(--ib-gold));
  border-radius: 30px;
  padding: 34px;
  color: var(--ib-shell);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 26px 70px rgba(31, 123, 77, 0.32);
}
.ibx-cta h2 { color: var(--ib-shell); margin: 0 0 8px; }
.ibx-cta p { color: rgba(255, 253, 246, 0.92); margin: 0; max-width: 560px; font-size: 16px; }
.ibx-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ibx-grid3, .ibx-band, .ibx-steps, .ibx-faq { grid-template-columns: 1fr; }
  .ibx-tile img { height: 220px; }
  .ibx-hero { text-align: left; }
  .ibx-cta { padding: 26px; }
  .ibx-cta-actions { width: 100%; }
  .ibx-cta-actions .ibx-btn { flex: 1; }
}
