/* =================================================================
   Oceanside Caribbean Blog — site stylesheet (2026 redesign)
   One file for the whole site. Mobile-first. Tokens in :root.
   Identity: deep harbor water + lagoon turquoise + sun gold, taken
   from the Oceanside logo; the logo's wave is the recurring motif
   (hero wave edge, active-nav underline, footer edge).
   ================================================================= */

:root{
  --harbor:      #0B3A4A;   /* deep water — hero + footer surfaces */
  --harbor-ink:  #072630;   /* body text */
  --lagoon:      #1BA9AE;   /* logo turquoise — links, accents */
  --lagoon-deep: #0E7F86;   /* lagoon that passes contrast on white */
  --shallows:    #E3F4F2;   /* tinted section background */
  --foam:        #F7FCFB;   /* page background */
  --sun:         #F2B632;   /* logo gold — primary buttons, active marks */
  --muted:       #4C6670;
  --line:        rgba(7,38,48,.12);

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1160px;
  --gutter: 20px;
  --radius-lg: 28px;
  --radius-md: 16px;

  --wave-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 6'%3E%3Cpath d='M0 3 Q 3 0 6 3 T 12 3 T 18 3 T 24 3' fill='none' stroke='%23F2B632' stroke-width='2'/%3E%3C/svg%3E");
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--foam);
  color: var(--harbor-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--lagoon-deep); }
