/* =====================================================================
   BARCELONA FREEDIVERS · SITE STYLES (single source of truth)
   Loaded last on every page. Defines the brand palette (white theme),
   the one font (Montserrat), and the shared header, mobile menu and
   footer. Older page styles read the legacy token names below, so they
   are all mapped onto the same palette here.
   ===================================================================== */

:root{
  /* ---- Brand palette ---- */
  --bf-brand:#05565d;          /* logo teal */
  --bf-brand-dark:#04434a;     /* hover / pressed */
  --bf-brand-mid:#0a6c74;
  --bf-brand-soft:#e3eff0;     /* tinted panels, chips */
  --bf-brand-light:#9fd6d2;    /* accent on dark photos */
  --bf-bg:#ffffff;
  --bf-bg-alt:#f4f8f8;
  --bf-bg-alt2:#e9f2f2;
  --bf-ink:#0e2a2d;            /* text */
  --bf-ink2:rgba(14,42,45,.74);
  --bf-ink3:rgba(14,42,45,.56);
  --bf-line:rgba(14,42,45,.12);
  --bf-line2:rgba(14,42,45,.22);
  --bf-shade:3,38,42;          /* rgb for photo overlays */

  /* ---- One font ---- */
  --font-display:'Montserrat',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-body:'Montserrat',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;

  /* ---- Legacy token names used by page styles ---- */
  --deep:var(--bf-bg); --deep2:var(--bf-bg-alt); --deep3:var(--bf-bg-alt2);
  --surface:var(--bf-bg-alt2); --surface2:var(--bf-bg-alt2);
  --txt:var(--bf-ink); --txt2:var(--bf-ink2); --txt3:var(--bf-ink3);
  --ln:var(--bf-line); --ln2:var(--bf-line2);
  --teal:var(--bf-brand); --teal2:var(--bf-brand-dark); --teal3:var(--bf-brand-mid);
  --gold:var(--bf-brand); --gold2:rgba(5,86,93,.45); --gold3:rgba(5,86,93,.08);
  --mint:var(--bf-brand); --accent:var(--bf-brand); --accent-soft:rgba(5,86,93,.25);
  --brand:var(--bf-brand); --brand-hi:var(--bf-brand-dark);
  --paper:var(--bf-bg-alt); --paper-ink:var(--bf-ink); --paper-ink2:var(--bf-ink2);
  --paper-brand:var(--bf-brand); --paper-ln:var(--bf-line); --paper-card:#fff;
  --hero-shade:var(--bf-shade);
  /* short names used by the simple article/course template */
  --d:var(--bf-bg); --d2:var(--bf-bg-alt); --t:var(--bf-ink); --t2:var(--bf-ink2); --g:var(--bf-brand);
  --glow-teal:0 8px 24px rgba(5,86,93,.14);
  --shadow-sm:0 2px 8px rgba(14,42,45,.08);
  --shadow-md:0 14px 34px rgba(14,42,45,.12);
  --shadow-lg:0 24px 50px rgba(14,42,45,.16);
}

