/* Shared by the main pages (Home, Templates & Services): fonts, colors, header, footer, buttons.
   Look copied from the client's Canva site (decision #30). Sizes measured on the 1440px-wide Canva page. */

@font-face { font-family: "Glacial Indifference"; src: url("fonts/glacial-indifference-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Glacial Indifference"; src: url("fonts/glacial-indifference-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Glacial Indifference"; src: url("fonts/glacial-indifference-italic.woff") format("woff"); font-style: italic; font-display: swap; }

:root {
  --teal: #377699;        /* buttons, script line */
  --deep: #005E80;        /* labels, card titles, icons */
  --blush: #F8F3F1;       /* header, hero, story band */
  --card: #FBF9F7;        /* "where to start" cards */
  --label: #F8F7F3;       /* white boxes on the photos */
  --line: #444242;        /* card outline */
  --ink: #000;
  --sans: "Glacial Indifference", "Jost", Arial, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --script: "Dancing Script", cursive;
  --page: 974px;          /* width of the main content on Canva's desktop page */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }

/* ---------- Header: logo on the left, menu on the right ---------- */
.site-header { background: var(--blush); position: relative; z-index: 20; }
/* Kept to Canva's 1440px layout width and centered, so on very wide screens the logo and menu stay together
   (client's request, 2026-11-18). */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1440px; min-height: 92px; margin: 0 auto; padding: 10px 50px; }
.site-logo img { width: 222px; height: auto; }
/* Menu (client's choice A2, 2026-11-18): Canva's 8 links + Shop in one row on wide screens.
   Narrower screens get the "☰ Menu" button (assets/shared/menu.js). The links come from tools/update-menu.mjs. */
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 30px; }
.site-nav a { font-size: 15px; line-height: 1.07; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.site-nav a:hover { color: var(--deep); }
.site-nav a[aria-current] { color: var(--deep); font-weight: 700; }
.menu-btn { display: none; }
@media (max-width: 1419px) {
  .js-menu .site-header__inner { flex-direction: row; }
  .js-menu .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
    border: 1.5px solid var(--deep); border-radius: 12px; background: #fff; color: var(--deep);
    font: 700 15px/1 var(--sans); cursor: pointer;
  }
  .menu-btn__icon, .menu-btn__icon::before, .menu-btn__icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
  .menu-btn__icon { position: relative; }
  .menu-btn__icon::before, .menu-btn__icon::after { content: ''; position: absolute; left: 0; }
  .menu-btn__icon::before { top: -6px; }
  .menu-btn__icon::after { top: 6px; }
  .menu-open .menu-btn__icon { background: transparent; }
  .menu-open .menu-btn__icon::before { top: 0; transform: rotate(45deg); }
  .menu-open .menu-btn__icon::after { top: 0; transform: rotate(-45deg); }
  .js-menu .site-nav { display: none; }
  .js-menu.menu-open .site-nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blush); padding: 4px 50px 14px; border-top: 1px solid #eadfda; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .js-menu.menu-open .site-nav a { font-size: 17px; padding: 13px 4px; border-bottom: 1px solid #eadfda; }
}

/* ---------- Buttons ---------- */
.btn-solid, .btn-outline, .btn-small {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; text-decoration: none; border-radius: 12px; text-align: center;
}
.btn-solid { background: var(--teal); color: #fff; }
.btn-outline { border: 2px solid var(--teal); color: var(--teal); background: var(--blush); }
.btn-small { background: var(--teal); color: #fff; font-size: 11.8px; width: 134px; height: 28px; }
.btn-solid:hover, .btn-small:hover { background: var(--deep); }
.btn-outline:hover { background: #fff; }

/* ---------- Section headings ("WHERE WOULD YOU LIKE TO START?") ---------- */
.label { font-size: 18.6px; line-height: 20px; font-weight: 700; color: var(--deep); text-transform: uppercase; text-align: center; }
.subtitle { font-family: var(--serif); font-size: 19.2px; line-height: 20px; text-align: center; margin-top: 9px; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; padding: 10px 50px; font-size: 12px; min-height: 36px; display: flex; align-items: center; }

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; justify-content: center; padding: 10px 16px 12px; gap: 6px; min-height: 82px; }
  .site-logo img { width: 150px; }
  .site-nav { justify-content: center; gap: 4px 18px; }
  .site-nav a { font-size: 14px; }
  .js-menu.menu-open .site-nav { padding: 4px 16px 14px; }
  .js-menu .site-header__inner { flex-direction: row; justify-content: space-between; }
  .label { font-size: 15px; }
  .subtitle { font-size: 16px; line-height: 1.25; padding: 0 16px; }
  .site-footer { padding: 10px 16px; }
}

/* ---------- Video "Sound on / Sound off" button (assets/shared/videos.js), like Canva's mute button ---------- */
.video-sound {
  position: absolute; right: 8px; bottom: 8px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, 0.6); color: #fff; font: 700 12.5px/1 var(--sans); cursor: pointer;
}
.video-sound:hover, .video-sound.is-on { background: var(--deep); }

/* Round Pause / Play button on videos that start by themselves (site/assets/shared/video-pause.js), opposite the sound button */
.video-pause {
  position: absolute; left: 8px; bottom: 8px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.6); cursor: pointer;
}
.video-pause::before { /* two bars = pause */
  content: ''; position: absolute; left: 11px; top: 10px; width: 10px; height: 12px;
  background: linear-gradient(90deg, #fff 0 3.5px, transparent 3.5px 6.5px, #fff 6.5px);
}
.video-pause.is-paused::before { left: 12px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); } /* triangle = play */
.video-pause:hover { background: var(--deep); }
.video-pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.video-sound:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Text for screen readers only (e.g. a page title that Canva doesn't show) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
