/* ==========================================================================
   HawaiiGuide Homepage Focus — 2026 consolidation layer
   Scoped to .hg-home-focus. Uses px font sizes because the site root is 62.5%.
   ========================================================================== */

.hg-home-focus {
  --hg-focus-ink: #17313b;
  --hg-focus-green: #1d6f5f;
  --hg-focus-green-dark: #124f44;
  --hg-focus-gold: #f0c41a;
  --hg-focus-paper: #fbfaf6;
  --hg-focus-line: #d7e2df;
  --hg-focus-shadow: 0 18px 55px rgba(23, 49, 59, 0.12);
}

.hg-home-focus .hg-beta-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.hg-home-focus .hg-beta-section-title {
  color: var(--hg-focus-ink);
  letter-spacing: -0.6px;
}

.hg-home-focus .hg-beta-eyebrow-label {
  color: var(--hg-focus-green);
}

/* The hero has two decisions: build or browse. */
.hg-home-focus .hg-desktop-hero-ctas,
.hg-home-focus .hg-mobile-hero-ctas {
  gap: 18px;
}

.hg-home-focus .hg-hero-secondary-links {
  justify-content: center;
}

.hg-home-focus .hg-hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hg-home-focus .hg-home-search-inner {
  border-color: rgba(29, 111, 95, 0.2);
  box-shadow: 0 16px 44px rgba(23, 49, 59, 0.1);
}

/* Keep the planning system as the one complete planning gateway. */
.hg-home-focus .hg-os-frame {
  margin-top: 24px;
  border: 1px solid rgba(29, 111, 95, 0.14);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(23, 49, 59, 0.08);
}

.hg-home-focus .hg-os-frame .hg-beta-section-header {
  margin-bottom: 38px;
}

.hg-home-focus .hg-os-footer-actions {
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Discovery bento
   -------------------------------------------------------------------------- */

.hg-focus-discovery {
  position: relative;
  isolation: isolate;
}

.hg-focus-discovery::before {
  position: absolute;
  z-index: -1;
  top: 16px;
  right: 10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 196, 26, 0.2), rgba(240, 196, 26, 0) 68%);
  content: "";
  pointer-events: none;
}

.hg-focus-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: end;
  margin: 0 0 34px;
}

.hg-focus-heading .hg-beta-eyebrow-label {
  margin-bottom: 8px;
}

.hg-focus-heading .hg-beta-section-title {
  max-width: 650px;
  margin: 0;
}

.hg-focus-heading > p {
  max-width: 520px;
  margin: 0 0 4px;
  color: #5c6b73;
  font-size: 17px;
  line-height: 1.6;
}

.hg-focus-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(245px, auto);
  gap: 18px;
}

.hg-focus-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-width: 0;
  min-height: 245px;
  border: 0;
  border-radius: 24px;
  color: #fff !important;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(23, 49, 59, 0.12);
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

button.hg-focus-card {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: #07182a;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

.hg-focus-card:hover,
.hg-focus-card:focus-visible {
  color: #fff !important;
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(23, 49, 59, 0.2);
}

.hg-focus-card:focus-visible {
  outline: 3px solid var(--hg-focus-gold);
  outline-offset: 4px;
}

.hg-focus-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hg-focus-card:hover > img,
.hg-focus-card:focus-visible > img {
  transform: scale(1.035);
}

.hg-focus-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 24, 42, 0.06) 10%, rgba(7, 24, 42, 0.86) 100%);
}

.hg-focus-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  padding: 28px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.hg-focus-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.25;
  text-transform: uppercase;
}

.hg-focus-card-body > strong {
  display: block;
  max-width: 620px;
  color: #fff;
  font-size: 27px;
  line-height: 1.15;
  text-wrap: balance;
}

.hg-focus-card-copy {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.4;
}

.hg-focus-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.hg-focus-card--film {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 510px;
}

.hg-focus-card--film .hg-focus-card-body > strong {
  font-size: 38px;
}

.hg-focus-card--month {
  grid-column: span 5;
  min-height: 245px;
  box-shadow: inset 0 5px 0 var(--hg-focus-accent), 0 12px 36px rgba(23, 49, 59, 0.12);
}

.hg-focus-card--start {
  grid-column: span 5;
  min-height: 245px;
}

.hg-focus-card--start .hg-focus-card-shade {
  background: linear-gradient(135deg, rgba(7, 24, 42, 0.24), rgba(18, 79, 68, 0.92));
}

.hg-focus-card--routes {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.7fr);
  min-height: 0;
  padding: 26px 28px;
  align-items: center;
  border: 1px solid var(--hg-focus-line);
  background:
    radial-gradient(circle at 15% 0%, rgba(240, 196, 26, 0.14), transparent 34%),
    linear-gradient(135deg, #f7f2e7 0%, #eef7f4 100%);
  color: var(--hg-focus-ink) !important;
  box-shadow: 0 10px 30px rgba(23, 49, 59, 0.08);
}

.hg-focus-card--routes:hover {
  color: var(--hg-focus-ink) !important;
  transform: none;
  box-shadow: 0 10px 30px rgba(23, 49, 59, 0.08);
}

.hg-focus-routes-intro .hg-focus-kicker {
  color: var(--hg-focus-green);
}

.hg-focus-routes-intro h3 {
  margin: 0;
  color: var(--hg-focus-ink);
  font-size: 24px;
  line-height: 1.2;
}