/* ---- Base ---- */
html{background:var(--bf-bg)}
body{background:var(--bf-bg) !important;color:var(--bf-ink);font-family:var(--font-body) !important}
h1,h2,h3,h4,h5,h6{font-family:var(--font-display) !important}
input,select,textarea,button{font-family:var(--font-body)}
::selection{background:var(--bf-brand);color:#fff}
:focus-visible{outline:2px solid var(--bf-brand)}
.cur-dot,.cur-ring{display:none !important}
body{cursor:auto !important}

/* ---- Text on photos: banners keep a dark photo overlay with light text ---- */
.photo-hero{
  --txt:#fff; --txt2:rgba(255,255,255,.88); --txt3:rgba(255,255,255,.72);
  --ln:rgba(255,255,255,.22); --ln2:rgba(255,255,255,.4);
  --teal:var(--bf-brand-light); --teal2:#d3ecea; --gold:var(--bf-brand-light); --accent:var(--bf-brand-light); --mint:var(--bf-brand-light);
  --t:#fff; --t2:rgba(255,255,255,.88); --g:var(--bf-brand-light);
  color:#fff;
}
.photo-hero .lab-cta,.photo-hero .btn-gold,.photo-hero .btn-primary,.photo-hero .cta:not(.ghost){background:#fff !important;color:var(--bf-brand) !important;border-color:#fff !important}
.photo-hero .lab-cta.ghost,.photo-hero .btn-ghost{background:transparent !important;color:#fff !important;border:1px solid rgba(255,255,255,.6) !important}

/* =====================================================================
   SHARED HEADER
   ===================================================================== */
nav#navbar.bf-nav{
  position:sticky !important; top:0; left:0; right:0; z-index:500;
  display:flex !important; align-items:center; justify-content:space-between; gap:1.5rem;
  height:74px; padding:0 clamp(1rem,4vw,3rem) !important; margin:0;
  background:rgba(255,255,255,.96) !important; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--bf-line) !important; box-shadow:none;
  font-family:var(--font-body); transform:none !important;
}
nav#navbar.bf-nav.scrolled{box-shadow:0 4px 18px rgba(14,42,45,.07)}
nav#navbar.bf-nav .bf-logo{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--bf-brand);flex:0 0 auto}
nav#navbar.bf-nav .bf-logo img{width:42px;height:42px;display:block}
nav#navbar.bf-nav .bf-word{display:flex;flex-direction:column;line-height:1}
nav#navbar.bf-nav .bf-word small{font-size:.58rem;font-weight:600;letter-spacing:.42em;margin-bottom:.28rem;color:var(--bf-brand)}
nav#navbar.bf-nav .bf-word b{font-size:1.08rem;font-weight:800;letter-spacing:.06em;color:var(--bf-brand)}
nav#navbar.bf-nav .bf-links{display:flex;align-items:center;gap:clamp(.9rem,1.6vw,1.6rem)}
nav#navbar.bf-nav .bf-links a{font-size:.9rem !important;font-weight:500;letter-spacing:0 !important;text-transform:none !important;color:var(--bf-ink) !important;text-decoration:none;padding:.4rem 0;border:0;background:none;position:relative;white-space:nowrap}
nav#navbar.bf-nav .bf-links a:hover,nav#navbar.bf-nav .bf-links a.active{color:var(--bf-brand) !important}
nav#navbar.bf-nav .bf-links a.active::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--bf-brand);border-radius:2px}
nav#navbar.bf-nav .bf-links a.bf-cta{background:var(--bf-brand) !important;color:#fff !important;padding:.7rem 1.2rem;border-radius:999px;font-weight:600}
nav#navbar.bf-nav .bf-links a.bf-cta:hover{background:var(--bf-brand-dark) !important}
nav#navbar.bf-nav .bf-links a.bf-cta::after{display:none}
nav#navbar.bf-nav .bf-ham{display:none;width:44px;height:44px;border:0;background:none;padding:0;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:44px}
nav#navbar.bf-nav .bf-ham span{display:block;width:24px;height:2px;background:var(--bf-brand);border-radius:2px;transition:transform .25s,opacity .25s}
nav#navbar.bf-nav .bf-ham.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
nav#navbar.bf-nav .bf-ham.open span:nth-child(2){opacity:0}
nav#navbar.bf-nav .bf-ham.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Mobile menu */
#navMobile.bf-mob{
  display:flex !important; flex-direction:column; gap:0;
  position:fixed !important; top:74px; left:0; right:0; bottom:0; z-index:499;
  padding:1rem clamp(1rem,5vw,2rem) 2rem !important; background:#fff !important;
  overflow-y:auto; opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .2s,transform .2s,visibility .2s; border:0;
}
#navMobile.bf-mob.open{opacity:1;visibility:visible;transform:none}
#navMobile.bf-mob a{display:block;padding:1rem .25rem !important;font-size:1.1rem !important;font-weight:600;letter-spacing:0 !important;text-transform:none !important;color:var(--bf-ink) !important;text-decoration:none;border-bottom:1px solid var(--bf-line) !important;background:none}
#navMobile.bf-mob a.active{color:var(--bf-brand) !important}
#navMobile.bf-mob a.bf-cta{margin-top:1.25rem;text-align:center;border:0 !important;border-radius:999px;background:var(--bf-brand) !important;color:#fff !important}
@media (max-width:1080px){
  nav#navbar.bf-nav .bf-links{display:none !important}
  nav#navbar.bf-nav .bf-ham{display:flex}
}
@media (min-width:1081px){#navMobile.bf-mob{display:none !important}}

/* =====================================================================
   SHARED FOOTER
   ===================================================================== */
footer#footer.bf-foot{
  display:block !important; position:relative; overflow:hidden; margin:0;
  background:var(--bf-brand) !important; color:rgba(255,255,255,.82) !important;
  padding:clamp(3rem,6vw,4.5rem) clamp(1rem,4vw,3rem) 2rem !important; border:0 !important;
  font-family:var(--font-body); text-align:left; font-size:.95rem;
}
footer#footer.bf-foot .bf-foot-grid{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2.5rem}
footer#footer.bf-foot .bf-foot-brand img{width:140px;height:auto;display:block;margin-bottom:1rem}
footer#footer.bf-foot .bf-foot-brand p{color:rgba(255,255,255,.82);line-height:1.7;max-width:34ch;margin:0}
footer#footer.bf-foot h4{font-size:.8rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#fff;margin:0 0 1rem}
footer#footer.bf-foot ul{list-style:none;padding:0;margin:0;display:grid;gap:.6rem}
footer#footer.bf-foot a{color:rgba(255,255,255,.86) !important;text-decoration:none;font-size:.95rem}
footer#footer.bf-foot a:hover{color:#fff !important;text-decoration:underline}
footer#footer.bf-foot .bf-foot-bottom{max-width:1180px;margin:2.75rem auto 0;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.2);display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.85rem;color:rgba(255,255,255,.7)}
@media (max-width:860px){footer#footer.bf-foot .bf-foot-grid{grid-template-columns:1fr 1fr}footer#footer.bf-foot .bf-foot-brand{grid-column:1/-1}}
@media (max-width:480px){footer#footer.bf-foot .bf-foot-grid{grid-template-columns:1fr}}

/* Old decorative leftovers */
.footer-watermark,.hero-geo,.eq-geo{display:none !important}

/* Booking pop-up logo */
.bf-modal-logo{display:flex;align-items:center;gap:.6rem;font-weight:700;color:var(--bf-brand);font-size:1rem}
.bf-modal-logo img{width:34px;height:34px;display:block}
.photo-hero{--sand:var(--bf-brand-light);--sand-soft:rgba(159,214,210,.5)}

/* Related-guide cards on course and learn pages */
main .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1.5rem}
main .cards>a.card{display:flex;flex-direction:column;gap:.35rem;text-decoration:none;color:var(--bf-ink);background:var(--bf-bg-alt);border:1px solid var(--bf-line);border-radius:12px;padding:1.25rem 1.35rem;transition:border-color .2s,transform .2s}
main .cards>a.card:hover{border-color:var(--bf-brand);transform:translateY(-2px)}
main .cards>a.card strong{color:var(--bf-brand);font-weight:700}
main .cards>a.card span{color:var(--bf-ink2);font-size:.95rem;line-height:1.55}
.photo-hero .offer-pill{background:rgba(3,38,42,.55) !important}

/* =====================================================================
   ONE BUTTON STYLE (pill) across every page
   ===================================================================== */
a.cta,.btn,.btn-primary,.btn-ghost,.btn-gold,.btn-outline,.btn-sm,.btn-wa,.lab-cta,.bk-btn-primary,.bk-btn-back,
.trip-cta,.cc-cta,.cb-cta,.mob-card-cta,.sticky-cta-btn,.exp-card-cta,.eq-submit button,.price-card .lab-cta,
button[type="submit"]{border-radius:999px !important;font-weight:600;letter-spacing:.01em}
a.cta:not(.ghost),.btn-primary,.btn-gold,.lab-cta:not(.ghost),.bk-btn-primary,.eq-submit button,button[type="submit"]{background-color:var(--bf-brand);color:#fff}
a.cta:not(.ghost):hover,.btn-primary:hover,.btn-gold:hover,.lab-cta:not(.ghost):hover,.bk-btn-primary:hover,.eq-submit button:hover{background-color:var(--bf-brand-dark)}

/* Trip pages: on phones the banner text sits under the photo, on a dark brand band */
@media (max-width:760px){.hero.photo-hero:has(.hero-media){background:rgb(var(--bf-shade)) !important}}
.photo-hero .facts li{background:rgba(3,38,42,.55) !important;color:#fff}

/* Wide tables scroll inside the article on phones instead of widening the page */
@media (max-width:680px){table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}

/* =====================================================================
   ONE CALL TO ACTION: "Book now" button, booking band, booking page
   ===================================================================== */
.bf-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:.85rem 1.8rem;border:0;border-radius:999px;background:var(--bf-brand);color:#fff !important;font:600 1rem/1 var(--font-body);text-decoration:none;cursor:pointer;transition:background .2s,transform .2s}
.bf-btn:hover{background:var(--bf-brand-dark);transform:translateY(-1px)}
.bf-btn:disabled{opacity:.7;cursor:default;transform:none}
.bf-book-eyebrow{font-size:.8rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--bf-brand);margin:0 0 .9rem}
.bf-book-alt{font-size:.92rem;color:var(--bf-ink2);margin:1.1rem auto 0}
.bf-book-alt a{color:var(--bf-brand);font-weight:600}

section.bf-book{background:var(--bf-bg-alt);border-top:1px solid var(--bf-line);border-bottom:1px solid var(--bf-line);padding:clamp(3.5rem,7vw,5.5rem) clamp(1rem,4vw,3rem);text-align:center}
.bf-book-inner{max-width:640px;margin:0 auto}
.bf-book h2{font-size:clamp(1.8rem,3.5vw,2.6rem);font-weight:700;line-height:1.15;color:var(--bf-ink);margin:0 0 .9rem}
.bf-book-inner>p:not(.bf-book-eyebrow):not(.bf-book-alt){color:var(--bf-ink2);font-size:1.05rem;line-height:1.7;margin:0 auto 1.75rem;max-width:52ch}

.bf-bookpage{max-width:1120px;margin:0 auto;padding:clamp(2.5rem,6vw,5rem) clamp(1rem,4vw,3rem) clamp(3.5rem,7vw,6rem);display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,5vw,4.5rem);align-items:start}
.bf-bookpage h1{font-size:clamp(2rem,4vw,3rem);font-weight:700;line-height:1.1;color:var(--bf-ink);margin:0 0 1rem}
.bf-bookpage-intro>p{color:var(--bf-ink2);line-height:1.75;font-size:1.05rem}
.bf-bookpage-points{list-style:none;padding:0;margin:1.5rem 0 0;display:grid;gap:.6rem}
.bf-bookpage-points li{position:relative;padding-left:1.6rem;color:var(--bf-ink);font-weight:500}
.bf-bookpage-points li::before{content:"";position:absolute;left:0;top:.45em;width:.75rem;height:.4rem;border-left:2px solid var(--bf-brand);border-bottom:2px solid var(--bf-brand);transform:rotate(-45deg)}
.bf-bookpage-intro .bf-book-alt{margin-left:0}
.bf-form{display:grid;grid-template-columns:1fr 1fr;gap:1rem;background:#fff;border:1px solid var(--bf-line);border-radius:16px;padding:clamp(1.25rem,3vw,2rem);box-shadow:var(--shadow-md)}
.bf-field{display:flex;flex-direction:column;gap:.4rem}
.bf-field span{font-size:.85rem;font-weight:600;color:var(--bf-ink)}
.bf-field input,.bf-field select,.bf-field textarea{width:100%;font:inherit;font-size:1rem;color:var(--bf-ink);background:var(--bf-bg-alt);border:1px solid var(--bf-line2);border-radius:10px;padding:.8rem .9rem;outline:none;transition:border-color .2s,background .2s}
.bf-field input:focus,.bf-field select:focus,.bf-field textarea:focus{border-color:var(--bf-brand);background:#fff}
.bf-full{grid-column:1/-1}
.bf-form .bf-btn{width:100%;margin-top:.25rem}
.bf-form-note{font-size:.85rem;color:var(--bf-ink3);text-align:center;margin:0}
@media (max-width:860px){.bf-bookpage{grid-template-columns:1fr}}
@media (max-width:520px){.bf-form{grid-template-columns:1fr}}

/* About: community */
section.bf-community{background:var(--bf-bg-alt);padding:clamp(3.5rem,7vw,5.5rem) clamp(1rem,4vw,3rem);border-top:1px solid var(--bf-line)}
.bf-community-inner{max-width:1100px;margin:0 auto}
.bf-community h2{font-size:clamp(1.8rem,3.5vw,2.6rem);font-weight:700;line-height:1.15;color:var(--bf-ink);margin:0 0 .9rem}
.bf-community-inner>p{color:var(--bf-ink2);font-size:1.05rem;line-height:1.7;max-width:60ch}
.bf-community-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2rem}
.bf-community-grid>div{background:#fff;border:1px solid var(--bf-line);border-radius:14px;padding:1.5rem}
.bf-community-grid h3{font-size:1.1rem;font-weight:700;color:var(--bf-brand);margin:0 0 .5rem}
.bf-community-grid p{color:var(--bf-ink2);line-height:1.65;margin:0}
@media (max-width:760px){.bf-community-grid{grid-template-columns:1fr}}
.bf-field[hidden]{display:none !important}
/* Home course cards: readable small text on photos */
.course-card.photo-hero .cc-title span,.course-card.photo-hero .cc-meta{color:rgba(255,255,255,.85) !important}

/* =====================================================================
   SHARED PAGE BUILDING BLOCKS (homepage first; reused in step 6)
   ===================================================================== */
.bf-wrap{max-width:1180px;margin:0 auto}
.bf-narrow{max-width:760px}
.bf-sec{padding:clamp(3.5rem,7vw,6rem) clamp(1rem,4vw,3rem)}
.bf-sec-alt{background:var(--bf-bg-alt)}
.bf-sec h2,.bf-hero h1{font-family:var(--font-display);color:var(--bf-ink);letter-spacing:-.01em;margin:0}
.bf-sec h2{font-size:clamp(1.8rem,3.4vw,2.6rem);font-weight:700;line-height:1.15;margin-bottom:1rem}
.bf-eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--bf-brand);margin:0 0 .9rem}
.bf-lead{font-size:1.08rem;line-height:1.75;color:var(--bf-ink2);max-width:60ch;margin:0 0 1.75rem}
.bf-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem}
.bf-btn-ghost{background:transparent !important;border:1.5px solid currentColor;color:var(--bf-brand) !important}
.bf-btn-ghost:hover{background:var(--bf-brand-soft) !important}
.bf-link{color:var(--bf-brand);font-weight:600;text-decoration:none;border-bottom:1.5px solid rgba(5,86,93,.3);padding-bottom:2px}
.bf-link:hover{border-color:var(--bf-brand)}
.bf-more{margin:2rem 0 0}

