/* Home page styles – scoped and minimal to complement base.css */
:root {
  --home-primary: #0fa3b1;
  --home-secondary: #f9c74f;
  --home-accent: #43aa8b;
  --home-ink: #0d2b2e;
  --home-bg: #f6fff9;
}

.home-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.home-skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  color: #000;
  padding: .5rem .75rem;
  border-radius: .375rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

/* Hero */
.home-hero {
  background: linear-gradient(180deg, rgba(15,163,177,0.12), rgba(67,170,139,0.08));
  padding: 2.5rem 0 1.5rem;
}
.home-hero__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .home-hero__inner {
    grid-template-columns: 1.1fr .9fr;
  }
}
.home-hero__content h1 {
  color: var(--home-ink);
  line-height: 1.15;
}
.home-hero__lead {
  font-size: 1.125rem;
  color: #1a3a3c;
}
.home-hero__media img {
  width: 100%;
  height: auto;
  border-radius: .75rem;
  display: block;
}
.home-hero__media figcaption {
  font-size: .875rem;
  color: #305154;
  margin-top: .5rem;
}

/* Search */
.home-search { margin-top: 1rem; }
.home-search__label { position: absolute; left: -9999px; }
.home-search__control { display: flex; gap: .5rem; }
.home-search__control input[type="search"] {
  flex: 1;
  padding: .75rem .875rem;
  border: 1px solid rgba(13,43,46,.2);
  border-radius: .5rem;
}
.home-search__help { margin-top: .5rem; color: #416a6d; font-size: .875rem; }
.home-search__empty { margin-top: .75rem; color: #8b2c2c; }

/* Sections */
.home-section { padding: 3rem 1rem; }
.home-section--alt { background: var(--home-bg); }
.home-section .container { max-width: 1180px; margin: 0 auto; }
.home-section__head { margin-bottom: 1rem; }

/* Grids */
.home-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .home-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .home-grid--features { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1040px) { .home-grid--interactive { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .home-grid--guides, .home-grid--news { grid-template-columns: repeat(3, 1fr); } }

/* Cards */
.home-card {
  background: #fff;
  border: 1px solid rgba(13,43,46,.08);
  border-radius: .75rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.home-card h3 { margin-top: 0; }

/* Buttons */
.home-btn { cursor: pointer; border: none; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; }
.home-btn--primary { background: var(--home-primary); color: #fff; padding: .7rem 1rem; border-radius: .6rem; }
.home-btn--secondary { background: var(--home-accent); color: #fff; padding: .7rem 1rem; border-radius: .6rem; }
.home-btn--link { color: var(--home-primary); text-decoration: underline; background: transparent; padding: .25rem 0; }
.home-btn--ghost { background: transparent; border: 1px solid rgba(13,43,46,.2); padding: .55rem .9rem; border-radius: .6rem; }
.home-btn:focus-visible { outline: 3px solid rgba(15,163,177,.35); outline-offset: 2px; }

.home-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }

/* Quicklinks */
.home-quicklinks ul { display: flex; flex-wrap: wrap; gap: .5rem; padding-left: 0; list-style: none; }
.home-quicklinks a { display: inline-block; padding: .5rem .75rem; border-radius: 999px; background: rgba(15,163,177,.1); color: #0b4b51; border: 1px solid rgba(15,163,177,.2); }
.home-quicklinks a:hover { background: rgba(15,163,177,.16); }

/* Gallery */
.home-gallery { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 880px) { .home-gallery { grid-template-columns: 1fr 1fr; } }
.home-gallery__item img { width: 100%; height: auto; border-radius: .75rem; display: block; }
.home-gallery__item figcaption { font-size: .9rem; color: #2b4b4e; margin-top: .35rem; }

/* Lists */
.home-list { padding-left: 1.1rem; }

/* Feedback */
.home-feedback { display: flex; align-items: center; gap: .5rem; margin-top: .25rem; }
.home-feedback__result { margin-left: .25rem; color: #185458; font-weight: 600; }

/* Utility */
[hidden] { display: none !important; }

/* Page more link */
.home-more { margin-top: 1rem; }

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

.home-gplay-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-gplay-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.home-gplay-link:focus-visible {
  outline: 3px solid rgba(15, 163, 177, 0.5);
  outline-offset: 4px;
  border-radius: 8px;
}

.home-gplay-btn {
  display: block;
  height: auto;
  width: 200px;
  max-width: 100%;
}

/* Responsive adjustments for Google Play button */
@media (max-width: 640px) {
  .home-gplay-btn {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .home-gplay-btn {
    width: 160px;
  }
}
