/* =========================================================
   HOPE & HUSTLE MEDIA™
   FLAGSHIP PRODUCTS PAGE
   File: css/flagship-products.css

   Requires:
   css/home.css
========================================================= */


/* =========================================================
   PAGE-SPECIFIC VARIABLES
========================================================= */

.flagship-page {
  --flagship-navy-dark: #08111f;
  --flagship-gold-light: #e4c16c;

  --flagship-light-border:
    rgba(255, 255, 255, 0.12);

  --flagship-gold-border:
    rgba(212, 166, 66, 0.38);

  --flagship-card-shadow:
    0 15px 45px rgba(15, 26, 42, 0.08);

  --flagship-hover-shadow:
    0 24px 60px rgba(15, 26, 42, 0.14);

  --flagship-dark-shadow:
    0 30px 75px rgba(0, 0, 0, 0.26);

  --flagship-radius-large: 30px;
  --flagship-radius-pill: 999px;
  --flagship-transition: 240ms ease;
}


/* =========================================================
   PAGE OVERFLOW
========================================================= */

.flagship-page main {
  overflow-x: clip;
}


/* =========================================================
   SECTION LABELS
========================================================= */

.flagship-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;

  color: var(--gold);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.flagship-kicker::before,
.section-kicker::before {
  content: "";

  width: 34px;
  height: 1px;
  flex: 0 0 34px;

  background: currentColor;
}


/* =========================================================
   PAGE HEADINGS
========================================================= */

.flagship-intro h2,
.flagship-products h2,
.flagship-ecosystem h2,
.flagship-cta h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}


/* =========================================================
   HERO
========================================================= */

.flagship-hero {
  position: relative;
  isolation: isolate;

  min-height: 760px;

  display: flex;
  align-items: flex-end;

  overflow: hidden;

  padding: 170px 0 95px;

  color: var(--white);

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(212, 166, 66, 0.24),
      transparent 30%
    ),
    radial-gradient(
      circle at 12% 82%,
      rgba(255, 255, 255, 0.06),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      var(--flagship-navy-dark) 0%,
      var(--navy-soft) 55%,
      var(--navy) 100%
    );
}

.flagship-hero::before {
  content: "";

  position: absolute;
  z-index: -1;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.026) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.026) 1px,
      transparent 1px
    );

  background-size: 48px 48px;

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.9),
      transparent
    );
}

.flagship-hero::after {
  content: "";

  position: absolute;
  z-index: -1;

  right: -160px;
  bottom: -190px;

  width: 520px;
  height: 520px;

  border: 1px solid rgba(212, 166, 66, 0.15);
  border-radius: 50%;

  pointer-events: none;
}

.flagship-hero-inner {
  display: grid;

  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(280px, 0.75fr);

  align-items: end;
  gap: 60px;
}

.flagship-hero-inner > * {
  min-width: 0;
}

.flagship-hero h1 {
  max-width: 850px;

  color: var(--white);

  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;

  text-wrap: balance;
}

.flagship-hero h1 span {
  color: var(--gold);
}

.flagship-hero-copy {
  max-width: 650px;

  margin-top: 28px;

  color: rgba(255, 255, 255, 0.76);

  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.flagship-hero-content .flagship-card-actions {
  margin-top: 32px;
}

.flagship-hero-summary {
  display: grid;
  gap: 15px;

  padding: 28px;

  border: 1px solid var(--flagship-light-border);
  border-radius: var(--flagship-radius-large);

  background: rgba(255, 255, 255, 0.07);

  box-shadow: var(--flagship-dark-shadow);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.flagship-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding-bottom: 14px;

  border-bottom: 1px solid var(--flagship-light-border);
}

.flagship-summary-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.flagship-summary-row strong {
  color: var(--gold);

  font-size: 1.7rem;
  line-height: 1;
}

.flagship-summary-row span {
  color: rgba(255, 255, 255, 0.7);

  font-size: 0.9rem;
  text-align: right;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.flagship-intro {
  padding: 105px 0;

  background: var(--cream);
}

.flagship-intro-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);

  align-items: start;
  gap: 72px;
}

.flagship-intro-grid > * {
  min-width: 0;
}

