/* ==========================================================================
   Caribbean Marketplace — site styles (2026 redesign)
   Old stylesheets (a-a-main.css etc.) are only used by legacy pages.
   ========================================================================== */

:root {
  --navy: #0e1f4d;
  --navy-2: #1a2f6b;
  --orange: #e2702b;
  --orange-dark: #c25a1a;
  --cream: #fbf8f3;
  --sand: #f3ede4;
  --ink: #1a2132;
  --muted: #5a6274;
  --line: #e4ddd2;
  --white: #fff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px -22px rgba(14, 31, 77, .35);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

img, video { max-width: 100%; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 960px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin: 0 0 14px;
}
.eyebrow--light { color: #ffc49a; }
.display { font-size: clamp(34px, 4.4vw, 54px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-1px); }
.btn--small { padding: 8px 18px; font-size: 14px; }
.btn--large { padding: 15px 30px; font-size: 16px; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--navy); }

.link-arrow { font-weight: 600; color: var(--navy-2); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: "\2192"; transition: transform .2s; }
.link-arrow:hover::after, a:hover .link-arrow::after { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--navy); color: rgba(255,255,255,.82); font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #ffc49a; }

.navbar { background: rgba(251, 248, 243, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.is-scrolled .navbar { box-shadow: 0 8px 24px -18px rgba(14,31,77,.45); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; transition: min-height .25s; }
.is-scrolled .navbar__inner { min-height: 68px; }
.brand img { width: auto; height: 58px; transition: height .25s; }
.is-scrolled .brand img { height: 46px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: block; padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 999px; }
.site-nav a:hover { color: var(--orange-dark); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--sand); }
.site-nav .btn { margin-left: 10px; color: #fff; }
.site-nav .btn:hover, .site-nav .btn[aria-current="page"] { color: #fff; background: var(--orange); border-color: var(--orange); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; position: relative; }
.nav-toggle__bar { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--navy); transition: transform .25s, top .25s; }
.nav-toggle__bar:nth-child(1) { top: 18px; }
.nav-toggle__bar:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .brand img { height: 46px; }
  .navbar__inner { min-height: 72px; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(14,31,77,.4); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 24px; gap: 2px; }
  .site-nav a { padding: 14px 16px; font-size: 17px; border-radius: var(--radius-sm); }
  .site-nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Hero (video) ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.hero--short { min-height: min(62vh, 560px); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,31,77,.25) 0%, rgba(14,31,77,.35) 45%, rgba(10,20,50,.85) 100%); }
.hero__content { position: relative; padding-top: 120px; padding-bottom: clamp(56px, 9vw, 110px); }
.hero__title { color: #fff; font-size: clamp(46px, 8vw, 104px); font-weight: 500; margin-bottom: 14px; max-width: 12ch; }
.hero__lead { font-size: clamp(18px, 2vw, 24px); max-width: 34ch; color: rgba(255,255,255,.92); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__pause { position: absolute; right: var(--gutter); bottom: 24px; z-index: 2; background: rgba(0,0,0,.35); color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 6px 14px; font: 500 13px var(--font-body); cursor: pointer; }
.hero__pause:hover { background: rgba(0,0,0,.6); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,31,77,.95) 0%, rgba(14,31,77,.6) 60%, rgba(14,31,77,.3) 100%); }
.page-hero__inner { position: relative; z-index: 1; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 100px); }
.page-hero h1 { color: #fff; font-size: clamp(40px, 6vw, 72px); margin-bottom: 16px; }
.page-hero .eyebrow { color: #ffc49a; }
.page-hero__intro { font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; color: rgba(255,255,255,.88); margin: 0; }
.page-hero__intro a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tint { background: var(--sand); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 720px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head .display { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__media { margin: 0; }
.split__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__text p:not(.eyebrow):not(.lead) { color: var(--muted); }

/* Category pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.pillar { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); margin: 0; }
.pillar img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.pillar:hover img { transform: scale(1.04); }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,20,50,.82) 100%); }
.pillar h3 { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; color: #fff; font-size: clamp(24px, 2.4vw, 32px); margin: 0; }

/* Photo mosaics */
.mosaic { display: grid; gap: clamp(10px, 1.4vw, 18px); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.mosaic--staff { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(180px, 280px)); }
.mosaic--staff img:first-child { grid-row: span 2; }
.mosaic--staff img:last-child { grid-column: span 2; }
.mosaic--store { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 22vw, 290px); }
.mosaic--store img:nth-child(2), .mosaic--store img:nth-child(4) { grid-column: span 2; }

.items { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.items img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); }

/* Teasers */
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.teaser { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s; }
.teaser:hover { transform: translateY(-3px); color: var(--ink); }
.teaser img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.teaser__body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.teaser__title { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); color: var(--navy); line-height: 1.1; margin-bottom: 18px; }

/* Contact page cards */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.contact-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); text-decoration: none; color: var(--ink); }
a.contact-card:hover { border-color: var(--orange); color: var(--ink); }
.contact-card__value { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); color: var(--navy); line-height: 1.2; word-break: break-word; }
.contact-card__value a { color: inherit; text-decoration: none; }
.contact-card__value a:hover { color: var(--orange-dark); }
.contact-card__note { color: var(--muted); font-size: 15px; }
.contact-card .social { margin-top: 8px; }
.contact-card .social a { color: var(--navy); border-color: var(--line); }

