/* Client review updates: shared branding, imagery and readable photo credits. */
:root { --header-height: 176px; }
.brand img { width: 140px; height: 140px; object-fit: contain; }
.brand img, .footer-logo { clip-path: none; }
.footer-logo { width: 140px; height: 140px; object-fit: contain; }
.footer-brand h2 { white-space: nowrap; font-size: clamp(13px, 1.65vw, 29px); }
h1, h2, h3, .display { font-weight: 300; }
.client-photo, .highlight-photo { position: relative; }
.photo-credit, .client-photo figcaption {
  position: absolute;
  inset: auto 10px 8px auto;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 20px);
  padding: 0;
  background: transparent;
  color: white;
  font: 10px/1.35 Arial, sans-serif;
  text-shadow: 0 1px 3px #001a2c, 0 0 2px #001a2c;
  pointer-events: none;
}
img { max-width: 100%; }
@media (max-width: 1100px) {
  :root { --header-height: 104px; }
  .brand img { width: 84px; height: 84px; }
}
@media (max-width: 480px) {
  .footer-brand h2 { white-space: normal; }
}

.footer-identity h2 { white-space: nowrap; font-size: clamp(13px, 1.65vw, 29px); }
.pillar-number { font-size: clamp(18px, 1.8vw, 26px); font-weight: 400; }
[hidden] { display: none !important; }
.nav-group { display: flex; align-items: center; position: relative; gap: 2px; }
.nav-disclosure { display: inline-grid; place-items: center; padding: 8px 2px; min-width: 22px; min-height: 36px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 15px; }
.nav-disclosure:focus-visible, .detail-option:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.nav-submenu { display: none; position: absolute; top: 100%; left: -18px; z-index: 60; min-width: 245px; padding: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--control-border); box-shadow: 0 14px 30px #001c3326; }
.nav-group.is-expanded > .nav-submenu { display: grid; gap: 0; }
.site-header #primary-nav .nav-submenu a { display: block; padding: 12px 10px; color: var(--ink); font-size: 13px; line-height: 1.5; text-transform: none; letter-spacing: 0; white-space: normal; }
.site-header #primary-nav .nav-submenu a:hover, .site-header #primary-nav .nav-submenu a:focus-visible { color: var(--ink); background: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.detail-options { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.experience-dialog { width: min(760px, calc(100vw - 32px)); max-height: min(86svh, 900px); overflow: auto; border: 1px solid var(--control-border); border-radius: 10px; padding: clamp(28px, 5vw, 58px); color: var(--ink); background: var(--surface); box-shadow: 0 24px 100px #00152d66; }
.experience-dialog::backdrop { background: #001525bd; }
.experience-dialog h2 { padding-right: 24px; font-size: clamp(26px, 4vw, 42px); margin: 18px 0 22px; }
.experience-dialog p { margin: 16px 0; line-height: 1.75; }
.experience-dialog .button { margin-top: 14px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid var(--control-border); border-radius: 50%; background: transparent; color: inherit; font-size: 28px; cursor: pointer; }
.offering-price { font-size: 24px; font-weight: 400; }
@media (min-width: 1101px) { .site-header #primary-nav { gap: clamp(12px, 1.7vw, 30px); } }
@media (max-width: 1100px) {
  #primary-nav.is-open { max-height: calc(100svh - var(--compact-header-height)); overflow-y: auto; overscroll-behavior: contain; }
  .nav-group { width: 100%; display: grid; grid-template-columns: 1fr 44px; gap: 0; }
  .nav-disclosure { min-height: 44px; }
  .nav-submenu { position: static; grid-column: 1 / -1; min-width: 0; width: 100%; box-shadow: none; border: 0; border-left: 2px solid var(--control-border); padding: 0 0 12px 14px; margin: 0 0 10px; }
}
@media (max-width: 480px) { .footer-identity { gap: 14px; flex-wrap: wrap; } .footer-identity h2 { font-size: 14px; } }

.course-price { align-self:center; font-size:20px; margin-right:8px; }
.experience-dialog li { line-height:1.7; margin:8px 0; }

.adopt-program-logo { display:block; width:min(100%, 320px); height:auto; padding:20px; border-radius:8px; background:#fff; }
h3, .eyebrow { font-weight:600; }
.pillar h3 { font-weight:300; }
.mission-section h3 { margin-top:34px; }

:root[data-theme=light] { --ink:#31363c; }
.site-header.is-compact .brand img { width:54px; height:54px; }

/* Long translated legal headings must fit narrow screens. */
.legal-intro h1 { overflow-wrap:anywhere; }
/* Keep the jumping mobula within its landscape card crop. */
img[src*="assets/webp/conserve/mobula-ray"] { object-position:50% 20%; }

/* Owner visual review: balanced sections and consistent navigation. */
.nav-group { gap:0; border-radius:6px; transition:background-color .16s; }
.site-header #primary-nav > .nav-group > a { padding:12px 4px 12px 10px; }
.site-header #primary-nav > .nav-group > a::after { left:10px; right:4px; bottom:8px; }
.nav-group:hover,.nav-group:focus-within,.nav-group.is-expanded { background:color-mix(in srgb,currentColor 7%,transparent); }
.nav-disclosure { width:32px; min-width:32px; height:44px; padding:0; border-radius:5px; }
.nav-disclosure::before { content:''; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform .18s; }
.nav-disclosure[aria-expanded=true]::before { transform:translateY(2px) rotate(225deg); }
.nav-disclosure:hover { background:color-mix(in srgb,currentColor 9%,transparent); }
.nav-submenu { top:calc(100% + 9px); left:0; min-width:276px; padding:8px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--ink); box-shadow:0 16px 42px #001c3326; }
.nav-submenu::before { content:''; position:absolute; top:-12px; left:0; right:0; height:12px; }
.nav-group.is-expanded > .nav-submenu { display:grid; }
.site-header #primary-nav .nav-submenu a { display:flex; align-items:center; min-height:46px; padding:12px 14px; border:0; border-radius:6px; box-shadow:none; color:var(--ink); font-size:13px; font-weight:400; line-height:1.55; text-decoration:none; transition:background-color .15s,color .15s; }
.site-header #primary-nav .nav-submenu a::after { display:none; }
.site-header #primary-nav .nav-submenu a:hover,.site-header #primary-nav .nav-submenu a:focus-visible { background:var(--zone-soft); color:var(--ink); text-decoration:none; }
.site-header #primary-nav .nav-submenu a:focus-visible { outline:2px solid var(--focus); outline-offset:-2px; }
.site-header #primary-nav .nav-submenu a[aria-current=page] { background:var(--zone-soft); font-weight:600; }
@media(min-width:1101px) { .site-header #primary-nav { gap:clamp(4px,1vw,18px); } }
@media(max-width:1100px) {
 .nav-group { border-bottom:1px solid var(--line); border-radius:0; }
 .nav-group:hover,.nav-group:focus-within,.nav-group.is-expanded { background:none; }
 .site-header #primary-nav > .nav-group > a { padding:16px 0; border:0; }
 .nav-disclosure { width:44px; height:48px; }
 .nav-submenu { position:static; min-width:0; padding:0 0 12px; margin:0; border:0; border-radius:0; background:none; box-shadow:none; }
 .nav-submenu::before { display:none; }
 .site-header #primary-nav .nav-submenu a { padding:12px 16px; border-left:2px solid var(--line); border-radius:0 6px 6px 0; margin-left:1px; min-height:46px; }
}
main > .adventure-feature { width:min(calc(100% - 2 * var(--inset)),1748px); margin:var(--section-space) auto; border-radius:12px; overflow:hidden; grid-template-columns:1fr 1fr; background:var(--surface); }
.adventure-feature .feature-copy { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:clamp(32px,4.5vw,74px); min-width:0; }
.adventure-feature .feature-copy .eyebrow { max-width:38ch; margin-bottom:24px; }
.adventure-feature .feature-copy h2 { font-size:clamp(32px,3.25vw,52px); line-height:1.14; margin-bottom:24px; }
.adventure-feature .feature-copy p:not(.eyebrow) { font-size:14px; line-height:1.85; margin-bottom:0; max-width:48ch; }
.adventure-visual { position:relative; min-height:540px; }
.adventure-visual img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 45%; }
.adventure-feature .night-count { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:min(100%,330px); gap:12px; margin:30px 0; }
.adventure-feature .night-option { display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding:14px 18px; margin:0; border:1px solid var(--line); border-radius:6px; font-size:30px; line-height:1.2; transition:background-color .16s,border-color .16s; }
.adventure-feature .night-option small { display:block; margin-top:8px; padding:0; font-size:9px; letter-spacing:.12em; line-height:1.4; }
.adventure-feature .night-option:hover,.adventure-feature .night-option:focus-visible { border-color:var(--accent); background:var(--bg); }
.adventure-feature .button { margin:0; }
/* Standard footer: brand information, three quiet link columns, one legal bar. */
.site-footer { padding-top:clamp(44px,4.5vw,72px); padding-bottom:24px; }
.footer-main { display:grid; grid-template-columns:minmax(240px,.9fr) minmax(0,1.5fr); align-items:start; gap:clamp(40px,7vw,120px); }
.footer-about { min-width:0; }
.footer-about .footer-brand { width:fit-content; margin-bottom:24px; }
.footer-about .footer-logo { width:68px; height:68px; margin:0; }
.footer-about h2 { margin:0 0 16px; max-width:23ch; font-size:22px; font-weight:400; line-height:1.45; letter-spacing:-.035em; text-wrap:balance; }
.footer-about > p { max-width:32ch; margin:0 0 20px; font-size:12px; line-height:1.85; }
.footer-links { display:grid; grid-template-columns:1fr 1fr 1.2fr; gap:clamp(20px,3.5vw,52px); padding:2px 0 0; font-size:12px; }
.footer-link-group { display:flex; flex-direction:column; align-items:flex-start; min-width:0; gap:0; }
.footer-title { margin:0 0 16px; min-height:20px; color:var(--muted); font-size:11px; font-weight:400; line-height:1.7; letter-spacing:.015em; text-transform:none; }
.footer-links a { display:block; width:fit-content; max-width:100%; min-height:36px; padding:8px 0; color:var(--ink); font-size:12px; line-height:1.65; text-decoration:none; text-underline-offset:5px; text-decoration-thickness:1px; overflow-wrap:anywhere; transition:color .16s; }
.footer-links a:hover,.footer-links a:focus-visible { color:var(--accent); text-decoration:underline; }
.footer-contact { margin:0; padding:0; border:0; background:none; }
.social-links { display:flex; align-items:center; gap:10px; }
.social-links a { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:color-mix(in srgb,var(--ink) 8%,transparent); color:inherit; transition:background-color .16s; }
.social-links a:hover,.social-links a:focus-visible { background:color-mix(in srgb,var(--ink) 16%,transparent); }
.social-links .icon { width:17px; height:17px; fill:currentColor; stroke:none; }
.header-social { gap:2px; }
.header-social a { width:30px; height:36px; background:transparent; }
.header-social .icon { width:15px; height:15px; }
.header-account-links { display:flex; align-items:center; flex:none; }
.header-account-links a { display:inline-flex; align-items:center; justify-content:center; min-width:42px; min-height:44px; padding-inline:6px; border-radius:6px; color:inherit; }
.header-account-links a:hover,.header-account-links a:focus-visible { background:color-mix(in srgb,currentColor 12%,transparent); }
.header-account-links .icon { width:20px; height:20px; }
.site-header .header-actions { min-width:0; flex-wrap:wrap; justify-content:flex-end; row-gap:0; }
.site-header.is-compact,body[data-page=home] .site-header.is-compact { height:auto; min-height:var(--compact-header-height); padding-block:4px; }
@media(min-width:1101px) {
 .site-header { display:flex; gap:clamp(10px,1.2vw,24px); }
 .site-header #primary-nav { flex:none; margin-inline:auto; }
}
@media(max-width:640px) {
 .site-header .header-actions { column-gap:4px; }
 .site-header .header-account-links a { min-width:36px; min-height:36px; }
}
.footer-welcome { display:flex; gap:10px; align-items:flex-start; margin:32px 0 22px; padding:0; border:0; color:var(--muted); }
.footer-welcome > span { flex:none; font-size:16px; line-height:1.4; }
.footer-welcome p { margin:0; font-size:11px; line-height:1.8; }
.footer-bottom { display:flex; flex-direction:row; align-items:center; flex-wrap:wrap; justify-content:flex-start; border-top:1px solid var(--line); margin:0; padding-top:16px; gap:8px 24px; font-size:10px; }
.footer-bottom > span:first-child { margin-right:auto; }
.footer-bottom .footer-legal { display:flex; align-items:center; flex-wrap:wrap; margin:0; padding:0; border:0; gap:4px 24px; }
.footer-bottom .footer-legal a { display:inline-flex; align-items:center; min-height:36px; font-size:10px; }
.footer-bottom > a { min-height:36px; gap:8px; }
.footer-bottom > a .button-icon { flex:0 0 15px; width:15px; height:15px; margin:0; }
.footer-bottom > a .icon { width:15px; height:15px; }
@media(max-width:1200px) {
 .header-social { display:none; }
 .footer-main { grid-template-columns:minmax(180px,.75fr) minmax(0,1.5fr); gap:36px; }
 .footer-links { gap:22px; }
}
@media(max-width:900px) {
 .footer-main { grid-template-columns:1fr; gap:36px; }
 .footer-about { display:grid; grid-template-columns:auto 1fr; column-gap:24px; align-items:start; }
 .footer-about .footer-brand { grid-row:1/4; margin:0; }
 .footer-about h2 { max-width:none; margin-bottom:8px; }
 .footer-about > p { max-width:48ch; margin-bottom:16px; }
 .footer-links { grid-template-columns:1fr 1fr 1.2fr; gap:24px; }
 .footer-bottom > span:first-child { width:100%; }
}
@media(max-width:580px) {
 .footer-about { display:block; }
 .footer-about .footer-brand { margin-bottom:22px; }
 .footer-about .footer-logo { width:60px; height:60px; }
 .footer-about h2 { max-width:24ch; font-size:21px; margin-bottom:12px; }
 .footer-about > p { max-width:34ch; }
 .footer-links { grid-template-columns:1fr 1fr; gap:26px 22px; }
 .footer-contact { grid-column:1/-1; }
 .footer-title { margin-bottom:10px; }
 .footer-links a { min-height:40px; }
 .footer-welcome { margin-top:28px; }
 .footer-bottom { gap:4px 22px; }
 .footer-bottom .footer-legal { width:100%; gap:2px 18px; }
}
.mission-section { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); align-items:start; gap:clamp(32px,8vw,130px); background:var(--bg)!important; }
.mission-section .section-heading { margin:0; }
.mission-section .section-heading h2 { margin:0; max-width:12ch; font-size:clamp(36px,4vw,58px); }
.mission-copy > .section-intro:first-child { font-size:clamp(20px,2.2vw,30px); font-weight:300; line-height:1.5; letter-spacing:-.02em; color:var(--ink); margin:0 0 28px; max-width:38ch; }
.mission-copy h3 { margin:0 0 14px; padding-top:26px; border-top:1px solid var(--line); font-size:11px; font-weight:600; line-height:1.6; letter-spacing:.13em; text-transform:uppercase; }
.mission-copy > p:last-child { margin:0; font-size:15px; line-height:1.9; max-width:58ch; }
.impact-row { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:6%; padding:36px 0; }
.impact-topic { display:grid; grid-template-columns:24px minmax(0,1fr); gap:16px; align-items:start; }
.impact-number { line-height:44px; }
.impact-topic > div { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:start; gap:18px; }
.impact-icon { width:44px; height:44px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:10px; margin:0; }
.impact-icon .icon { width:23px; height:23px; }
.impact-topic h2 { margin:4px 0 0; font-size:clamp(25px,2.15vw,32px); line-height:1.25; max-width:20ch; }
.impact-text p { padding-top:4px; font-size:14px; line-height:1.9; }
.journey-header { border-bottom:1px solid var(--line); }
.journey-layout { align-items:stretch; background:var(--surface); }
.journey-main { background:var(--surface); min-height:calc(100svh - 148px); }
.journey-main input:not([type=checkbox]):not([type=radio]),.journey-main textarea { background:var(--bg); }
@media(max-width:1100px) {
 .impact-row { gap:5%; }
 .impact-topic { grid-template-columns:18px minmax(0,1fr); gap:10px; }
 .impact-topic > div { gap:12px; }
}
@media(max-width:800px) {
 main > .adventure-feature { grid-template-columns:1fr; }
 .adventure-visual { min-height:0; height:360px; }
 .adventure-feature .feature-copy { padding:36px; }
 .mission-section { grid-template-columns:1fr; gap:28px; }
 .mission-section .section-heading h2 { max-width:none; }
 .impact-row { grid-template-columns:1fr; gap:20px; }
 .impact-text { padding-left:28px; }
 .journey-main { border:0; min-height:0; }
}
@media(max-width:580px) {
 .adventure-feature .feature-copy { padding:30px 24px; }
 .adventure-feature .feature-copy h2 { font-size:32px; }
 .adventure-feature .feature-copy p:not(.eyebrow) { font-size:13px; }
 .adventure-feature .night-option { padding:12px; }
 .adventure-visual { height:300px; }
 .footer-link-arrow { flex:0 0 14px; width:14px; height:14px; margin-left:8px; }
 .footer-link-group .footer-title { min-height:2.9em; display:flex; align-items:flex-end; margin-bottom:10px; }
 .footer-welcome { margin-top:24px; }
 .mission-copy > p:last-child { font-size:14px; }
 .impact-topic h2 { font-size:25px; }
 .impact-text p { font-size:13px; padding-top:0; }
}
@media(prefers-reduced-motion:reduce) { .nav-group,.nav-disclosure::before,.site-header #primary-nav .nav-submenu a,.adventure-feature .night-option { transition:none; } }

/* Keep the supplied diver visible in landscape cards and credits clear of link arrows. */
.card-image img[src*="/dive/dive."] { object-fit:contain; }
.card-image img[src*="/jumping-mobula"], .card-image img[src*="/conserve/mobula-ray"] { object-position:50% 33%; }
.related-section .card-image img[src*="/conserve/kid-snorkeling"] { object-position:50% 58%; }
.related-section .card-image img[src*="/conserve/mobula-ray"] { object-position:50% 22%; }
.card-image img[src*="/marielle-and-buoy"] { object-position:50% 58%; }
.detail-photo img[src*="/shore-diver"] { object-position:50% 56%; }
.detail-photo img[src*="/pelican"] { object-position:50% 33%; }
.card-image img[src*="/learn/scuba-diver"] { object-position:50% 75%; }
.related-section .photo-credit { left:12px; right:auto; }

/* The client's seasonal MXN price list, with explicit add-on units. */
.price-row .price-link { display:flex; min-width:0; }
.price-total { text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.price-unit { max-width:22ch; color:var(--muted); font-size:11px; line-height:1.5; }
.pricing-note { margin:32px 0 0; font-size:12px; }
img[src*="/istock-image-2"] { object-position:50% 100%; }
@media(max-width:580px) { .price-total { text-align:left; align-items:flex-start; } .course-price { font-size:18px; } }
/* Prices align with their labels after the old table thumbnails were removed. */
.price-total .price-amount { padding-left:0; }
body[data-page=learn] .hero-caption { font-size:11px; letter-spacing:.035em; line-height:1.5; }

/* Keep the footer mark legible against its ocean background. */
.site-footer .footer-logo { border-radius:50%; box-shadow:0 0 0 2px #c5e0e8; }
/* Course details sit on page surfaces, so their colors follow the theme. */
.button[data-detail-dialog] { color:var(--ink); border-color:var(--control-border); background:transparent; }
.button[data-detail-dialog]:hover { color:var(--ink); border-color:var(--ink); background:var(--bg); }

/* Keep the logo clear of the header edges in every scroll state. */
:root { --compact-header-height:72px; }
.site-header .brand { padding:0; display:flex; align-items:center; }
.site-header.is-compact .brand img { width:44px; height:44px; }
@media(max-width:1100px) { .site-header:not(.is-compact) .brand img { width:72px; height:72px; } }
@media(max-width:520px) { .site-header:not(.is-compact) .brand img { width:64px; height:64px; } }

.padi-partner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.padi-identity { display: flex; align-items: center; gap: 16px; }
.padi-identity img { box-sizing: content-box; width: 54px; height: auto; flex: none; padding: 6px 8px; border-radius: 4px; background: #fff; }
.padi-identity p { margin: 0; }