.flagship-intro h2 {
  color: var(--navy);

  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.flagship-intro-copy {
  color: var(--text-muted);

  font-size: 1.06rem;
  line-height: 1.85;
}

.flagship-intro-copy p {
  margin-bottom: 18px;
}

.flagship-intro-copy p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   PRODUCTS SECTION
========================================================= */

.flagship-products {
  position: relative;

  overflow: hidden;

  padding: 110px 0;

  background: var(--beige);
}

.flagship-products::before {
  content: "";

  position: absolute;

  top: 8%;
  left: -220px;

  width: 470px;
  height: 470px;

  border-radius: 50%;

  background: rgba(212, 166, 66, 0.13);

  filter: blur(70px);

  pointer-events: none;
}

.flagship-products::after {
  content: "";

  position: absolute;

  right: -260px;
  bottom: 4%;

  width: 520px;
  height: 520px;

  border: 1px solid rgba(15, 26, 42, 0.06);
  border-radius: 50%;

  pointer-events: none;
}

.flagship-section-head {
  position: relative;
  z-index: 1;

  max-width: 800px;

  margin-bottom: 48px;
}

.flagship-products h2 {
  color: var(--navy);

  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.flagship-section-head p {
  max-width: 700px;

  margin-top: 20px;

  color: var(--text-muted);

  line-height: 1.8;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.product-grid {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 26px;
}

.product-grid > * {
  min-width: 0;
}

.flagship-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 610px;

  overflow: hidden;

  padding: 0;

  color: var(--text-dark);

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: var(--flagship-radius-large);

  box-shadow: var(--flagship-card-shadow);

  transition:
    transform var(--flagship-transition),
    border-color var(--flagship-transition),
    box-shadow var(--flagship-transition);
}

.flagship-card:hover {
  transform: translateY(-7px);

  border-color: var(--flagship-gold-border);

  box-shadow: var(--flagship-hover-shadow);
}


/* =========================================================
   PRODUCT IMAGES
========================================================= */

.flagship-card-media {
  position: relative;

  display: block;

  min-height: 310px;

  overflow: hidden;

  background: var(--navy);
}

.flagship-card-media::after {
  content: "";

  position: absolute;
  inset: auto 0 0;

  height: 45%;

  background:
    linear-gradient(
      to top,
      rgba(15, 26, 42, 0.76),
      transparent
    );

  pointer-events: none;
}

.flagship-card-media img {
  width: 100%;
  height: 310px;

  object-fit: cover;

  transition:
    transform 500ms ease,
    filter 500ms ease;
}

.flagship-card:hover .flagship-card-media img {
  transform: scale(1.04);

  filter: brightness(1.04);
}


/* =========================================================
   PRODUCT CONTENT
========================================================= */

.flagship-card-content {
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 30px;
}

.flagship-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-bottom: 20px;
}

.flagship-card-number {
  color: rgba(15, 26, 42, 0.42);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.flagship-page .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 30px;

  padding: 0 12px;

  border-radius: var(--flagship-radius-pill);

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.flagship-page .status-pill::before {
  content: "";

  width: 7px;
  height: 7px;
  flex: 0 0 7px;

  border-radius: 50%;

  background: currentColor;

  box-shadow:
    0 0 0 4px rgba(15, 26, 42, 0.05);
}

.flagship-page .status-live {
  color: #177441;

  background: rgba(32, 147, 86, 0.12);

  border: 1px solid rgba(32, 147, 86, 0.22);
}

.flagship-page .status-soon {
  color: var(--gold-dark);

  background: rgba(212, 166, 66, 0.13);

  border: 1px solid rgba(212, 166, 66, 0.28);
}

.flagship-page .status-development {
  color: #1d66b3;

  background: rgba(47, 128, 237, 0.1);

  border: 1px solid rgba(47, 128, 237, 0.2);
}

.flagship-card h3 {
  margin-bottom: 12px;

  color: var(--navy);

  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.flagship-card h3 a {
  color: inherit;
}

.flagship-card h3 a:hover {
  color: var(--gold-dark);
}

.flagship-card-subtitle {
  margin-bottom: 18px;

  color: var(--gold-dark);

  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.flagship-card-description {
  margin-bottom: 26px;

  color: var(--text-muted);

  line-height: 1.75;
}

.flagship-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-bottom: 28px;

  list-style: none;
}

.flagship-card-tags li {
  padding: 8px 11px;

  color: var(--text-dark);

  background: var(--beige);

  border: 1px solid var(--border);
  border-radius: var(--flagship-radius-pill);

  font-size: 0.76rem;
}

.flagship-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: auto;
}


/* =========================================================
   PAGE-SPECIFIC BUTTONS
========================================================= */

.flagship-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 47px;
  max-width: 100%;

  padding: 0 18px;

  border: 1px solid transparent;
  border-radius: var(--flagship-radius-pill);

  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;

  transition:
    transform var(--flagship-transition),
    color var(--flagship-transition),
    background var(--flagship-transition),
    border-color var(--flagship-transition);
}

.flagship-btn:hover {
  transform: translateY(-2px);
}

.flagship-btn-primary {
  color: var(--navy);

  background: var(--gold);

  border-color: var(--gold);

  box-shadow:
    0 10px 22px rgba(212, 166, 66, 0.24);
}

.flagship-btn-primary:hover {
  color: var(--navy);

  background: var(--flagship-gold-light);

  border-color: var(--flagship-gold-light);
}

.flagship-btn-secondary {
  color: var(--navy);

  background: transparent;

  border-color: var(--border);
}

.flagship-btn-secondary:hover {
  color: var(--navy);

  background: var(--beige);

  border-color: var(--gold);
}


/* =========================================================
   ECOSYSTEM
========================================================= */

.flagship-ecosystem {
  padding: 110px 0;

  background:
    linear-gradient(
      145deg,
      rgba(212, 166, 66, 0.08),
      transparent 42%
    ),
    var(--cream);
}

.ecosystem-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  align-items: center;
  gap: 64px;
}

