/* ============================================================
   BBY Strategies — Main Stylesheet
   ============================================================ */

/* --- Fonts ------------------------------------------------- */
@font-face {
  font-family: 'Tobias';
  src: url('../fonts/tobias-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:      #0b3240;
  --navy-mid:  #1a5669;
  --gold:      #f2c741;
  --gold-lt:   #f5d46a;
  --white:     #ffffff;
  --off-white: #f4f7f8;
  --light-gray:#dde5e8;
  --mid-gray:  #7a9099;
  --text:      #0f2d38;
  --text-light:#3d6070;

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(11, 50, 64, 0.10);
  --shadow-lg: 0 8px 40px rgba(11, 50, 64, 0.18);

  --max-width: 1120px;
  --section-pad: 80px 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-lt); }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Tobias', 'Georgia', serif;
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* --- Layout helpers --------------------------------------- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: var(--section-pad); }
.section--dark {
  background-color: var(--navy);
  color: var(--white);
}
.section--dark h2, .section--dark h3, .section--dark h4 {
  color: var(--white);
}
.section--dark p, .section--dark li {
  color: rgba(255,255,255,0.85);
}

.section--gray { background: var(--off-white); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-intro {
  max-width: 680px;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-center .section-intro { margin-inline: auto; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* --- Navigation ------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  padding-inline: 24px;
  padding-top: 10px;
}

.nav--scrolled {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

.nav__links .nav-cta a {
  color: var(--gold);
  font-weight: 600;
}
.nav__links .nav-cta a:hover { color: var(--gold-lt); }

/* --- Hamburger / Mobile menu ------------------------------ */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 28px 28px 48px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--white); }
.mobile-menu .nav-cta a {
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 640px) {
  .nav__hamburger { display: flex; }
}

/* --- Hero ------------------------------------------------- */
.hero {
  background-color: var(--navy);
  background-image: linear-gradient(165deg, #1a5669 42%, rgba(43,101,120,0.75) 64%, rgba(95,149,166,0) 91%);
  color: var(--white);
  padding: 170px 24px 130px;
  position: relative;
  overflow: hidden;
}

/* --- Blob shapes (shared by all dark hero sections) ------- */
.hero-blob {
  position: absolute;
  height: 1323px;
  width: auto;
  opacity: 0.5;
  mix-blend-mode: multiply;
  color: var(--navy-mid);
  pointer-events: none;
  z-index: 0;
}
.hero-blob--left {
  left: -648px;
  top: -286px;
  transform: rotate(-90deg);
}
.hero-blob--right {
  right: -834px;
  top: -44px;
  transform: rotate(-60deg);
}

@media (max-width: 860px) {
  .hero-blob--left  { left: -860px; top: 419px;   transform: rotate(-146deg); }
  .hero-blob--right { right: -600px; top: -1300px; transform: rotate(-146deg); }
}

.hero__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.about-hero .container,
.contact-hero .container,
.privacy-hero .container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Stat Strip ------------------------------------------- */
.stat-strip {
  background-color: var(--navy-mid);
  padding: 32px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stat-strip__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.stat {
  text-align: center;
}
.stat__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Strategy Cards --------------------------------------- */
.strategies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.strategy-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.strategy-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(242,199,65,0.15);
  border: 1px solid rgba(242,199,65,0.4);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.strategy-card h3 {
  margin-bottom: 10px;
}

.strategy-card__desc {
  font-size: 0.93rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.strategy-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.metric {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 16px;
}
.metric__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #000;
  line-height: 1;
  margin-bottom: 4px;
}
.metric__value--gold { color: #000; }
.metric__label {
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mid-gray);
}
.metric__vs {
  font-size: 0.72rem;
  color: var(--mid-gray);
  margin-top: 4px;
}

.metric--plain {
  background: transparent;
  padding: 2px 0 0 16px;
}

.strategy-card__thesis {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 20px;
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
  line-height: 1.65;
}

.strategy-card__compare {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 16px;
}

.compare-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}

.compare-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compare-tile {
  background: rgba(255,255,255,0.06);
  border-radius: calc(var(--radius) - 2px);
  padding: 12px 14px;
}

.compare-tile__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 5px;
}

.compare-tile__bby {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 3px;
}

.compare-tile__sp {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

/* --- Income Section --------------------------------------- */
.income-explainer {
  max-width: 800px;
}

.income-explainer h2 { margin-bottom: 20px; }

.callout-box {
  background: rgba(242,199,65,0.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.callout-box p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
}

.income-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.income-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
}

.income-card__name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.income-card h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.yield-hero {
  margin-bottom: 16px;
}

.yield-hero__value {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 5px;
}

.yield-hero__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.45);
}

