/* ==========================================================================
   Brisbane Point of Sale Systems - site.css
   Sits on top of Bootstrap 5. Replaces css/small-business.css for these pages.
   Fonts are self-hosted from /fonts (SIL Open Font Licence - see licence files there).
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1f242a;
  --ink-soft: #4b535d;
  --paper: #ffffff;
  --wash: #eef0f3;
  --line: #d8dce2;
  --tear: #c3c9d1;
  --paper-warm: #ffffff;
  --brand: #d10000;
  --brand-dark: #a80000;
  --brand-deep: #860000;
  --focus: #1b64d6;

  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);

  --radius: 10px;
}

[hidden] { display: none !important; }

html { scroll-padding-top: 5.5rem; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

/* Bootstrap's wide g-5 gutters push rows ~12px past the screen edge on phones and tablets,
   which lets the page scroll sideways. Use a narrower gutter below the desktop breakpoint. */
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }

/* ---- Type ---------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 650; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1rem; }

a { color: var(--brand-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-deep); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #9dc0ff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 6px 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  font-weight: 700;
  border-radius: 6px;
  padding: 0.6rem 1.15rem;
}
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.95rem; }
.btn-lg { padding: 0.8rem 1.5rem; font-size: 1.1rem; }

.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-deep); --bs-btn-active-border-color: var(--brand-deep); --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 209, 0, 0;
  background-color: var(--brand); border-color: var(--brand); color: #fff;
}
.btn-primary:hover, .btn-primary:focus { background-color: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-primary:active { background-color: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

.btn-outline-secondary {
  --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink-soft);
  --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ink); --bs-btn-active-border-color: var(--ink); --bs-btn-active-color: #fff;
  color: var(--ink); border-color: var(--ink-soft); background: transparent;
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-invert { background: #fff; border-color: #fff; color: var(--ink); }
.btn-invert:hover, .btn-invert:focus { background: var(--wash); border-color: var(--wash); color: var(--ink); }

.btn-outline-invert { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-invert:hover, .btn-outline-invert:focus { background: #fff; border-color: #fff; color: var(--ink); }

@media (max-width: 575.98px) {
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
}

/* ---- Navigation ---------------------------------------------------------- */

.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}
.site-nav .navbar-brand { padding: 0; margin-right: 1.25rem; }
.site-nav .navbar-brand img { display: block; height: 44px; width: auto; }
@media (min-width: 992px) {
  .site-nav { padding: 0.7rem 0; }
  .site-nav .navbar-brand img { height: 58px; }
}

.site-nav .nav-link {
  color: var(--ink);
  font-weight: 600;
  padding: 0.55rem 0.8rem;
}
.site-nav .nav-link:hover { color: var(--brand-dark); }
.site-nav .nav-link.active,
.site-nav .nav-link[aria-current="page"] { color: var(--brand-dark); }

@media (min-width: 992px) {
  .site-nav .nav-link.active,
  .site-nav .nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand); }
}

.site-nav .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 26, 34, 0.12);
  padding: 0.4rem;
}
.site-nav .dropdown-item { border-radius: 5px; padding: 0.5rem 0.85rem; font-weight: 600; color: var(--ink); }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item:focus { background: var(--wash); color: var(--brand-dark); }
.site-nav .dropdown-item.active { background: var(--wash); color: var(--brand-dark); }

.site-nav .navbar-toggler { border-color: var(--line); padding: 0.4rem 0.6rem; }
.site-nav .btn-call { white-space: nowrap; }

/* ---- Home hero ------------------------------------------------------------ */

