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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--tracking);
  color: var(--text);
  background: var(--canvas-warm);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-width: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.16px;
  overflow-wrap: anywhere;
  min-width: 0;
}

:focus-visible {
  outline: 2px solid var(--green-accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: var(--tracking);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: var(--btn-active);
}

.btn--primary {
  background: var(--green-accent);
  border-color: var(--green-accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-brand);
  border-color: var(--green-brand);
}

.btn--outline {
  background: transparent;
  border-color: var(--green-accent);
  color: var(--green-accent);
}

.btn--outline:hover {
  background: var(--green-light);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn--on-dark {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--white {
  background: var(--white);
  border-color: var(--white);
  color: var(--green-accent);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 52px;
  padding: 14px 32px;
  font-size: 16px;
}

.btn--sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-nav);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 12px rgba(0, 117, 74, 0.22));
}

.logo:active {
  transform: translateY(0);
}

.logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(220px, 58vw);
}

.logo-img--mark {
  height: 40px;
  width: 40px;
}

.logo-img--wordmark {
  height: 40px;
}

/* Footer (dark) uses light wordmark */
.site-footer .logo:hover {
  filter: drop-shadow(0 0 14px rgba(203, 162, 88, 0.35));
}

.site-footer .logo-img--wordmark {
  height: 38px;
}

/* Legacy text mark (unused if SVG present) */
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-brand);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green-brand);
  background: var(--green-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--text);
}

.cart-btn:hover {
  border-color: var(--green-accent);
  color: var(--green-accent);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green-accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
}

/* Powered by — POP */
.powered-band {
  background: var(--green-house);
  color: var(--white);
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.powered-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.powered-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.powered-title {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.powered-title span {
  color: var(--gold);
}

.powered-note {
  font-size: 13px;
  color: var(--text-white-soft);
  max-width: 36ch;
  line-height: 1.45;
}

.powered-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(203, 162, 88, 0.55);
  background: rgba(203, 162, 88, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.powered-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold-lightest);
  border: 1px solid rgba(203, 162, 88, 0.45);
  color: #6b5220;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: var(--green-house);
  color: var(--white);
  padding: var(--space-9) 0 var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-white-soft);
  max-width: 28ch;
  line-height: 1.5;
}

.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-white-soft);
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--text-white-soft);
}

.footer-bottom a {
  color: var(--gold);
  font-weight: 600;
}

/* Frap float */
.frap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--green-accent);
  color: var(--white);
  box-shadow: var(--shadow-frap);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frap:active {
  transform: var(--btn-active);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.24);
}

.frap svg {
  width: 24px;
  height: 24px;
}

.frap-count {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-accent);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-accent);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field-error input,
.field-error select,
.field-error textarea {
  border-color: var(--red);
  background: hsl(4 82% 43% / 5%);
}

.field-msg {
  font-size: 12px;
  color: var(--red);
  min-height: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.modal h2 {
  font-size: 1.5rem;
  color: var(--green-brand);
  margin: 12px 0 8px;
}

.modal p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 8px;
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-accent);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}

.modal-details {
  background: var(--canvas-warm);
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0 20px;
  text-align: left;
  font-size: 14px;
}

.modal-details strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 12px auto;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.2s ease;
    z-index: 99;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .logo-img--wordmark {
    height: 34px;
    max-width: min(180px, 52vw);
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .powered-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .frap {
    transition: none;
  }
}
