:root {
  --afz-bg: #f3eee8;
  --afz-ink: #14110f;
  --afz-muted: #5c534c;
  --afz-line: #d9cfc4;
  --afz-red: #b01616;
  --afz-red-dark: #8a1010;
  --afz-green: #1a6b32;
  --afz-green-dark: #125026;
  --afz-focus: #b01616;
  --afz-header-bg: rgba(243, 238, 232, 0.97);
  --afz-header-h: 64px;
  --afz-logo-hero: min(280px, 55vw);
  --afz-logo-mini: 52px;
  --afz-wrap: 720px;
  --afz-wrap-wide: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--afz-ink);
  background: var(--afz-bg);
}

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

a { color: var(--afz-red); }
a:hover { color: var(--afz-red-dark); }

.afz-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--afz-ink);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 10000;
}
.afz-skip:focus { left: 0; }

/* Header - always compact: mini logo top-left + nav. Sticky. No giant/reflow logo. */
.afz-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--afz-header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.afz-header.is-scrolled {
  border-bottom-color: var(--afz-red);
  box-shadow: 0 1px 8px rgba(176, 22, 22, 0.08);
}
.afz-header-inner {
  max-width: var(--afz-wrap-wide);
  margin: 0 auto;
  padding: .55rem 1rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: var(--afz-header-h);
}
.afz-logo-link {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}
.afz-logo {
  width: var(--afz-logo-mini);
  height: auto;
  display: block;
}

/* Large logo lives in front-page hero content only */
.afz-hero-logo-wrap {
  text-align: center;
  margin: 0 0 1.1rem;
}
.afz-hero-logo {
  width: var(--afz-logo-hero);
  height: auto;
  display: block;
  margin: 0 auto;
  transition: opacity .3s ease;
}
body.home.afz-has-scrolled .afz-hero-logo {
  opacity: 0.88;
}

.afz-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.afz-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  justify-content: flex-end;
}
.afz-nav-list a {
  text-decoration: none;
  color: var(--afz-ink);
  font-weight: 600;
  font-size: .95rem;
}
.afz-nav-list a:hover,
.afz-nav-list .current-menu-item > a {
  color: var(--afz-red);
}
.afz-nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--afz-line);
  border-radius: 6px;
  width: 44px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
}
.afz-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--afz-ink);
  margin: 5px 0;
}

@media (max-width: 720px) {
  .afz-nav-toggle { display: inline-block; }
  .afz-nav {
    display: none;
    width: 100%;
    margin-left: 0;
  }
  .afz-header.is-nav-open .afz-nav { display: block; }
  .afz-nav-list {
    flex-direction: column;
    gap: .5rem;
    padding: .5rem 0 0;
  }
  .afz-header-inner { position: relative; flex-wrap: wrap; }
}

.afz-wrap {
  max-width: var(--afz-wrap);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}
.afz-wrap.afz-hero-copy,
.afz-cards { max-width: var(--afz-wrap-wide); }

.afz-h1 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 .75rem;
  letter-spacing: -0.02em;
}
.afz-h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 .6rem;
}
.afz-lead { font-size: 1.1rem; }
.afz-statement {
  font-size: 1.2rem;
  border-left: 4px solid var(--afz-red);
  padding-left: .85rem;
  margin: 1rem 0;
}
.afz-muted { color: var(--afz-muted); }
.afz-prose ul { padding-left: 1.2rem; }
.afz-prose li { margin: .35rem 0; }

