/* ==========================================================================
   funnel.css — wildlifekidscards.org preview
   Order on the page: 1 hero (SOON card)  >  2 the cards  >  3 Join the Club  >  4 offer (after joining)
   Builds on base.css (same tokens as the portal): square corners, flat colours, no gradients,
   no blurred shadows. The card artwork keeps its own rounded corners (printed cards are rounded).
   Photo backgrounds are Erik's own (Canva "Heading" design), toned with a FLAT colour layer.
   ========================================================================== */

/* ---------- Scale with the screen ----------
   The root font size grows on big screens (16px up to ~1280px wide, ~19px at 1920, ~22px at 2560,
   24px max). Bootstrap spacing and type are in rem, and the sizes below are in rem too, so the whole
   page grows together instead of leaving a small column in the middle of a TV-sized screen. */
html { font-size: clamp(16px, calc(9.5px + .5vw), 24px); }
@media (min-width: 1400px) { .container { max-width: 82.5rem; } }   /* = Bootstrap's 1320px at 16px */

/* ---------- Preview strip ---------- */
.preview-strip {
  background: var(--c-ink);
  color: var(--c-yellow);
  font-family: var(--f-display);
  letter-spacing: .3em;
  text-align: center;
  padding: .3rem 1rem;
}

/* ---------- Header ---------- */
.site-head { background: var(--c-blue); padding: .6rem 0; border-bottom: .375rem solid var(--c-yellow); }
.site-head .brand { display: flex; align-items: center; gap: clamp(.6rem, 1.5vw, 1.4rem); }
.site-head .brand-badge { width: 5.5rem; height: auto; }
.site-head .brand-logo { height: 3.6rem; width: auto; }
@media (max-width: 575.98px) {
  .site-head .brand-badge { width: 4.4rem; }
  .site-head .brand-logo { height: 2.4rem; }
}
@media (max-width: 419.98px) { .site-head .brand-logo { display: none; } }  /* no room next to the button */

/* ---------- Buttons (same as the portal) ---------- */
.btn {
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: .03em;
  padding: .7rem 1.6rem;
  border-width: 3px;
}
.btn-yellow { background: var(--c-yellow); color: var(--c-ink); border-color: var(--c-white); }
.btn-yellow:hover, .btn-yellow:focus { background: var(--c-white); color: var(--c-ink); border-color: var(--c-yellow); }
.btn-blue { background: var(--c-blue); color: var(--c-white); border-color: var(--c-blue); }
.btn-blue:hover, .btn-blue:focus { background: var(--c-blue-deep); color: var(--c-white); border-color: var(--c-blue-deep); }

/* ---------- Yellow label ---------- */
.tag {
  display: inline-block;
  background: var(--c-yellow);
  color: var(--c-ink);
  border: 3px solid var(--c-white);
  font-family: var(--f-display);
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .2rem .7rem;
  margin-bottom: .9rem;
}


/* ---------- 1. Hero: humpback whale at sea (Heading p.297) under a flat blue layer ---------- */
.hero-photo {
  position: relative;
  color: var(--c-white);
  background: var(--c-blue) url("../images/bg/humpback-ocean.webp") center / cover no-repeat;

}
.hero-photo::before { content: ""; position: absolute; inset: 0; background: rgba(0, 46, 110, .62); }
.hero-photo > .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: .5rem; }
.hero .lead { font-family: var(--f-display); font-size: clamp(1.2rem, 2.6vw, 1.6rem); margin-bottom: 1.5rem; }
.hero .hero-card { width: min(25rem, 86%); margin: 0 auto; transform: rotate(3deg); }
.hero-photo :focus-visible { outline-color: var(--c-yellow) !important; }

/* ---------- 2. Card row: 2 columns on phones, 3 on tablets, 5 on desktop ---------- */
.card-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.6rem, 2vw, 1.4rem);
  margin: 0;
  justify-items: center;
}
.card-row img { width: 100%; }
.card-row li { width: 100%; }
.card-row li:first-child { grid-column: 1 / -1; width: 60%; }
.card-row li:nth-child(odd) img  { transform: rotate(-2deg); }
.card-row li:nth-child(even) img { transform: rotate(2deg); }
@media (min-width: 576px) {
  .card-row { grid-template-columns: repeat(6, 1fr); }
  .card-row li, .card-row li:first-child { grid-column: span 2; width: 100%; }
  .card-row li:nth-child(4) { grid-column: 2 / span 2; }          /* second row of two, centred */
}
@media (min-width: 992px) {
  .card-row { grid-template-columns: repeat(5, 1fr); }
  .card-row li, .card-row li:first-child, .card-row li:nth-child(4) { grid-column: auto; }
}

/* ---------- 3. Join the Club: Bastimentos, Panama (Heading p.103) ---------- */
.join-photo {                     /* the goal of the page: the tallest, roomiest section */
  position: relative;
  background: var(--c-blue) url("../images/bg/bastimentos-aerial.webp") center / cover no-repeat;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}