.hero {
  background: var(--wash);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(5.5rem, 9vw, 7.5rem);
  overflow-x: clip;
  
}
.hero h1 {
  font-size: clamp(2.35rem, 5.3vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.hero .lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-note { font-size: 0.95rem; color: var(--ink-soft); margin: 1.25rem 0 0; max-width: 32rem; }

/* Hero: points set on a sheet of till paper (tilt, torn edge, soft shadow).
   .receipt-wrap is the "printer slot": the paper is clipped at its bottom edge and a thin
   line there stands in for the printer. On load the paper feeds up out of the slot, then
   tips over to its resting angle (--tilt). */
.receipt-wrap {
  --tilt: 1deg;
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0 6px;
  clip-path: inset(-60px -60px 0 -60px);
}
.receipt-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 28.5rem);
  height: 6px;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 3px;
}
.hero-points {
  position: relative;
  width: min(100%, 27rem);
  background: var(--paper-warm);
  padding: 1.9rem 1.75rem 2.75rem;
  transform: rotate(var(--tilt));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 12px 18px rgba(20, 26, 34, 0.16)) drop-shadow(0 1px 1px rgba(20, 26, 34, 0.25));
  --tooth: 8px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
}
.hero-points h2 { font-size: 1.4rem; text-align: center; margin: 0 0 1.1rem; }
.point-list { list-style: none; margin: 0; padding: 0; }
.point-list li { display: grid; grid-template-columns: 30px 1fr; gap: 0 0.9rem; padding: 0.95rem 0; border-top: 2px dashed rgba(31, 36, 42, 0.28); }
.point-list .tick { width: 30px; height: 30px; border-radius: 50%; background: #fbe4e4; color: var(--brand); display: grid; place-items: center; font-size: 1.1rem; }
.point-list .point-title, .point-list strong { display: block; font-weight: 700; line-height: 1.3; }
.point-list .point-desc, .point-list span:not(.tick) { display: block; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.45; margin-top: 0.15rem; }

@media (max-width: 575.98px) {
  .receipt-wrap { --tilt: 0.6deg; }
  .hero-points { padding-left: 1.4rem; padding-right: 1.4rem; }
}

/* Receipt print-out animation. Deliberately not gated by prefers-reduced-motion: many machines
   have system animations switched off for performance, and this is a short, one-off movement. */
.receipt-wrap::after { display: block; animation: slot-fade 2.6s linear 0.25s both; }
.hero-points { animation: print-out 2.6s linear 0.25s both; }

@keyframes print-out {
  0%   { transform: translateY(102%) rotate(0deg); animation-timing-function: cubic-bezier(.3, .1, .4, 1); }
  60%  { transform: translateY(-6px) rotate(0deg); animation-timing-function: ease-in-out; }
  82%  { transform: translateY(0) rotate(calc(var(--tilt) * 2)); animation-timing-function: ease-in-out; }
  100% { transform: translateY(0) rotate(var(--tilt)); }
}
/* The slot line stays solid while the paper feeds out, then fades as the receipt tips over. */
@keyframes slot-fade {
  0%, 58% { opacity: 1; }
  100%    { opacity: 0; }
}

/* ---- Offer coupon --------------------------------------------------------- */

.coupon-wrap { margin-top: -3.25rem; position: relative; z-index: 2; }
.coupon {
  background: #fff;
  border: 2px dashed var(--brand);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
}
.coupon-figure { font-family: var(--font-display); font-weight: 650; color: var(--brand); font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; }
.coupon-figure .coupon-note, .coupon-figure small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0; margin-top: 0.35rem; }
.coupon h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-bottom: 0.35rem; }
.coupon p { margin: 0; color: var(--ink-soft); }
.coupon details { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 0.75rem; font-size: 0.92rem; color: var(--ink-soft); }
.coupon summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.coupon details p { margin-top: 0.6rem; max-width: 70ch; }

@media (max-width: 767.98px) {
  .coupon { grid-template-columns: 1fr; padding: 1.25rem; }
}

/* ---- Sections & panels ---------------------------------------------------- */

.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; margin: 0.5rem 0 0; }