.afz-btn {
  display: inline-block;
  background: var(--afz-red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: .7rem 1.15rem;
  cursor: pointer;
  font-size: 1rem;
}
.afz-btn:hover { background: var(--afz-red-dark); color: #fff !important; }
.afz-btn-lg { padding: .9rem 1.4rem; font-size: 1.05rem; }
.afz-btn-ghost {
  background: transparent;
  color: var(--afz-ink) !important;
  border: 1px solid var(--afz-line);
}
.afz-btn-ghost:hover { border-color: var(--afz-red); color: var(--afz-red) !important; background: #f8efef; }

.afz-section { padding: .5rem 0 1rem; }
.afz-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}
.afz-card {
  display: block;
  border: 1px solid var(--afz-line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--afz-ink);
  background: #faf7f3;
}
.afz-card strong { display: block; color: var(--afz-red); margin-bottom: .25rem; }
.afz-card span { color: var(--afz-muted); font-size: .95rem; }
.afz-card:hover { border-color: var(--afz-red); background: #f5ebe8; }

.afz-form { margin-top: 1rem; }
.afz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem 1rem;
}
.afz-grid-2 { grid-template-columns: 1fr 1fr; }
.afz-field { margin: 0; }
.afz-field-full { grid-column: 1 / -1; }
.afz-field label {
  display: block;
  font-weight: 600;
  margin-bottom: .3rem;
  font-size: .95rem;
}
.afz-field .req { color: var(--afz-red); }
.afz-field input,
.afz-field select,
.afz-field textarea {
  width: 100%;
  padding: .55rem .65rem;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: var(--afz-ink);
}
.afz-field input:focus,
.afz-field select:focus,
.afz-field textarea:focus {
  outline: 2px solid var(--afz-focus);
  outline-offset: 1px;
  border-color: var(--afz-red);
}
.afz-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.afz-actions { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .6rem; }

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

.afz-alert {
  padding: .85rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.afz-alert-ok { background: #e8f6ec; border: 1px solid #b7e0c2; }
.afz-alert-err { background: #fdeeee; border: 1px solid #f0c0c0; }

.afz-leaflet {
  width: 100%;
  height: 280px;
  border: 1px solid var(--afz-line);
  border-radius: 10px;
  margin: .75rem 0 1rem;
  z-index: 1;
}
.afz-leaflet-tall { height: min(70vh, 560px); }

.afz-linklist { padding-left: 1.2rem; }
.afz-linklist li { margin: .4rem 0; }

.afz-footer {
  border-top: 1px solid var(--afz-line);
  background: #ebe4dc;
  margin-top: 1rem;
}
.afz-footer-inner { padding-top: 1.5rem; padding-bottom: 2rem; }
.afz-footer-line { margin: .4rem 0; font-size: .95rem; }

/* Kill leftover Softaculous / Woo chrome if any slips in */
.woocommerce-store-notice,
.widget_shopping_cart,
.wc-block-mini-cart { display: none !important; }


/* Shop - clean AFZ placeholder (no Softaculous theater) */
.afz-shop-hero {
  text-align: center;
  padding: 1.5rem 0 .5rem;
}
.afz-shop-badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--afz-red);
  border: 1px solid var(--afz-red);
  border-radius: 999px;
  padding: .25rem .75rem;
  margin-bottom: 1rem;
  background: #f8efef;
}
.afz-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.afz-shop-tile {
  border: 1px dashed var(--afz-line);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  background: #faf7f3;
  text-align: center;
  color: var(--afz-muted);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.afz-shop-tile strong {
  color: var(--afz-ink);
  font-size: 1rem;
}
.afz-quiet-gr { font-size: .9rem; margin-top: 1rem; }


/* Cart / checkout - AFZ shell */
.afz-wrap.afz-wrap-wide { max-width: var(--afz-wrap-wide); }
.afz-woo { margin-top: 1rem; }
.afz-cart-empty {
  text-align: center;
  border: 1px dashed var(--afz-line);
  border-radius: 12px;
  background: #faf7f3;
  padding: 2rem 1rem;
  margin: 1rem auto 2rem;
  max-width: 560px;
}
.afz-cart-empty-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 .4rem; color: var(--afz-ink); }
.afz-woo .woocommerce-message,
.afz-woo .woocommerce-info,
.afz-woo .woocommerce-error,
.afz-shop .woocommerce-message,
.afz-shop .woocommerce-info,
.afz-shop .woocommerce-error {
  background: #faf7f3;
  border-top: 3px solid var(--afz-red);
  color: var(--afz-ink);
  list-style: none;
  padding: .9rem 1rem;
  margin: 0 0 1rem;
  border-radius: 6px;
}
.afz-woo .woocommerce-message::before,
.afz-woo .woocommerce-info::before,
.afz-shop .woocommerce-message::before,
.afz-shop .woocommerce-info::before { color: var(--afz-red); }
.afz-woo table.shop_table {
  background: #faf7f3;
  border: 1px solid var(--afz-line);
  border-radius: 10px;
  border-collapse: separate;
}
.afz-woo table.shop_table th,
.afz-woo table.shop_table td { border-color: var(--afz-line); }
.afz-woo .product-name a { color: var(--afz-ink); font-weight: 700; text-decoration: none; }
.afz-woo .product-name a:hover { color: var(--afz-red); }
.afz-woo a.remove { color: var(--afz-red) !important; }
.afz-woo a.remove:hover { background: var(--afz-red); color: #fff !important; }
.afz-woo .button,
.afz-woo button.button,
.afz-woo a.button,
.afz-woo .checkout-button,
.afz-shop .single_add_to_cart_button,
.afz-shop a.added_to_cart,
.afz-shop .woocommerce-message .button {
  background: var(--afz-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: .7rem 1.15rem !important;
}
.afz-woo .button:hover,
.afz-woo .checkout-button:hover,
.afz-shop .single_add_to_cart_button:hover { background: var(--afz-red-dark) !important; }
.afz-woo .button:disabled,
.afz-woo .button[disabled] { opacity: .55; }
.afz-woo .cart-collaterals .cart_totals { float: none; width: 100%; max-width: 420px; margin-left: auto; }
.afz-woo .cart-collaterals h2 { font-size: 1.15rem; }
.afz-woo .coupon .input-text { border: 1px solid var(--afz-line); border-radius: 6px; padding: .5rem .6rem; background: #fff; }
.afz-woo .qty { border: 1px solid var(--afz-line); border-radius: 6px; padding: .35rem; width: 4.5em; }
.afz-woo .wc-block-components-button:not(.is-link) { background: var(--afz-red); color: #fff; border-radius: 8px; }
.afz-woo .wc-block-components-button:not(.is-link):hover { background: var(--afz-red-dark); }
.afz-woo .wc-block-checkout { margin-top: .5rem; }
@media (max-width: 640px) {
  .afz-woo table.shop_table_responsive tr td { text-align: right; }
  .afz-woo .cart-collaterals .cart_totals { max-width: none; }
}


/* MapLibre + OpenFreeMap maps */
.afz-maplibre { position: relative; overflow: hidden; }
.afz-maplibre .maplibregl-popup-content { border-radius: 8px; padding: .6rem .8rem; font: inherit; font-size: .95rem; color: var(--afz-ink); }
.afz-maplibre .maplibregl-ctrl-attrib { font-size: 11px; }
.afz-home-map .afz-maplibre { height: min(55vh, 420px); }

/* Declare form checkboxes */
.afz-check { margin: 1rem 0 .25rem; }
.afz-check label { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; font-weight: 600; }
.afz-check input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--afz-red); flex: 0 0 auto; }
.afz-check-help { display: block; margin: .25rem 0 0 1.75rem; font-size: .92rem; font-weight: 400; }
.afz-check-required { padding: .8rem .9rem; border: 1px dashed var(--afz-red); border-radius: 8px; background: #faf7f3; }
.afz-check-required label { font-weight: 500; }
.afz-pick-coords { font-size: .9rem; margin: .4rem 0 0; }
.afz-map-pick[hidden] { display: none !important; }
.afz-map-unavailable { height: auto !important; min-height: 0; border-style: dashed; }
