/* Wandr static site — palette taken from the original Shopify theme */
:root {
  --bg: #f1f1f1;
  --bg-alt: #ffffff;
  --fg: #2f2f2f;
  --fg-soft: #5a5a5a;
  --dark: #383531;
  --accent: #b64708;
  --accent-text: #ffffff;
  --border: #dcdcdc;
  --font-heading: "IBM Plex Sans Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Sarabun", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

/* keep anchor targets clear of the sticky header (and sub-nav on the Nivo page) */
section[id] { scroll-margin-top: 84px; }
.page-nivo section[id] { scroll-margin-top: 128px; }

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

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

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; }

a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-header .logo img { height: 34px; width: auto; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg);
}
.site-header nav a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: #9c3c06; }
.btn-secondary { background: rgba(255,255,255,.92); color: var(--fg); border-color: rgba(255,255,255,.92); }
.btn-secondary:hover { background: #ffffff; border-color: #ffffff; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: #ffffff; }

/* Hero */
.hero {
  position: relative;
  height: min(92vh, 56.25vw);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, .35);
}
.hero > .hero-inner { position: relative; max-width: 820px; padding: 90px 20px; }
.hero .kicker {
  font-size: 13px;
  letter-spacing: .35em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 18px;
}
.hero p { font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }

.eyebrow {
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-dark .eyebrow { color: #e8a97e; }
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--fg-soft); max-width: 640px; }
.section-dark .lead { color: #cfcfcf; }

/* Split (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse > .split-img { order: 2; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.card { padding: 30px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: #cfcfcf; font-size: 15px; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; margin-top: 30px; max-width: 760px; }
.specs-table th, .specs-table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.specs-table th { font-family: var(--font-heading); font-weight: 600; width: 40%; }

/* Colours grid */
.colours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.colours figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.colours figcaption {
  font-family: var(--font-heading);
  font-weight: 600;
  padding-top: 12px;
  text-align: center;
}

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq summary::after { content: "+"; position: absolute; right: 4px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--fg-soft); }

/* Newsletter */
.newsletter { text-align: center; }
.newsletter form {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  min-width: 300px;
}
.newsletter .form-note { font-size: 13px; color: var(--fg-soft); margin-top: 14px; }
.section-dark .newsletter input[type="email"] { border-color: transparent; }
.section-dark .form-note { color: #9a9a9a; }

/* Footer */
.site-footer { background: var(--dark); color: #cfcfcf; padding: 60px 0 30px; font-size: 14px; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.site-footer h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer .brand img { height: 22px; width: auto; margin-bottom: 14px; filter: invert(1) brightness(1.6); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfcfcf; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .fine { padding-top: 24px; text-align: center; color: #9a9a9a; font-size: 13px; }

/* Policy pages */
.policy-page { max-width: 820px; margin: 0 auto; padding: 60px 20px; background: var(--bg); }
.policy-page h1 { font-size: 34px; margin-bottom: 24px; }
.policy-page h2 { font-size: 22px; margin: 32px 0 12px; }
.policy-page p, .policy-page li { margin-bottom: 12px; color: var(--fg-soft); }
.policy-page ul, .policy-page ol { padding-left: 24px; }
.policy-page table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.policy-page td, .policy-page th { border: 1px solid var(--border); padding: 10px; text-align: left; }

/* Sub-nav on Nivo page */
.subnav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  position: sticky;
  top: 64px;
  z-index: 9;
}
.subnav .wrap { display: flex; gap: 28px; height: 52px; align-items: center; }
.subnav .name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; margin-right: auto; }
.subnav a { text-decoration: none; color: var(--fg-soft); }
.subnav a:hover { color: var(--accent); }

@media (max-width: 820px) {
  section { padding: 56px 0; }
  .hero { height: auto; min-height: 72vh; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse > .split-img { order: 0; }
  .cards, .colours { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .newsletter input[type="email"] { min-width: 0; width: 100%; }
  .newsletter form { flex-direction: column; }
}
