/* PILER: GEO5 partner for Canada. Light theme in GEO5 green. */

/* Barlow, self-hosted (latin subset, SIL Open Font License: fonts/OFL.txt) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); }

:root {
  /* GEO5 product colour: Pantone 2422 C, RGB 32/141/47 (#208D2F), with tints and shades.
     Fine corporate blue/yellow kept as variables but no longer used on the site. */
  --fine-green: #208D2F;
  --fine-yellow: #CB8F08;
  --fine-blue: #006BB0;
  --green-dark: #17702A;   /* shade, for text links on white */
  --green-mid: #5DAE68;    /* tint */
  --green-light: #A3D2A9;  /* tint */

  --bg: #FFFFFF;
  --bg-2: #F2F7F2;        /* alternate band, faint green tint */
  --panel: #E6F2E7;       /* raised surfaces, light tint of Fine green */
  --line: #D3DAE0;        /* rules and borders */
  --line-soft: #E3E8EC;
  --text: #16191C;        /* near Fine black */
  --muted: #56616A;
  --primary: var(--fine-green);  /* buttons and primary actions */
  --primary-hi: #1A7426;        /* hover */
  --green-deep: #17401D;  /* footer */
  --link: var(--green-dark);     /* links, icons */
  --green-text: var(--fine-green);

  /* Accent strip built from Fine's three squares */
  --contour: linear-gradient(90deg, var(--fine-green) 0 33.33%, var(--green-mid) 33.33% 66.66%, var(--green-light) 66.66%);

  --font: "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(64px, 8vw, 112px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #0F5320; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}
h3 { font-family: var(--font); font-weight: 600; }
h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 66ch; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 8px; top: -60px; background: var(--primary); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 70px; padding-block: 10px; transition: min-height .25s, padding-block .25s;
}

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { font-weight: 900; font-size: 1.5rem; letter-spacing: 0.05em; font-stretch: 125%; font-variation-settings: "wdth" 125; }
.brand-logo { display: block; height: 34px; width: auto; transition: height .25s; }
/* Partner badge under the logo; on scroll it fades out and the header shrinks (html.scrolled, js/app.js) */
.brand { flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-badge {
  display: block; height: 22px; width: auto; max-height: 22px;
  transition: max-height .25s, opacity .2s, margin .25s;
}
html.scrolled .header-inner { min-height: 56px; padding-block: 0; }
html.scrolled .brand-logo { height: 28px; }
html.scrolled .brand-badge { max-height: 0; opacity: 0; margin-top: -6px; }
@media (prefers-reduced-motion: reduce) {
  .header-inner, .brand-logo, .brand-badge { transition: none; }
}
/* maple leaf beside "Why PILER" in the nav */
.nav-why { display: inline-flex; align-items: center; gap: 6px; }
.nav-leaf { display: block; width: 15px; height: 15px; }
.footer-logo { display: block; height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fine-green); }
.site-nav .nav-cta { color: #fff; background: var(--primary); padding: 9px 16px; border-radius: 4px; font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--primary-hi); color: #fff; }
/* Free trial: outlined green button beside Contact us */
.site-nav .nav-trial { color: var(--green-dark); border: 1.5px solid var(--primary); padding: 7.5px 14px; border-radius: 4px; font-weight: 600; margin-right: -14px; }
.site-nav .nav-trial:hover { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none; font: inherit; font-weight: 600; background: none;
  border: 1px solid var(--line); color: var(--text); padding: 6px 14px; border-radius: 4px; cursor: pointer;
}

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

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 4px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hi); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.text-link { font-weight: 600; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.badge {
  display: inline-block; margin: 0 0 22px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.875rem; color: var(--muted);
}
.partner-badge { display: block; height: auto; max-width: 100%; }
.hero-copy .partner-badge { margin-bottom: 26px; }
.footer-badge { margin-top: 18px; }
.hero-copy h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.h1-name { color: var(--fine-green); }
/* second line of the headline: what GEO5 is, set as a quieter subtitle */
.h1-sub { display: block; margin-top: 0.3em; font-family: var(--font); font-weight: 500; font-size: clamp(1.15rem, 1.75vw, 1.5rem); line-height: 1.25; letter-spacing: 0; color: var(--text); }
@media (min-width: 600px) { .h1-sub { white-space: nowrap; } }  /* one line except on phones */
.lede { font-size: 1.2rem; color: var(--muted); margin: 22px 0 30px; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 12% 6% 0;
  background: radial-gradient(closest-side, rgba(32,141,47,.16), transparent);
  filter: blur(30px); z-index: 0;
}
.hero-shot {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 24px 48px rgba(16,30,45,.18), 0 2px 6px rgba(16,30,45,.08);
}
.app { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(16,30,45,.28)); }
.app .ui { font-family: var(--font); font-size: 12.5px; fill: #D0D5D9; }
.app .dim { fill: #8A939A; }

.facts {
  list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}
.facts li { padding: 22px 20px 0 0; display: grid; gap: 4px; align-content: start; }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line-soft); }
.facts strong { font-weight: 600; }
.facts span { color: var(--muted); font-size: 0.95rem; }