a:hover{ color: var(--harbor); }
:focus-visible{ outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1,h2,h3{ font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }

.skip-link{
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sun); color: var(--harbor-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus{ top: 12px; }

/* ---------- Header + shared network menu (.bnet-menu from gandor.tv) ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled{ border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(7,38,48,.45); }
.site-header__inner{
  max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand img{ height: 54px; width: auto; }

.nav-toggle{
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--font-body); color: var(--harbor-ink);
  background: var(--shallows); border: 0; border-radius: 999px;
  padding: 11px 16px; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after{
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before, .nav-toggle__bars::after{ content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before{ top: -6px; }
.nav-toggle__bars::after{ top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars{ background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after{ transform: translateY(-6px) rotate(-45deg); }
html:not(.js) .nav-toggle{ display: none; }

.site-nav{ flex-basis: 100%; }
.js .site-nav{ display: none; }
.js .site-nav.is-open{ display: block; }

.bnet-menu{ list-style: none; margin: 0; padding: 6px 0 12px; }
.bnet-menu a{
  display: block; padding: 12px 4px;
  font-weight: 600; font-size: 16px; color: var(--harbor-ink); text-decoration: none;
  border-top: 1px solid var(--line);
}
.bnet-menu a:hover{ color: var(--lagoon-deep); }

/* active page: body page-* class + li bnet-* class */
.page-home .bnet-home a,
.page-website-solutions .bnet-website-solutions a,
.page-thrive .bnet-thrive a,
.page-directory .bnet-directory a,
.page-free-stuff .bnet-free-stuff a,
.page-blog-network .bnet-blog-network a{ color: var(--lagoon-deep); }

@media (min-width: 1000px){
  .site-header__inner{ flex-wrap: nowrap; }
  .nav-toggle{ display: none; }
  .site-nav, .js .site-nav{ display: block; flex-basis: auto; margin-left: auto; }
  .bnet-menu{ display: flex; gap: 4px; padding: 0; }
  .bnet-menu a{ border-top: 0; padding: 10px 11px 12px; font-size: 15px; position: relative; white-space: nowrap; }
  .bnet-menu a::after{
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 6px;
    background: var(--wave-sun) repeat-x left center / 24px 6px;
    opacity: 0; transition: opacity .2s ease;
  }
  .bnet-menu a:hover::after{ opacity: .55; }
  .page-home .bnet-home a::after,
  .page-website-solutions .bnet-website-solutions a::after,
  .page-thrive .bnet-thrive a::after,
  .page-directory .bnet-directory a::after,
  .page-free-stuff .bnet-free-stuff a::after,
  .page-blog-network .bnet-blog-network a::after{ opacity: 1; }
  .page-home .bnet-home a,
  .page-website-solutions .bnet-website-solutions a,
  .page-thrive .bnet-thrive a,
  .page-directory .bnet-directory a,
  .page-free-stuff .bnet-free-stuff a,
  .page-blog-network .bnet-blog-network a{ color: var(--harbor-ink); }
}

/* ---------- Hero bands ---------- */
.hero{
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(27,169,174,.38), transparent 60%),
    var(--harbor);
  color: #fff;
  overflow: hidden;
}
.hero__inner{
  max-width: var(--wrap); margin: 0 auto;
  padding: 56px var(--gutter) 120px;
  display: grid; gap: 40px; align-items: center;
}
.hero__title{
  font-weight: 800;
  font-size: clamp(40px, 7.4vw, 82px);
  line-height: .98;
  letter-spacing: -0.035em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero__lede{
  margin: 22px 0 0; max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: rgba(255,255,255,.86);
}
.hero__lede a{ color: #fff; text-decoration-color: var(--sun); text-underline-offset: 3px; }
.hero__actions{ margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 700 16px/1.2 var(--font-body); text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--sun{ background: var(--sun); color: var(--harbor-ink); }
.btn--sun:hover{ background: #FFC94F; color: var(--harbor-ink); }
.btn--ghost{ color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn--ghost:hover{ color: #fff; border-color: #fff; }

/* the round "porthole" photo — echoes the circular wave in the logo */
.porthole{ margin: 0; justify-self: center; width: min(72vw, 300px); }
@media (min-width: 860px){ .porthole{ width: 440px; } }
.porthole img{
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 10px solid var(--lagoon);
  box-shadow: 0 0 0 10px rgba(242,182,50,.0), 0 0 0 12px var(--sun), 0 30px 60px -20px rgba(0,0,0,.55);
}
.porthole figcaption{
  margin-top: 18px; text-align: center; font-size: 14px; color: rgba(255,255,255,.72);
}

.hero--page .hero__inner{ padding-top: 40px; padding-bottom: 104px; grid-template-columns: 1fr; }
.hero--page .hero__title{ font-size: clamp(38px, 6vw, 64px); max-width: 16ch; }
.porthole--small{ width: 170px; justify-self: start; }
.porthole--small img{ border-width: 7px; box-shadow: 0 0 0 9px var(--sun), 0 20px 40px -18px rgba(0,0,0,.55); }

@media (min-width: 860px){
  .hero__inner{ grid-template-columns: 1.15fr .85fr; padding-top: 72px; padding-bottom: 150px; }
  .hero--page .hero__inner{ grid-template-columns: 1fr auto; padding-top: 56px; padding-bottom: 120px; }
  .porthole--small{ width: 230px; justify-self: end; }
}

/* layered wave edge (includes/wave.incl.php) */
.wave{ position: absolute; left: 0; right: 0; bottom: -1px; height: 96px; overflow: hidden; pointer-events: none; }
.wave svg{ position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.wave__back  path{ fill: var(--lagoon); opacity: .35; }
.wave__mid   path{ fill: var(--lagoon); opacity: .7; }
.wave__front path{ fill: var(--foam); }
.wave .wave__mid{ height: 85%; transform: translateX(-31%); }
.wave .wave__front{ height: 70%; }
.wave .wave__back{ transform: translateX(-12%); }
.wave--animated .wave__back { animation: drift 34s linear infinite; }
.wave--animated .wave__mid  { animation: drift 24s linear infinite reverse; }
.wave--animated .wave__front{ animation: drift 18s linear infinite; }
@keyframes drift{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){
  .wave--animated svg{ animation: none; }
  html{ scroll-behavior: auto; }
}

/* ---------- Generic sections ---------- */
.section{ padding: 56px 0 72px; }
.section__inner{ max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section__title{ font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 28px; }
.embed{ min-height: 320px; }
/* page content runs the full content width, same as "Keep exploring".
   The gandor.tv network widgets cap themselves at 920px in their own
   inline styles; let them fill the column here instead. */
.network-embed > div[class^="gtv-"]{ max-width: none; margin-top: 0; margin-bottom: 0; }

/* Third-party embeds paint their own white/cream panels; let the page
   background show through instead (cards inside them keep theirs).
   !important because these widgets inject their own CSS after ours. */
.page-home .eapps-facebook-feed-inner,                 /* Elfsight blog feed */
.page-thrive .cc-thrive-widget,                        /* CoolestCarib "What brings you here?" */
.page-directory .network-embed .ui-tabs,               /* CoolestCarib directory */
.page-directory .network-embed .ui-tabs-nav,
.page-directory .network-embed .ui-tabs-panel,
.page-directory .network-embed .directory-card{ background: transparent !important; }

/* ---------- About the blog ---------- */
.about-blog{ background: var(--shallows); padding: 64px 0; }
.about-blog__inner{
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 28px; align-items: start;
}
.about-blog__mark{ width: 96px; }
.about-blog h2{ font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.about-blog p{ margin: 0; max-width: 64ch; font-size: 18px; }
.follow{ list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.follow a{ font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: rgba(14,127,134,.35); }
.follow a:hover{ text-decoration-color: currentColor; }
@media (min-width: 760px){
  .about-blog__inner{ grid-template-columns: 150px 1fr; gap: 44px; }
  .about-blog__mark{ width: 150px; }
}

/* ---------- Keep exploring tiles ---------- */
.explore{ padding: 72px 0 40px; }
.explore__inner{ max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.explore h2{ font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 28px; }
.explore__grid{ display: grid; gap: 32px; }
@media (min-width: 760px){ .explore__grid{ grid-template-columns: 1fr 1fr; } }
.tile{ display: block; text-decoration: none; color: var(--harbor-ink); }
.tile__img{ display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 2 / 1; background: var(--shallows); }
.tile__img img{ width: 100%; height: 100%; object-fit: cover; }
.tile__title{
  display: block; margin-top: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em;
}
.tile__text{ display: block; margin-top: 6px; color: var(--muted); }
.tile:hover .tile__title{ text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.tile:hover{ color: var(--harbor-ink); }

/* ---------- Share row ---------- */
.share{ padding: 40px 0 96px; }
.share__inner{
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  border-top: 1px solid var(--line); padding-top: 36px;
}
.share__label{ margin: 0; font-weight: 600; color: var(--muted); }
.share__list{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.share__list a{
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); transition: border-color .2s ease;
}
.share__list a:hover{ border-color: var(--lagoon); }
.share__list img{ width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.site-footer{ position: relative; background: var(--harbor); color: rgba(255,255,255,.82); font-size: 15px; }
.site-footer::before{
  content: ""; position: absolute; left: 0; right: 0; top: -47px; height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 24 C 240 0 480 0 720 24 S 1200 48 1440 24 V48 H0 Z' fill='%230B3A4A'/%3E%3C/svg%3E") repeat-x left bottom / 1440px 48px;
}
.site-footer__inner{
  max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 56px;
  display: grid; gap: 40px;
}
.site-footer a{ color: #fff; }
.site-footer a:hover{ color: var(--sun); }
.site-footer__brand img{ width: 210px; background: #fff; border-radius: var(--radius-md); padding: 12px 16px; }
.site-footer__brand p{ margin: 16px 0 0; }
.site-footer h2{ font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.01em; margin-bottom: 14px; }
.site-footer ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__links a{ text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.site-footer__network p{ margin: 0 0 14px; }
.site-footer__network img{ width: 180px; }
@media (min-width: 900px){
  .site-footer__inner{ grid-template-columns: 1fr 1.4fr 1fr; gap: 56px; }
}
