/* Down Sea Charters: navigation (Figma page "Navigation (E system)" 288:2).
   Desktop >= 1024: "Fishing Trips" opens the trips panel (.mega, frame 288:56) under the header.
   Below 1024: the menu button opens the full-screen menu (dialog.pmenu#menu, frame 288:88).
   Behaviour is in /js/nav.js. The header layout itself (.hdr, .nav, .hdr__act) stays in styles.css. */

/* ---------- header: the Fishing Trips item ---------- */
/* The nav is right-aligned by styles.css: it ends 60px before the phone number (CTA update 2026-11-14). */
.nav__item { display: flex; }
.nav__trips { display: inline-flex; align-items: center; gap: 7px; padding-block: 12px; border-bottom: 2px solid transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; white-space: nowrap; cursor: pointer; transition: color .15s; }
.nav__trips:hover, .nav__trips[data-current] { border-bottom-color: var(--action); }
/* The chevron is the Figma icon file used as a mask, so it takes the label's colour and can turn. */
.nav__chev { flex: none; width: 11.75px; height: 8.75px; margin-inline: -.875px; background: currentColor; -webkit-mask: url("/img/icons/nav-chevron-down.svg") center / 100% 100% no-repeat; mask: url("/img/icons/nav-chevron-down.svg") center / 100% 100% no-repeat; transition: transform .2s; }
.nav__trips[aria-expanded="true"] { color: var(--accent); border-bottom-color: transparent; }
.nav__trips[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
/* On Home the header sits clear over the hero: it turns solid while the panel is open. */
.hdr.is-mega { background: var(--deep); }

/* ---------- desktop: trips panel ---------- */
.mega { position: absolute; inset: 100% 0 auto 0; background: #fff; color: var(--text); box-shadow: 0 16px 40px rgba(0, 9, 66, .28); font: 400 15px/1.5 var(--body); letter-spacing: 0; text-transform: none; white-space: normal; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.mega.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mega__in { display: grid; grid-template-columns: minmax(0, 1fr) 292px; column-gap: 40px; padding-block: 40px 44px; }
.mega__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-self: start; }
.mega__cards > li { display: flex; }
.nav .mega a { padding: 0; border: 0; }
.mega :focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; box-shadow: none; }
.nav .mega .mega__card { display: flex; flex-direction: column; width: 100%; min-height: 350px; }
/* Photos: the Figma keeps each photo uncropped inside a 300 x 188 clipping frame.
   --w = photo width / frame width, --x = left offset / frame width, --y = top offset / frame height. */