.contour-rule { height: 4px; background: var(--contour); }

/* ---------- Sections ---------- */

.band { padding-block: var(--space); }
.band-alt { background: var(--bg-2); }

.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { max-width: 22ch; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); }
.split > h2 { max-width: 14ch; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.service svg { width: 44px; height: 44px; margin-bottom: 18px; fill: none; stroke: var(--link); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); margin: 0; }

/* Program summary on the homepage */
.more { margin: 32px 0 0; }

/* Buy */
.buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.buy-option { padding: clamp(28px, 4vw, 44px); display: grid; gap: 18px; align-content: start; border: 1px solid var(--line); border-radius: 8px; }
.buy-feature { background: var(--panel); border-color: var(--panel); }
.buy-option h3 { font-size: 1.5rem; }
.buy-option > p { margin: 0; color: var(--muted); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--green-text); border-bottom: 2px solid var(--green-text); transform: rotate(-45deg);
}
.trial { margin: 28px 0 0; color: var(--muted); }
.trial a { font-weight: 600; }

/* About */
.about-copy p { font-size: 1.125rem; }
.about-copy p:last-child { color: var(--muted); margin-bottom: 0; }

/* Why buy through PILER */
.why-about {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.why-about h3 { margin-bottom: 10px; }
/* Location map (inline SVG, built by office_map() in tools/build_pages.py) */
.office-map { margin: clamp(32px, 5vw, 56px) auto 0; max-width: 560px; }
.office-map svg { display: block; width: 100%; height: auto; }
.office-map .land { fill: #DCEBDD; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.office-map .pin-halo { fill: var(--fine-green); opacity: .2; }
.office-map .pin-dot { fill: var(--fine-green); stroke: #fff; stroke-width: 3; }
.office-map text { font-family: var(--font-display); font-weight: 700; font-size: 34px; fill: var(--text); paint-order: stroke; stroke: #fff; stroke-width: 8px; stroke-linejoin: round; }
@media (max-width: 640px) { .office-map text { font-size: 46px; } }
.why-about p { color: var(--muted); margin: 0; }

.pkg-quote { justify-self: start; font-weight: 600; font-size: 0.95rem; margin-top: 4px; }
.package.featured .pkg-quote { display: inline-block; margin-top: 8px; }
.catalogue-cta { margin: 16px 0 0; color: var(--muted); max-width: none; }
.catalogue-cta a { font-weight: 600; }
.facts a { color: inherit; text-decoration: none; }
a[href^="tel:"] { white-space: nowrap; }
.facts a:hover { color: var(--link); text-decoration: underline; }

/* Customer logos (from img/customers/) */
.customers { margin-top: clamp(36px, 4vw, 48px); }
.customers-title { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }
.customer-logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(28px, 4vw, 48px);
}
.customer-logos img {
  display: block; height: 36px; width: auto; max-width: 160px; object-fit: contain;
  filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s;
}
.customer-logos img:hover { filter: none; opacity: 1; }

/* Common questions */
.faq { margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); max-width: 820px; }
.faq h3 { margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 16px 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; width: 7px; height: 7px; flex: none; color: var(--link);
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s;
}
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px 17px; color: var(--muted); }

/* Contact */

/* ---------- Programs and prices (single page) ---------- */

.cat-tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 28px;
}
.cat-tab {
  display: flex; align-items: center; gap: 12px; text-align: left;
  font: inherit; color: var(--text); cursor: pointer;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px;
  padding: 10px 12px;
  transition: border-color .15s, background-color .15s;
}
.cat-tab:hover { border-color: var(--green-mid); }
.cat-tab[aria-selected="true"] { border-color: var(--fine-green); background: var(--panel); box-shadow: inset 0 0 0 1px var(--fine-green); }
.cat-tab .picon { flex: none; border-radius: 7px; }
.cat-tab-text { display: grid; line-height: 1.25; min-width: 0; }
.cat-tab-name { font-weight: 600; font-size: 0.975rem; }
.cat-tab-from { font-size: 0.85rem; color: var(--muted); }