.panel {
  display: flex; flex-direction: column; align-items: flex-start;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.panel h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.panel p { color: var(--ink-soft); }
.panel-link { margin-top: auto; font-weight: 700; }

.panel-dark { background: var(--ink); border-color: var(--ink); color: #fff; padding: 2.25rem; }
.panel-dark h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.15rem); }
.panel-dark p { color: #d5dae1; }
.panel-dark .checklist { list-style: none; padding: 0; margin: 0.5rem 0 1.75rem; }
.panel-dark .checklist li { display: flex; gap: 0.65rem; margin-bottom: 0.65rem; color: #eef0f3; font-size: 1.1rem; }
.panel-dark .checklist i { color: #ff7a7a; flex: 0 0 auto; }

.aside-link { margin: 1.75rem 0 0; color: var(--ink-soft); }

.fact { border-top: 1px solid var(--line); padding-top: 1rem; height: 100%; }
.fact h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.fact p { color: var(--ink-soft); margin: 0; }

/* ---- Closing call-to-action strip ---------------------------------------- */

.cta-strip { background: var(--wash); border-top: 2px dashed var(--tear); padding: clamp(2.25rem, 5vw, 3.25rem) 0; }
.cta-strip h2 { margin-bottom: 0.4rem; }
.cta-strip p { margin: 0; color: var(--ink-soft); max-width: 40rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- Inner page header ---------------------------------------------------- */

.page-head {
  background: var(--wash);
  border-bottom: 2px dashed var(--tear);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(1.75rem, 4vw, 2.5rem);
}
.page-head h1 { margin: 0 0 0.75rem; }
.page-head .lead { max-width: 46rem; color: var(--ink-soft); font-size: 1.2rem; margin: 0; }

.prose p, .prose li { max-width: 68ch; }
.media { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.subhead { margin-bottom: 1rem; }

/* Hardware tiles (services) */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 1.75rem; }
@media (max-width: 991.98px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .tile-grid { grid-template-columns: 1fr; } }
a.tile {
  display: block; background: #fff; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
a.tile .tile-title, a.tile strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); }
a.tile .tile-desc, a.tile span { display: block; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.735; }
a.tile:hover, a.tile:focus-visible { border-color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
a.tile:hover .tile-title, a.tile:hover strong { color: var(--brand-dark); }

/* Feature list (Chess Retail) and spec list (cash registers) */
.feature-grid, .spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3.5rem; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 0 1.1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.feature img { width: 44px; height: 44px; }
.feature h3, .spec h3 { font-size: 1.3rem; margin: 0 0 0.35rem; }
.feature p, .spec p { margin: 0; color: var(--ink-soft); }
.spec { display: grid; grid-template-columns: 28px 1fr; gap: 0 0.75rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.spec i { color: var(--brand); font-size: 1.35rem; line-height: 1.2; }
@media (max-width: 767.98px) {
  .feature-grid, .spec-grid { grid-template-columns: 1fr; }
}

.note {
  background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.note-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.note-split > div { flex: 1 1 30rem; }
.note-split .btn { flex: 0 0 auto; }
.note h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.note p { color: var(--ink-soft); max-width: 68ch; }

/* Collapsible rows (Chess Retail pricing / at a glance) */
.disclosure { border-top: 1px solid var(--line); }
.disclosure:last-of-type { border-bottom: 1px solid var(--line); }
.disclosure > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary h2 { font-size: 1.3rem; margin: 0; }
.disclosure > summary::after {
  content: ""; flex: 0 0 auto; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: translateY(-25%) rotate(45deg); transition: transform 0.15s ease;
}
.disclosure[open] > summary::after { transform: translateY(25%) rotate(225deg); }
.disclosure > summary:hover h2 { color: var(--brand-dark); }
.disclosure > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.disclosure-body { padding: 0 0 1.5rem; }
.disclosure-body p { color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .disclosure > summary::after { transition: none; } }

/* "At a glance" summary (Chess Retail) - a light two-column list, not a heavy data grid */
.glance { width: 100%; max-width: 56rem; border-collapse: collapse; }
.glance th,
.glance td { padding: 0.75rem 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.glance tr:first-child th,
.glance tr:first-child td { border-top: 0; padding-top: 0.25rem; }
.glance th { width: 14rem; padding-right: 1.5rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.glance td { color: var(--ink-soft); }
@media (max-width: 575.98px) {
  .glance th, .glance td { display: block; width: auto; padding-right: 0; white-space: normal; }
  .glance th { padding-bottom: 0.15rem; }
  .glance td,
  .glance tr:first-child td { border-top: 0; padding-top: 0; }
}

.cta-panel { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.cta-panel h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.35rem; }
.cta-panel p { margin: 0; color: #d5dae1; max-width: 46rem; }

.video-frame { width: 100%; aspect-ratio: 377 / 212; border: 0; border-radius: var(--radius); background: var(--ink); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item .ico { flex: 0 0 46px; height: 46px; border-radius: 50%; background: #fbe4e4; color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; }
.contact-item .label { display: block; font-size: 0.92rem; color: var(--ink-soft); }
.contact-item .value { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.55rem); font-weight: 700; line-height: 1.25; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.value:hover { color: var(--brand-dark); text-decoration: underline; }
.map-frame { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem; background: #fff; max-width: calc(245px + 1rem + 2px); margin-left: auto; }
.map-frame img { display: block; width: 100%; border-radius: 6px; }
.map-caption { font-size: 0.92rem; color: var(--ink-soft); margin: 0.6rem 0 0; text-align: right; }
@media (max-width: 767.98px) { .map-frame { margin-left: 0; } .map-caption { text-align: left; } }

/* ---- Footer --------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #c9cfd7; padding: 3.5rem 0 3rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 0.6rem; }
.footer-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.site-footer address { margin: 0; font-style: normal; }
