﻿:root {
  --sky-top: #4fb2ff;
  --sky-mid: #8bd3ff;
  --horizon: #e8f9ff;
  --grass-1: #8ad64d;
  --grass-2: #4cae3f;
  --grass-3: #2d7f33;
  --sun: #ffe27a;

  --text-main: #0f2d1e;
  --text-soft: #204938;
  --white-soft: rgba(255, 255, 255, 0.88);
  --panel: rgba(243, 255, 244, 0.82);
  --panel-strong: rgba(236, 251, 238, 0.94);
  --panel-line: rgba(17, 83, 42, 0.2);

  --accent-blue: #0c92e9;
  --accent-green: #1e9445;
  --accent-gold: #d8a12b;
  --danger: #cf2f2f;
  --ok: #1f9f49;

  --shadow-soft: 0 10px 28px rgba(9, 32, 21, 0.18);
  --shadow-strong: 0 20px 45px rgba(6, 24, 16, 0.26);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(10, 28, 18, 0.38), rgba(10, 28, 18, 0.52)),
    radial-gradient(circle at 14% 10%, rgba(255, 237, 170, 0.26) 0%, rgba(255, 237, 170, 0) 30%),
    url("site-app/assets/Apex_Golf_Caddy_Banner_2.png") center / cover no-repeat fixed;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 82% 8%, rgba(255, 227, 125, 0.35) 0%, transparent 24%);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 1.2rem 0 4.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--white-soft);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 0.4rem 0.75rem;
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(50px, 7vw, 74px);
  max-width: 180px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 0.95rem;
  align-items: center;
}