.price-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 16px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; padding: 3px; gap: 2px; background: var(--bg); }
.segmented button {
  font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--muted);
  background: none; border: 0; border-radius: 4px; padding: 7px 14px; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.segmented button:not([aria-pressed="true"]):hover { color: var(--text); }
/* tier note: its own row under the switches, kept on one line where there's room */
.tier-note { color: var(--muted); font-size: 0.95rem; margin: 0; max-width: none; order: 10; flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .tier-note { white-space: normal; } }
.licence-note { margin: -4px 0 16px; padding: 10px 14px; border-left: 3px solid var(--primary); background: var(--bg); color: var(--text); font-size: 0.95rem; max-width: none; }
.currency-switch { margin-left: auto; }

.catalogue { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 8px; padding: 4px 24px; }
.cat-group[hidden] { display: none; }
.cat-group > h3 { font-size: 1.1rem; padding: 18px 0 10px; }
html:not(.no-js) .cat-group > h3 { display: none; }

.plist { list-style: none; margin: 0; padding: 0; }
.plist > li { border-bottom: 1px solid var(--line-soft); }
.plist > li:last-child { border-bottom: 0; }
/* Each program row opens to show its key features */
.prog summary {
  display: grid; grid-template-columns: 40px minmax(0, 16.5rem) minmax(0, 1fr) auto;
  gap: 4px 24px; align-items: center;
  padding: 14px 0; cursor: pointer; list-style: none;
}
.prog summary::-webkit-details-marker { display: none; }
.pname-end { white-space: nowrap; }
.prog .chev {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s;
}
.prog[open] .chev { transform: rotate(-135deg); margin-bottom: -1px; }
.prog summary:hover .pname { color: var(--fine-green); }
.pfeat {
  list-style: none; margin: -4px 0 0; padding: 0 0 16px 64px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px;
  color: var(--muted); font-size: 0.95rem;
}
.pfeat li { position: relative; padding-left: 16px; }
.pfeat li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--fine-green); }
.pname { font-weight: 600; }
.picon { display: block; border-radius: 8px; }
.picon-empty { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.pdesc { color: var(--muted); font-size: 0.975rem; }
.pprice { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.pprice small { font-weight: 400; color: var(--muted); font-size: 0.85rem; }

.packages-block { margin-top: clamp(48px, 6vw, 72px); }
.block-title { font-size: 1.5rem; font-family: var(--font-display); font-weight: 700; }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.block-head .block-intro { margin-bottom: 0; }
.block-head .segmented { flex: none; }
.block-intro { color: var(--muted); margin: 8px 0 24px; }
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.package { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: grid; gap: 6px; align-content: start; }
.package.featured { background: var(--panel); border-color: var(--green-light); grid-column: span 3; grid-template-columns: 1fr auto; align-items: center; }
.package h4 { margin: 0; font-size: 1.1rem; }
.package p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.package .pprice { text-align: left; font-size: 1.3rem; }
.save { color: var(--green-text); font-size: 0.9rem; font-weight: 600; }
.pkg-list { margin-top: 10px; border-top: 1px solid var(--line-soft); }
.package.featured .pkg-list { grid-column: 1 / -1; }
.pkg-list summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  padding: 10px 0 2px; font-weight: 600; font-size: 0.95rem; color: var(--green-dark);
}
.pkg-list summary::-webkit-details-marker { display: none; }
.pkg-list summary::before {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s; flex: none;
}
.pkg-list[open] summary::before { transform: rotate(45deg); }
.pkg-list ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.package.featured .pkg-list ul { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 20px; }
.pkg-list li { display: flex; align-items: center; gap: 8px; font-size: 0.925rem; }
.pkg-list .picon { border-radius: 5px; flex: none; }

.licensing { margin-top: 28px; border-top: 1px solid var(--line); }
.licensing summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--green-dark);
  list-style: none; display: flex; align-items: center; gap: 10px;
}
.licensing summary::-webkit-details-marker { display: none; }
.licensing summary::before {
  content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s;
}
.licensing[open] summary::before { transform: rotate(45deg); }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; padding-bottom: 8px; }
.notes h4 { margin: 0 0 4px; font-size: 1rem; }
.notes p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.fine-print { color: var(--muted); font-size: 0.9rem; margin: 16px 0 0; max-width: none; }

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

