/* ===== Muddy Buddies — Dark Professional Theme ===== */
:root {
  --bg: #070b14;
  --bg-elevated: #0c1322;
  --surface: #121a2c;
  --surface-2: #182238;
  --fg: #f4f7fb;
  --muted: #9aa6b8;
  --subtle: #6b778c;
  --primary: #1e6bff;
  --primary-hover: #3b82ff;
  --ice: #7eb6ff;
  --border: #243049;
  --success: #3ddc97;
  --danger: #f07178;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-glow: 0 0 60px -16px rgba(30, 107, 255, 0.45);
  --header-h: 60px;
  --bottom-nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  min-height: 100dvh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice); text-decoration: none; }

/* ===== Install Banner ===== */
.install-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  z-index: 1000;
  padding: 10px 14px;
}
.install-banner.hidden { display: none; }
.install-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.install-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--bg);
}
.install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.3;
}
.install-text strong { font-size: 14px; font-weight: 700; }
.btn-install {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.btn-dismiss {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  max-width: 900px;
  margin: 0 auto;
  height: var(--header-h);
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.header-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.brand {
  font-weight: 800;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.tagline {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}

.nav {
  display: none;
  flex-direction: column;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 6px 0;
}
.nav.open { display: flex; }
.nav-link {
  padding: 11px 20px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}
.nav-link.active {
  color: var(--ice);
  background: var(--surface);
  font-weight: 600;
}

/* ===== Sections ===== */
.section {
  display: none;
  padding: 28px 16px 40px;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeIn 0.25s ease;
}
.section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}
.section-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.section-header p {
  color: var(--muted);
  font-size: 15px;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 16px 0 32px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(30, 107, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(30, 107, 255, 0.25));
}
.hero h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 6px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: relative;
}
.hero-sub {
  color: var(--ice);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  position: relative;
}
.hero-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(30, 107, 255, 0.35);
}
.btn-primary:hover, .btn-primary:active {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--ice);
  background: var(--surface);
}
.btn-outline {
  background: transparent;
  color: var(--ice);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--primary);
}
.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
}
.btn-full {
  width: 100%;
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  border: 1px solid var(--border);
}
.feature-icon {
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1;
}
.feature-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 5px;
}
.feature-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1557d0 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.cta-banner h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.cta-banner p {
  opacity: 0.9;
  margin-bottom: 16px;
  font-size: 14px;
}
.cta-banner .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: none;
}
.cta-banner .btn-primary:hover {
  background: var(--fg);
}

/* ===== Pricing ===== */
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.price-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  border: 1px solid var(--border);
  position: relative;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.badge {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.price-header {
  text-align: center;
  margin-bottom: 16px;
}
.price-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
}
.size {
  font-size: 13px;
  color: var(--muted);
}
.price-list {
  list-style: none;
  margin-bottom: 18px;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.price-list li:last-child { border-bottom: none; }
.price-list li.popular {
  background: rgba(30, 107, 255, 0.12);
  margin: 0 -10px;
  padding: 11px 10px;
  border-radius: 8px;
  border-bottom: none;
  color: var(--fg);
}
.price-list strong {
  color: var(--fg);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.price-list small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--subtle);
}
.price-card .btn {
  width: 100%;
}

.pricing-notes {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.pricing-notes p { margin-bottom: 10px; }
.pricing-notes .note {
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.45;
}
.pricing-notes .perk {
  color: var(--success);
  font-weight: 600;
  font-size: 13px;
}

/* ===== Booking Form ===== */
.booking-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  border: 1px solid var(--border);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--subtle);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.2);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aa6b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select option {
  background: var(--surface);
  color: var(--fg);
}
.form-group textarea {
  resize: vertical;
  min-height: 78px;
}
.checkbox-group {
  margin-bottom: 18px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.checkbox-label input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.form-actions {
  margin-bottom: 12px;
}
.form-disclaimer {
  font-size: 12px;
  color: var(--subtle);
  text-align: center;
  line-height: 1.4;
}

/* Success Message */
.success-message {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.success-message.hidden { display: none; }
.success-icon {
  width: 60px;
  height: 60px;
  background: var(--success);
  color: var(--bg);
  font-size: 28px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.success-message h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 10px;
}
.success-message p {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 15px;
}
.success-contact {
  margin: 18px 0 !important;
}
.success-contact a {
  font-weight: 700;
  color: var(--ice);
}

/* ===== Payment ===== */
.payment-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}
.pay-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  border: 1px solid var(--border);
}
.pay-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 3px;
}
.pay-handle {
  font-size: 15px;
  font-weight: 600;
  color: var(--ice);
  margin-bottom: 14px;
}
.qr-code {
  width: 190px;
  height: 190px;
  margin: 0 auto 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: white;
  padding: 8px;
}
.pay-name {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.pay-note {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 6px;
}
.payment-note {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--border);
}
.payment-note p { margin-bottom: 5px; }
.payment-note p:last-child { margin-bottom: 0; }

/* ===== Contact ===== */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
  display: block;
  color: inherit;
  transition: border-color 0.15s;
}
.contact-card:active {
  border-color: var(--primary);
}
.contact-icon {
  font-size: 26px;
  margin-bottom: 6px;
}
.contact-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 3px;
}
.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ice);
  margin-bottom: 4px;
}
.contact-action {
  font-size: 12px;
  color: var(--subtle);
  font-weight: 500;
}
.about-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
}
.about-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.about-box p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 9px;
  line-height: 1.55;
}
.about-box p:last-child { margin-bottom: 0; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 32px 16px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  object-fit: contain;
}
.footer-brand {
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 5px;
}
.footer-phone a,
.footer-web a {
  color: var(--ice);
  font-size: 14px;
}
.footer-phone { margin-bottom: 3px; }
.footer-web { margin-bottom: 14px; }
.footer-copy {
  font-size: 12px;
  color: var(--subtle);
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(12, 19, 34, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 200;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 7px 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--subtle);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s;
}
.bottom-nav-item.active {
  color: var(--ice);
  font-weight: 700;
}
.bn-icon {
  font-size: 20px;
  line-height: 1;
}

/* ===== Desktop ===== */
@media (min-width: 640px) {
  .hero h1 { font-size: 34px; }
  .hero-logo { width: 160px; height: 160px; }
  .hero-cta {
    flex-direction: row;
    max-width: 420px;
  }
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .form-row {
    flex-direction: row;
    gap: 14px;
  }
  .form-row .form-group {
    flex: 1;
  }
  .payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .qr-code {
    width: 170px;
    height: 170px;
  }
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .nav {
    display: flex;
    flex-direction: row;
    border-top: none;
    background: transparent;
    padding: 0 16px 10px;
    gap: 2px;
    max-width: 900px;
    margin: 0 auto;
  }
  .nav-link {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
  }
  .nav-link.active {
    background: var(--surface);
  }
  .menu-toggle { display: none; }
}
