/* ==========================================================================
   Motorari — shared stylesheet
   ========================================================================== */

:root {
  --cream: #F7F2E8;
  --cream-deep: #EFE7D8;
  --cream-line: #E2D8C5;
  --green: #243E32;
  --green-dark: #1A2E25;
  --graphite: #242824;
  --muted: #4B504B;
  --gold: #B89A59;
  --terracotta: #B96E46;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.2vw, 44px);
  --max: 1320px;
  --radius: 4px;
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--green);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--green);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--cream); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 64px) 0; }
.section--alt { background: var(--cream-deep); }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: .9em;
}
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 640px; }

/* ---------- Buttons ---------- */

.btn,
.shopsync-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover,
.shopsync-checkout:hover { background: var(--green-dark); color: var(--cream); }

.btn--outline { background: transparent; color: var(--green); }
.btn--outline:hover { background: var(--green); color: var(--cream); }

.product-buy .shopsync-checkout { width: 100%; font-size: 1.05rem; min-height: 54px; }

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ---------- Announcement bar ---------- */

.announcement {
  border-bottom: 1px solid var(--cream-line);
  text-align: center;
  font-size: .875rem;
  padding: 10px var(--gutter);
  color: var(--graphite);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img { height: 46px; width: auto; }
.logo__text {
  display: none;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--green);
}
.logo.is-missing img { display: none; }
.logo.is-missing .logo__text { display: inline; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--graphite);
  text-decoration: none;
  font-size: 1.02rem;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green); }

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 0;
  color: var(--green);
  cursor: pointer;
  border-radius: var(--radius);
}
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .logo img { height: 38px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-line);
    box-shadow: 0 12px 24px rgba(36, 40, 36, .08);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .main-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--cream-line);
  }
  .main-nav li:last-child a { border-bottom-color: transparent; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--cream-line); font-weight: 600; }
}

/* ---------- Banners (hero + secondary) ---------- */

.banner { position: relative; background: var(--cream-deep); overflow: hidden; }
.banner__media { aspect-ratio: 3 / 4; width: 100%; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.banner.is-missing .banner__media img { visibility: hidden; }
.banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(24px, 6vw, 56px) var(--gutter) 0;
}
.banner__content h1,
.banner__content h2 {
  font-size: clamp(1.85rem, 7.4vw, 3rem);
  max-width: 15ch;
  margin-bottom: .35em;
}
.banner__content p { color: var(--graphite); max-width: 34ch; font-size: 1rem; margin-bottom: .8em; }
.banner__content .btn { margin-top: .2em; }

@media (min-width: 900px) {
  .banner__media { aspect-ratio: 12 / 5; max-height: none; }
  .banner__media img { object-position: center; }
  .banner__content {
    justify-content: center;
    padding: 0 var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
  }
  .banner__content > * { max-width: 40%; }
  .banner__content h1,
  .banner__content h2 { font-size: clamp(2rem, 3.1vw, 3.3rem); max-width: 40%; }
  .banner__content p { font-size: 1.12rem; max-width: 36%; }

  .banner--right .banner__content { align-items: flex-end; text-align: right; }
}

/* ---------- Section headers ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head a { color: var(--graphite); }

.intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.intro .lead { margin: 0 auto; }

/* ---------- Product grid & cards ---------- */

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 16px;
}
@media (min-width: 360px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 20px; } }
@media (min-width: 1024px) { .product-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; height: 100%; }
.card__cover { display: block; margin-bottom: 14px; }
.card__cover:hover .cover img { transform: scale(1.015); }
.card__title { font-size: clamp(1rem, 1.4vw, 1.15rem); margin: 0 0 6px; line-height: 1.3; }
.card__title a { color: var(--graphite); text-decoration: none; }
.card__title a:hover { color: var(--green); text-decoration: underline; }
.card__meta { font-size: .85rem; color: var(--muted); margin: 0 0 4px; }
.card__price { font-weight: 600; color: var(--graphite); margin: 0; }

/* Cover with built-in fallback (shown while the image file is missing) */
.cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--cream-deep);
  border: 1px solid var(--cream-line);
  overflow: hidden;
}
.cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cover.is-missing img { display: none; }
.cover__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14% 10% 10%;
  text-align: center;
  font-family: var(--font-serif);
  color: var(--green);
}
.cover__fallback-title { font-size: clamp(1rem, 2.2vw, 1.6rem); line-height: 1.15; }
.cover__fallback-rule { width: 30%; height: 1px; background: var(--gold); }
.cover__fallback-brand { font-size: .9rem; letter-spacing: .04em; }

/* ---------- Value / proposal section ---------- */

.values {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-top: clamp(28px, 4vw, 48px);
}
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.value { border-top: 1px solid var(--gold); padding-top: 20px; }
.value h3 { margin-bottom: .4em; }
.value p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin: 0 auto; }
.faq__list { border-top: 1px solid var(--cream-line); }
.faq details { border-bottom: 1px solid var(--cream-line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--green);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__answer { padding: 0 0 22px; color: var(--muted); max-width: 72ch; }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Page header / breadcrumbs ---------- */

.page-header { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); }
.page-header .lead { margin-top: .4em; }

.breadcrumbs { font-size: .875rem; color: var(--muted); padding-top: 24px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--cream-line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current="page"] { color: var(--graphite); }

/* ---------- Product page ---------- */

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 24px 0 clamp(48px, 6vw, 80px);
}
.product__media .cover { max-width: 520px; margin: 0 auto; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .product__media { position: sticky; top: calc(var(--header-h) + 24px); }
}
.product__title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .2em; }
.product__subtitle { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); margin-bottom: 1em; }
.product__price { font-size: 1.5rem; font-weight: 600; color: var(--graphite); margin-bottom: .6em; }
.product__notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--cream-deep);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  font-size: .95rem;
  margin-bottom: 20px;
}
.product__notice svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--green); }
.product-buy { margin-bottom: 12px; }
.product__policies { font-size: .9rem; color: var(--muted); margin-bottom: 32px; }
.product__section { border-top: 1px solid var(--cream-line); padding-top: 24px; margin-top: 24px; }
.product__section h2 { font-size: 1.45rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: .45em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- Prose (about, policies) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose address { font-style: normal; }


/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: var(--cream-deep); padding: 24px; border-radius: var(--radius); }
.contact-card h2 { font-size: 1.3rem; }
.contact-card a { word-break: break-word; }
.contact-card address { font-style: normal; }

/* ---------- Guide groups ---------- */

.guide-group + .guide-group { margin-top: clamp(48px, 6vw, 80px); }
.guide-group__head { max-width: 720px; margin-bottom: 28px; }
.guide-group__head p { color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green);
  color: var(--cream);
  padding: clamp(48px, 6vw, 72px) 0 28px;
  font-size: .95rem;
}
.site-footer :focus-visible { outline-color: var(--cream); }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 48px; } }
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  margin: 0 0 .3em;
  color: var(--cream);
}
.footer-title {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .85;
  font-weight: 600;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184, 154, 89, .55);
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-company p { margin-bottom: .7em; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 242, 232, .2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .85rem;
  opacity: .9;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.product__notice-sub { color: var(--muted); font-size: .9rem; }
.policy-updated { color: var(--muted); font-size: .9rem; margin-bottom: 2em; }