.ecosystem-grid > * {
  min-width: 0;
}

.flagship-ecosystem h2 {
  color: var(--navy);

  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.ecosystem-copy p {
  margin-top: 22px;

  color: var(--text-muted);

  line-height: 1.8;
}

.ecosystem-steps {
  display: grid;
  gap: 14px;
}

.ecosystem-step {
  display: grid;

  grid-template-columns:
    48px minmax(0, 1fr);

  align-items: start;
  gap: 16px;

  padding: 20px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 18px;

  box-shadow:
    0 10px 26px rgba(15, 26, 42, 0.05);

  transition:
    transform var(--flagship-transition),
    border-color var(--flagship-transition),
    box-shadow var(--flagship-transition);
}

.ecosystem-step:hover {
  transform: translateX(5px);

  border-color: var(--flagship-gold-border);

  box-shadow: var(--flagship-hover-shadow);
}

.ecosystem-step-number {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  color: var(--navy);

  background: var(--gold);

  border-radius: 14px;

  font-weight: 900;
}

.ecosystem-step h3 {
  margin: 1px 0 7px;

  color: var(--navy);

  font-size: 1rem;
}

.ecosystem-step p {
  color: var(--text-muted);

  font-size: 0.9rem;
  line-height: 1.6;
}


/* =========================================================
   FINAL CTA
========================================================= */

.flagship-cta {
  position: relative;

  overflow: hidden;

  padding: 95px 0;

  color: var(--white);

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(212, 166, 66, 0.22),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      var(--flagship-navy-dark),
      var(--navy)
    );

  border-top: 1px solid var(--flagship-light-border);
}

.flagship-cta::before {
  content: "";

  position: absolute;

  top: -160px;
  left: -130px;

  width: 350px;
  height: 350px;

  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;

  pointer-events: none;
}

.flagship-cta-inner {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: center;
  gap: 50px;
}

.flagship-cta-inner > * {
  min-width: 0;
}

.flagship-cta h2 {
  max-width: 820px;

  margin-bottom: 15px;

  color: var(--white);

  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.flagship-cta p {
  max-width: 680px;

  color: rgba(255, 255, 255, 0.72);

  line-height: 1.8;
}

.flagship-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.flagship-cta .flagship-btn-secondary {
  color: var(--white);

  border-color: rgba(255, 255, 255, 0.22);
}

.flagship-cta .flagship-btn-secondary:hover {
  color: var(--white);

  background: rgba(255, 255, 255, 0.08);

  border-color: var(--gold);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.flagship-page a:focus-visible,
.flagship-page button:focus-visible {
  outline: 3px solid rgba(212, 166, 66, 0.72);
  outline-offset: 4px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .flagship-hero {
    min-height: auto;

    padding: 145px 0 75px;
  }

  .flagship-hero-inner,
  .flagship-intro-grid,
  .ecosystem-grid,
  .flagship-cta-inner {
    grid-template-columns: 1fr;
  }

  .flagship-hero-inner {
    gap: 42px;
  }

  .flagship-hero-summary {
    max-width: 620px;
  }

  .flagship-intro-grid,
  .ecosystem-grid {
    gap: 45px;
  }

  .flagship-cta-actions {
    justify-content: flex-start;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {
  .flagship-hero {
    padding: 125px 0 65px;
  }

  .flagship-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.2rem);
  }

  .flagship-intro,
  .flagship-products,
  .flagship-ecosystem {
    padding: 75px 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .flagship-card {
    min-height: auto;
  }

  .flagship-card-media {
    min-height: 270px;
  }

  .flagship-card-media img {
    height: 270px;
  }

  .flagship-cta {
    padding: 76px 0;
  }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {
  .flagship-hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .flagship-hero-summary {
    padding: 22px;
  }

  .flagship-summary-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .flagship-summary-row span {
    text-align: left;
  }

  .flagship-summary-row strong {
    font-size: 1.45rem;
  }

  .flagship-card-content {
    padding: 24px;
  }

  .flagship-card-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .flagship-card-actions,
  .flagship-cta-actions {
    display: grid;
    grid-template-columns: 1fr;

    width: 100%;
  }

  .flagship-btn {
    width: 100%;
  }

  .ecosystem-step {
    grid-template-columns:
      42px minmax(0, 1fr);

    padding: 17px;
  }

  .ecosystem-step-number {
    width: 42px;
    height: 42px;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .flagship-card,
  .flagship-card-media img,
  .flagship-btn,
  .ecosystem-step {
    transition: none;
  }

  .flagship-card:hover,
  .flagship-btn:hover,
  .ecosystem-step:hover {
    transform: none;
  }
}