/* SAMS Online homepage — built from the Claude Design canvas "SAMS Online Website Redesign".
   Desktop markup keeps the design's inline styles; this file adds the page chrome and makes
   the fixed 1440px layout fluid (attribute selectors target the design's inline values). */
:root {
  --accent: #F4A62A;
  --ink: #13201C;
  --muted: #4A5A54;
  --paper: #F5F3EC;
  --line: #DDD8CB;
  --deep: #0F2B24;
  --deep-2: #173A31;
  --mint: #EEF2EC;
  --sage: #A9BDB4;
  --gutter: max(20px, calc((100% - 1200px) / 2));
  --sy: clamp(72px, 8vw, 120px);
  --display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, li { margin: 0; }
button, input, select { font: inherit; }
img, svg { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #8A5000; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 8px; }

/* ---------- Page frame ---------- */
.page { display: flex; flex-direction: column; overflow: hidden; }
.hs { padding: var(--sy) var(--gutter) !important; }
#hero-title + p, .page section:first-child { }
.page > section:first-child { padding-top: clamp(48px, 6vw, 88px) !important; padding-bottom: clamp(56px, 6vw, 96px) !important; min-height: min(840px, calc(100vh - 88px)); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 236, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(15, 43, 36, .45); }
.site-header__inner { height: 88px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 48px; }
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand__a, .brand__b { font-family: var(--display); font-size: 26px; letter-spacing: -0.03em; }
.brand__a { font-weight: 800; }
.brand__b { font-weight: 500; color: var(--muted); }
.site-nav { flex-grow: 1; display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { position: relative; text-decoration: none; color: var(--ink); padding: 8px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 24px; }
.header-phone { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(244, 166, 42, .9); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Interactive polish on the design's markup ---------- */
.page a[href="#demo"], .page button[type="submit"] { transition: transform .2s ease, box-shadow .2s ease; }
.page a[href="#demo"]:hover, .page button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(244, 166, 42, .95); color: var(--ink); }
.page ol > li, .page ul[style*="grid"] > li, .page [style*="border-radius: 18px"] { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.page ol > li:hover, .page [style*="border-radius: 18px"]:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -32px rgba(15, 43, 36, .45); border-color: #CFC8B8 !important; }
.page a[href^="https://youtu"] { transition: transform .3s ease; }
.page a[href^="https://youtu"]:hover { transform: scale(1.01); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; min-height: 44px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.faq-item summary:hover h3 { color: #8A5000; }
.faq-icon { position: relative; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; transition: background-color .2s ease, border-color .2s ease; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .25s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-item p { max-width: 640px; padding: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Form ---------- */
#demo-form input, #demo-form select { width: 100%; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
#demo-form input:focus, #demo-form select:focus { outline: 0; border-color: var(--deep) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(244, 166, 42, .25); }
#demo-form button[disabled] { opacity: .7; cursor: progress; }
.form-note { font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.form-note a { color: var(--muted); }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25D366; color: #fff; box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- Mockups scale to fit (js/home.js sets --fit) ---------- */
.mock { flex-shrink: 0; }

/* ---------- Reveal on scroll (js/home.js adds .rv / .rv-in) ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rv.rv-in { opacity: 1; transform: none; }

/* =====================================================================
   Responsive: the design is a fixed 1440 frame; these relax its inline sizes
   ===================================================================== */
@media (max-width: 1279px) {
  .site-nav { gap: 20px; }
  .header-phone span { display: none; }
  .page [style*="grid-template-columns"]:not(.mock *):not([aria-hidden="true"] *) { grid-template-columns: minmax(0, 1fr) !important; }
  .page [style*="grid-template-columns: repeat("]:not(.mock *):not([aria-hidden="true"] *) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .page ul[aria-label="Customer logos"]:not(.mock *):not([aria-hidden="true"] *) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .page [style*="gap: 96px"]:not(.mock *):not([aria-hidden="true"] *), .page [style*="gap: 80px"]:not(.mock *):not([aria-hidden="true"] *), .page [style*="gap: 72px"]:not(.mock *):not([aria-hidden="true"] *) { gap: 40px !important; }
  .page [style*="width: 640px"]:not(.mock):not(.mock *):not([aria-hidden="true"] *), .page [style*="width: 560px"]:not(.mock):not(.mock *):not([aria-hidden="true"] *), .page [style*="width: 520px"]:not(.mock):not(.mock *):not([aria-hidden="true"] *) { max-width: 100%; }
  .page .mock { justify-self: center; align-self: center; margin-inline: auto; }
  .page li[style*="height: 264px"]:not(.mock *):not([aria-hidden="true"] *) { height: auto !important; min-height: 220px; }
  .page > section:first-child { min-height: 0; }
}
@media (max-width: 1023px) {
  .site-header__inner { gap: 16px; }
  .site-nav { position: fixed; top: 88px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(15, 43, 36, .35); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav a::after { display: none; }
  .site-header.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner > .site-header__actions { margin-left: auto; }
}
@media (max-width: 767px) {
  :root { --sy: 64px; }
  .site-header__inner { height: 72px; }
  .site-nav { top: 72px; }
  .brand__a, .brand__b { font-size: 22px; }
  .header-phone { display: none; }
  .site-header .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .page [style*="grid-template-columns: repeat("]:not(.mock *):not([aria-hidden="true"] *) { grid-template-columns: minmax(0, 1fr) !important; }
  .page ul[aria-label="Customer logos"]:not(.mock *):not([aria-hidden="true"] *) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .page ul[style*="grid-template-columns: repeat(2"]:not(.mock *):not([aria-hidden="true"] *) { grid-template-columns: minmax(0, 1fr) !important; }
  .page [style*="font-size: 84px"]:not(.mock *):not([aria-hidden="true"] *) { font-size: 60px !important; }
  .page [style*="font-size: 60px"]:not(.mock *):not([aria-hidden="true"] *) { font-size: 38px !important; line-height: 1.06 !important; }
  .page [style*="font-size: 56px"]:not(.mock *):not([aria-hidden="true"] *), .page [style*="font-size: 52px"]:not(.mock *):not([aria-hidden="true"] *) { font-size: 34px !important; }
  .page [style*="font-size: 48px"]:not(.mock *):not([aria-hidden="true"] *), .page [style*="font-size: 44px"]:not(.mock *):not([aria-hidden="true"] *) { font-size: 31px !important; line-height: 1.1 !important; }
  .page [style*="font-size: 40px"]:not(.mock *):not([aria-hidden="true"] *), .page [style*="font-size: 36px"]:not(.mock *):not([aria-hidden="true"] *) { font-size: 28px !important; }
  .page [style*="font-size: 18px; line-height"]:not(.mock *):not([aria-hidden="true"] *) { font-size: 17px !important; }
  .page [style*="gap: 56px"]:not(.mock *):not([aria-hidden="true"] *), .page [style*="gap: 48px"]:not(.mock *):not([aria-hidden="true"] *) { gap: 32px !important; }
  .page [style*="padding: 36px"]:not(.mock *):not([aria-hidden="true"] *) { padding: 24px !important; }
  .page [style*="justify-content: space-between"][style*="align-items: flex-end"]:not(.mock *):not([aria-hidden="true"] *) { flex-direction: column; align-items: flex-start !important; }
  .page [style*="display: flex; align-items: center; gap: 28px; padding-top: 8px"]:not(.mock *):not([aria-hidden="true"] *) { flex-wrap: wrap; gap: 16px !important; }
  #demo-form [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .faq-item summary h3 { font-size: 18px; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  footer.hs [style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  footer.hs [style*="justify-content: space-between"] { flex-direction: column; align-items: flex-start !important; gap: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* Head office -> outlets diagram: readable width, scroll sideways on phones */
.diagram-scroll { width: 100%; }
.diagram-scroll svg { display: block; width: 100%; height: auto; }
@media (max-width: 767px) {
  .diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: thin; }
  .diagram-scroll svg { width: 820px; max-width: none; }
}

/* Footer grid: brand block spans the row on smaller screens */
@media (max-width: 1279px) {
  footer.hs > div[style*="grid-template-columns"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 32px !important; }
  footer.hs > div[style*="grid-template-columns"] > :first-child { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 767px) {
  footer.hs > div[style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; align-self: flex-start; }

/* Logo image */
.brand img { display: block; height: 44px; width: auto; }
@media (max-width: 767px) { .brand img { height: 36px; } }

/* Header: keep the CTA on one line next to the logo on small phones */
.site-header .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .brand img { height: 30px; }
  .site-header__inner { gap: 10px; }
  .site-header__actions { gap: 10px; }
  .site-header .btn { padding: 0 12px; font-size: 13.5px; }
}

/* Browsers indent <figure> by default; the design's figures are flush */
.page figure { margin: 0; }

/* reCAPTCHA badge hidden (it sat under the WhatsApp button); the required notice is in the footer */
.grecaptcha-badge { visibility: hidden !important; }

/* "From the blog" link sections on Home / Product / Features */
.bl { display: flex; flex-direction: column; gap: 40px; border-top: 1px solid var(--line); }
.bl__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bl__intro { display: flex; flex-direction: column; gap: 16px; }
.bl__eyebrow { display: flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bl__eyebrow > span { width: 20px; height: 2px; background: var(--accent); }
.bl h2 { font-family: var(--display); font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.bl__all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink); }
.bl__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bl-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.bl-card:hover { color: var(--ink); transform: translateY(-4px); border-color: #CFC8B8; box-shadow: 0 28px 56px -36px rgba(15, 43, 36, .45); }
.bl-card__img { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--deep); }
.bl-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bl-card:hover .bl-card__img img { transform: scale(1.04); }
.bl-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.bl-card__meta { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bl-card__title { font-family: var(--display); font-size: 20px; line-height: 1.28; font-weight: 700; letter-spacing: -.01em; }
.bl-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; }
@media (max-width: 1023px) { .bl__grid { grid-template-columns: minmax(0, 1fr); } .bl-card { flex-direction: row; } .bl-card__img { flex: 0 0 40%; aspect-ratio: auto; } }
@media (max-width: 767px) { .bl h2 { font-size: 30px; } .bl-card { flex-direction: column; } .bl-card__img { flex: none; aspect-ratio: 2 / 1; } }

/* ---------- Motion (js/motion.js, GSAP) ---------- */
/* Hero mockup waits for its entrance; failsafe shows it anyway if scripts never run */
.mo-pending .page > :first-child .mock { opacity: 0; animation: mo-failsafe 0s linear 2.5s forwards; }
@keyframes mo-failsafe { to { opacity: 1; } }
/* First screen starts slightly lowered and soft; js/motion.js settles it. Failsafe settles it anyway after 1.2s */
.mo-pending .page > :first-child > :not(.mock), .mo-pending .page > :nth-child(2) { transform: translateY(22px); filter: blur(6px); animation: mo-settle .6s ease 1.2s forwards; }
@keyframes mo-settle { to { transform: none; filter: none; } }
/* Reading progress on articles, along the bottom edge of the sticky header */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
/* Arrow in primary buttons nudges forward on hover */
.btn--accent svg, .b-btn--accent svg, .pr-cta--accent svg, .page a[style*="background: var(--accent)"] svg { transition: transform .25s ease; }
.btn--accent:hover svg, .b-btn--accent:hover svg, .pr-cta--accent:hover svg, .page a[style*="background: var(--accent)"]:hover svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .mo-pending .page > :first-child .mock { opacity: 1; animation: none; } .mo-pending .page > :first-child > :not(.mock), .mo-pending .page > :nth-child(2) { transform: none; filter: none; animation: none; } }