/* Widget pages (Elfsight) */
.widget-panel { min-height: 320px; }

/* Directory (CoolestCarib remote include) */
.coolest { text-align: left; }
.coolestHeading h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 24px; }
.coolestHeading a { text-decoration: none; color: var(--navy); }

/* ---------- Contact band ---------- */
.contact-band { background: var(--navy); color: rgba(255,255,255,.86); padding: clamp(64px, 8vw, 104px) 0; position: relative; overflow: hidden; }
.contact-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(226,112,43,.35), transparent 70%); }
.contact-band__inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact-band h2 { color: #fff; font-size: clamp(32px, 4vw, 50px); }
.contact-band p { max-width: 56ch; }
.contact-band a:not(.btn) { color: #fff; }
.contact-band__actions { display: flex; flex-direction: column; gap: 14px; }

.social { list-style: none; display: flex; gap: 10px; margin: 18px 0 0; padding: 0; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: #fff; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1638; color: rgba(255,255,255,.72); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 15px; text-align: left; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: #ffc49a; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__brand img { width: 220px; height: auto; background: #fff; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.site-footer__brand p { max-width: 36ch; }
.site-footer__title { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px; }
.site-footer__legal p { margin: 0; }
/* The CoolestCarib logo block keeps its own styling from the CoolestCarib stylesheet. */

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pillar img, .btn, .teaser { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .contact-band__inner { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars .pillar:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .teasers { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: span 2; }
  .items { grid-template-columns: repeat(2, 1fr); }
  .mosaic--store { grid-template-columns: repeat(2, 1fr); }
  .mosaic--store img:nth-child(n) { grid-column: span 1; }
  .mosaic--store img:nth-child(1), .mosaic--store img:nth-child(6) { grid-column: span 2; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__place { display: none; }
  .topbar__inner { justify-content: center; }
  .hero { min-height: 82vh; }
  .hero__actions .btn { width: 100%; }
  .pillars { grid-template-columns: 1fr; }
  .pillars .pillar, .pillars .pillar:last-child { grid-column: auto; aspect-ratio: 16 / 10; }
  .mosaic--staff { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 180px; }
  .mosaic--staff img:first-child { grid-column: span 2; grid-row: span 1; }
  .mosaic--staff img:last-child { grid-column: span 2; }
  .mosaic--store { grid-auto-rows: 150px; }
  .teaser { grid-template-columns: 1fr; }
  .teaser img { min-height: 200px; max-height: 240px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: auto; }
}

/* Long email address on the contact card */
.contact-card__value .js-email { font-family: var(--font-body); font-size: 17px; font-weight: 600; }

.site-footer__address { font-style: normal; margin-bottom: 14px; line-height: 1.6; }

/* Social page */
.social-layout { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.social-layout__intro { position: sticky; top: 160px; }
.social-layout__feed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); min-height: 300px; overflow: hidden; }
.social-layout__feed .fb-page, .social-layout__feed .fb-page span, .social-layout__feed iframe { max-width: 100% !important; }
.social-layout__feed blockquote { margin: 0; padding: 24px; }
@media (max-width: 960px) {
  .social-layout { grid-template-columns: 1fr; }
  .social-layout__intro { position: static; }
  .social-layout__feed { max-width: 500px; width: 100%; margin: 0 auto; }
}

/* Directory page: CoolestCarib block (markup + inline styles come from coolestcarib.com).
   Scoped to this page only, so the footer CoolestCarib logo is not affected. */
.page-directory .coolest .CoolestCaribLogo,
.page-directory .coolest .CoolestCaribSocial { background: transparent !important; text-align: center !important; }
.page-directory .coolest .CoolestCaribLogo img { display: block; margin: 0 auto !important; }
.page-directory .coolest .CoolestCaribSocial img { display: inline-block; }
/* No white band behind the island chips */
.page-directory .coolest #Tabs3 > ul { background: transparent !important; border-bottom: 0 !important; }
