:root{--navy:#023047;--deep:#014f86;--blue:#0077b6;--aqua:#00b4d8;--mint:#caf0f8;--sand:#fff8e7;--coral:#ffb703;--white:#fff;--ink:#14313f;--muted:#5f7884;--soft:#f3fbfe;--radius:22px;--shadow:0 24px 60px rgba(2,48,71,.16);--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.6}img,video{max-width:100%;display:block}a{color:inherit;text-decoration:none}.container{width:min(var(--max),calc(100% - 40px));margin:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;z-index:9999;left:16px;top:16px;padding:10px 14px;background:#fff;color:#000;transform:translateY(-150%)}.skip-link:focus{transform:none}
.topbar{background:var(--navy);color:#dff8ff;font-size:.9rem}.topbar-inner{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:8px 0}.topbar a{color:#fff}
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.95);border-bottom:1px solid #e7f4f8;backdrop-filter:blur(12px);transition:.25s}.site-header.scrolled{box-shadow:0 10px 30px rgba(2,48,71,.12)}.header-inner{min-height:88px;display:flex;align-items:center;gap:25px}.brand{width:82px}.brand img{width:82px;height:78px;object-fit:contain}.primary-nav{margin-left:auto;display:flex;align-items:center;gap:24px;color:var(--navy);font-weight:750}.primary-nav a:hover{color:var(--blue)}.menu-toggle{display:none;background:none;border:0;width:44px;height:44px;padding:10px}.menu-toggle span:not(.sr-only){display:block;height:2px;background:var(--navy);margin:5px}
.button{border:0;font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border-radius:999px;background:var(--coral);color:#241900;font-weight:850;box-shadow:0 12px 28px rgba(255,183,3,.28);transition:.2s}.button:hover{transform:translateY(-2px);filter:brightness(.98)}.button-small{min-height:44px;padding:0 18px;font-size:.92rem}.button-ghost{background:#fff;color:var(--navy);border:1px solid rgba(255,255,255,.75);box-shadow:none}.button-sand{background:#fff;color:var(--navy)}.button-dark{background:var(--navy);color:#fff;box-shadow:none}.header-cta{white-space:nowrap}
.hero{min-height:720px;position:relative;display:grid;align-items:center;overflow:hidden;color:#fff;background:var(--navy)}.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.75}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,48,71,.9),rgba(2,48,71,.47),rgba(2,48,71,.1)),linear-gradient(0deg,rgba(2,48,71,.4),transparent 55%)}.hero-content{position:relative;z-index:2;padding:90px 0}.hero-content>*{max-width:760px}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.82rem;font-weight:900;color:var(--coral);margin:0 0 14px}.eyebrow.dark{color:var(--blue)}.hero h1{font-family:inherit;font-size:clamp(2.8rem,6vw,5.8rem);line-height:.96;letter-spacing:-.045em;margin:0 0 22px;max-width:900px}.hero-copy{font-size:clamp(1.05rem,1.7vw,1.28rem);max-width:650px;color:#e9fbff}.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.trust-strip{background:#fff}.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:-46px;position:relative;z-index:4}.trust-grid div{background:#fff;border-radius:18px;padding:20px;box-shadow:var(--shadow);color:var(--navy)}.trust-grid strong,.trust-grid span{display:block}.trust-grid strong{font-size:.98rem}.trust-grid span{font-size:.86rem;color:var(--muted);margin-top:4px}
.section{padding:88px 0}.section-light{background:linear-gradient(110deg,var(--soft),#fff)}.section-blue{background:linear-gradient(90deg,var(--navy),var(--blue));color:#fff}.section-sand{background:linear-gradient(110deg,#fffaf0,var(--sand))}.section-experiences{background:#fff}#packages{background:linear-gradient(90deg,#153c5a 0%,#356fa8 100%)}.section-courses{background:#fff}.section-charter{background:linear-gradient(90deg,#fffaf0 0%,#ffefca 100%)}.section-dive-sites{background:#fff}.section-about{background:linear-gradient(120deg,#eef8fd 0%,#deedf7 100%)}.testimonials.section-blue{background:linear-gradient(90deg,#183d5b 0%,#477bb7 100%)}.section-booking{background:#fff}.section-faq{background:linear-gradient(105deg,#fffaf0 0%,#ffedc9 100%)}.section-heading{margin-bottom:38px}.section-heading h2,.feature-copy h2,.charter-copy h2,.story-copy h2,.faq-grid h2{font-family:inherit;font-size:clamp(2rem,4vw,3.4rem);line-height:1.05;letter-spacing:-.035em;margin:0;color:var(--navy)}.section-blue h2,.charter-copy h2{color:#fff}.section-heading p{color:var(--muted);font-size:1.08rem}.split-heading{display:grid;grid-template-columns:1.15fr .85fr;align-items:end;gap:40px}.centered{text-align:center;max-width:800px;margin-left:auto;margin-right:auto}
.card-grid{display:grid;gap:22px}.card-grid-3{grid-template-columns:repeat(3,1fr)}.visual-card{min-height:470px;border-radius:var(--radius);overflow:hidden;position:relative;background-image:linear-gradient(0deg,rgba(2,48,71,.96),rgba(2,48,71,.08) 72%),var(--card-image);background-size:cover;background-position:center;box-shadow:0 14px 36px rgba(2,48,71,.12);display:flex;align-items:flex-end;color:#fff;transition:.25s}.visual-card:hover{transform:translateY(-7px)}.visual-card-content{padding:28px}.card-kicker{text-transform:uppercase;letter-spacing:.14em;font-weight:850;font-size:.75rem;color:var(--coral)}.visual-card h3{font-family:inherit;font-size:1.75rem;line-height:1.1;margin:6px 0 10px}.price-row{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.25);padding-top:17px;margin-top:18px}.text-link{display:inline-flex;gap:10px;font-weight:850;margin-top:18px;color:var(--coral)}
.feature-split{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:48px}.feature-reverse .feature-media{order:2}.image-frame{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);background:#fff}.image-frame img{width:100%;aspect-ratio:4/3;object-fit:cover}.feature-copy p{font-size:1.08rem;color:rgba(255,255,255,.86)}.dark-copy p{color:var(--muted)}.check-list{list-style:none;padding:0;margin:25px 0}.check-list li{padding:9px 0 9px 30px;position:relative}.check-list li:before{content:"✓";position:absolute;left:0;color:var(--coral);font-weight:900}.course-path{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:26px 0}.course-path span{background:#fff;padding:10px 14px;border-radius:999px;font-weight:800;box-shadow:0 8px 22px rgba(2,48,71,.08)}
.charter-section{background:linear-gradient(90deg,#fffaf0 0%,#ffefca 100%)}.charter-panel{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:48px}.charter-copy{padding:0}.charter-copy .eyebrow{color:var(--blue)}.charter-copy h2{color:var(--navy)}.charter-copy p{color:var(--muted);font-size:1.08rem}.charter-image{order:-1;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);background:#fff}.charter-image img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.charter-facts{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0}.charter-facts span{padding:8px 12px;border:1px solid #b9dfe9;border-radius:999px;color:var(--navy);background:#fff}
.site-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.site-tile{border-radius:var(--radius);overflow:hidden;background:#fff;border:1px solid #e1f2f7;box-shadow:0 14px 36px rgba(2,48,71,.08);transition:.2s}.site-tile:hover{transform:translateY(-5px)}.site-tile img{width:100%;aspect-ratio:4/3;object-fit:cover}.site-tile span{display:block;padding:22px}.site-tile strong,.site-tile small{display:block}.site-tile strong{font-size:1.22rem;color:var(--navy)}.site-tile small{color:var(--muted)}
.story-section{background:linear-gradient(120deg,#eef8fd 0%,#deedf7 100%)}.story-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}.story-copy{order:1}.story-image{order:2}.dark-link{color:var(--blue)}.light-heading p{color:rgba(255,255,255,.78)}.quote-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.quote-grid blockquote{margin:0;padding:28px;background:#fff;color:var(--ink);border-radius:20px;box-shadow:0 12px 30px rgba(2,48,71,.16)}.quote-grid p{font-size:1.12rem}.quote-grid footer{color:var(--blue);font-size:.86rem;font-weight:700}
.booking-section{background:#fff}.booking-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.booking-grid a{background:#fff;border:1px solid #e1f2f7;border-radius:18px;padding:21px;min-height:155px;box-shadow:0 10px 26px rgba(2,48,71,.08);transition:.2s}.booking-grid a:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(2,48,71,.14)}.booking-grid span,.booking-grid strong,.booking-grid small{display:block}.booking-grid span{font-size:.72rem;color:var(--blue);font-weight:900}.booking-grid strong{font-size:1.08rem;margin:20px 0 5px;color:var(--navy)}.booking-grid small{color:var(--muted)}
.faq-section{background:linear-gradient(105deg,#fffaf0 0%,#ffedc9 100%)}.faq-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:60px}.accordion-item{background:#fff;border:1px solid #e1f2f7;border-radius:16px;margin-bottom:12px;padding:0 18px}.accordion-item button{width:100%;display:flex;justify-content:space-between;padding:19px 0;border:0;background:none;text-align:left;font-size:1.04rem;font-weight:850;color:var(--navy)}.accordion-item button span{font-size:1.35rem}.accordion-item>div{display:grid;grid-template-rows:0fr;transition:.25s}.accordion-item>div p{overflow:hidden;margin:0;color:var(--muted)}.accordion-item.open>div{grid-template-rows:1fr}.accordion-item.open>div p{padding-bottom:19px}
.site-footer{background:var(--navy);color:#dff8ff;padding:58px 0 25px}.footer-grid{display:grid;grid-template-columns:1.4fr .75fr 1fr 1fr;gap:36px;align-items:start}.footer-brand h2{font-size:1.25rem;letter-spacing:0;text-transform:none;color:#fff}.footer-grid h2{font-size:.92rem;text-transform:uppercase;letter-spacing:.12em;color:var(--coral);margin:0 0 10px}.footer-grid a,.footer-grid p{display:block;color:#dff8ff;margin:8px 0}.footer-grid .button{border:0;font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:auto;color:#241900;margin:14px 0 0}.footer-bottom{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.16);padding-top:20px;margin-top:42px;font-size:.82rem;color:#99d8e8}
@media(max-width:980px){.primary-nav,.header-cta{display:none}.menu-toggle{display:block;margin-left:auto}.primary-nav.open{display:flex;position:absolute;top:90px;left:20px;right:20px;background:#fff;padding:22px;border-radius:18px;box-shadow:var(--shadow);flex-direction:column;align-items:flex-start;color:var(--navy)}.trust-grid{grid-template-columns:repeat(2,1fr)}.card-grid-3,.site-grid,.quote-grid{grid-template-columns:1fr 1fr}.feature-split,.story-grid,.faq-grid{grid-template-columns:1fr;gap:38px}.feature-copy,.story-copy,.charter-copy{order:1}.feature-media,.feature-reverse .feature-media,.story-image,.charter-image{order:2}.booking-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr 1fr}.charter-panel{grid-template-columns:1fr;gap:38px}.split-heading{grid-template-columns:1fr}}
@media(max-width:640px){.container{width:min(100% - 28px,var(--max))}.topbar-inner{display:block}.topbar-inner span{display:block}.topbar-inner span+span{margin-top:5px}.section{padding:64px 0}.header-inner{min-height:76px}.brand,.brand img{width:66px;height:64px}.hero{min-height:650px}.hero h1{font-size:3rem}.hero-content{padding:72px 0}.hero-actions{flex-direction:column;align-items:stretch}.trust-grid,.card-grid-3,.site-grid,.quote-grid,.footer-grid{grid-template-columns:1fr}.trust-grid{margin-top:-30px}.visual-card{min-height:420px}.feature-split{gap:30px}.story-copy{order:1}.story-image{order:2}.charter-copy{order:1}.charter-image{order:2}.booking-grid{grid-template-columns:1fr}.booking-grid a{min-height:128px}.footer-bottom{flex-direction:column;gap:8px}.section-heading h2,.feature-copy h2,.charter-copy h2,.story-copy h2,.faq-grid h2{font-size:2.35rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}.hero-video{display:none}.hero{background:url("../images/hero-poster.svg") center/cover}}


/* Full-site extensions — Build v0.3 */
.page-hero{background:linear-gradient(115deg,var(--navy),#0d668f);color:#fff;padding:92px 0 82px}.page-hero h1{font-size:clamp(2.6rem,5.5vw,5rem);line-height:1;letter-spacing:-.045em;margin:0 0 18px;max-width:900px}.page-hero p:not(.eyebrow){max-width:760px;font-size:1.15rem;color:#dff8ff}.narrow{max-width:850px}.top-gap{margin-top:64px}.section-cta{text-align:center;margin-top:34px}.section-cta.light .button{box-shadow:none}.table-wrap{overflow-x:auto;margin:24px 0 36px;border:1px solid #dfeef3;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(2,48,71,.06)}table{width:100%;border-collapse:collapse;min-width:680px}th,td{text-align:left;padding:16px 18px;border-bottom:1px solid #e4f1f5;vertical-align:top}th{background:#eef8fc;color:var(--navy);font-size:.85rem;text-transform:uppercase;letter-spacing:.06em}tbody tr:last-child td{border-bottom:0}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:34px 0}.info-card{background:#fff;border:1px solid #dfeef3;border-radius:20px;padding:26px;box-shadow:0 10px 28px rgba(2,48,71,.08)}.info-card h3{color:var(--navy);margin-top:0}.info-card .table-wrap{box-shadow:none;margin-bottom:0}.callout{background:linear-gradient(110deg,#fff9e9,#ffedc9);border-radius:22px;padding:30px;margin:40px 0}.callout h3{margin-top:0;color:var(--navy)}.button-ghost-dark{background:#fff;color:var(--navy);border:1px solid #aacbd7;box-shadow:none}.big-price{font-size:2rem;font-weight:900;color:var(--navy)}.course-cards{display:grid;grid-template-columns:1.5fr .75fr;gap:24px;margin:30px 0}.agency-note{border-left:5px solid var(--coral);padding:18px 22px;background:#fff8e7;border-radius:10px;margin-bottom:38px}.elearning-panel{display:flex;align-items:center;justify-content:space-between;gap:28px;background:linear-gradient(110deg,#eef8fd,#dceff7);border-radius:22px;padding:30px;margin:42px 0}.site-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.site-detail{padding:24px;border:1px solid #dfeef3;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(2,48,71,.07)}.site-detail h3{color:var(--navy);margin:10px 0}.tag{display:inline-block;padding:5px 10px;border-radius:999px;background:#eaf7fb;color:var(--deep);font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.reviews-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.review-card{background:#fff;border:1px solid #dfeef3;border-radius:22px;padding:28px;box-shadow:0 12px 34px rgba(2,48,71,.08)}.review-card h3{margin:7px 0 14px;color:var(--navy)}.review-card footer{display:flex;flex-direction:column;border-top:1px solid #e3eef2;padding-top:17px;margin-top:20px;color:var(--blue)}.stars{color:#ffb703;letter-spacing:.12em;font-size:1.15rem;font-weight:900}.translation{border-left:4px solid #b9dfe9;padding-left:15px;margin-top:20px;color:var(--muted)}.review-links{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:34px}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.gallery-grid figure{margin:0;background:#fff;border-radius:20px;overflow:hidden;border:1px solid #dfeef3;box-shadow:0 10px 28px rgba(2,48,71,.08)}.gallery-grid img{width:100%;aspect-ratio:4/3;object-fit:cover}.gallery-grid figcaption{padding:16px 18px;font-weight:800;color:var(--navy)}.warning{background:#eef8fd;border:1px solid #b9dfe9;border-radius:16px;padding:18px 22px;margin-bottom:30px}.contact-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:38px;align-items:start}.contact-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:28px}.contact-cards>a,.contact-cards>div{border:1px solid #dfeef3;border-radius:18px;padding:20px;background:#fff}.contact-cards strong,.contact-cards span{display:block}.contact-cards strong{color:var(--navy)}.contact-cards span{color:var(--muted);margin-top:4px}.booking-grid-wide{grid-template-columns:repeat(4,1fr)}.number-list{padding-left:22px}.number-list li{margin:10px 0}.fine-print{font-size:.9rem;color:var(--muted)}.success-panel{padding:50px 28px;border-radius:24px;background:#eef8fd}.success-icon{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:0 auto 20px;background:#d7f4e7;color:#126b49;font-size:2rem;font-weight:900}.booking-ref{font-weight:900;color:var(--navy)}.legal-name{font-size:inherit;font-family:inherit;color:#99d8e8!important}.review-mini p{white-space:pre-line}.page-hero+.section{padding-top:76px}
@media(max-width:980px){.site-detail-grid,.gallery-grid{grid-template-columns:repeat(2,1fr)}.reviews-grid,.course-cards,.contact-grid{grid-template-columns:1fr}.booking-grid-wide{grid-template-columns:repeat(2,1fr)}.elearning-panel{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.info-grid,.contact-cards,.site-detail-grid,.gallery-grid,.reviews-grid,.booking-grid-wide{grid-template-columns:1fr}.page-hero{padding:70px 0 58px}.page-hero h1{font-size:2.7rem}.table-wrap{margin-left:-4px;margin-right:-4px}.elearning-panel{padding:24px}}


/* Desktop QA corrections — Build v0.3 */
.section-cta-left{text-align:left}
.course-section-cta{margin-bottom:58px}
.course-section-cta + .section-heading{margin-top:0}
.review-links-left{justify-content:flex-start}
.home-review-carousel{position:relative}
.review-carousel-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.review-carousel-cards .review-card[hidden]{display:none}
.testimonials .review-card{height:100%;color:var(--ink)}
.testimonials .review-card footer{display:flex;flex-direction:column;border-top:1px solid #e3eef2;padding-top:17px;margin-top:20px;color:var(--blue)}
.carousel-controls{display:flex;align-items:center;gap:12px;margin-top:22px;color:#fff;font-weight:800}
.carousel-button{width:42px;height:42px;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font:inherit;font-weight:900;cursor:pointer}
.carousel-button:hover{background:#fff;color:var(--navy)}
.homepage-gallery{background:#fff}
.gallery-teaser-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.gallery-teaser-grid a{display:block;border-radius:20px;overflow:hidden;border:1px solid #dfeef3;background:#fff;box-shadow:0 10px 28px rgba(2,48,71,.08);transition:.2s}
.gallery-teaser-grid a:hover{transform:translateY(-4px)}
.gallery-teaser-grid img{width:100%;aspect-ratio:4/3;object-fit:cover}
.gallery-teaser-grid strong{display:block;padding:16px 18px;color:var(--navy)}
.site-detail-with-image{padding:0;overflow:hidden;display:flex;flex-direction:column}
.site-detail-with-image>img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#eef8fc}
.site-detail-body{padding:22px 24px 24px;flex:1}
.site-detail-body h3{margin:10px 0}
.gallery-open{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.gallery-open img{transition:transform .25s}
.gallery-open:hover img{transform:scale(1.02)}
.gallery-lightbox{width:min(1100px,calc(100% - 36px));max-height:92vh;padding:0;border:0;border-radius:22px;background:#071d2a;color:#fff;box-shadow:0 30px 90px rgba(0,0,0,.45);overflow:hidden}
.gallery-lightbox::backdrop{background:rgba(0,18,29,.82)}
.gallery-lightbox figure{margin:0;display:grid;grid-template-rows:minmax(0,1fr) auto;height:min(82vh,820px)}
.gallery-lightbox img{width:100%;height:100%;min-height:0;object-fit:contain;background:#071d2a}
.gallery-lightbox figcaption{padding:14px 70px 18px;text-align:center;font-weight:800}
.gallery-close,.gallery-nav{position:absolute;z-index:2;border:0;background:rgba(255,255,255,.92);color:var(--navy);width:44px;height:44px;border-radius:50%;font:inherit;font-size:1.7rem;cursor:pointer;display:grid;place-items:center}
.gallery-close{right:14px;top:14px}.gallery-prev{left:14px;top:50%;transform:translateY(-50%)}.gallery-next{right:14px;top:50%;transform:translateY(-50%)}
.form-rule{margin-top:0;margin-bottom:18px}
@media(max-width:980px){.review-carousel-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-teaser-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.review-carousel-cards{grid-template-columns:1fr}.gallery-teaser-grid{grid-template-columns:1fr}.gallery-lightbox figcaption{padding-left:54px;padding-right:54px}.course-section-cta{margin-bottom:46px}}


/* Additional desktop corrections — Build v0.3 */
.course-major-heading{margin-top:64px}
.course-section-cta{display:flex;width:max-content;margin-top:8px;margin-bottom:58px}
.elearning-cta{white-space:nowrap;align-self:flex-end}
.gallery-close,.gallery-nav{display:flex;align-items:center;justify-content:center;line-height:1;padding:0;font-size:0}
.gallery-close::before{content:"×";font-size:1.45rem;line-height:1;transform:translateY(-1px)}
.gallery-prev::before{content:"‹";font-size:1.75rem;line-height:1;transform:translateY(-2px)}
.gallery-next::before{content:"›";font-size:1.75rem;line-height:1;transform:translateY(-2px)}
@media(max-width:980px){.elearning-cta{align-self:flex-start}}
@media(max-width:640px){.course-major-heading{margin-top:52px}.course-section-cta{margin-bottom:46px}}

/* v0.5 — course medical questionnaire actions: two stacked buttons, aligned with SDI eLearning CTA */
.medical-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:28px;row-gap:22px}
.medical-panel-copy{min-width:0}
.medical-panel-copy p{margin-bottom:0}
.medical-form-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:215px}
.medical-form-button{display:flex;justify-content:center;align-items:center;white-space:nowrap;min-height:46px;text-align:center;box-shadow:none}
@media(max-width:980px){.medical-panel{grid-template-columns:1fr}.medical-form-actions{align-items:flex-start}.medical-form-button{min-width:215px}}
@media(max-width:640px){.medical-form-actions{width:100%}.medical-form-button{width:100%}}


/* v0.5.3 — mobile typography, tables, cards, and consistent actions. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 106px; }
/* Allow nested grid and flex children, especially Course sections, to shrink. */
.section .container, .section-heading, .info-grid > *, .course-cards > *, .elearning-panel > *, .contact-grid > *, .site-detail-grid > *, .booking-grid > * { min-width: 0; }
.section-heading h2, .section-heading p, .info-card, .callout, .elearning-panel, .course-cards,
.course-cards p, .course-cards h2, .course-cards h3, .page-hero p, .booking-grid a {
  overflow-wrap: break-word;
}
/* Consistent sizing and horizontal alignment for the three course resource buttons. */
.elearning-cta, .medical-form-button { width: 260px; max-width: 100%; min-height: 52px; text-align: center; white-space: normal; }
.medical-form-actions { width: 260px; min-width: 0; }
.elearning-cta { flex-shrink: 0; margin-left: auto; }
/* All tables stay fully readable on desktop. Cards below are the same rows/data, not a second dataset. */
@media (max-width: 900px) {
  .responsive-cards { border: 0; box-shadow: none; background: transparent; overflow: visible; margin: 24px 0 36px; }
  .responsive-cards table { display: block; width: 100%; min-width: 0; }
  .responsive-cards thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .responsive-cards tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .responsive-cards tbody tr { display: flex; flex-direction: column; min-width: 0; border: 1px solid #dfeef3; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 7px 18px rgba(2,48,71,.06); }
  .responsive-cards tbody td { display: block; width: 100%; min-width: 0; padding: 7px 18px; border: 0; background: transparent; overflow-wrap: anywhere; }
  .responsive-cards tbody td:first-child { background: #eef8fc; color: var(--navy); padding: 15px 18px; font-weight: 850; font-size: 1.075rem; line-height: 1.35; }
  .responsive-cards tbody td:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .74rem; letter-spacing: .065em; text-transform: uppercase; font-weight: 850; color: var(--muted); }
  .responsive-cards tbody td:nth-child(2) { padding-top: 14px; }
  .responsive-cards tbody td:last-child { padding-bottom: 17px; }
  .responsive-cards tbody td:first-child:last-child { padding-bottom: 15px; }
  .responsive-cards tbody td strong { font-weight: 850; color: var(--navy); }
  /* Agency requirements sit adjacent to each other, with price on a full-width final line. */
  .specialty-cards tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specialty-cards tbody td:first-child { grid-column: 1 / -1; }
  .specialty-cards tbody td:nth-child(2), .specialty-cards tbody td:nth-child(3) { padding-top: 14px; padding-bottom: 9px; }
  .specialty-cards tbody td:nth-child(4) { grid-column: 1 / -1; border-top: 1px solid #e4f1f5; padding-top: 12px; }
  /* iPhone landscape must not jump to desktop-sized headings or a different body size. */
  .section-heading h2, .feature-copy h2, .charter-copy h2, .story-copy h2, .faq-grid h2 { font-size: 2.35rem; }
  .page-hero h1 { font-size: 2.7rem; }
  .hero h1 { font-size: 3rem; }
  .medical-panel { grid-template-columns: minmax(0, 1fr); }
  .elearning-panel { flex-direction: column; align-items: stretch; }
  .elearning-cta, .medical-form-actions, .medical-form-button { width: 100%; max-width: none; }
  .elearning-cta { align-self: stretch; margin-left: 0; }
  .medical-form-actions { align-items: stretch; }
  .course-section-cta { max-width: 100%; width: fit-content; white-space: normal; }
  .button { max-width: 100%; white-space: normal; }
}
@media (max-width: 640px) {
  .course-cards, .info-card, .callout { min-width: 0; }
  .medical-panel { padding: 24px; }
  .course-section-cta { margin-bottom: 46px; }
}
@media (min-width: 901px) {
  .medical-form-actions { margin-left: auto; }
}
/* Prevent sticky header from obscuring destinations linked to sections. */
[id] { scroll-margin-top: 108px; }


/* v0.5.4 — each training program is ONE mobile card, not one card per detail row.
   Desktop tables remain unchanged. The first course already has an .info-card container. */
.mobile-course-card-heading { display: none; }
@media (max-width: 900px) {
  .course-detail-group {
    background: #fff;
    border: 1px solid #dfeef3;
    border-radius: 18px;
    box-shadow: 0 7px 18px rgba(2,48,71,.06);
    overflow: hidden;
    margin: 24px 0 36px;
  }
  .course-detail-group > .mobile-course-card-heading {
    display: block;
    margin: 0;
    padding: 15px 18px;
    font-size: 1.075rem;
    line-height: 1.35;
    font-weight: 850;
    color: var(--navy);
    background: #eef8fc;
  }
  .course-detail-group > .table-wrap.responsive-cards {
    margin: 0;
  }
  .course-detail-group .responsive-cards tbody,
  .course-inline-details.responsive-cards tbody {
    display: block;
  }
  .course-detail-group .responsive-cards tbody tr,
  .course-inline-details.responsive-cards tbody tr {
    display: block;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #e4f1f5;
    background: #fff;
    box-shadow: none;
    padding: 13px 18px;
  }
  .course-detail-group .responsive-cards tbody tr:last-child,
  .course-inline-details.responsive-cards tbody tr:last-child { border-bottom: 0; }
  .course-detail-group .responsive-cards tbody td,
  .course-inline-details.responsive-cards tbody td {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    min-width: 0;
    overflow-wrap: break-word;
  }
  .course-detail-group .responsive-cards tbody td:first-child,
  .course-inline-details.responsive-cards tbody td:first-child {
    padding: 0 0 4px;
    background: transparent;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .055em;
    font-size: .76rem;
    font-weight: 850;
    line-height: 1.4;
  }
  .course-detail-group .responsive-cards tbody td:not(:first-child)::before,
  .course-inline-details.responsive-cards tbody td:not(:first-child)::before {
    content: none;
    display: none;
  }
  /* Discover Scuba details belong within its existing parent info card. */
  .course-inline-details.responsive-cards {
    border: 1px solid #e4f1f5;
    background: #fff;
    margin: 16px 0 22px;
    border-radius: 12px;
    overflow: hidden;
  }
  .course-cards .info-card > h3 {
    color: var(--navy);
    padding: 15px 18px;
    margin: -26px -26px 20px;
    background: #eef8fc;
    border-radius: 18px 18px 0 0;
    font-size: 1.075rem;
    line-height: 1.35;
  }
}

/* v0.5.4 — native iOS Safari/Chrome date fields: same width and left alignment
   as text inputs, while preserving the device's native calendar control. */







/* v0.5.6 — coherent mobile card system (desktop tables and booking system unchanged).
   One service/course per card. Uniform price-first data, flat pale-blue separators,
   normal-weight values, and SDI/PADI adjacent with NO separator within their row. */
@media (max-width: 900px) {
  /* The card layout is shared by Experiences, Packages, and the course comparison tables. */
  .responsive-cards tbody td:not(:first-child) {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .responsive-cards:not(.specialty-cards):not(.course-inline-details) tbody td:nth-child(n/**/+3) {
    border-top: 1px solid #e4f1f5;
  }
  .responsive-cards tbody td:not(:first-child)::before {
    margin-bottom: 4px;
  }
  .responsive-cards tbody td strong {
    font-weight: 400;
    color: var(--ink);
  }
  /* Two small packages don't carry an extra benefit; don't display an empty benefit section. */
  .responsive-cards .empty-benefit { display: none; }

  /* First Aid: PRICE precedes AGENCY, but the desktop table order stays unchanged. */
  .first-aid-cards tbody tr { display: flex; flex-direction: column; }
  .first-aid-cards tbody td:first-child { order: 0; }
  .first-aid-cards tbody td:nth-child(3) {
    order: 1;
    border-top: 0 !important;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .first-aid-cards tbody td:nth-child(2) {
    order: 2;
    border-top: 1px solid #e4f1f5;
    padding-top: 14px;
    padding-bottom: 16px;
  }

  /* Specialties: title -> price -> thin line -> SDI | PADI side by side.
     The agency labels stay directly above their dives: no dividing line inside this row. */
  .specialty-cards tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .specialty-cards tbody td:first-child { grid-column: 1 / -1; grid-row: 1; }
  .specialty-cards tbody td:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 2;
    border: 0;
    border-bottom: 1px solid #e4f1f5;
    padding: 14px 18px;
  }
  .specialty-cards tbody td:nth-child(2),
  .specialty-cards tbody td:nth-child(3) {
    grid-row: 3;
    border: 0;
    padding: 14px 18px 16px;
  }
  .specialty-cards tbody td:nth-child(2) { grid-column: 1; }
  .specialty-cards tbody td:nth-child(3) { grid-column: 2; }

  /* Discover Scuba previously had an additional bordered card INSIDE its course card.
     Flatten it into one continuous white panel, with the same fine dividers as Rescue. */
  .course-cards .discover-mobile-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
  }
  .course-cards .discover-mobile-card > h3 {
    margin: 0;
    border-radius: 0;
    padding: 15px 18px;
  }
  .course-cards .discover-mobile-card > p {
    margin: 0;
    padding: 16px 18px;
  }
  .course-cards .discover-mobile-card > p:first-of-type {
    border-bottom: 1px solid #e4f1f5;
  }
  .course-cards .discover-mobile-card > p:nth-of-type(2) {
    border-top: 1px solid #e4f1f5;
  }
  .course-cards .discover-mobile-card > p strong { font-weight: 400; }
  .course-cards .discover-mobile-card > .course-inline-details {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: transparent;
    overflow: visible;
  }
  .discover-mobile-card .course-inline-details.responsive-cards tbody tr {
    padding: 14px 18px;
    border-bottom: 1px solid #e4f1f5;
  }
  .discover-mobile-card .course-inline-details.responsive-cards tbody tr:last-child {
    border-bottom: 0;
  }
  .course-cards .discover-mobile-card > .button {
    align-self: flex-start;
    margin: 0 18px 20px;
  }

  /* Scuba Refresher: the same header and data style; price first, not oversized or bold. */
  .course-cards .refresher-mobile-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
  }
  .course-cards .refresher-mobile-card > h3 {
    margin: 0;
    border-radius: 0;
    padding: 15px 18px;
    order: 0;
  }
  .course-cards .refresher-mobile-card > .big-price {
    order: 1;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    margin: 0;
    padding: 14px 18px 16px;
    border-bottom: 1px solid #e4f1f5;
  }
  .course-cards .refresher-mobile-card > .big-price::before {
    content: "Price";
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .055em;
    font-size: .76rem;
    font-weight: 850;
  }
  .course-cards .refresher-mobile-card > p:not(.big-price) {
    order: 2;
    margin: 0;
    padding: 16px 18px;
  }
  .course-cards .refresher-mobile-card > .button {
    order: 3;
    align-self: flex-start;
    margin: 0 18px 20px;
  }
}

/* v0.5.7 — full-width Discover Scuba and Scuba Refresher course sections.
   Same desktop table + one mobile card system as Open Water / Rescue. */
.course-description { margin: 0 0 18px; }
.course-intro-heading { margin-bottom: 24px; }
@media (max-width: 900px) {
  /* Professional programs use PROGRAM (header), PRICE, then AGENCY, like First Aid. */
  .professional-cards tbody tr { display: flex; flex-direction: column; }
  .professional-cards tbody td:first-child { order: 0; }
  .professional-cards tbody td:nth-child(3) {
    order: 1;
    border-top: 0 !important;
    padding: 14px 18px;
  }
  .professional-cards tbody td:nth-child(2) {
    order: 2;
    border-top: 1px solid #e4f1f5;
    padding: 14px 18px 16px;
  }
}

/* v0.5.8 — consistent course note presentation and DPV footnote */
.course-notes { margin: 16px 0 0; }
.course-notes .course-note { margin: 0 0 10px; }
.course-notes .course-note:last-child { margin-bottom: 0; }
.course-fee-note { margin: 14px 0 0; }
.note-ref { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.note-ref:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }


/* v0.5.9 — Courses page: understated note marker, consistent note typography and rhythm.
   Changes scoped to .courses-content to avoid changing other site layouts. */
.courses-content .note-ref,
.courses-content .note-ref:link,
.courses-content .note-ref:visited,
.courses-content .note-ref:hover {
  color: inherit;
  text-decoration: none;
  border: 0;
  box-shadow: none;
}
/* Notes sit closer to the table/card, but CTAs breathe below the final note. */
.courses-content .course-detail-group > .table-wrap { margin-bottom: 18px; }
.courses-content .first-aid-cards,
.courses-content .professional-cards,
.courses-content .specialty-cards { margin-bottom: 18px; }
.courses-content .course-notes { margin-top: 0; }
.courses-content .course-notes .course-note,
.courses-content .course-note.course-fee-note {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}
.courses-content .course-notes .course-note { margin: 0 0 10px; }
.courses-content .course-notes .course-note:last-child { margin-bottom: 0; }
.courses-content .table-wrap + .course-note.course-fee-note { margin-top: 0; }
.courses-content .course-notes + .course-section-cta,
.courses-content .course-note.course-fee-note + .course-section-cta {
  margin-top: 24px;
}
@media (max-width: 900px) {
  /* At mobile widths the five first tables are one consolidated card. */
  .courses-content .course-detail-group { margin-bottom: 18px; }
}


/* v0.5.10 — consistent desktop/mobile header: Book by menu, no added sticky height. */
.mobile-header-cta { display: none; }
@media (max-width: 980px) {
  .header-inner { gap: 14px; }
  .brand { flex: 0 0 auto; }
  .mobile-header-cta {
    display: inline-flex;
    margin-left: auto;
    min-height: 42px;
    padding: 0 18px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .menu-toggle { margin-left: 0; flex: 0 0 44px; }
  .primary-nav.open { top: calc(100% + 1px); }
}
@media (max-width: 640px) {
  /* Blue location line scrolls away; only the existing white header stays sticky. */
  .topbar-inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; padding: 7px 0; }
  .topbar-inner > span:first-child {
    display: block;
    font-size: clamp(.68rem, 3vw, .9rem);
    white-space: nowrap;
    line-height: 1.35;
  }
  .topbar-inner > span:last-child { display: none; }
  .header-inner { gap: 9px; }
  .mobile-header-cta { padding: 0 16px; min-height: 42px; }
}

/* v0.5.10 — Dive Packages two CTAs have a real gap, without extra empty lines. */
.package-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 640px) {
  .package-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* v0.5.11 — course reservation is pending; informational course pages remain accessible. */
.booking-grid > .booking-card-disabled { background:#f5f8f9; border:1px dashed #c9d9df; border-radius:18px; padding:21px; min-height:155px; box-shadow:none; cursor:default; }
.booking-grid .booking-card-disabled > span, .booking-grid .booking-card-disabled > strong, .booking-grid .booking-card-disabled > small { display:block; }
.booking-grid .booking-card-disabled > span {font-size:.72rem; color:#54778b; font-weight:900; }
.booking-grid .booking-card-disabled > strong {font-size:1.08rem; margin:20px 0 5px; color:#4e6774; }
.booking-grid .booking-card-disabled > small {color:#66808d; }
.button-disabled, .button-disabled:hover { background:#e7eef2; color:#526a78; box-shadow:none; cursor:default; transform:none; filter:none; }
@media (max-width:640px) { .booking-grid > .booking-card-disabled {min-height:128px;} }

/* v0.5.11 — extra primary-nav item remains comfortable on smaller desktops. */
@media (min-width:981px) and (max-width:1200px) {
  .primary-nav { gap:14px; font-size:.94rem; }
  .header-inner { gap:14px; }
  .brand, .brand img { width:70px; }
  .brand img { height:74px; }
}

/* v0.5.14: The text links inside Contact page paragraphs are inline prose,
   not standalone CTA links. Remove the generic 18px top margin that caused
   a large line-height gap when the link wrapped between lines. */
.contact-copy > p .text-link {
  display: inline;
  margin-top: 0;
}

/* v0.5.15 — Contact actions first in mobile visual/keyboard reading order.
   Desktop placement is configured separately in v0.5.20 below. */
@media (max-width: 980px) {
  .contact-page-content .contact-action-card {
    display: flex;
    flex-direction: column;
  }
  .contact-page-content .contact-inquiry-choice { order: 1; }
  .contact-page-content .contact-reservation-choice { order: 2; }
  .contact-page-content .contact-example-questions { order: 3; }
  .contact-page-content .contact-example-questions .check-list {
    margin: 18px 0 0 !important;
  }
}
@media (max-width: 640px) {
  .contact-page-content.section { padding-top: 32px; }
}

/* v0.5.16 — Contact mobile: inquiry examples belong immediately below the inquiry CTA;
   the booking CTA follows the four examples. Hide prose duplicated by the action card. */
@media (max-width: 980px) {
  .contact-page-content .contact-inquiry-choice { order: 1; }
  .contact-page-content .contact-example-questions { order: 2; }
  .contact-page-content .contact-reservation-choice { order: 3; }
  .contact-page-content .contact-copy > p { display: none; }
  .contact-page-content .contact-copy .contact-cards { margin-top: 0; }
}

/* v0.5.20 — Clear, distinct phone and WhatsApp links site-wide. No icons.
   On mobile, the short action labels replace the previous location strapline. */
.topbar-contact-methods {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.topbar-contact-methods .contact-label-mobile { display: none; }
.topbar-contact-methods a { text-decoration: none; }
.topbar-contact-methods a:hover,
.topbar-contact-methods a:focus-visible { text-decoration: underline; }
.topbar-contact-separator { color: #dff8ff; }
@media (max-width: 980px) {
  .topbar-inner { display: flex; justify-content: center; align-items: center; }
  .topbar-inner > span:first-child { display: none; }
  .topbar-inner > span.topbar-contact-methods {
    display: inline-flex;
    margin: 0;
    gap: 14px;
    padding: 0;
  }
  .topbar-contact-methods .contact-label-desktop { display: none; }
  .topbar-contact-methods .contact-label-mobile { display: inline; }
}

/* v0.5.20 — Contact us: primary inquiry/booking choices left on desktop,
   six full-width, vertically stacked contact-method cards on the right.
   The explanatory paragraphs have been removed from HTML on all devices. */
.contact-page-content .contact-cards {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}
@media (min-width: 981px) {
  .contact-page-content .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 30px;
  }
  .contact-page-content .contact-grid > .contact-action-card {
    grid-column: 1;
    grid-row: 1;
  }
  .contact-page-content .contact-grid > .contact-copy {
    grid-column: 2;
    grid-row: 1;
  }
}

/* v0.5.21 — Contact information labels: keep Email and Address as plain text,
   including on iOS Safari where Data Detectors may otherwise insert styling. */
.contact-page-content .contact-cards .contact-plain-card {
  min-width: 0;
}
.contact-page-content .contact-cards .contact-plain-card strong,
.contact-page-content .contact-cards .contact-plain-card span,
.contact-page-content .contact-cards .contact-plain-card a,
.contact-page-content .contact-cards .contact-plain-card a[x-apple-data-detectors] {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-decoration-line: none !important;
}
.contact-page-content .contact-cards .contact-plain-card strong {
  color: var(--navy) !important;
}
.contact-page-content .contact-cards .contact-plain-card span,
.contact-page-content .contact-cards .contact-plain-card span a {
  color: var(--muted) !important;
}


/* v0.5.22 — clearer paths to trust, booking help and important information.
   Desktop header links stay as originally designed; mobile sections only show
   inside the expanded navigation. */
.mobile-nav-heading,.mobile-nav-only { display:none; }
@media (max-width: 980px) {
  .primary-nav.open {
    max-height: calc(100dvh - 114px);
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 0;
    padding: 16px 20px 20px;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav.open .mobile-nav-heading {
    display: block;
    width: 100%;
    padding: 15px 0 6px;
    margin: 12px 0 4px;
    border-top: 1px solid #e1eff5;
    color: #486a7c;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
    line-height: 1.35;
    text-transform: uppercase;
  }
  .primary-nav.open .mobile-nav-heading:first-child { padding-top: 4px; margin-top: 0; border-top: 0; }
  .primary-nav.open a { display: block; width: 100%; padding: 9px 0; line-height: 1.45; }
  .primary-nav.open .mobile-nav-book { font-weight: 850; color: #015b88; }
}
/* v0.5.23 — four balanced footer columns: brand, explore, helpful info, contact & booking. */
@media (min-width: 981px) {
  .site-footer .footer-grid { grid-template-columns: 1.35fr .82fr 1fr 1.30fr; gap: 28px; }
}
.site-footer .footer-grid > div { min-width: 0; }
.site-footer .footer-grid a { overflow-wrap: anywhere; }
/* Contextual links are supplementary, not new booking CTAs. */
.helpful-next-links { margin-top: 30px; padding: 22px 24px; border: 1px solid #dcecf2; border-radius: 17px; background: #f6fbfd; }
.helpful-next-links h3 { margin: 0 0 9px; font-size: 1.05rem; color: var(--navy); }
.helpful-next-links-row { display: flex; flex-wrap: wrap; gap: 9px 23px; }
.helpful-next-links-row a, .booking-help-links a, .homepage-reviews-link a { color: #015b88; font-weight: 750; text-decoration: underline; text-decoration-color: #b6dce9; text-underline-offset: 4px; }
.helpful-next-links-row a:hover,.booking-help-links a:hover,.homepage-reviews-link a:hover { text-decoration-color: currentColor; }
.booking-help-links { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 7px 20px; margin: 0 0 26px; color: var(--navy); font-size: .95rem; }
.booking-help-links-home { margin: 16px 0 22px; }
.homepage-reviews-link { margin: 20px 0 6px; }
.section-blue .homepage-reviews-link a { color: #fff; text-decoration-color: rgba(255,255,255,.65); }
.about-review-link { margin-top: 22px; }
@media (max-width: 640px) {
  .helpful-next-links { padding: 19px 18px; }
  .helpful-next-links-row { flex-direction: column; gap: 10px; }
  .booking-help-links { justify-content: flex-start; gap: 8px 17px; }
}

/* v0.5.23 — Mobile navigation: visually distinct category bands and dividers.
   Does not alter desktop header navigation or the hamburger's behavior. */
@media (max-width: 980px) {
  .primary-nav.open { padding: 14px 18px 18px; }
  .primary-nav.open .mobile-nav-heading {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 15px 0 5px;
    padding: 10px 12px;
    border-top: none;
    border-radius: 9px;
    background-color: #eaf5fa;
    color: #163e55;
    font-size: .84rem;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .065em;
    text-transform: uppercase;
  }
  .primary-nav.open .mobile-nav-heading:not(:first-child)::before {
    position: absolute;
    top: -9px;
    left: 0;
    right: 0;
    border-top: 1px solid #d9e8ef;
    content: "";
  }
  .primary-nav.open .mobile-nav-heading:first-child {
    padding: 10px 12px;
    margin: 0 0 5px;
  }
  .primary-nav.open a {
    padding: 7px 12px;
    line-height: 1.4;
    border-radius: 6px;
  }
  .primary-nav.open a:hover, .primary-nav.open a:focus-visible {
    background: #f1f8fb;
  }
}


/* v0.5.25 — Private Boat Charter: avoid the global 680px table minimum from
   forcing a wide grid track on mobile. Preserve the two-column desktop layout
   and the same table data and semantics at every screen size. */
.private-charter-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.private-charter-layout > * { min-width: 0; }
.private-charter-details table { min-width: 0; width: 100%; table-layout: fixed; }
.private-charter-details th,
.private-charter-details td { overflow-wrap: break-word; }
.private-charter-details th:first-child,
.private-charter-details td:first-child { width: 31%; }
@media (max-width: 980px) {
  .private-charter-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .private-charter-details th,
  .private-charter-details td { padding: 12px 10px; }
  .private-charter-details th { font-size: .76rem; }
}

/* v0.5.25 — Dive Sites: comfortable pause before the CTA, but unchanged
   checklist-to-concluding-sentence spacing. */
.dive-sites-conclusion + .button { margin-top: 20px; }

/* v0.5.26 — consistent reading-page width, unobstructed site alignment,
   and mobile introduction alignment without changing booking/review cards. */
.reading-page-section .reading-column {
  width: 100%;
  max-width: 1000px;
}



@media (max-width: 640px) {
  .mobile-left-section-heading {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  /* Show critical safety guidance closer to the blue introductory hero. */
  .page-hero + .reading-after-dive { padding-top: 34px; }
}

/* v0.5.27 — location strapline matches white contact details in the topbar. */
.topbar-inner > span:first-child { color: #fff; }

/* v0.5.27 — responsive spacing for active service/booking buttons. */
.feature-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
@media(max-width:640px) { .feature-cta-row { flex-direction: column; align-items: stretch; } .feature-cta-row .button { width: 100%; } }

/* v0.6 — Courses specialty request actions (category-only Formdesk prefill) */
.specialty-category-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:18px 30px;margin:12px 0 60px}
.specialty-choice{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.specialty-choice-label{font-size:.88rem;font-weight:850;color:var(--navy);letter-spacing:.025em}
.specialty-category-actions .course-section-cta{margin:0}
@media(max-width:640px){.specialty-category-actions{flex-direction:column;gap:25px;margin-bottom:50px}}

/* v0.6.4 — one Edge-inspired right-edge QR handoff component.
   The same toggle stays fixed at exactly the same coordinates in both states.
   Left-facing arrow opens; right-facing arrow closes; no floating X button.
   The single shape expands leftwards and downwards, with NO inner scrollbar. */
.qr-transfer{
  position:fixed;top:clamp(132px,14vh,152px);right:0;z-index:1100;
  width:92px;height:62px;
  box-sizing:border-box;overflow:hidden;
  background:#fff;color:var(--navy);
  border:1px solid #d7e5ed;border-right:0;
  border-radius:19px 0 0 19px;
  box-shadow:-8px 9px 28px rgba(2,48,71,.16);
  font-family:inherit;
  transition:width .38s cubic-bezier(.22,.78,.25,1),
             height .38s cubic-bezier(.22,.78,.25,1),
             box-shadow .24s ease;
}
.qr-transfer.is-open{
  width:302px;height:385px;
  box-shadow:-12px 14px 38px rgba(2,48,71,.18);
}
.qr-transfer-tab{
  position:absolute;top:0;right:0;z-index:2;
  width:91px;height:61px;box-sizing:border-box;
  appearance:none;border:0;background:transparent;color:#203444;
  cursor:pointer;padding:0;font:inherit;
}
.qr-transfer-tab:hover .qr-transfer-chevron{color:#3276a8}
.qr-transfer-phone-icon{
  position:absolute;top:18px;right:52px;width:23px;height:23px;
  transition:opacity .15s ease;
}
.qr-transfer.is-open .qr-transfer-phone-icon{opacity:0}
.qr-transfer-tab-label{display:none}
.qr-transfer-chevron{
  position:absolute;top:20px;right:15px;width:20px;height:20px;
  transition:transform .25s ease;
}
.qr-transfer.is-open .qr-transfer-chevron{transform:rotate(180deg)}
.qr-transfer-panel{
  position:absolute;inset:0;box-sizing:border-box;
  overflow:visible; /* do not create an internal scrollbar */
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .09s ease,visibility 0s linear .09s;
}
.qr-transfer.is-open .qr-transfer-panel{
  opacity:1;visibility:visible;pointer-events:auto;
  transition:opacity .22s ease .15s,visibility 0s;
}
.qr-transfer-panel-inner{padding:22px 24px 18px;text-align:center}
.qr-transfer-panel-top{
  display:flex;align-items:center;justify-content:flex-start;
  margin-bottom:13px;text-align:left;
  min-height:24px;
  padding-right:70px; /* leave room for the persistent chevron toggle */
}
.qr-transfer-eyebrow{font-size:.63rem;color:#3276a8;font-weight:900;letter-spacing:.085em}
.qr-transfer-panel h2{
  font-size:1.24rem;line-height:1.22;color:var(--navy);
  margin:0 0 8px;letter-spacing:-.025em;
}
.qr-transfer-panel p{font-size:.82rem;line-height:1.4;color:#506f7c;margin:0 0 12px}
.qr-transfer-code{
  display:flex;justify-content:center;align-items:center;
  margin:0 auto;width:207px;max-width:100%;
  padding:9px;background:#fff;border:1px solid #e4eff4;border-radius:12px;
}
.qr-transfer-code svg{width:100%;height:auto;display:block}
.qr-transfer-tab:focus-visible{outline:3px solid #ffb703;outline-offset:-3px}
@media(max-width:1099px){.qr-transfer{display:none!important}}
@media(max-height:610px) and (min-width:1100px){
 .qr-transfer{top:104px}
 .qr-transfer.is-open{height:320px}
 .qr-transfer-panel-inner{padding:16px 24px 14px}
 .qr-transfer-panel-top{margin-bottom:7px}
 .qr-transfer-panel h2{font-size:1.14rem;margin-bottom:5px}
 .qr-transfer-panel p{font-size:.78rem;line-height:1.25;margin-bottom:8px}
 .qr-transfer-code{width:172px;padding:7px}
}
@media(prefers-reduced-motion:reduce){
 .qr-transfer,.qr-transfer-chevron,.qr-transfer-panel,.qr-transfer-phone-icon{transition:none!important}
}

/* v0.6.1 — separate specialty category tables with ordinary section spacing. */
.equipment-specialties-heading{margin-top:58px}
.equipment-specialty-cards{margin-bottom:16px}
@media(max-width:640px){.equipment-specialties-heading{margin-top:48px}}


/* v0.6.5 — shared information architecture, with click-activated desktop
   disclosure navigation and the existing expanded mobile hamburger structure.
   The desktop header keeps a direct Contact link and the highlighted Book now CTA.
   Hidden navigation variants are display:none (not focusable). */
.desktop-nav{display:flex;align-items:center;gap:clamp(5px,0.8vw,14px)}
.mobile-nav{display:none}
@media (min-width:981px){
  .primary-nav{margin-left:auto;gap:0;min-width:0}
  .desktop-nav-group{position:relative;flex:0 0 auto}
  .desktop-nav-toggle,.desktop-contact-link{
    appearance:none;display:inline-flex;align-items:center;gap:6px;
    padding:10px 8px;border:0;border-radius:9px;
    background:transparent;color:var(--navy);
    font:inherit;font-size:1rem;font-weight:750;line-height:1.3;
    white-space:nowrap;cursor:pointer;text-decoration:none;
  }
  .desktop-nav-toggle:hover,.desktop-contact-link:hover,
  .desktop-nav-toggle:focus-visible,.desktop-contact-link:focus-visible,
  .desktop-nav-toggle[aria-expanded="true"]{
    color:#015b88;background:#eef8fc;
  }
  .desktop-nav-toggle:focus-visible,.desktop-contact-link:focus-visible,
  .desktop-nav-panel a:focus-visible{outline:2px solid #0077b6;outline-offset:2px}
  .desktop-nav-chevron{display:block;flex:none;transition:transform .2s ease}
  .desktop-nav-toggle[aria-expanded="true"] .desktop-nav-chevron{transform:rotate(180deg)}
  .desktop-nav-panel{
    display:none;position:absolute;top:calc(100% + 9px);left:0;
    z-index:1010;min-width:244px;max-width:320px;
    padding:9px;border:1px solid #dcebf2;border-radius:14px;
    background:#fff;box-shadow:0 18px 46px rgba(2,48,71,.16);
    color:var(--navy);
  }
  .desktop-nav-group.is-open .desktop-nav-panel{display:block}
  .desktop-nav-panel a{
    display:block;white-space:nowrap;padding:10px 13px;border-radius:9px;
    font-size:.94rem;font-weight:700;line-height:1.45;
  }
  .desktop-nav-panel a:hover,.desktop-nav-panel a:focus-visible,
  .desktop-nav-panel a[aria-current="page"]{background:#eef8fc;color:#015b88}
  .desktop-contact-link[aria-current="page"]{color:#015b88}
}
@media (min-width:981px) and (max-width:1200px){
  .desktop-nav{gap:2px}
  .desktop-nav-toggle,.desktop-contact-link{font-size:.88rem;padding:9px 5px;gap:4px}
  .desktop-nav-chevron{width:11px;height:11px}
  .header-inner{gap:10px}
}
@media (max-width:980px){
  .primary-nav .desktop-nav{display:none}
  .primary-nav .mobile-nav{display:block;width:100%}
  .primary-nav.open .mobile-nav-contact{
    display:block;margin-top:11px;padding:14px 12px 7px;
    border-top:1px solid #d9e8ef;font-weight:850;color:var(--navy);
  }
}
@media (prefers-reduced-motion:reduce){
  .desktop-nav-chevron{transition:none}
}

/* v0.7: homepage poster-first video, with a gentle transition once playback starts. */
.hero::before{content:"";position:absolute;inset:0;background:#053c58 url("../images/mermaid-divers-aruba-scuba-diving-video-poster.webp?v=0.7.9") center/cover no-repeat;z-index:0}
.hero-video{z-index:0;opacity:0;transition:opacity 1100ms ease;pointer-events:none}
.hero-video.is-playing{opacity:1}
.hero-overlay{z-index:1}
@media(max-width:767px){.hero-video{display:none!important}}
@media(prefers-reduced-motion:reduce){.hero{background:#053c58}.hero-video{display:none!important}}

/* v0.7.1: focus-aware panoramic scene crop for very wide home hero displays.
   Leave medium/laptop video unchanged. Photo-only mobile remains intentional. */
.hero.hero-ultrawide::before{background-image:url("../images/mermaid-divers-aruba-scuba-diving-video-poster-wide.webp?v=0.7.9")}


/* v0.7.3: portrait hero on mobile. Same poster-first transition as desktop.
   Keep the photo visible when a user prefers reduced motion or JS/video is unavailable. */
@media (max-width: 767px) {
  .hero::before {
    background-image: url("../images/mermaid-divers-aruba-scuba-diving-video-poster-mobile.webp?v=0.7.9");
    background-position: 50% 50%;
  }
  .hero .hero-video {
    display: block !important;
    object-fit: cover;
    object-position: 50% 50%;
  }
}
.hero-video-toggle {
  position:absolute;
  right:clamp(16px,3vw,34px);
  bottom:clamp(18px,3vw,30px);
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid rgba(255,255,255,.65);
  border-radius:50%;
  background:rgba(2,48,71,.67);
  color:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.22);
  backdrop-filter:blur(5px);
  font:700 19px/1 Arial,Helvetica,sans-serif;
  cursor:pointer;
  touch-action:manipulation;
}
.hero-video-toggle:hover,.hero-video-toggle:focus-visible {background:rgba(2,48,71,.92)}
.hero-video-toggle:focus-visible {outline:3px solid var(--coral);outline-offset:3px}
.hero-video-toggle[hidden] {display:none!important}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-video {display:none!important}
  .hero-video-toggle {display:none!important}
}

/* v0.7.3.1: When video is playing, it fully replaces the poster;
   no persistent transparent overlay / double exposure.
   The separate hero-overlay still keeps headings readable. */


/* v0.7.3.2: Consistent vector play/pause icons (avoid iOS emoji playback symbols). */
.hero-video-toggle .hero-toggle-icon {width:20px;height:20px;display:block;flex:none;color:inherit}
.hero-video-toggle .hero-toggle-icon .icon-play {display:none}
.hero-video-toggle .hero-toggle-icon .icon-pause {display:block}
.hero-video-toggle.is-paused .hero-toggle-icon .icon-play {display:block}
.hero-video-toggle.is-paused .hero-toggle-icon .icon-pause {display:none}

/* v0.7.4: verified source/orientation-aware, responsive photo cards and site disclosure */

.site-detail-with-image>img,.image-frame img,.charter-image img,.site-tile img,.gallery-grid img,.gallery-teaser-grid img{display:block}


/* v0.7.5 — PHOTOGRAPHY LAYOUT FIX
   IMPORTANT: HTML width/height attributes reserve natural dimensions for CLS,
   but the CSS must explicitly reset height to auto. Otherwise Chromium honors
   the pixel height even when width:100% and aspect-ratio:4/3 are present.
   Keep gallery lightbox independent so it remains full-size/contain. */
.image-frame img,
.charter-image img,
.site-tile img,
.site-detail-with-image > img,
.gallery-teaser-grid img,
.gallery-grid .gallery-open img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4 / 3;
  object-fit:cover;
}


/* v0.7.6 — Popular Experiences photos: use real responsive <img> elements.
   v0.7.5 CSS custom-property background URLs from inline HTML were resolving
   against /assets/css/site.css, not the document, and the browser showed only
   the fallback gradient. The image URLs now resolve from the HTML page itself. */
.section-experiences .visual-card {
  position: relative;
  isolation: isolate;
  background-image: none;
  background-color: #103a53;
}
.section-experiences .visual-card > .visual-card-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.section-experiences .visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(2,48,71,.97) 0%, rgba(2,48,71,.66) 35%, rgba(2,48,71,.12) 78%);
}
.section-experiences .visual-card > .visual-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
}


/* v0.7.7 — Discreet Better Seen Online attribution below the existing footer columns.
   Keep it secondary to Mermaid Divers contact, navigation and booking details. */
.site-footer .footer-credit {
  margin-top:14px;
  text-align:center;
  font-size:.78rem;
  line-height:1.5;
  color:#9bc4d4;
}
.site-footer .footer-credit a {
  color:#bde5ef;
  text-decoration:underline;
  text-decoration-color:rgba(189,229,239,.42);
  text-underline-offset:3px;
}
.site-footer .footer-credit a:hover,
.site-footer .footer-credit a:focus-visible {
  color:#ffffff;
  text-decoration-color:#ffffff;
}


/* v0.7.8/v0.7.9.3 — Real Open Water and Advanced Diver teaching photos.
   At desktop: copy left and two portraits side-by-side to the right.
   At mobile: text first, then Charlie, then Carlos, each with a compact square crop. */
.section-courses .feature-media.image-frame {
  width:min(100%, 480px);
  max-width:480px;
  justify-self:center;
}
.section-courses .feature-media.image-frame img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3 / 4;
  object-fit:cover;
  object-position:center;
}
.course-training-photo-feature {
  display:grid;
  grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);
  gap:clamp(24px,3vw,42px);
  align-items:center;
  margin:24px 0 52px;
  padding:30px clamp(22px,3vw,46px);
  border-radius:22px;
  background:linear-gradient(120deg,#eef8fc,#f7fbfd);
}
.course-training-photo-copy {min-width:0}
.course-training-photo-copy h2 {color:var(--navy);font-size:clamp(1.8rem,2.5vw,2.6rem);line-height:1.12;margin:10px 0 18px}
.course-training-photo-copy p:not(.eyebrow){max-width:55ch;color:var(--muted);line-height:1.7}
.course-training-photo-gallery {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:clamp(14px,1.6vw,22px);
  min-width:0;
}
.course-training-photo {margin:0;min-width:0}
.course-training-photo img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/4;
  object-fit:cover;
  object-position:center;
  border-radius:16px;
  box-shadow:0 12px 26px rgba(2,48,71,.12);
}
.course-training-photo figcaption {font-size:.84rem;color:#486175;margin-top:10px;line-height:1.5}
@media(max-width:980px){
  .course-training-photo-feature {grid-template-columns:1fr;gap:24px}
  .course-training-photo-gallery {width:100%;max-width:680px;justify-self:center}
}
@media(max-width:780px){
  .course-training-photo-feature {margin:20px 0 38px;padding:24px 20px}
  .course-training-photo-gallery {grid-template-columns:1fr;max-width:360px;gap:24px}
  .course-training-photo {width:100%}
  .course-training-photo img {aspect-ratio:1/1;max-height:340px;object-position:center 42%}
}

/* v0.7.9 — Filterable gallery; preserved 4:3 cards, non-stretched images and responsive layout. */
.gallery-filters{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin:0 auto 12px;max-width:1080px}
.gallery-filter{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border-radius:999px;border:1px solid #bdd9e4;background:#fff;color:#123754;font:inherit;font-weight:800;font-size:.95rem;line-height:1.35;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.gallery-filter:hover{background:#e8f4fa;border-color:#76b1c6}
.gallery-filter[aria-pressed="true"]{background:#13334d;color:#fff;border-color:#13334d}
.gallery-filter:focus-visible{outline:3px solid #f5ba19;outline-offset:3px}
.gallery-results-status{text-align:center;color:#5a7584;font-size:.92rem;margin:0 0 30px}
.gallery-grid figure[hidden]{display:none!important}
@media(max-width:640px){.gallery-filters{gap:8px;justify-content:flex-start}.gallery-filter{font-size:.85rem;padding:10px 12px}.gallery-results-status{text-align:left}}

/* v0.7.9.4 — Removed v0.7.9.1 card photo saturation/contrast override.
   Popular Experiences now use the original v0.7.6–v0.7.9 natural-color
   images and original readable bottom-gradient (defined above). */

/* v0.7.9.5 — Rounded Dive Sites disclosure, matching the existing info boxes.
   v0.7.9.5 — iOS WebKit 1px image seam mitigation for the Dive Packages
   image only: preserve the 4:3 layout, then bleed the picture 1px beyond
   its rounded parent to avoid a transient white subpixel gap after reload. */
#packages .feature-media.image-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #174363;
}
#packages .feature-media.image-frame > img {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
}

/* Retain the whole boat instead of cropping the bow and stern to 4:3. */
.section-charter .charter-image img { aspect-ratio: auto; height: auto; }
.gallery-grid .gallery-boat-rendering .gallery-open img { object-fit: contain; background: #eaf3f6; }