.hg-focus-card--routes nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hg-focus-card--routes nav a {
  display: flex;
  min-width: 0;
  min-height: 68px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(29, 111, 95, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--hg-focus-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.hg-focus-card--routes nav a:hover,
.hg-focus-card--routes nav a:focus-visible {
  border-color: var(--hg-focus-green);
  background: #fff;
  color: var(--hg-focus-green-dark);
  transform: translateY(-2px);
}

.hg-focus-card--routes nav a:focus-visible {
  outline: 3px solid rgba(240, 196, 26, 0.8);
  outline-offset: 2px;
}

.hg-focus-card--routes nav a span:first-child {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Founder + malama close
   -------------------------------------------------------------------------- */

.hg-focus-story {
  margin-bottom: 24px;
}

.hg-focus-story-grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  border: 1px solid var(--hg-focus-line);
  border-radius: 30px 30px 0 0;
  background: var(--hg-focus-paper);
  box-shadow: var(--hg-focus-shadow);
}

.hg-focus-story-copy {
  display: flex;
  padding: 52px;
  flex-direction: column;
  justify-content: center;
}

.hg-focus-story-copy h2 {
  max-width: 520px;
  margin: 0 0 20px;
  color: var(--hg-focus-ink);
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.7px;
  text-wrap: balance;
}

.hg-focus-story-copy > p:not(.hg-focus-story-founders) {
  max-width: 580px;
  margin: 0 0 20px;
  color: #42565e;
  font-size: 17px;
  line-height: 1.66;
}

.hg-focus-story-founders {
  display: flex;
  margin: 0 0 28px;
  color: var(--hg-focus-ink);
  font-size: 15px;
  font-weight: 800;
  flex-direction: column;
}

.hg-focus-story-founders span {
  margin-top: 2px;
  color: #6b7d84;
  font-size: 13px;
  font-weight: 600;
}

.hg-focus-story-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hg-focus-button {
  display: inline-flex;
  padding: 13px 19px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--hg-focus-green);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hg-focus-button:hover,
.hg-focus-button:focus-visible {
  background: var(--hg-focus-green-dark);
}

.hg-focus-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hg-focus-green-dark) !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hg-focus-story-photos {
  display: grid;
  min-height: 570px;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  background: #fff;
}

.hg-focus-story-photo {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.hg-focus-story-photo--main {
  grid-row: span 2;
}

.hg-focus-story-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.hg-focus-malama {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  padding: 24px 30px;
  align-items: center;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(110deg, #17313b 0%, #1d6f5f 70%, #2b8c77 100%);
  color: #fff;
  box-shadow: var(--hg-focus-shadow);
}

.hg-focus-malama-mark {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #f2c66d;
  font-size: 24px;
}

.hg-focus-malama .hg-focus-kicker {
  margin: 0 0 3px;
  color: #f2c66d;
}

.hg-focus-malama h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

.hg-focus-malama p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.45;
}

.hg-focus-malama > a {
  display: inline-flex;
  padding: 11px 16px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hg-focus-malama > a:hover,
.hg-focus-malama > a:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
  .hg-focus-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hg-focus-heading > p {
    max-width: 680px;
  }

  .hg-focus-card--film {
    grid-column: span 12;
    grid-row: auto;
    min-height: 430px;
  }

  .hg-focus-card--month,
  .hg-focus-card--start {
    grid-column: span 6;
  }

  .hg-focus-card--routes {
    grid-template-columns: 1fr;
  }

  .hg-focus-story-grid {
    grid-template-columns: 1fr;
  }

  .hg-focus-story-photos {
    min-height: 460px;
  }
}

@media (max-width: 700px) {
  .hg-home-focus .hg-beta-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hg-home-focus .hg-os-frame {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 24px;
  }

  .hg-focus-bento {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .hg-focus-card,
  .hg-focus-card--film,
  .hg-focus-card--month,
  .hg-focus-card--start {
    width: 100%;
    min-height: 330px;
  }

  .hg-focus-card--film {
    min-height: 390px;
  }

  .hg-focus-card-body {
    padding: 24px;
  }

  .hg-focus-card-body > strong,
  .hg-focus-card--film .hg-focus-card-body > strong {
    font-size: 26px;
    line-height: 1.18;
  }

  .hg-focus-card--routes {
    padding: 24px;
  }

  .hg-focus-card--routes nav {
    grid-template-columns: 1fr;
  }

  .hg-focus-card--routes nav a {
    min-height: 58px;
  }

  .hg-focus-story-copy {
    padding: 36px 26px;
  }

  .hg-focus-story-copy h2 {
    font-size: 32px;
  }

  .hg-focus-story-photos {
    min-height: 400px;
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hg-focus-malama {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 22px;
  }

  .hg-focus-malama > a {
    grid-column: 1 / -1;
    justify-content: center;
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .hg-home-focus .hg-beta-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hg-focus-card,
  .hg-focus-card--month,
  .hg-focus-card--start {
    min-height: 300px;
  }

  .hg-focus-card--film {
    min-height: 350px;
  }

  .hg-focus-story-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hg-focus-button,
  .hg-focus-text-link {
    justify-content: center;
    text-align: center;
  }

  .hg-focus-story-photos {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-focus-card,
  .hg-focus-card > img,
  .hg-focus-card--routes nav a {
    transition: none;
  }

  .hg-focus-card:hover,
  .hg-focus-card:focus-visible,
  .hg-focus-card:hover > img,
  .hg-focus-card:focus-visible > img,
  .hg-focus-card--routes nav a:hover,
  .hg-focus-card--routes nav a:focus-visible {
    transform: none;
  }
}