.site-footer { background: var(--green-deep); color: #C3D6C5; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 48px 32px; }
.site-footer .brand-mark { color: #fff; }
.site-footer p { margin: 10px 0 0; font-size: 0.95rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--green-light); }
/* Location map in the footer, on the dark green background */
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand nav" "brand map"; align-items: start; }
.footer-inner > div { grid-area: brand; }
.footer-inner > nav { grid-area: nav; justify-content: flex-end; }
.site-footer .office-map { grid-area: map; margin: 8px 0 0 auto; width: 170px; max-width: 100%; }
.site-footer .office-map .pin-dot { r: 24px; stroke-width: 8px; }
.site-footer .office-map .pin-halo { r: 46px; }
.site-footer .office-map .land { fill: rgba(255, 255, 255, .13); stroke: none; }
.site-footer .office-map .pin-halo { fill: var(--green-light); opacity: .3; }
.site-footer .office-map .pin-dot { fill: var(--green-light); stroke: var(--green-deep); }
.site-footer .office-map text { fill: #fff; stroke: var(--green-deep); font-size: 82px; stroke-width: 14px; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "nav" "map"; }
  .footer-inner > nav { justify-content: flex-start; }
  .site-footer .office-map { margin: 8px 0 0; width: 100%; max-width: 190px; }
}
.footer-fine { border-top: 1px solid rgba(255,255,255,.14); padding-block: 18px; }
.footer-fine p { margin: 0; font-size: 0.85rem; max-width: none; }

/* ---------- Floating quick contact ---------- */

.quick-contact { position: fixed; right: 20px; bottom: 20px; z-index: 60; transition: opacity .2s, visibility .2s; }
.quick-contact svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.qc-panel {
  position: relative; width: 340px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 30, 45, .16);
  padding: 18px 18px 16px;
}
.qc-number {
  display: block; margin: 2px 0 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.2;
  color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums;
}
.qc-number:hover { color: var(--fine-green); }
.qc-hours { margin: 0 0 14px; font-size: 0.875rem; color: var(--muted); }
.qc-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.qc-actions > :nth-child(-n+3) { grid-column: span 2; padding-inline: 4px; gap: 6px; font-size: 0.9rem; }
.qc-actions > :nth-child(4), .qc-actions > :nth-child(5) { grid-column: span 3; }
.qc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  padding: 9px 10px; border-radius: 6px; white-space: nowrap;
  color: var(--text); background: var(--bg); border: 1.5px solid var(--line);
  transition: border-color .15s, background-color .15s, color .15s;
}
.qc-btn:hover { border-color: var(--fine-green); color: var(--fine-green); }
.qc-chat { grid-column: 1 / -1; background: var(--fine-green); border-color: var(--fine-green); color: #fff; }
.qc-chat:hover { background: var(--primary-hi); border-color: var(--primary-hi); color: #fff; }
.qc-short { display: none; }

.qc-close {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px;
  display: grid; place-items: center; padding: 0;
  background: none; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer;
}
.qc-close:hover { background: var(--bg-2); color: var(--text); }
.qc-close svg { width: 16px; height: 16px; stroke-width: 2.2; }

.qc-launcher {
  display: none; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; color: #fff; cursor: pointer;
  background: var(--fine-green); border: 0; border-radius: 999px;
  padding: 12px 18px; box-shadow: 0 8px 24px rgba(16, 30, 45, .22);
}
.qc-launcher:hover { background: var(--primary-hi); }

.quick-contact.is-min .qc-panel { display: none; }
.quick-contact.is-min .qc-launcher { display: inline-flex; }

/* Phones: slim bar along the bottom */
@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .quick-contact, .quick-contact.is-min { left: 0; right: 0; bottom: 0; }
  .quick-contact.is-min .qc-panel { display: block; }
  .qc-panel {
    width: auto; border-radius: 0; border-width: 1px 0 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(16, 30, 45, .10);
  }
  .qc-number, .qc-hours, .qc-close, .qc-launcher, .quick-contact.is-min .qc-launcher { display: none; }
  .qc-actions { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .qc-actions > * { grid-column: auto !important; }
  .qc-btn { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 0.78rem; }
  .qc-chat { grid-column: auto; }
  .qc-long { display: none; }
  .qc-short { display: inline; }
}

/* Brief highlight when a "Contact us" link opens the card */
@keyframes qc-pulse { 0% { box-shadow: 0 0 0 0 rgba(32, 141, 47, .55); } 100% { box-shadow: 0 0 0 16px rgba(32, 141, 47, 0); } }
.quick-contact.qc-attention .qc-panel { animation: qc-pulse .9s ease-out 2; }
@media (prefers-reduced-motion: reduce) { .quick-contact.qc-attention .qc-panel { animation: none; } }

/* Hidden while the Tawk.to chat window is open; it returns when the chat is minimized */
html.chat-open .quick-contact { display: none; }
html.chat-open body { padding-bottom: 0; }

@media print { .quick-contact { display: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .cat-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package.featured { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav .nav-trial { margin: 14px 0 0; text-align: center; padding: 10px 14px; }
  .site-nav .nav-trial + .nav-cta { margin-top: 10px; }
  .site-nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }

  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .services, .buy, .notes, .why-about { grid-template-columns: minmax(0, 1fr); }
  .prog summary { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 14px; }
  .pfeat { grid-template-columns: minmax(0, 1fr); padding-left: 54px; }
  .catalogue { padding: 4px 16px; }
  .plist .picon { grid-row: span 2; align-self: start; }
  .plist .pdesc { grid-column: 2 / -1; grid-row: 2; }
}

@media (max-width: 560px) {
  .brand-logo { height: 28px; }
  .brand-badge { height: 18px; max-height: 18px; }
  html.scrolled .brand-logo { height: 24px; }
  html.scrolled .header-inner { min-height: 52px; }
  .facts, .packages { grid-template-columns: minmax(0, 1fr); }
  .cat-tab { padding: 8px 10px; gap: 8px; }
  .cat-tab .picon { width: 28px; height: 28px; }
  .cat-tab-from { display: none; }
  .facts li, .facts li + li { padding-left: 0; border-left: 0; }
  .package.featured { grid-column: auto; grid-template-columns: 1fr; }
  .segmented button { padding: 8px 10px; font-size: 0.9rem; }
}

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