/* Magawula theme — Meticulous Espresso reference (meticuloushome.com):
   warm cream/white background, walnut-brown accent, black text,
   generous whitespace, photography-led sections. NOT a dark theme. */
:root {
  --bg-page: #FAF7F2;
  --bg-card: #FFFFFF;
  --accent-wood: #8A5A34;
  --accent-wood-hover: #6E4527;
  --text-main: #1C1710;
  --text-muted: #6B6155;
  --border-light: #E4DDD1;
}

body, #wrapper {
  background-color: var(--bg-page) !important;
  color: var(--text-main) !important;
  font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6, strong, b {
  color: var(--text-main) !important;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 400;
}

h1 strong, h2 strong, .accent-text {
  color: var(--accent-wood) !important;
}

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button,
.button.primary {
  background-color: var(--accent-wood) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  /* Editorial paints a coral inset ring on every button; clear it. */
  box-shadow: none !important;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}

input[type="submit"]:hover,
button:hover,
.button:hover,
.button.primary:hover {
  background-color: var(--accent-wood-hover) !important;
}

.features article, .box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1.5rem;
}

.features article .icon:before {
  color: var(--accent-wood) !important;
}

.features article .icon:after {
  border-color: var(--accent-wood) !important;
  background: var(--bg-card) !important;
}

#main > .inner > section {
  border-top-color: var(--border-light) !important;
}

/* Editorial's default heading underline is coral-red; retheme to match. */
header.major > :last-child {
  border-bottom-color: var(--accent-wood) !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background-color: #FFFFFF !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-main) !important;
}

input:focus, select:focus {
  border-color: var(--accent-wood) !important;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(28, 23, 16, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(28,23,16,0.15);
}

/* Sticky nav header (single-product landing page) */
#siteNav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(250, 247, 242, 0.95);
  border-bottom: 1px solid var(--border-light);
}

#siteNav .logo {
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.05em;
}

#siteNav nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 1rem;
}

#siteNav nav a:hover {
  color: var(--accent-wood);
}

/* Hero pre-order box */
.price-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-wood) !important;
}

.was-price {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  white-space: nowrap;
}

.image-caption {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 0.5rem;
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--border-light);
  color: var(--text-main);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.trust-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Hero: full-bleed image with pre-order overlaid (Meticulous style) ---- */
#hero {
  position: relative;
  width: 100%;
  min-height: clamp(24rem, 58vh, 34rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Hero photo has a pure-white sweep background, so the section matches it
     rather than the page cream — avoids a visible seam at the image edge. */
  background: #FFFFFF;
}

/* Media is absolutely positioned so the overlaid copy drives the hero height
   and can never be clipped on short or zoomed viewports. */
.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  align-self: stretch;
  /* Product shot has a white background, so a light scrim (not a dark one)
     keeps the overlaid dark text readable without muddying the photo. */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.95) 26%,
    rgba(255, 255, 255, 0.55) 35%,
    rgba(255, 255, 255, 0) 44%
  );
}

.hero-content {
  max-width: 34em;
  padding: 2.5rem 3rem;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 0.5em 0;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5em;
}

.hero-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-wood) !important;
  margin-bottom: 0.35em;
}

/* display:table keeps the pill shrink-to-fit but block-level, so the CTA
   below it doesn't flow onto the same line. */
.hero-content .badge {
  display: table;
  margin-bottom: 1rem;
}

.hero-cta {
  margin: 0.5em 0 1em 0;
}

.hero-disclaimer {
  margin: 0.75rem 0 0 0;
}

@media screen and (max-width: 1280px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content { padding: 2rem; }
}

@media screen and (max-width: 980px) {
  /* Below tablet there is no horizontal room to overlay copy on the photo
     without it landing on the product itself. Stack instead: product band on
     top, copy on solid white beneath. */
  #hero {
    display: block;
    min-height: 0;
  }
  .hero-media {
    position: relative;
    inset: auto;
    height: clamp(11rem, 52vw, 20rem);
  }
  .hero-media img {
    object-fit: contain;
    object-position: center center;
  }
  .hero-overlay {
    position: relative;
    background: #FFFFFF;
    align-items: stretch;
  }
  .hero-content {
    max-width: none;
    width: 100%;
    text-align: center;
    padding: 1.75rem 1.5rem 2rem 1.5rem;
  }
  .hero-content h1 { font-size: 2rem; }
  .hero-content .badge { margin: 0 auto 1rem auto; }
}

@media screen and (max-width: 736px) {
  .hero-content h1 { font-size: 1.6rem; }
  .hero-sub { font-size: 0.875rem; margin-bottom: 1em; }
  .hero-price { font-size: 1.75rem; }
  .hero-cta { width: 100%; }
}

/* Hero now lives outside #wrapper, so its 100vh floor would add dead space. */
#wrapper {
  min-height: 0 !important;
}

/* Compatibility callout banner */
.callout-banner {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  padding: 1.25rem 0;
}

.model-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  margin-top: 1rem;
}

.model-tags li {
  background: var(--bg-page);
  border: 1px solid var(--accent-wood);
  color: var(--accent-wood);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.caption, .section-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  margin: 0.75rem 0 0 0;
}

/* Timeline steps */
.timeline-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.timeline-steps li {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1rem;
}

.timeline-steps li.done {
  border-color: var(--accent-wood);
}

.timeline-steps li span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* FAQ (native <details>, no accordion JS needed) */
details {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
}

details p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

/* Editorial's .features grid is fixed 2-col, which leaves an orphaned
   gap with an odd number of items (3). Force 3-across on desktop. */
.features.features-3col article {
  width: calc(33.333% - 2em);
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.features.features-3col {
  justify-content: flex-start;
  align-items: stretch;
  gap: 3em;
}

/* Editorial staggers alternating cards with a top offset; cancel it so the
   three cards sit on one baseline. */
.features.features-3col article {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media screen and (max-width: 980px) {
  .features.features-3col article {
    width: calc(50% - 3em);
  }
}

@media screen and (max-width: 736px) {
  .features.features-3col article {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Sticky bottom bar, mobile only */
#stickyBar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: var(--bg-card);
  border-top: 1px solid var(--accent-wood);
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

@media screen and (max-width: 736px) {
  #stickyBar { display: flex; }
  #siteNav nav { display: none; }
}
