/*
 * site.css: the only stylesheet for spiceofindiasaltcoats.co.uk.
 * Rebuilt from the App4 "app4image" WordPress theme (plus its Customizer colours and
 * Additional CSS), matched to computed styles of the live site on 2026-10-27.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for self-hosted Montserrat
 *   3. Base          reset and element defaults
 *   4. Layout        sections, content column
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules
 *   7. Utilities
 *
 * Breakpoint (from the original theme, one only):
 *   mobile/tablet ≤ 768px: SlickNav-style "MENU" toggle, smaller headings, 14px body, 300px map
 *   desktop      ≥ 769px
 */

/* ============ 1. Tokens ============ */
:root {
  --color-primary: #ff568e;      /* header, pink bands, Order Now pill */
  --color-text: #000000;
  --color-bg: #ffffff;
  --color-dark: #000000;         /* link strip, footer, header rule */
  --color-band-grey: #dddddd;
  --color-on-dark: #ffffff;

  --font-body: "Montserrat", "Open Sans", sans-serif;
  /* Headings are font-weight 600 in the original CSS, but only 300/400/700 were loaded,
     so browsers rendered 700. The variable font would draw a true 600, so use 700. */
  --weight-heading: 700;

  --text-base: 16px;
  --text-h1: 46px;
  --text-h2: 35px;
  --text-h4: 21px;
  --leading: 1.5;

  --header-pad: 5px 20px;
  --section-pad: 50px 20px;
  --content-max: 720px;

  --duration-nav: 400ms;   /* SlickNav slideDown */
  --duration-link: 200ms;  /* theme link transitions */
}

/* ============ 2. Fonts ============ */
/* Montserrat (Google Fonts, SIL OFL), self-hosted variable font, latin subset. */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============ 3. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading); color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; }
img, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--weight-heading); line-height: 1.25; color: var(--color-text); }
h1 { font-size: var(--text-h1); margin-bottom: 22px; }
h2 { font-size: var(--text-h2); margin-bottom: 19px; }
h4 { font-size: var(--text-h4); margin-bottom: 13px; }
p { margin: 0 0 18px; }
p:last-child { margin: 0; }
a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { color: var(--color-text); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-dark); outline-offset: 2px; }

/* ============ 4. Layout ============ */
.band { padding: var(--section-pad); }
.band--pink { background: var(--color-primary); color: var(--color-text); }
.content { width: 100%; max-width: var(--content-max); margin: auto; text-align: center; }

/* ============ 5. Components ============ */

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; padding: 8px 16px; background: var(--color-bg); color: var(--color-text); }
.skip-link:focus { left: 16px; }

/* === Component: site-header (pink bar, logo left, nav right; MENU toggle ≤768px) === */
.site-header { position: relative; z-index: 1000; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; padding: var(--header-pad); background: var(--color-primary); box-shadow: 0 3px 0 var(--color-dark); }
.site-header__logo { display: block; }
.site-header__logo img { display: block; width: auto; height: 50px; }
.nav-toggle { display: none; }
.site-nav__list { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav__list a { display: block; height: 50px; padding: 0 10px; font-size: 13px; font-weight: 700; line-height: 50px; text-transform: uppercase; color: var(--color-text); transition: all var(--duration-link) linear; }
.site-nav__list a:hover, .site-nav__list a:focus { color: var(--color-on-dark); box-shadow: inset 0 -50px 0 0 var(--color-dark); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; margin-top: 3px; padding: 13px 0; min-height: 44px; background: none; border: 0; font: inherit; font-size: 14px; line-height: 1.3; color: var(--color-text); cursor: pointer; }
  .nav-toggle__icon { display: flex; flex-direction: column; gap: 3px; width: 20px; margin: 3px 0 0 5px; align-self: flex-start; }
  .nav-toggle__icon span { display: block; height: 2px; border-radius: 1px; background: var(--color-text); }
  .site-nav { flex-basis: 100%; display: grid; grid-template-rows: 0fr; align-items: stretch; transition: grid-template-rows var(--duration-nav) ease; }
  .site-nav.is-open { grid-template-rows: 1fr; }
  .site-nav__inner { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear var(--duration-nav); }
  .site-nav.is-open .site-nav__inner { visibility: visible; transition-delay: 0s; }
  .site-nav__list { display: block; text-align: center; }
  .site-nav__list li { border-bottom: 1px solid var(--color-dark); }
  .site-nav__list li:last-child { border-bottom: 0; }
  .site-nav__list a { height: auto; padding: 10px; font-size: 12px; font-weight: 400; line-height: 18px; text-transform: none; transition: none; }
  .site-nav__list a:hover, .site-nav__list a:focus { box-shadow: none; background: var(--color-dark); color: var(--color-on-dark); }
}

/* === Component: site-footer === */
.site-footer { padding: 50px; background: var(--color-dark); color: var(--color-on-dark); text-align: center; font-size: 0.8em; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--color-on-dark); }
.site-footer a:hover, .site-footer a:focus { color: var(--color-primary); }

/* === Component: hero (home: curry background with round logo) === */
.hero { padding: 10% 20px; background-size: cover; background-position: center; text-align: center; }
.hero__logo { display: inline-block; width: 50%; max-width: 400px; }

/* === Component: link-strip (black band with pink pill button) === */
.link-strip { padding: 10px 20px; background: var(--color-dark); text-align: center; }
.link-strip__button { display: inline-block; min-width: 260px; margin: 5px; padding: 12px 20px; border-radius: 50px; background: var(--color-primary); color: var(--color-text); font-size: 18px; line-height: 1; text-align: center; text-transform: uppercase; }
.link-strip__button:hover, .link-strip__button:focus { background: var(--color-bg); color: var(--color-text); }

/* === Component: image-strip (row of 4 tiles, 120% wide so the outer tiles are cropped) === */
.image-strip { overflow: hidden; }
.image-strip__row { display: flex; width: 120%; margin: 0 0 0 -5%; padding: 0; list-style: none; }
.image-strip__row li { flex: 0 0 24%; margin: 0 1% 1% 0; aspect-ratio: 4 / 3; }
.image-strip__row img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* === Component: banner (short image band on inner pages) === */
.banner { height: 300px; background-size: cover; background-position: center; }

/* === Component: page-title (pink title band) === */
.page-title { padding: 30px 20px; background: var(--color-primary); text-align: center; }
.page-title h1 { margin: 0; line-height: 1; }

/* === Component: map (keyless Google Maps iframe with the theme's inset top shadow) === */
.map-block { position: relative; }
.map-block::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 10px 10px -10px rgb(0 0 0 / 0.5); pointer-events: none; }
.map { display: block; width: 100%; height: 400px; border: 0; }

/* === Component: contact-email (starter component, unused on this site: no business email) === */
.contact-email { display: grid; gap: 16px; justify-items: center; }

/* ============ 6. Pages ============ */

/* ============ 7. Utilities ============ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ Responsive (≤768px, from the original theme) ============ */
@media (max-width: 768px) {
  :root { --text-base: 14px; --text-h1: 32px; --text-h2: 28px; --text-h4: 18px; }
  h1, h2 { line-height: 1.3; }
  h4 { line-height: 1.2; }
  .page-title h1 { line-height: 1; }
  .map { height: 300px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
