/* PËRO — perointernational.com
   Plain CSS, no build step. Colours below were checked for WCAG AA contrast. */

:root {
  --bg: #faf7f2;          /* page background (from the logo's cream) */
  --surface: #ffffff;
  --cream: #f1e9dc;       /* alternate section background */
  --hero: #efe6d8;
  --ink: #2b2925;         /* body text — 13.6:1 on --bg */
  --muted: #5f5a50;       /* secondary text — 6.4:1 on --bg */
  --line: #e4dccd;
  --gold: #a98a5f;        /* logo colour — decoration only, not for text */
  --brand: #7a5c35;       /* buttons & links — white on it 6.2:1 */
  --brand-dark: #634a2a;
  --footer: #2b2620;
  --footer-text: #e9e2d6;
  --footer-muted: #bfb3a0;
  --footer-link: #d9bf94;
  --todo-bg: #fff1c7;
  --todo-border: #c2410c;
  --todo-text: #7a2e00;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1120px;
  --gutter: 20px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(43, 38, 32, .06), 0 8px 24px rgba(43, 38, 32, .06);

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

/* ---------- Base ---------- */
*, *::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(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }

:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand-dark);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- TODO markers (remove once real data is filled in) ---------- */
.todo {
  display: inline-block;
  padding: 1px 8px;
  background: var(--todo-bg);
  color: var(--todo-text);
  border: 2px dashed var(--todo-border);
  border-radius: 6px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .9em;
  font-weight: 600;
  line-height: 1.5;
}
.todo-figure {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 20px;
  background: var(--todo-bg);
  color: var(--todo-text);
  border: 2px dashed var(--todo-border);
  border-radius: var(--radius);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-weight: 600;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .7em 1.4em;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--brand-dark); }
.btn-secondary:hover { background: var(--surface); color: var(--brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(250, 247, 242, .94); backdrop-filter: blur(10px); }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; flex-shrink: 0; padding: 6px 0; }
.brand img { height: 44px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  font-size: .97rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--brand-dark); background: var(--cream); }
.site-nav a[aria-current="page"] {
  color: var(--brand-dark);
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  flex-shrink: 0;
}
.lang-switch a {
  display: block;
  min-width: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--brand-dark); }
.lang-switch a[aria-current="true"] { background: var(--brand); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 36px; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .lang-switch { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0; }
  .site-nav ul { flex-wrap: wrap; padding-bottom: 10px; }
  .site-nav a[aria-current="page"] { box-shadow: none; background: var(--cream); border-radius: 8px; }

  /* With JavaScript the menu collapses behind a toggle button. */
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 14px; }
  .js .site-nav a { padding: 12px; font-size: 1.05rem; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 {
  margin-bottom: .25em;
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 400;
  letter-spacing: .16em;
  line-height: 1;
}
.lead {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
}
.hero-text p:not(.lead):not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.hero .btn-row { margin-top: 28px; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--hero);
}

@media (max-width: 860px) {
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.section-foot { margin-top: 32px; }

@media (max-width: 640px) {
  .section { padding: 52px 0; }
}

/* Inner page heading block */
.page-hero {
  padding: 56px 0 44px;
  background: var(--hero);
  border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 66ch; margin-bottom: 0; color: var(--muted); font-size: 1.12rem; }
.page-hero .eyebrow { margin-bottom: 10px; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { margin: 0; }
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.product-card.landscape img { aspect-ratio: auto; }
.product-card .todo-figure { width: 100%; }
.product-card figcaption { padding: 12px 2px 0; }
.product-card .name { display: block; font-weight: 600; }
.product-card .meta { display: block; color: var(--muted); font-size: .92rem; }

@media (max-width: 900px) {
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* Category blocks on the Products page */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.category-nav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}
.category-nav a:hover { border-color: var(--gold); color: var(--brand-dark); }

.category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.category:last-of-type { border-bottom: 0; }
.category-text p { color: var(--muted); }
.category-text .examples-title { margin: 18px 0 6px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.category-text ul { color: var(--muted); font-size: .97rem; }
.category .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category .product-grid.single { grid-template-columns: minmax(0, 300px); }
.category .product-grid.single.wide { grid-template-columns: minmax(0, 560px); }

@media (max-width: 900px) {
  .category { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .category .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category .product-grid.single { grid-template-columns: minmax(0, 260px); }
  .category .product-grid.single.wide { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Cards & info lists ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-bottom: .35em; }
.card h2 { font-size: 1.35rem; }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--muted); }

.store-card { display: flex; flex-direction: column; gap: 6px; }
.store-card h3 { margin-bottom: 0; }
.store-card .handle { color: var(--muted); font-size: .95rem; margin-bottom: 14px; overflow-wrap: anywhere; }
.store-card .btn { margin-top: auto; align-self: flex-start; }

.location-card address { font-style: normal; color: var(--muted); margin-bottom: 10px; }
.location-card .tel { display: block; margin-bottom: 10px; }

.value-card h3 { color: var(--brand-dark); }
.value-card p { color: var(--muted); }

.info-list {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-list dt, .info-list dd {
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.info-list dt { color: var(--muted); font-weight: 600; font-size: .95rem; background: #fcfaf6; }
.info-list dd { overflow-wrap: anywhere; }
.info-list dt:last-of-type, .info-list dd:last-of-type { border-bottom: 0; }

@media (max-width: 600px) {
  .info-list { grid-template-columns: 1fr; }
  .info-list dt { padding-bottom: 4px; border-bottom: 0; }
  .info-list dd { padding-top: 0; background: #fcfaf6; }
  .info-list dd:not(:last-of-type) { border-bottom: 1px solid var(--line); }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
}

.callout {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.callout p:last-child { margin-bottom: 0; }
.callout .tagline { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.3; margin-bottom: .4em; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 14px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Long-form text (privacy, terms) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 0;
  padding: 56px 0 28px;
  background: var(--footer);
  color: var(--footer-text);
  font-size: .97rem;
}
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--footer-link); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--footer-muted); max-width: 36ch; }
.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; color: var(--footer-muted); }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(233, 226, 214, .18);
  color: var(--footer-muted);
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.not-found { padding: 96px 0; text-align: center; }
.not-found .code { font-family: var(--font-serif); font-size: 5rem; line-height: 1; color: var(--gold); margin-bottom: .2em; }
.not-found .btn-row { justify-content: center; margin-top: 28px; }
.not-found hr { width: 80px; margin: 36px auto; border: 0; border-top: 1px solid var(--line); }

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

@media print {
  .site-header, .site-footer, .skip-link, .btn-row { display: none !important; }
  body { background: #fff; }
}
