/* Home page specific styles for GameLandPolska – Strange Horticulture */
:root {
  --home-bg: #0c1410;
  --home-bg-alt: #0f1a15;
  --home-ink: #e9f1eb;
  --home-muted: #a9b7ad;
  --home-accent: #86c29f;
  --home-accent-2: #3a8a61;
  --home-shadow: rgba(0,0,0,0.45);
}

.home-main { background: linear-gradient(180deg, #0b120e 0%, #0d1713 100%); color: var(--home-ink); }

/* Accessible skip link */
.skip-link { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; padding: .75rem 1rem; background: #183226; color: #fff; border-radius: .25rem; z-index: 1000; }

/* Hero */
.home-hero { position: relative; isolation: isolate; color: var(--home-ink); }
.home-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0%, rgba(22,41,34,0.92) 0%, rgba(8,12,10,0.88) 60%, rgba(6,9,8,0.96) 100%), url('/assets/images/hero-strange-horticulture.webp') center/cover no-repeat; z-index: -1; filter: saturate(0.85) contrast(1.05); }
.home-hero__inner { max-width: 1100px; margin: 0 auto; padding: clamp(3rem, 6vw, 6rem) 1.25rem; text-align: center; }
.home-hero__title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; letter-spacing: .2px; }
.home-hero__subtitle { margin: 1rem auto 2rem; max-width: 800px; color: var(--home-muted); }
.home-hero__cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Generic buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.75rem 1.1rem; border-radius:.5rem; text-decoration:none; font-weight:600; transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--home-accent) 0%, var(--home-accent-2) 100%); color:#0a120e; box-shadow: 0 6px 18px rgba(134,194,159,.25); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: #1a2c24; color: var(--home-ink); border: 1px solid #244335; }
.btn-secondary:hover { background:#20362b; }
.btn-ghost { background: transparent; color: var(--home-accent); border: 1px solid #2b4b3b; }
.btn-ghost:hover { background: rgba(43,75,59,.12); }
.btn-lg { padding: 1rem 1.4rem; font-size: 1.1rem; }
.link-arrow { color: var(--home-accent); text-decoration: none; font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* Sections */
.home-section { max-width: 1100px; margin: 0 auto; padding: clamp(2rem, 4vw, 3.5rem) 1.25rem; background: transparent; }
.home-section--alt { background: linear-gradient(180deg, transparent 0%, rgba(19,32,26,.45) 100%); backdrop-filter: saturate(110%); }
.home-section--grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.home-section__content h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .5rem; }
.home-section__content p { color: var(--home-ink); opacity:.95; }
.home-list { margin: .75rem 0 1rem; padding-left: 1.15rem; color: var(--home-muted); }
.home-section__media { text-align: center; }
.home-section__media img { width: 100%; height: auto; border-radius: .5rem; box-shadow: 0 12px 28px var(--home-shadow); }

/* Features trio */
.home-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0 1.25rem; }
.home-feature { background: #0f1914; border: 1px solid #1f352a; border-radius: .5rem; padding: 1rem; min-height: 100%; }
.home-feature h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.home-feature p { color: var(--home-muted); margin: 0; }

/* Forms */
.home-form { max-width: 860px; }
.home-form--inline { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: end; }
.home-form label { display:block; font-weight:600; margin-bottom:.35rem; }
.home-form input[type="email"], .home-form input[type="text"], .home-form textarea { width: 100%; background:#0f1914; color: var(--home-ink); border:1px solid #22392d; border-radius:.5rem; padding:.7rem .8rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.02); }
.home-form textarea { resize: vertical; }
.home-form__note { color: var(--home-muted); font-size: .9rem; margin-top:.5rem; }
.home-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.home-form__field { min-width: 0; }

/* Final CTA */
.home-cta-final { text-align:center; padding: clamp(2.5rem, 6vw, 4rem) 1.25rem; background: radial-gradient(60% 100% at 50% 0%, rgba(23,40,33,.65) 0%, rgba(10,15,13,1) 100%); border-top: 1px solid #1c3026; }
.home-cta-final h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 .5rem; }
.home-cta-final p { color: var(--home-muted); margin: 0 0 1rem; }

/* Reveal on scroll (reduced motion aware) */
@media (prefers-reduced-motion: no-preference) {
  .home-section, .home-cta-final { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
  .home-section.is-visible, .home-cta-final.is-visible { opacity: 1; transform: none; }
}

/* Google Play Button */
.gplay-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.gplay-button-wrapper a {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gplay-button-wrapper a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.gplay-button-wrapper a:active {
  transform: translateY(0);
}

.gplay-button {
  height: auto;
  width: 180px;
  max-width: 100%;
  display: block;
}

/* Responsive adjustments for Google Play button */
@media (max-width: 768px) {
  .gplay-button {
    width: 160px;
  }
  
  .gplay-button-wrapper {
    margin-top: 1.25rem;
  }
}

@media (max-width: 480px) {
  .gplay-button {
    width: 140px;
  }
  
  .gplay-button-wrapper {
    margin-top: 1rem;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .home-section--grid { grid-template-columns: 1fr; }
  .home-features { grid-template-columns: 1fr; }
  .home-form--inline { grid-template-columns: 1fr; }
  .home-form__row { grid-template-columns: 1fr; }
}