.join-box {                       /* Erik's yellow "SUPPLIES LIST" box, squared */
  background: var(--c-yellow);
  border: .375rem solid var(--c-white);
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  max-width: 42rem;
}
.join-box h2 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: .4rem; }
.signup-lead { font-weight: 800; font-size: 1.2rem; margin-bottom: .4rem; }
.adult-note { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .02em; color: var(--c-blue); margin-bottom: 1.2rem; }
.join-box .btn { font-size: 1.3rem; padding: .8rem 2.4rem; }
.signup-sticker { width: min(15rem, 60%); margin: 0 auto; transform: rotate(-8deg); }
@media (max-width: 767.98px) { .signup-sticker { width: 8rem; } }
.signup-form .form-label { font-family: var(--f-display); font-size: 1.1rem; letter-spacing: .03em; margin-bottom: .3rem; }
.signup-form .form-control {
  border: 3px solid var(--c-ink);
  background: var(--c-white);
  font-size: 1.1rem;
  padding: .65rem .9rem;
}
.signup-form .form-control:focus { border-color: var(--c-blue); }
.signup-form .form-control[aria-invalid="true"] { border-color: #B00020; }
.form-status { margin: 1rem 0 0; font-weight: 800; min-height: 1.6em; }
.join-box :focus-visible { outline-color: var(--c-ink) !important; }

/* ---------- 4. Offer (shown after joining) ---------- */

#offer-title:focus { outline: none; }  /* focus is moved here by script after joining */
.offer-notice {
  background: var(--c-ink); color: var(--c-yellow);
  font-weight: 800; padding: .6rem 1rem; margin-bottom: 1.8rem; display: inline-block;
}
/* one tile per pack: Erik's blue box with a thick white border, squared */
.pack-tile {
  height: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--c-blue); color: var(--c-white);
  border: .375rem solid var(--c-white);
  padding: clamp(1rem, 2.5vw, 1.6rem);
}
.pack-tile h3 { color: var(--c-yellow); font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin-bottom: .2rem; }
.pack-place { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .02em; margin-bottom: .6rem; }
.pack-list { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .02em; padding-left: 1.2rem; margin-bottom: 1rem; }
.pack-list li::marker { color: var(--c-yellow); }
.pack-buy { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.2rem; }
.pack .price {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--c-yellow);
  margin: 0;
}
.pack .pack-art { width: 100%; margin-bottom: .8rem; }
.pack .form-status { color: var(--c-white); margin-top: .8rem; min-height: 1.4em; }
.pack-tile :focus-visible { outline-color: var(--c-yellow) !important; }
.pack-grid { display: none; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: 0 0 1rem; width: 100%; }
@media (max-width: 575.98px) {
  .pack .pack-art { display: none; }
  .pack-grid { display: grid; }
}

/* ---------- Footer: Erik's forest silhouette (Heading p.260) on his lavender sky ----------
   treeline.webp (1600x579) is drawn ONCE, full width, at its own proportions (mask 100% wide,
   anchored at the top): never repeated, mirrored or stretched. The band only shows the crowns —
   about 40% of the image height, 300px max — and the trunks continue into the dark bar below,
   which is the same ink colour. Low on purpose: the sign-up is the star of the page. */
.site-foot { background: var(--c-ink); color: var(--c-white); font-size: .95rem; text-align: center; }
.forest {
  position: relative;
  background: var(--c-lavender);
  height: clamp(70px, 14.5vw, 300px);
}
.forest-trees {
  position: absolute; inset: 0;
  background: var(--c-ink);
  -webkit-mask: url("../images/bg/treeline.webp") center top / 100% auto no-repeat;
          mask: url("../images/bg/treeline.webp") center top / 100% auto no-repeat;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Footer bar: copied from edventureshow.com (icons, copyright, YOUTUBE) ---------- */
.foot-social { display: flex; justify-content: center; gap: 1rem; margin: 0 0 .5rem; }
.foot-social a { color: var(--c-white); display: inline-flex; padding: .45rem; }   /* 34px+ tap target */
.foot-social svg { width: 1.6rem; height: 1.6rem; }
.foot-social a:hover { color: var(--c-yellow); }
.foot-copy { margin: 0 0 .4rem; color: #DCE3F2; font-size: 1rem; }
.foot-youtube { color: var(--c-white); font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; text-decoration: none; display: inline-block; padding: .4rem .6rem; }
.foot-youtube:hover { color: var(--c-yellow); }
.foot-bar { padding: .6rem 1rem 1.4rem; }

/* ---------- Header navigation: link to the cards + Erik's social links (same as his site's footer) ---------- */
.head-nav { display: flex; align-items: center; gap: clamp(.4rem, 1.6vw, 1.6rem); }
.head-link {
  color: var(--c-white); text-decoration: none;
  font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .03em;
  padding: .5rem .3rem; border-bottom: .25rem solid transparent;
}
.head-link:hover { color: var(--c-yellow); border-bottom-color: var(--c-yellow); }
.head-icon { color: var(--c-white); display: inline-flex; padding: .45rem; }
.head-icon:hover { color: var(--c-yellow); }
.head-icon svg { width: 1.5rem; height: 1.5rem; }
/* small screens: keep only the button (the same links are in the footer) */
@media (max-width: 991.98px) { .head-link, .head-icon { display: none; } }

/* ---------- Live sign-up details: adult checkbox, privacy note, order note ---------- */
.signup-form .form-check { padding-left: 2rem; }
.signup-form .form-check-input {
  width: 1.4rem; height: 1.4rem; margin-left: -2rem; margin-top: .15rem;
  border: 3px solid var(--c-ink); background-color: var(--c-white);
}
.signup-form .form-check-input:checked { background-color: var(--c-blue); border-color: var(--c-blue); }
.signup-form .form-check-input[aria-invalid="true"] { border-color: #B00020; }
.signup-form .form-check-label { font-weight: 800; font-size: 1.05rem; }
.form-note { margin: .8rem 0 0; font-size: .95rem; }
.form-note a { color: var(--c-ink); font-weight: 800; }
.order-note { margin: 1.6rem 0 0; color: var(--c-white); font-weight: 800; }
.order-note a { color: var(--c-yellow); }
.foot-contact { margin: 0 0 .4rem; font-size: 1rem; }
.foot-contact a { color: var(--c-white); }
.foot-contact a:hover { color: var(--c-yellow); }