.mega__ph { position: relative; display: block; overflow: hidden; aspect-ratio: 300 / 188; background: var(--deep); }
.mega__ph img { position: absolute; left: var(--x); top: var(--y, 0); width: var(--w); max-width: none; height: auto; }
.mega__ph--inshore { --w: 140%; --x: -29.667%; }                 /* 420 wide at -89, 0 */
.mega__ph--nearshore { --w: 125%; --x: -8.667%; }                /* 375 wide at -26, 0 */
.mega__ph--deepsea { --w: 115%; --x: -7.333%; --y: -5.319%; }    /* 345 wide at -22, -10 */
.mega__name { margin-top: 18px; font: 800 30px/.92 var(--display); letter-spacing: .01em; text-transform: uppercase; color: var(--dark); }
.mega__price { margin-top: 8px; font-weight: 500; font-size: 14px; line-height: 20px; }
.mega__dot { margin-inline: .55em; }
.mega__text { margin-top: 8px; color: #5a5f78; }
/* Coral link text on white is #c2331f (4.5:1), as on the other light sections; the Figma's #f0523d is 3.5:1. */
.mega__go { margin-top: auto; padding-top: 14px; font-weight: 500; font-size: 14px; line-height: 20px; color: #c2331f; }
.mega__arrow { display: inline-block; margin-left: .6em; transition: transform .2s; }
.mega__card:hover .mega__go, .mega__links a:hover, .mega__ask-call:hover { text-decoration: underline; text-underline-offset: 4px; }
a:hover > .mega__arrow, .mega__card:hover .mega__arrow { transform: translateX(4px); }

.mega__side { min-height: 373px; padding-left: 39px; border-left: 1px solid #d9dbe8; }
.mega__label { font-weight: 500; font-size: 12px; line-height: 17px; letter-spacing: .12em; text-transform: uppercase; color: #5a5f78; }
.mega__links { margin-top: 6.5px; }
.nav .mega .mega__links a { display: flex; align-items: center; min-height: 32px; font-weight: 500; font-size: 16px; line-height: 23px; color: var(--dark); }
.mega__ask { margin-top: 20.5px; padding: 20px; background: #ebecf5; }
.mega__ask-title { font: 800 26px/.92 var(--display); letter-spacing: .01em; text-transform: uppercase; color: var(--dark); }
.mega__ask-text { margin-top: 8px; font-size: 14px; }
.nav .mega .mega__ask-btn { display: flex; width: 100%; min-height: 48px; margin-top: 16px; padding: 12px 10px; border: 1.5px solid transparent; font-size: 14px; }
.nav .mega .mega__ask-call { display: inline-block; margin-top: 14px; font-weight: 500; font-size: 14px; line-height: 20px; color: var(--dark); }

/* The page behind the open panel (#000942 at 55%). It sits just under the header. */
.mega-dim { position: fixed; inset: 0; z-index: 19; background: rgba(0, 9, 66, .55); opacity: 0; transition: opacity .16s ease; }
.mega-dim.is-open { opacity: 1; }

@media (max-width: 1279px) {
  .mega__in { grid-template-columns: minmax(0, 1fr) 256px; column-gap: 24px; }
  .mega__cards { gap: 16px; }
  .mega__name { font-size: 28px; }
  .mega__side { padding-left: 23px; }
  .mega__ask { padding: 16px; }
  .mega__ask-title { font-size: 24px; }
}
@media (max-width: 1023px) {
  .mega, .mega-dim { display: none; }
}

/* ---------- phone and tablet: full-screen menu ---------- */
html:has(#menu[open]) { overflow: hidden; }
.pmenu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--deep); color: #fff; overflow-y: auto; overscroll-behavior: contain; }
.pmenu::backdrop { background: var(--deep); }
.pmenu__in { display: flex; flex-direction: column; min-height: 100%; padding: 0 20px clamp(24px, 6.2dvh, 52px); }
.pmenu__bar { display: flex; align-items: center; justify-content: space-between; flex: none; height: 64px; margin-inline: -4px -15px; }
.pmenu__logo { display: inline-flex; align-items: center; min-height: 44px; }
.pmenu__logo img { width: 118px; height: 40px; object-fit: contain; }
.pmenu__close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; }
.pmenu__close img { width: 20px; height: 20px; }
.pmenu__label { margin-top: 24px; font-weight: 500; font-size: 12px; line-height: 17px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pmenu__trips { margin-top: 7px; }
.pmenu__trips a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; column-gap: 16px; min-height: 84px; padding-right: 2px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
/* Thumbnails: the same photos, uncropped inside a 64 x 64 clipping frame (values as for .mega__ph). */
.pmenu__ph { position: relative; display: block; width: 64px; height: 64px; overflow: hidden; background: var(--deep); }
.pmenu__ph img { position: absolute; left: var(--x); top: var(--y, 0); width: var(--w); max-width: none; height: auto; }
.pmenu__ph--inshore { --w: 154px; --x: -57px; }
.pmenu__ph--nearshore { --w: 134px; --x: -33px; }
.pmenu__ph--deepsea { --w: 125px; --x: -37px; --y: -10px; }
.pmenu__txt { display: grid; row-gap: 6px; }
.pmenu__name { font: 800 26px/.92 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.pmenu__price { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .72); }
.pmenu__chev { width: 8.75px; height: 13.75px; }
.pmenu__all { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgba(255, 255, 255, .18); font-weight: 500; font-size: 15px; color: var(--accent); }
.pmenu__links { margin-top: 9px; }
.pmenu__links a { display: flex; align-items: center; min-height: 52px; font: 800 34px/.92 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.pmenu__nav a[aria-current="page"] .pmenu__name, .pmenu__links a[aria-current="page"] { color: var(--accent); }
.pmenu__foot { margin-top: auto; padding-top: 24px; }
.pmenu__rate { font-weight: 500; font-size: 13px; line-height: 19px; color: rgba(255, 255, 255, .8); }
.pmenu__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.pmenu__cta .btn { width: 100%; min-height: 52px; padding: 10px; font-size: 14px; }
