/* ══════════════════════════════════════════════════════════
   FREYA YACHTING — 2026 REDESIGN, INDEX-ONLY (index.html only)
   Hero + offer bar. Everything shared across the site (tokens, nav,
   footer, buttons, pills, cards, section shell, typography) lives in
   site.css, loaded before this file. Load order on index.html:
   style.css → site.css → home.css.

   Design-rationale comment (color contrast pairs, flame usage rules)
   lives at the top of site.css now — it governs the whole site, not
   just this page.
══════════════════════════════════════════════════════════ */

.hero-2026 :focus-visible { outline-color: var(--flame); }

/* ─── HERO — bow-forward photo, left-aligned, navy overlay ───
   object-position is tuned from actually viewing the source photo
   (images/hero-sailboat.png): boat sits right, hull runs ~55-90%
   of the frame width. See object-position comment below for the
   crop math and the mobile override. */
.hero-2026 {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: clip;
}
.hero-2026__bg { position: absolute; inset: 0; z-index: 0; }
.hero-2026__bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* boat hull sits at ~55-90% of source width; bias crop right so the
     hull + horizon stay in frame while the left stays open water/sky
     for the text column. Narrower override below re-centers so the
     hull doesn't get cropped down to just the bow on tall/narrow crops. */
  object-position: 72% 55%;
  transform: scale(1);
  animation: hero-kenburns 22s ease-out forwards;
}
@media (max-width: 640px) {
  .hero-2026__bg img { object-position: 68% 50%; }
}
@keyframes hero-kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-2026__bg::after {
  content: '';
  position: absolute; inset: 0;
  /* Two horizontal layers, not one: a light broad wash across the whole
     photo (so the boat/sky on the right stay near-clean), plus a tighter
     one confined to the text column (0-55%) for legibility. Verified by
     compositing the real photo + gradient and measuring worst-case
     rendered contrast (not eyeballed): title band (68px, large-text
     3:1 rule) = 4.35:1, desc band (17px, 4.5:1 rule) = 5.93:1. A flat
     broad-only reduction (title ~2.7:1) failed both, hence the local layer. */
  background:
    linear-gradient(90deg, rgba(14,26,42,0.60) 0%, rgba(14,26,42,0.50) 40%, rgba(14,26,42,0.15) 52%, rgba(14,26,42,0) 55%),
    linear-gradient(90deg, rgba(14,26,42,0.48) 0%, rgba(14,26,42,0.20) 46%, rgba(14,26,42,0.03) 72%),
    linear-gradient(180deg, rgba(14,26,42,0.35) 0%, rgba(14,26,42,0.05) 30%, rgba(14,26,42,0.4) 100%);
}

.hero-2026__grid {
  position: relative; z-index: 2;
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 100px 20px 56px;
}
@media (min-width: 640px)  { .hero-2026__grid { padding: 110px 32px 64px; } }
@media (min-width: 1280px) { .hero-2026__grid { padding: 120px 48px 72px; } }

.hero-2026__content { max-width: 620px; }
.hero-2026__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-on-navy); margin-bottom: 20px;
}
.hero-2026__badge::before { content: ''; width: 22px; height: 1.5px; background: var(--flame); }
.hero-2026__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.1; letter-spacing: 0.015em;
  color: var(--text-on-navy);
  margin: 0 0 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-2026__desc {
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: rgba(255,255,255,0.88); max-width: 46ch; margin-bottom: 32px;
}
.hero-2026__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-2026__social {
  position: absolute; z-index: 2;
  right: 20px; bottom: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 640px) { .hero-2026__social { right: 32px; bottom: 36px; } }
@media (min-width: 1280px) { .hero-2026__social { right: 48px; } }
.hero-2026__social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); color: var(--text-on-navy);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 160ms ease, transform 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .hero-2026__social a:hover { background: var(--flame); border-color: var(--flame); color: var(--navy); transform: translateY(-2px); }
}

/* ─── OFFER BAR — its own row below hero, white card (not dark) ─── */
.offer-bar-2026 {
  position: relative; z-index: 3;
  max-width: 1080px; margin: -40px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: grid; grid-template-columns: 1fr; gap: 18px;
  box-shadow: 0 20px 48px rgba(14,42,71,0.12);
}
@media (min-width: 900px) {
  .offer-bar-2026 {
    margin-top: -36px;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end; gap: 16px; padding: 22px 28px;
  }
}
.offer-bar-2026__field { display: flex; flex-direction: column; gap: 8px; }
.offer-bar-2026__field label {
  font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.offer-bar-2026__field input,
.offer-bar-2026__field select {
  appearance: none; -webkit-appearance: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-navy); font-family: var(--font-body); font-size: 0.9375rem;
  padding: 12px 14px; min-height: 44px; width: 100%;
}
.offer-bar-2026__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2A47' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 36px;
}
.offer-bar-2026__field input:focus-visible,
.offer-bar-2026__field select:focus-visible { outline: 2px solid var(--flame); outline-offset: 1px; }
.offer-bar-2026__submit { width: 100%; justify-content: center; white-space: nowrap; }
@media (min-width: 900px) { .offer-bar-2026__submit { width: auto; } }

@media (prefers-reduced-motion: reduce) {
  .hero-2026__bg img { animation: none !important; transform: none !important; }
}
