/* --------------------
   ForeFun Golf GPS – Shared Styles
--------------------- */

/* Design Tokens */
:root {
  --sky: #74bff5;
  --sky-soft: #e7f3ff;
  --sky-deep: #2f7ec6;

  --navy: #102332;
  --ink: #1a2430;
  --cream: #f6f4ee;
  --sage: #7aa78a;
  --sand: #e2d3b1;
  --border-soft: #d3e4f6;

  --text-main: #132027;
  --text-muted: #5a6b7a;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 40px rgba(10, 37, 64, 0.16);
  --max-width: 1100px;
}

/* Reset / Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #bfe3ff 0, #f7f9fc 40%, #f7f4ee 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* --------------------
   Header / Navigation
--------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(247, 249, 252, 0.85);
  border-bottom: 1px solid rgba(211, 228, 246, 0.7);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(15, 75, 130, 0.3);
}

.logo-text-main {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.logo-text-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.logo-img {
  width: 40px;
  height: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a {
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--sky-deep));
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.nav-cta span.icon {
  font-size: 16px;
}

/* Hamburger for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 25px;
  background: #132027;
  border-radius: 2px;
}

/* --------------------
   Sections / Typography
--------------------- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.section-narrow {
  max-width: 820px;
}

.eyebrow,
.section-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--ink);
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 26px;
}

/* --------------------
   Hero (Home)
--------------------- */

.hero {
  margin-top: 0;
  background-image: url("images/homebackground.png"); /* 16x9 image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

  padding: 80px 60px;
  min-height: 380px;
  color: white;
}

.hero-left {
  max-width: 50%;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 420px;
  margin-bottom: 22px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.pill {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(19, 32, 39, 0.06);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--sage));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-primary span.icon {
  font-size: 18px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  border: 1px solid rgba(16, 35, 50, 0.18);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Store buttons below hero text */

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.store-badge,
.store-buttons img {
  width: 220px;
  max-width: 260px;
  height: auto;
  display: block;
}

/* --------------------
   Generic Image Card
--------------------- */

.image-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #dbeafe;
  position: relative;
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.image-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(7, 24, 50, 0.85);
  color: #f3f4f6;
}

/* --------------------
   Feature Grids
--------------------- */

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  text-align: center;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(211, 228, 246, 0.9);
  box-shadow: 0 12px 30px rgba(9, 33, 56, 0.04);
  font-size: 13px;
}

.feature-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.feature-copy {
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------
   Stats / Pills
--------------------- */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.stat-pill {
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(15, 76, 129, 0.05);
  border: 1px solid rgba(173, 210, 242, 0.9);
  font-size: 12px;
}

/* --------------------
   Lists / Tables
--------------------- */

ul.clean-list {
  list-style: none;
  padding-left: 0;
}

ul.clean-list li {
  margin-bottom: 6px;
}

/* --------------------
   Forms (Support)
--------------------- */

.form-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(211, 228, 246, 0.9);
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.08);
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  font: inherit;
  border-radius: 12px;
  border: 1px solid rgba(162, 183, 203, 0.9);
  padding: 8px 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.9);
}

.form-row textarea {
  min-height: 110px;
  resize: vertical;
}

/* --------------------
   Reviews Section
--------------------- */

.reviews,
.reviews-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 70px;
  text-align: center;
}

.reviews-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.reviews-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Soft “card wall” feel */
.reviews-section {
  background: radial-gradient(circle at top,
    rgba(116, 191, 245, 0.10),
    rgba(246, 244, 238, 0.85));
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.10);
}

/* 3 columns on desktop, 2 on tablet, 1 on phone (overridden later) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* Individual review card */
.review-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(211, 228, 246, 0.9);
  box-shadow: 0 10px 26px rgba(9, 33, 56, 0.08);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main);
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Soft accent bar using brand secondary colors */
.review-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--sky-deep),
    var(--sage)
  );
}

/* Alternate background tint for a subtle iOS “Cards” feel */
.review-card:nth-child(odd) {
  background: linear-gradient(
    135deg,
    rgba(226, 211, 177, 0.22),
    rgba(255, 255, 255, 0.96)
  );
}

/* Make the first line (title + stars) feel like a header */
.review-card {
  white-space: pre-line; /* keep your <br> spacing readable */
}

.review-card strong {
  font-weight: 600;
}

/* Optional: slightly deemphasize the date/location line
   (you don't have a separate element, so we just dim all parentheses) */
.review-card br + span {
  color: var(--text-muted);
  font-size: 12px;
}

/* Show / hide extra reviews */
.hidden-review {
  display: none;
}

/* Buttons */
.review-buttons {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.review-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.3s ease;
  box-shadow: 0 12px 26px rgba(15, 75, 130, 0.35);
}

.review-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 75, 130, 0.45);
  background: linear-gradient(135deg, var(--sky-deep), var(--navy));
}

.review-secondary {
  display: block;
  margin: 2px 0 0 0;   /* tiny top gap, no bottom gap */
  padding: 0;         /* remove all padding */
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}



/* Responsive: 2 cols on medium, 1 on phones */
@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-section {
    border-radius: 0; /* flush edge-to-edge on small phones if you prefer */
    box-shadow: none;
  }
}


/* --------------------
   Video List / Cards
--------------------- */

.video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* max 2 per row */
  gap: 24px;
  margin-top: 30px;
}

/* Card container */
.video-card {
  position: relative;
  cursor: pointer;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.video-thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Play button centered */
.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none; /* clicking opens the link */
}

.play-btn svg {
  width: 68px;
  height: 48px;
}

/* Info bar at TOP of thumbnail with gradient */
.video-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 12px;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0) 100%
  );
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

/* Title */
.video-info p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Duration on the right */
.video-duration {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 8px;
  border-radius: 6px;
}

/* --------------------
   Footer
--------------------- */

footer {
  border-top: 1px solid rgba(211, 228, 246, 0.8);
  background: rgba(248, 250, 253, 0.95);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  align-items: center;
}

.footer-inner a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* --------------------
   Utilities
--------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------
   Responsive
--------------------- */

/* Small desktop / large tablet tweaks */
@media (max-width: 1024px) {
  .hero-left {
    max-width: 60%;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .store-buttons img {
    width: 220px;
  }
}

/* Phone layouts (desktop vs phone split here) */
@media (max-width: 768px) {
  header {
    position: static;
  }

  .nav {
    flex-wrap: nowrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px; /* height of header */
    right: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .hero-left {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .store-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .store-buttons img {
    width: 180px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .section {
    padding-inline: 16px;
  }

  .feature-grid-3,
  .feature-grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .store-buttons img {
    width: 150px;
  }

  .video-list {
    grid-template-columns: 1fr; /* 1 per row on phone */
  }

  .feature-grid-3,
  .feature-grid-2 {
    grid-template-columns: 1fr;
  }

  /* Always show text above image on mobile */
  .feature-grid-2 > div:has(img) {
    order: 2;              /* image container goes second */
    text-align: center;    /* keep images nicely centered */
  }

  .feature-grid-2 > div:not(:has(img)) {
    order: 1;              /* text container goes first */
    text-align: left;      /* optional: left-align text on mobile */
  }

  .feature-grid-2 img {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}