.yield-sub-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.yield-sub-tile {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.yield-sub-tile__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.yield-sub-tile__value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.income-card__note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
}

/* --- Why Section ------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.why-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(242,199,65,0.30);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--navy);
}

.why-card h4 { margin-bottom: 8px; color: var(--navy); }
.why-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* --- About page ------------------------------------------- */
.about-hero {
  background-color: var(--navy);
  background-image: linear-gradient(165deg, #1a5669 42%, rgba(43,101,120,0.75) 64%, rgba(95,149,166,0) 91%);
  color: var(--white);
  padding: 150px 24px 80px;
  position: relative;
  overflow: hidden;
}
.about-hero h1 { color: var(--white); max-width: 800px; }
.about-hero p  { color: rgba(255,255,255,0.75); max-width: 600px; margin-top: 16px; }

.about-body {
  padding: var(--section-pad);
}
.about-body .container {
  max-width: 820px;
}
.about-body h2 { margin: 40px 0 16px; }
.about-body h2:first-child { margin-top: 0; }
.about-body ul {
  padding-left: 20px;
  margin-bottom: 1em;
}
.about-body ul li { margin-bottom: 6px; }

.disclaimer-box {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 40px;
}
.disclaimer-box p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
}

/* --- Contact page ----------------------------------------- */
.contact-hero {
  background-color: var(--navy);
  background-image: linear-gradient(165deg, #1a5669 42%, rgba(43,101,120,0.75) 64%, rgba(95,149,166,0) 91%);
  color: var(--white);
  padding: 150px 24px 80px;
  position: relative;
  overflow: hidden;
}
.contact-hero h1 { color: var(--white); }
.contact-hero p  { color: rgba(255,255,255,0.75); max-width: 500px; margin-top: 16px; }

.contact-body {
  padding: var(--section-pad);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-howto h3 { margin-bottom: 16px; }
.contact-howto p  { color: var(--text-light); }

.contact-info h2 { margin-bottom: 16px; }
.contact-info p  { color: var(--text-light); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}
.contact-detail__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.contact-detail__text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mid-gray);
  margin-bottom: 2px;
}
.contact-detail__text span, .contact-detail__text a {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-form {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form h3 { margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242,199,65,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Privacy page ----------------------------------------- */
.privacy-hero {
  background-color: var(--navy);
  background-image: linear-gradient(165deg, #1a5669 42%, rgba(43,101,120,0.75) 64%, rgba(95,149,166,0) 91%);
  padding: 140px 24px 60px;
  position: relative;
  overflow: hidden;
}
.privacy-hero h1 { color: var(--white); }
.privacy-hero p  { color: rgba(255,255,255,0.6); margin-top: 10px; font-size: 0.9rem; }

.privacy-body {
  padding: var(--section-pad);
}
.privacy-body .container { max-width: 820px; }
.privacy-body h2 {
  margin: 40px 0 14px;
  font-size: 1.25rem;
}
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body ul {
  padding-left: 20px;
  margin-bottom: 1em;
}
.privacy-body ul li { margin-bottom: 6px; }

/* --- Footer ----------------------------------------------- */
.footer {
  background-color: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 48px 24px 32px;
}

.footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.footer__brand {
  max-width: 320px;
}
.footer__brand p {
  font-size: 0.85rem;
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer__links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__col ul a:hover { color: var(--white); }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 0.82rem;
}
.footer__disclaimer {
  font-size: 0.75rem;
  max-width: 560px;
  line-height: 1.55;
  color: rgba(255,255,255,0.35);
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 860px) {
  .strategies  { grid-template-columns: 1fr; }
  .income-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; }
}

@media (max-width: 640px) {
  :root { --section-pad: 56px 20px; }
  .nav__links { display: none; }
  .hero { padding: 140px 20px 80px; }
  .strategies { margin-inline: -24px; }
  .strategy-card { padding: 20px 24px; border-radius: 0; }
  .strategy-card__metrics { grid-template-columns: 1fr; }
  .income-card { padding: 24px; }
  .stat-strip__inner { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 24px; }
  .contact-howto { background: transparent; border: none; padding: 0; }
  .footer__links { gap: 32px; }
  .footer__bottom { flex-direction: column; }
}