.nav-links a,
.footer a,
.inline-link {
  color: #103626;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.footer a:hover,
.inline-link:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.hero-content {
  margin-top: 2.8rem;
  max-width: 840px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.93), rgba(233, 250, 239, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 1.2rem 1.3rem 1.4rem;
  position: relative;
  box-shadow: var(--shadow-strong);
}

.hero-headline {
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
}

.hero-logo {
  width: clamp(180px, 28vw, 360px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.2rem;
  object-fit: contain;
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #1b6038;
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.08;
  color: #133926;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.9rem, 4.2vw, 3.7rem);
  color: #0a3d8a;
  max-width: calc(100% - 260px);
  white-space: nowrap;
}

.lead {
  margin-top: 0.9rem;
  max-width: 650px;
  font-size: 1.08rem;
  color: #173f2f;
  font-weight: 500;
}

.section-head {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(18, 97, 59, 0.2);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.section-head p {
  color: #1a5b3a;
}

.section-head h2 {
  color: #103a2a;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.24rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, #ffcf44, #f3a827);
  color: #2d1c00;
  box-shadow: 0 8px 20px rgba(198, 126, 10, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: linear-gradient(90deg, #1f9d55, #0a8dcf);
  color: #f4fff8;
  box-shadow: 0 8px 20px rgba(12, 87, 55, 0.32);
}

.section {
  padding: 3.8rem 0 1.2rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0.45rem;
}

.membership-grid,
.feature-grid,
.dashboard-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.membership-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.feature {
  background: linear-gradient(160deg, rgba(246, 255, 247, 0.96), rgba(239, 252, 241, 0.93));
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(2px);
}

.card p,
.feature p {
  color: #173f2f;
}

.membership-grid .card:nth-child(1) {
  border-top: 5px solid var(--accent-green);
}

.membership-grid .card:nth-child(2) {
  border-top: 5px solid var(--accent-blue);
}

.dashboard-grid .card:nth-child(1) {
  border-top: 5px solid #1f9d55;
}

.dashboard-grid .card:nth-child(2) {
  border-top: 5px solid #0a8dcf;
}

.dashboard-grid .card:nth-child(3) {
  border-top: 5px solid #d5a027;
}

.card h3,
.feature h3,
.card h4 {
  font-size: 1.9rem;
  color: #114028;
}

.form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.form label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.92rem;
  color: #1a5a3a;
}

.form input {
  border-radius: 10px;
  border: 1px solid rgba(18, 97, 59, 0.32);
  background: rgba(255, 255, 255, 0.8);
  color: #103123;
  padding: 0.64rem;
}

.form select {
  border-radius: 10px;
  border: 1px solid rgba(18, 97, 59, 0.32);
  background: rgba(255, 255, 255, 0.8);
  color: #103123;
  padding: 0.64rem;
  font: inherit;
}

.form input:focus {
  outline: 2px solid rgba(12, 146, 233, 0.38);
  border-color: var(--accent-blue);
}

.form select:focus {
  outline: 2px solid rgba(12, 146, 233, 0.38);
  border-color: var(--accent-blue);
}

.field-hint {
  margin: -0.1rem 0 0.1rem;
  color: #1b5e3d;
  font-size: 0.85rem;
  font-weight: 600;
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 3.1rem;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 0.38rem;
  transform: translateY(-50%);
  border: 1px solid rgba(18, 97, 59, 0.3);
  background: rgba(255, 255, 255, 0.92);
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.password-visibility-toggle:hover {
  background: rgba(12, 146, 233, 0.14);
}

.password-visibility-toggle:focus-visible {
  outline: 2px solid rgba(12, 146, 233, 0.38);
}

.password-visibility-icon {
  color: #1a5a3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.status {
  min-height: 2rem;
  margin-top: 0.75rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--ok);
}

.admin-login-hint {
  margin-top: 0.7rem;
  color: #1a5a3a;
  font-size: 0.88rem;
}

.dashboard {
  margin-top: 1.4rem;
}

.dashboard-head {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.77);
  border: 1px solid rgba(15, 84, 45, 0.15);
  border-radius: 14px;
  padding: 0.75rem;
}

.dashboard h3 {
  font-size: 2rem;
  color: #0e3a87;
}

.dashboard-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.app-access-note {
  margin-top: 1rem;
  border-top: 5px solid #0a8dcf;
}

.app-access-note p {
  margin-top: 0.55rem;
  color: #1d5e40;
}

.payment-panel {
  margin-top: 1rem;
  border-top: 5px solid #1f9d55;
}

.payment-trust {
  margin-top: 0.55rem;
  margin-bottom: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(18, 97, 59, 0.2);
  background: rgba(255, 255, 255, 0.68);
}

.payment-trust-badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 0;
}

.stripe-official-logo {
  display: block;
  width: clamp(130px, 26vw, 190px);
  height: auto;
}

.payment-trust-text {
  margin: 0.5rem 0 0;
  color: #1b5e3d;
  font-size: 0.92rem;
  font-weight: 600;
}

.payment-form-inline {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.payment-hint {
  margin: 0 0 0.25rem;
  color: #1b5e3d;
  font-weight: 600;
}

.payment-receipt {
  margin-top: 0.75rem;
  padding: 0.72rem 0.82rem;
  border-radius: 10px;
  border: 1px solid rgba(18, 97, 59, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: #174e35;
  font-weight: 600;
}

.btn.is-disabled {
  opacity: 0.55;
  filter: grayscale(0.2);
  cursor: not-allowed;
}

.admin-panel {
  margin-top: 1rem;
  border-top: 5px solid #d5a027;
}

.admin-sub {
  margin-top: 0.4rem;
  color: #1a5a3a;
}

.admin-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-simulate {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.admin-simulate label {
  font-weight: 700;
  color: #165036;
}

.admin-simulate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-simulate-row select {
  min-width: 230px;
  border-radius: 10px;
  border: 1px solid rgba(18, 97, 59, 0.32);
  background: rgba(255, 255, 255, 0.8);
  color: #103123;
  padding: 0.6rem;
  font: inherit;
}

.admin-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(17, 83, 42, 0.15);
}

.admin-table th {
  background: rgba(18, 97, 59, 0.11);
  color: #15482f;
}

.admin-table td select {
  border-radius: 8px;
  border: 1px solid rgba(18, 97, 59, 0.25);
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.88);
}

.hidden {
  display: none;
}

.locked {
  border: 1px dashed rgba(14, 78, 42, 0.45);
  border-radius: 12px;
  padding: 1rem;
  color: #114a2d;
  background: rgba(255, 255, 255, 0.82);
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature {
  border-top: 5px solid transparent;
}

.feature:nth-child(1) {
  border-top-color: #1f9d55;
}

.feature:nth-child(2) {
  border-top-color: #0a8dcf;
}

.feature:nth-child(3) {
  border-top-color: #d5a027;
}

.footer {
  margin-top: 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(237, 252, 242, 0.76);
}

.footer-content {
  padding: 1.2rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  color: #0f4428;
}

@media (max-width: 700px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    height: 52px;
    max-width: 150px;
  }

  .hero-content {
    margin-top: 2rem;
    padding: 1rem;
  }

  .hero-headline {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo {
    position: static;
    width: min(100%, 280px);
  }

  h1 {
    max-width: 100%;
    white-space: normal;
  }

  .dashboard-head {
    flex-direction: column;
    align-items: flex-start;
  }

}