/* Hero */
.bf-hero{position:relative;min-height:min(86vh,760px);display:flex;align-items:flex-end;overflow:hidden;background:rgb(var(--bf-shade))}
.bf-hero-img,.bf-hero-img img{position:absolute;inset:0;width:100%;height:100%}
.bf-hero-img img{object-fit:cover}
.bf-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,38,42,.78) 0%,rgba(3,38,42,.45) 50%,rgba(3,38,42,.1) 100%),linear-gradient(180deg,rgba(3,38,42,0) 50%,rgba(3,38,42,.6) 100%)}
.bf-hero-inner{position:relative;z-index:1;width:100%;max-width:1180px;margin:0 auto;padding:clamp(3rem,8vw,6rem) clamp(1rem,4vw,3rem)}
.bf-hero .bf-eyebrow{color:var(--bf-brand-light)}
.bf-hero h1{color:#fff;font-size:clamp(2.6rem,6vw,4.6rem);font-weight:700;line-height:1.04;margin-bottom:1.1rem}
.bf-hero h1 em{color:var(--bf-brand-light);font-style:italic;font-weight:600}
.bf-hero-lead{color:rgba(255,255,255,.9);font-size:clamp(1.05rem,1.6vw,1.25rem);line-height:1.6;max-width:36ch;margin:0 0 1.5rem}
.bf-hero-offer{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.35rem .9rem;margin:0 0 1.75rem;padding:.65rem 1.1rem;border-radius:999px;background:rgba(3,38,42,.55);border:1px solid rgba(255,255,255,.28);color:#fff;font-size:.95rem;backdrop-filter:blur(6px)}
.bf-hero-offer span::before{content:"·";margin-right:.9rem;opacity:.6}
.bf-hero .bf-btn{background:#fff;color:var(--bf-brand) !important}
.bf-hero .bf-btn:hover{background:var(--bf-brand-soft)}
.bf-hero .bf-btn-ghost{color:#fff !important;border-color:rgba(255,255,255,.7)}
.bf-hero .bf-btn-ghost:hover{background:rgba(255,255,255,.12) !important}

/* Trust strip */
.bf-trust{list-style:none;margin:0;padding:1.4rem clamp(1rem,4vw,3rem);display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem 2.75rem;border-bottom:1px solid var(--bf-line);color:var(--bf-ink2);font-size:.95rem}
.bf-trust strong{color:var(--bf-brand);font-weight:700;margin-right:.25rem}

/* Split section with photos */
.bf-split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.bf-steps{list-style:none;counter-reset:s;padding:0;margin:0 0 1.5rem;display:grid;gap:.9rem}
.bf-steps li{counter-increment:s;display:grid;grid-template-columns:2.2rem 1fr;column-gap:.9rem;align-items:start}
.bf-steps li::before{content:counter(s);grid-row:span 2;width:2.2rem;height:2.2rem;border-radius:50%;background:var(--bf-brand-soft);color:var(--bf-brand);font-weight:700;display:flex;align-items:center;justify-content:center}
.bf-steps b{color:var(--bf-ink);font-weight:700}
.bf-steps span{color:var(--bf-ink2);line-height:1.6}
.bf-price-line{font-size:1.05rem;color:var(--bf-ink2);margin:0 0 1.5rem}
.bf-price-line strong{font-size:1.6rem;color:var(--bf-brand);margin-right:.25rem}
.bf-photo-stack{position:relative;padding:0 0 16% 12%}
.bf-photo-stack picture,.bf-photo-stack img{display:block}
.bf-photo-main img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:18px}
.bf-photo-sub{position:absolute;left:0;bottom:0;width:44%}
.bf-photo-sub img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:16px;border:6px solid #fff;box-shadow:var(--shadow-md)}

/* Course levels */
.bf-levels{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.bf-level{display:flex;flex-direction:column;gap:.35rem;background:#fff;border:1px solid var(--bf-line);border-radius:16px;padding:1.5rem;text-decoration:none;color:var(--bf-ink);transition:border-color .2s,transform .2s,box-shadow .2s}
.bf-level:hover{border-color:var(--bf-brand);transform:translateY(-3px);box-shadow:var(--shadow-md)}
.bf-level-n{width:2rem;height:2rem;border-radius:50%;background:var(--bf-brand);color:#fff;font-weight:700;font-size:.9rem;display:flex;align-items:center;justify-content:center;margin-bottom:.6rem}
.bf-level-name{font-size:1.2rem;font-weight:700}
.bf-level-aida{color:var(--bf-brand);font-weight:600;font-size:.92rem}
.bf-level-meta{color:var(--bf-ink2);font-size:.92rem;line-height:1.5;flex:1}
.bf-level-price{font-size:1.6rem;font-weight:700;color:var(--bf-ink);margin-top:.75rem}
.bf-level-link{color:var(--bf-brand);font-weight:600;font-size:.92rem}

/* Cards with photos */
.bf-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;margin-top:1rem}
.bf-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--bf-line);border-radius:16px;overflow:hidden;text-decoration:none;color:var(--bf-ink);transition:transform .2s,box-shadow .2s}
.bf-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.bf-card-img img{display:block;width:100%;height:220px;object-fit:cover}
.bf-card-body{display:flex;flex-direction:column;gap:.4rem;padding:1.35rem 1.4rem 1.5rem}
.bf-card-body b{font-size:1.2rem}
.bf-card-body span{color:var(--bf-ink2);line-height:1.6}
.bf-card-body em{font-style:normal;color:var(--bf-brand);font-weight:600;margin-top:.35rem}

/* People */
.bf-people{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-top:1rem}
.bf-person{display:grid;grid-template-columns:140px 1fr;gap:1.25rem;align-items:center;background:#fff;border:1px solid var(--bf-line);border-radius:16px;padding:1.1rem;text-decoration:none;color:var(--bf-ink)}
.bf-person-img img{display:block;width:140px;height:160px;object-fit:cover;border-radius:12px}
.bf-person>span{display:flex;flex-direction:column;gap:.35rem}
.bf-person b{font-size:1.2rem}
.bf-person em{font-style:normal;color:var(--bf-brand);font-weight:600;font-size:.9rem}
.bf-person>span>span{color:var(--bf-ink2);line-height:1.6;font-size:.95rem}

/* FAQ */
.bf-faq{border-top:1px solid var(--bf-line)}
.bf-faq-item{border-bottom:1px solid var(--bf-line)}
.bf-faq-item summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:1rem;padding:1.15rem 0;font-weight:600;font-size:1.05rem;color:var(--bf-ink)}
.bf-faq-item summary::-webkit-details-marker{display:none}
.bf-faq-item summary::after{content:"+";color:var(--bf-brand);font-size:1.4rem;line-height:1}
.bf-faq-item[open] summary::after{content:"–"}
.bf-faq-item p{color:var(--bf-ink2);line-height:1.7;margin:0 0 1.25rem}

@media (max-width:980px){
  .bf-levels{grid-template-columns:1fr 1fr}
  .bf-cards{grid-template-columns:1fr 1fr}
  .bf-split{grid-template-columns:1fr}
  .bf-photo-stack{max-width:520px}
  .bf-people{grid-template-columns:1fr}
}
@media (max-width:640px){
  .bf-hero{min-height:auto}
  .bf-hero::after{background:linear-gradient(180deg,rgba(3,38,42,.35) 0%,rgba(3,38,42,.78) 70%)}
  .bf-hero-inner{padding-top:9rem}
  .bf-levels,.bf-cards{grid-template-columns:1fr}
  .bf-trust{justify-content:flex-start;gap:.6rem 1.5rem}
  .bf-person{grid-template-columns:96px 1fr}
  .bf-person-img img{width:96px;height:120px}
  .bf-hero .bf-actions .bf-btn{flex:1 1 100%}
}
/* Base reset for pages built only on site.css */
*,*::before,*::after{box-sizing:border-box}
body{margin:0}

/* =====================================================================
   3-SECOND SCROLL RULE: shorter pages, swipe rows on phones
   ===================================================================== */
.bf-sec{padding:clamp(2.75rem,5.5vw,4.75rem) clamp(1rem,4vw,3rem)}
section.bf-book{padding:clamp(2.75rem,5.5vw,4.5rem) clamp(1rem,4vw,3rem)}
.bf-dots{display:none}
@media (max-width:640px){
  .bf-swipe{display:flex !important;overflow-x:auto;scroll-snap-type:x mandatory;gap:.85rem;margin-right:-1rem;padding:0 1rem .25rem 0;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .bf-swipe::-webkit-scrollbar{display:none}
  .bf-swipe>*{flex:0 0 82%;scroll-snap-align:start}
  .bf-people.bf-swipe>*{flex-basis:88%}
  .bf-dots{display:flex;justify-content:center;gap:.4rem;margin-top:.9rem}
  .bf-dots i{width:7px;height:7px;border-radius:50%;background:var(--bf-line2);transition:width .25s,background .25s}
  .bf-dots i.on{width:20px;border-radius:4px;background:var(--bf-brand)}
  .bf-sec h2{font-size:1.65rem}
  .bf-lead{font-size:1rem;margin-bottom:1.25rem}
  .bf-hero-inner{padding-top:6.5rem;padding-bottom:2.25rem}
  .bf-hero h1{font-size:2.4rem}
  .bf-hero-lead{font-size:1rem;margin-bottom:1.1rem}
  .bf-hero-offer{font-size:.85rem;margin-bottom:1.25rem}
  .bf-hero .bf-actions .bf-btn{flex:1 1 0}
  .bf-trust{display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1rem;padding:1rem;font-size:.85rem}
  .bf-photo-stack{padding:0;max-width:none}
  .bf-photo-sub{display:none}
  .bf-photo-main img{aspect-ratio:16/9;border-radius:14px}
  .bf-steps{gap:.6rem}
  .bf-steps span{font-size:.92rem}
  .bf-card-img img{height:170px}
  .bf-person{grid-template-columns:84px 1fr;padding:.9rem;align-items:start}
  .bf-person-img img{width:84px;height:104px}
  .bf-person>span>span{font-size:.88rem}
  .bf-faq-item summary{padding:.95rem 0;font-size:1rem}
  .bf-more{margin-top:1.25rem}
  /* compact footer */
  footer#footer.bf-foot{padding:2.5rem 1rem 1.5rem !important}
  footer#footer.bf-foot .bf-foot-grid{grid-template-columns:1fr 1fr 1fr;gap:1.25rem .75rem}
  footer#footer.bf-foot .bf-foot-brand{grid-column:1/-1;display:flex;align-items:center;gap:1rem}
  footer#footer.bf-foot .bf-foot-brand img{width:72px;margin:0}
  footer#footer.bf-foot .bf-foot-brand p{font-size:.85rem;line-height:1.5}
  footer#footer.bf-foot h4{font-size:.68rem;letter-spacing:.1em;margin-bottom:.6rem}
  footer#footer.bf-foot ul{gap:.45rem}
  footer#footer.bf-foot a{font-size:.82rem}
  footer#footer.bf-foot .bf-foot-bottom{margin-top:1.5rem;padding-top:1rem;font-size:.75rem}
}
@media (max-width:640px){
  .bf-photo-stack .bf-photo-sub{display:none}
  .bf-hero .bf-actions .bf-btn{white-space:nowrap;padding:.85rem 1rem}
}

/* =====================================================================
   STEP 6: ONE TEMPLATE FOR EVERY PAGE (shared blocks)
   ===================================================================== */
.bf-hero.bf-hero-sm{min-height:min(64vh,560px)}
.bf-hero h1 br+em,.bf-hero h1 em{display:inline}
.bf-crumbs{font-size:.85rem;margin:0 0 1rem;color:var(--bf-ink3)}
.bf-crumbs a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.bf-hero .bf-crumbs{color:rgba(255,255,255,.75)}
.bf-facts{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;padding:0;margin:0 0 1.75rem}
.bf-facts li{font-size:.88rem;font-weight:600;color:#fff;background:rgba(3,38,42,.55);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:.45rem .9rem;backdrop-filter:blur(6px)}
.bf-pagehead{padding-bottom:clamp(1.5rem,3vw,2.5rem)}
.bf-pagehead h1,.bf-article-head h1,.bf-profile-hero h1,.bf-404 h1{font-size:clamp(2.2rem,5vw,3.6rem);font-weight:700;line-height:1.08;color:var(--bf-ink);margin:0 0 1rem;letter-spacing:-.01em}
.bf-pagehead h1 em,.bf-article-head h1 em,.bf-404 h1 em,.bf-sec h2 em{color:var(--bf-brand);font-style:italic}
.bf-two{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:start}
.bf-check{list-style:none;padding:0;margin:0 0 1.5rem;display:grid;gap:.7rem}
.bf-check li{position:relative;padding-left:1.9rem;color:var(--bf-ink);line-height:1.55}
.bf-check li::before{content:"";position:absolute;left:0;top:.15em;width:1.25rem;height:1.25rem;border-radius:50%;background:var(--bf-brand-soft)}
.bf-check li::after{content:"";position:absolute;left:.38rem;top:.47em;width:.5rem;height:.28rem;border-left:2px solid var(--bf-brand);border-bottom:2px solid var(--bf-brand);transform:rotate(-45deg)}
.bf-two .bf-check,.bf-sec>.bf-wrap>.bf-check{grid-template-columns:1fr 1fr;column-gap:2rem}
.bf-info{display:grid;gap:0;margin:0;border-top:1px solid var(--bf-line)}
.bf-info>div{display:grid;grid-template-columns:8.5rem 1fr;gap:1rem;padding:.85rem 0;border-bottom:1px solid var(--bf-line)}
.bf-info dt{font-weight:700;color:var(--bf-ink);font-size:.92rem}
.bf-info dd{margin:0;color:var(--bf-ink2);line-height:1.55}
.bf-photo-stack.bf-single{padding:0}
.bf-photo-stack.bf-single .bf-photo-main img{aspect-ratio:4/3}
.bf-cards:not(.bf-swipe){grid-template-columns:repeat(3,1fr)}
.bf-tcards{display:grid;gap:1rem;margin-top:.5rem}
.bf-cols-2{grid-template-columns:repeat(2,1fr)}.bf-cols-3{grid-template-columns:repeat(3,1fr)}.bf-cols-4{grid-template-columns:repeat(4,1fr)}
.bf-tcard{display:flex;flex-direction:column;gap:.5rem;background:#fff;border:1px solid var(--bf-line);border-radius:16px;padding:1.5rem;text-decoration:none;color:var(--bf-ink)}
.bf-sec-alt .bf-tcard{background:#fff}
.bf-tcard b{font-size:1.1rem;color:var(--bf-brand)}
.bf-tcard span{color:var(--bf-ink2);line-height:1.65}
a.bf-tcard:hover{border-color:var(--bf-brand)}
.bf-next{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.25rem 1.5rem;background:#fff;border:1px solid var(--bf-line);border-radius:18px;padding:1.6rem 1.8rem;text-decoration:none;color:var(--bf-ink);max-width:760px;transition:border-color .2s,box-shadow .2s}
.bf-next:hover{border-color:var(--bf-brand);box-shadow:var(--shadow-md)}
.bf-next .bf-eyebrow{grid-column:1/-1;margin:0}
.bf-next b{font-size:1.35rem}
.bf-next span:not(.bf-eyebrow){color:var(--bf-ink2);grid-column:1}
.bf-next em{grid-column:2;grid-row:2/4;font-style:normal;font-weight:700;color:var(--bf-brand)}
.bf-sessions{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.bf-session{display:flex;flex-direction:column;background:#fff;border:1px solid var(--bf-line);border-radius:18px;overflow:hidden}
.bf-session-body{padding:1.5rem 1.6rem 1.75rem}
.bf-session h3{font-size:1.4rem;margin:0 0 .5rem;color:var(--bf-ink)}
.bf-session-body>p:not(.bf-eyebrow):not(.bf-session-price){color:var(--bf-ink2);line-height:1.65}
.bf-session-price{margin:1rem 0 1.25rem;color:var(--bf-ink2)}
.bf-session-price strong{font-size:2rem;color:var(--bf-brand);margin-right:.25rem}
.bf-session .bf-check{grid-template-columns:1fr}
.bf-profile{display:grid;grid-template-columns:220px 1fr;gap:2rem;align-items:start;padding:1.75rem 0;border-top:1px solid var(--bf-line)}
.bf-profile:first-of-type{border-top:0}
.bf-profile-img img{display:block;width:220px;height:260px;object-fit:cover;border-radius:16px}
.bf-profile b{display:block;font-size:1.5rem;color:var(--bf-ink)}
.bf-profile em{display:block;font-style:normal;color:var(--bf-brand);font-weight:600;margin:.25rem 0 .9rem}
.bf-profile p{color:var(--bf-ink2);line-height:1.75;margin:0 0 .9rem}
.bf-faq-group{font-size:1.2rem !important;margin:2.25rem 0 .75rem !important;color:var(--bf-brand) !important}
.bf-faq-group:first-child{margin-top:0 !important}
.bf-contact{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2rem;justify-content:space-between}
.bf-contact b{font-size:1.2rem;color:var(--bf-ink)}
.bf-contact span{color:var(--bf-ink2);flex:1 1 280px}
.bf-contact a:not(.bf-btn){color:var(--bf-brand);font-weight:600}
.bf-note{margin-top:1.5rem;color:var(--bf-ink2);font-weight:500}
.bf-404{text-align:center;padding:3rem 0}
.bf-404 img{display:block;margin:0 auto 1rem}
.bf-404 .bf-lead{margin-left:auto;margin-right:auto}
.bf-404 .bf-actions{justify-content:center}

/* Articles */
.bf-article-head{padding-bottom:1.5rem}
.bf-article-meta{color:var(--bf-ink3);font-size:.9rem;margin:0}
.bf-article-fig img{display:block;width:100%;height:auto;max-height:440px;object-fit:cover;border-radius:18px}
.bf-prose-sec{padding-top:2rem}
.bf-prose{font-size:1.08rem;line-height:1.8;color:var(--bf-ink)}
.bf-prose>*{max-width:68ch}
.bf-prose p{margin:0 0 1.2rem;color:var(--bf-ink)}
.bf-prose h2{font-size:clamp(1.4rem,2.6vw,1.8rem) !important;font-weight:700;line-height:1.25;margin:2.5rem 0 .9rem !important;color:var(--bf-ink)}
.bf-prose h3{font-size:1.2rem;margin:1.75rem 0 .6rem;color:var(--bf-ink)}
.bf-prose h2 em,.bf-prose h3 em{color:var(--bf-brand)}
.bf-prose ul,.bf-prose ol{padding-left:1.25rem;margin:0 0 1.25rem}
.bf-prose li{margin:.35rem 0}
.bf-prose a{color:var(--bf-brand);font-weight:600}
.bf-prose strong{color:var(--bf-ink)}
.bf-prose blockquote,.bf-prose .pullquote{margin:2rem 0;padding:1.1rem 1.4rem;border-left:3px solid var(--bf-brand);background:var(--bf-bg-alt);border-radius:0 12px 12px 0;font-size:1.15rem;font-style:italic;color:var(--bf-ink)}
.bf-prose .pullquote p{margin:0}
.bf-prose .notice{margin:0 0 1.75rem;padding:1rem 1.25rem;background:var(--bf-brand-soft);border-radius:12px;color:var(--bf-ink)}
.bf-prose table{width:100%;border-collapse:collapse;margin:1.5rem 0 2rem;font-size:.95rem}
.bf-prose th,.bf-prose td{text-align:left;padding:.7rem .8rem;border-bottom:1px solid var(--bf-line);vertical-align:top}
.bf-prose th{background:var(--bf-bg-alt);font-weight:700}
.bf-prose .price-block{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin:1.5rem 0 2rem}
.bf-prose .price-block>div{background:var(--bf-bg-alt);border-radius:14px;padding:1.25rem}
.bf-prose .price-item-tag{font-weight:700;color:var(--bf-brand);margin:0 0 .25rem}
.bf-prose .price-item-n{font-size:1.8rem;font-weight:700;margin:0 0 .25rem}
.bf-prose .price-item-l{font-size:.92rem;color:var(--bf-ink2);margin:0}
.bf-prose img{max-width:100%;height:auto;border-radius:14px}

@media (max-width:980px){
  .bf-two,.bf-sessions{grid-template-columns:1fr}
  .bf-cards:not(.bf-swipe),.bf-cols-3,.bf-cols-4{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .bf-hero.bf-hero-sm{min-height:auto}
  .bf-facts{gap:.35rem;margin-bottom:1.25rem}
  .bf-facts li{font-size:.78rem;padding:.35rem .7rem}
  .bf-cards:not(.bf-swipe),.bf-cols-2{grid-template-columns:1fr}
  .bf-two .bf-check,.bf-sec>.bf-wrap>.bf-check{grid-template-columns:1fr}
  .bf-info>div{grid-template-columns:6.5rem 1fr}
  .bf-profile{grid-template-columns:96px 1fr;gap:1rem}
  .bf-profile-img img{width:96px;height:120px}
  .bf-profile p{font-size:.95rem}
  .bf-next{grid-template-columns:1fr}
  .bf-next em{grid-column:1;grid-row:auto}
  .bf-prose{font-size:1rem}
}
.why h3 small{display:block;font-family:var(--font-body);font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--bf-brand);margin-bottom:.35rem}

/* 3-second rule on the remaining long pages (phones) */
@media (max-width:640px){
  /* Learn hub & related: compact list cards */
  .bf-cards:not(.bf-swipe){gap:.75rem}
  .bf-cards:not(.bf-swipe) .bf-card{display:grid;grid-template-columns:96px 1fr;align-items:stretch}
  .bf-cards:not(.bf-swipe) .bf-card-img img{height:100%;min-height:96px}
  .bf-cards:not(.bf-swipe) .bf-card-body{padding:.8rem .9rem;gap:.2rem}
  .bf-cards:not(.bf-swipe) .bf-card-body b{font-size:.98rem;line-height:1.3}
  .bf-cards:not(.bf-swipe) .bf-card-body>span{display:none}
  .bf-cards:not(.bf-swipe) .bf-card-body em{font-size:.8rem;margin-top:.15rem}
  /* Trip pages: stops, highlights and packages swipe */
  .why.cols-3,.pkgs{display:flex !important;overflow-x:auto;scroll-snap-type:x mandatory;gap:.85rem;margin-right:calc(-1 * var(--gutter,1rem));padding-right:var(--gutter,1rem);scrollbar-width:none}
  .why.cols-3::-webkit-scrollbar,.pkgs::-webkit-scrollbar{display:none}
  .why.cols-3>*,.pkgs>*{flex:0 0 80%;scroll-snap-align:start}
  .bf-tcards.bf-cols-4.bf-swipe>*,.bf-tcards.bf-cols-3.bf-swipe>*{flex-basis:78%}
}
@media (max-width:640px){
  .bf-cards:not(.bf-swipe) .bf-card-img{position:relative;display:block;min-height:96px}
  .bf-cards:not(.bf-swipe) .bf-card-img img{position:absolute;inset:0;width:100%;height:100%;min-height:0}
}

/* Dive-depth scroll indicator (rope + descending diver), same as the original homepage, in brand colours */
.dive-rope-panel{position:fixed;top:0;right:0;width:120px;height:100%;z-index:90;pointer-events:none;overflow:hidden}
.dr-rope{position:absolute;right:34px;top:112px;bottom:88px;width:2px;background:linear-gradient(180deg,rgba(5,86,93,.04),rgba(5,86,93,.25) 12%,rgba(5,86,93,.25) 88%,rgba(5,86,93,.04))}
.dr-tick{position:absolute;right:0;width:120px;display:flex;align-items:center;justify-content:flex-end;gap:7px;padding-right:25px;transition:opacity .3s}
.dr-tick-label{font-family:var(--font-body);font-size:.8rem;font-weight:600;letter-spacing:.02em;color:rgba(14,42,45,.4);white-space:nowrap;transition:color .3s;background:rgba(255,255,255,.75);border-radius:4px;padding:0 3px}
.dr-dash{width:9px;height:1px;background:rgba(5,86,93,.35);transition:background .3s,width .3s}
.dr-tick.on .dr-tick-label{color:var(--bf-brand)}
.dr-tick.on .dr-dash{background:var(--bf-brand);width:15px}
.dr-diver{position:absolute;right:6px;top:112px;width:82px;height:82px;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 2px 5px rgba(5,86,93,.25));transition:top .08s linear;z-index:2}
.dr-bubble{position:absolute;border-radius:50%;border:1px solid rgba(5,86,93,.35);background:rgba(5,86,93,.06)}
@media(max-width:820px){.dive-rope-panel{width:62px;overflow:visible}.dr-rope{right:22px}.dr-tick{width:62px;padding-right:16px}.dr-tick-label{display:none}.dr-dash{width:6px}.dr-diver{right:-8px;width:58px;height:58px}}
@media(prefers-reduced-motion:reduce){.dive-rope-panel{display:none}}

/* quick answer box (AEO) */
.bf-answer-sec{padding-top:2.25rem;padding-bottom:0}
.bf-answer{border-left:4px solid var(--bf-brand);background:#e3eff0;border-radius:0 14px 14px 0;padding:1.1rem 1.3rem}
.bf-answer-q{font-weight:700;color:var(--bf-ink);margin:0 0 .4rem;font-size:1.02rem}
.bf-answer-a{margin:0;color:var(--bf-ink);line-height:1.6}
.bf-article-meta a{color:var(--bf-brand);font-weight:600}
/* article author box (E-E-A-T) */
.bf-author-sec{padding-top:0}
.bf-author{display:flex;gap:1.1rem;align-items:flex-start;border-top:1px solid var(--bf-line);padding-top:1.6rem}
.bf-author-img img{width:72px;height:72px;border-radius:50%;object-fit:cover;object-position:center 25%}
.bf-author p{margin:0 0 .35rem;line-height:1.6}
.bf-author-name{font-weight:700;color:var(--bf-ink)}
.bf-author a{color:var(--bf-brand);font-weight:600}
