/* CubsSuck.com homepage — section layout and page-specific components. */

.section {
  padding: clamp(2.75rem, 5vw, 4.25rem) 0;
  position: relative;
}

.section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section-bg--flags {
  background:
    linear-gradient(105deg, rgba(7, 17, 31, 0.94) 42%, rgba(7, 17, 31, 0.82) 100%),
    url("/assets/images/l-flag-blue-home.png") center right / cover no-repeat;
  opacity: 1;
}

.section-bg--sky {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 243, 249, 0.88) 100%),
    url("/assets/images/l-flag-blue-sky.png") center / cover no-repeat;
}

.newsletter-section .container,
.featured-product .container {
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
}

.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-header.centered .section-eyebrow::before {
  display: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--color-navy);
}

.section-copy {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 54ch;
}

.section-header.centered .section-copy {
  margin-left: auto;
  margin-right: auto;
}

/* Hero */

.hero {
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem) 0 0;
  background: var(--color-navy);
  color: var(--color-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7, 17, 31, 0.94) 38%, rgba(7, 17, 31, 0.72) 62%, rgba(14, 70, 134, 0.45) 100%),
    url("/assets/images/l-flag-blue-sky.png") center right / cover no-repeat;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 4px rgba(204, 33, 38, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 5.25rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--color-white);
  max-width: 11ch;
}

.hero-copy h1 .accent {
  color: var(--color-red);
}

.hero-copy .subhead {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-actions .btn-outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-actions .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.hero-visual {
  position: relative;
  min-height: 360px;
}

.hero-flags {
  position: relative;
  display: grid;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}

.hero-flag-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease-out);
}

.hero-flag-card:hover {
  transform: translateY(-3px);
}

.hero-flag-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-flag-card--blue {
  transform: rotate(-1.5deg);
}

.hero-flag-card--white {
  max-width: 88%;
  margin-left: auto;
  transform: rotate(1.5deg) translateY(-0.5rem);
}

.hero-drop-card {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: min(300px, 92%);
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

.hero-drop-card-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
}

.hero-drop-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-navy);
}

.hero-drop-card p {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.hero-drop-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0;
  list-style: none;
}

.hero-drop-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
}

.hero-drop-list li::before {
  content: "L";
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.hero-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-strip-item:last-child {
  border-right: 0;
}

.hero-strip-item strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--color-white);
}

/* Newsletter */

.newsletter-section {
  background: var(--color-navy);
  color: var(--color-white);
}

.newsletter-section .section-eyebrow {
  color: #ff9b9e;
}

.newsletter-section .section-title,
.newsletter-section .section-copy {
  color: var(--color-white);
}

.newsletter-section .section-copy {
  color: rgba(255, 255, 255, 0.75);
}

.newsletter-panel {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.newsletter-info {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.newsletter-info .section-eyebrow::before {
  background: #ff9b9e;
}

.newsletter-benefits {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.15rem;
  padding: 0;
  list-style: none;
}

.newsletter-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.newsletter-benefits li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--color-red);
}

.newsletter-form-wrap {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--color-white);
}

.signup-form {
  display: grid;
  gap: 0.9rem;
}

/* Benefits */

.benefits-section {
  background:
    linear-gradient(180deg, #f0f4f9 0%, #ffffff 100%);
}

.benefits-grid {
  display: grid;
  gap: 1rem;
}

.benefit-card {
  position: relative;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-red));
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.benefit-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: rgba(14, 70, 134, 0.08);
  color: var(--color-blue);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.benefit-card p {
  margin-top: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* Flag products */

.featured-product {
  overflow: hidden;
}

.flag-products {
  display: grid;
  gap: 1.25rem;
}

.flag-product-card {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.flag-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.flag-product-image {
  position: relative;
  padding: 1.25rem;
  background: linear-gradient(160deg, var(--color-blue-dark), var(--color-blue));
  text-align: center;
}

.flag-product-image--light {
  background: linear-gradient(160deg, #e8edf4, #f5f7fa);
}

.flag-product-image img {
  width: 100%;
  max-height: 220px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.flag-product-image--light img {
  box-shadow: 0 12px 30px rgba(7, 17, 31, 0.12);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-badge--blue {
  background: var(--color-blue);
}

.flag-product-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.flag-product-body h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  color: var(--color-navy);
}

.flag-product-body p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.product-specs--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 1.1rem;
}

.product-specs--inline span {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-navy-soft);
}

/* Store preview */

.store-preview {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.88);
}

.store-preview-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.store-preview .section-title,
.store-preview .section-eyebrow {
  color: var(--color-white);
}

.store-preview .section-eyebrow {
  color: #ff9b9e;
}

.store-preview .section-copy {
  color: rgba(255, 255, 255, 0.76);
}

.store-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.store-tags li {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
  font-weight: 600;
}

.store-preview-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.store-preview-visual img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

/* About */

.about-section {
  background:
    linear-gradient(180deg, rgba(14, 70, 134, 0.04), transparent),
    url("/assets/images/l-flag-white.png") right center / 280px no-repeat,
    var(--color-bg-soft);
}

.about-panel {
  position: relative;
  max-width: 680px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

.about-panel .section-copy {
  max-width: 58ch;
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Final CTA */

.final-cta {
  background: var(--color-navy);
}

.final-cta-panel {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 70, 134, 0.5), rgba(7, 17, 31, 0.9)),
    url("/assets/images/l-flag-blue-sky.png") center / cover no-repeat;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.final-cta-panel .section-header {
  margin-bottom: 0;
}

.final-cta-panel .section-title,
.final-cta-panel .section-copy {
  color: var(--color-white);
}

.final-cta-panel .section-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.final-cta-panel .section-copy {
  opacity: 0.9;
}

.final-cta-form {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.final-cta-form .form-field input {
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Thanks page */

.thanks-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.thanks-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--color-navy);
}

.thanks-hero p {
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.thanks-flag {
  width: min(160px, 45%);
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Shop */

.shop-page {
  background:
    linear-gradient(180deg, #eef3f9 0%, #ffffff 35%);
}

.shop-grid {
  display: grid;
  gap: 1rem;
}

.shop-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.shop-card img {
  width: 100%;
  max-height: 200px;
  margin: 0 auto 0.85rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.shop-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  color: var(--color-navy);
}

.shop-card p {
  margin-top: 0.45rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.shop-card .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

.shop-card-featured {
  border-color: rgba(14, 70, 134, 0.2);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
  }

  .hero-flags {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    max-width: none;
  }

  .hero-flag-card--white {
    max-width: none;
    margin-left: 0;
    transform: rotate(2deg) translateY(1rem);
  }

  .hero-flag-card--blue {
    transform: rotate(-2deg);
  }

  .hero-drop-card {
    right: -0.5rem;
    bottom: 1rem;
  }

  .newsletter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flag-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .final-cta-panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .final-cta-form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .final-cta-form .btn {
    min-width: 160px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .hero-strip-inner {
    grid-template-columns: 1fr;
  }

  .hero-strip-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-strip-item:last-child {
    border-bottom: 0;
  }

  .hero-drop-card {
    position: relative;
    width: 100%;
    margin-top: 1rem;
  }

  .hero-visual {
    min-height: auto;
  }

  .about-section {
    background-size: 180px;
    background-position: right bottom;
  }
}
