/* ==========================================================================
   APM Bricks and Pavers — Core Stylesheet
   Design tokens, base typography, layout primitives and components.
   Brand palette is taken from the APM visiting card: APM red, deep navy,
   pale stone-blue and the gold emblem — warmed with terracotta and copper.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Brand colours */
  --ink: #0d1322;
  --navy: #18234b;
  --navy-2: #24336a;
  --brick: #d2352b;
  --brick-dark: #a8261e;
  --terra: #c2562f;
  --copper: #d9823b;
  --gold: #e9b44c;
  --ivory: #f7f3ec;
  --stone: #ece5d9;
  --stone-2: #e2dacb;
  --concrete: #9098a5;
  --mist: #dfe6ef; /* pale blue-grey from the card */

  /* Text */
  --text: #1b2131;
  --muted: #5b6273;
  --on-dark: #eef0f5;
  --on-dark-muted: #aab1c2;
  --line: rgba(13, 19, 34, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #d2352b 0%, #e0683a 45%, #e9b44c 100%);
  --grad-copper: linear-gradient(135deg, #b8462a, #d9823b 50%, #f0c56c);
  --grad-ink: linear-gradient(160deg, #0d1322 0%, #18234b 60%, #24336a 100%);

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);
  --fs-hero: clamp(2.35rem, 1.4rem + 4.6vw, 5rem);

  /* Spacing & shape */
  --gutter: 16px;
  --container: 1240px;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(13, 19, 34, 0.06);
  --shadow-md: 0 14px 34px -14px rgba(13, 19, 34, 0.28);
  --shadow-lg: 0 30px 60px -24px rgba(13, 19, 34, 0.45);
  --shadow-brick: 0 16px 34px -14px rgba(210, 53, 43, 0.55);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.2s;
  --t-med: 0.45s;
  --t-slow: 0.9s;

  --header-h: 76px;

  /* Running-bond brick joint pattern (used as subtle texture) */
  --bond-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48' viewBox='0 0 96 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M0 .5h96M0 24.5h96M.5 0v24M48.5 0v24M24.5 24v24M72.5 24v24'/%3E%3C/g%3E%3C/svg%3E");
  --bond-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48' viewBox='0 0 96 48'%3E%3Cg fill='none' stroke='%230d1322' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M0 .5h96M0 24.5h96M.5 0v24M48.5 0v24M24.5 24v24M72.5 24v24'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-md); }

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brick);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--stone {
  background: var(--stone);
}

.section--white {
  background: #fff;
}

.section--dark {
  background: var(--grad-ink);
  color: var(--on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark p {
  color: var(--on-dark-muted);
}

.section--textured::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bond-dark);
  pointer-events: none;
}

.section--dark.section--textured::before {
  background-image: var(--bond-light);
}

.section > .container {
  position: relative;
}

/* Section heading block */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 10px;
  background:
    linear-gradient(var(--brick), var(--brick)) 0 0 / 12px 4px no-repeat,
    linear-gradient(var(--copper), var(--copper)) 14px 0 / 14px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 6px 6px / 14px 4px no-repeat;
}

.section--dark .eyebrow {
  color: var(--gold);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--split {
  max-width: none;
  display: grid;
  gap: 1rem 3rem;
  align-items: end;
}

.section-head p {
  font-size: var(--fs-md);
  color: var(--muted);
  margin: 0;
}

.section--dark .section-head p {
  color: var(--on-dark-muted);
}

.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: var(--fs-md);
  color: var(--muted);
}

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  isolation: isolate;
  overflow: hidden;
  transition:
    transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    background-color var(--t-fast),
    color var(--t-fast);
  will-change: transform;
  white-space: nowrap;
}

.btn .icon {
  transition: transform var(--t-med) var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(4px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Primary: animated brand gradient */
.btn--primary {
  background: linear-gradient(110deg, #d2352b, #e0683a, #e9b44c, #e0683a, #d2352b);
  background-size: 300% 100%;
  background-position: 0% 50%;
  transition:
    transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    background-position 0.9s var(--ease);
}

.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: var(--shadow-brick);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow-md);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn--ghost-light:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}

.btn--wa {
  --btn-bg: #1f9d55;
  --btn-fg: #fff;
}

.btn--wa:hover {
  --btn-bg: #188447;
  box-shadow: 0 16px 30px -14px rgba(31, 157, 85, 0.7);
}

.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-xs);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Text link with animated underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--brick);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--t-med) var(--ease);
}

.link-arrow:hover {
  background-size: 100% 2px;
}

.link-arrow .icon {
  transition: transform var(--t-med) var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: #fff;
  transition:
    background-color var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    height var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
}

.site-header::before {
  /* soft top gradient keeps the transparent header legible over photos */
  content: "";
  position: absolute;
  inset: 0 0 -30px;
  background: linear-gradient(rgba(13, 19, 34, 0.55), transparent);
  pointer-events: none;
  transition: opacity var(--t-med);
}

.site-header.is-solid {
  --header-h: 66px;
  background: rgba(13, 19, 34, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

.site-header.is-solid::before {
  opacity: 0;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand__emblem {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(233, 180, 76, 0.45), 0 6px 16px -6px rgba(0, 0, 0, 0.6);
  transition: transform var(--t-slow) var(--ease);
}

.brand:hover .brand__emblem {
  transform: rotate(-12deg) scale(1.05);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__apm {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: #ff4a3d;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.brand__sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #dfe6ef;
  margin-top: 4px;
}

.nav {
  display: none;
}

.nav__list {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--t-fast);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: #fff;
}

/* Sliding indicator — positioned by main.js */
.nav__indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  border-radius: 3px;
  background: var(--grad-brand);
  transition:
    transform var(--t-med) var(--ease),
    width var(--t-med) var(--ease),
    opacity var(--t-fast);
  opacity: 0;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions .btn--quote {
  display: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background-color var(--t-fast), transform var(--t-med) var(--ease);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.icon-btn--wa {
  background: #1f9d55;
  box-shadow: none;
}

.icon-btn--wa:hover {
  background: #188447;
}

/* Hamburger */
.menu-toggle {
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast), top var(--t-med) var(--ease);
}

.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--ink);
  background-image: var(--bond-light), var(--grad-ink);
  color: #fff;
  clip-path: circle(0% at calc(100% - 38px) 38px);
  visibility: hidden;
  transition:
    clip-path 0.7s var(--ease-in-out),
    visibility 0s linear 0.7s;
  overflow-y: auto;
}

.mobile-nav.is-open {
  clip-path: circle(150% at calc(100% - 38px) 38px);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s;
}

.mobile-nav__list {
  display: grid;
  gap: 0.2rem;
  counter-reset: mnav;
}

.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 3vw, 2.4rem);
  font-weight: 700;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color var(--t-fast);
}

.mobile-nav__link::before {
  counter-increment: mnav;
  content: "0" counter(mnav);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--gold);
}

.mobile-nav__link[aria-current="page"] {
  color: #ff6a55;
}

.mobile-nav.is-open .mobile-nav__link {
  opacity: 1;
  transform: none;
}

.mobile-nav.is-open li:nth-child(1) .mobile-nav__link { transition-delay: 0.18s; }
.mobile-nav.is-open li:nth-child(2) .mobile-nav__link { transition-delay: 0.23s; }
.mobile-nav.is-open li:nth-child(3) .mobile-nav__link { transition-delay: 0.28s; }
.mobile-nav.is-open li:nth-child(4) .mobile-nav__link { transition-delay: 0.33s; }
.mobile-nav.is-open li:nth-child(5) .mobile-nav__link { transition-delay: 0.38s; }
.mobile-nav.is-open li:nth-child(6) .mobile-nav__link { transition-delay: 0.43s; }
.mobile-nav.is-open li:nth-child(7) .mobile-nav__link { transition-delay: 0.48s; }
.mobile-nav.is-open li:nth-child(8) .mobile-nav__link { transition-delay: 0.53s; }

.mobile-nav__foot {
  margin-top: auto;
  padding-top: 2rem;
  display: grid;
  gap: 0.8rem;
}

.mobile-nav__foot p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
}

/* ---------- 6. Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 4.5rem;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -6%;
  z-index: -3;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroKenBurns 26s ease-in-out infinite alternate;
}

.hero::before {
  /* premium layered overlay keeps text readable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 85% 20%, rgba(210, 53, 43, 0.28), transparent 55%),
    linear-gradient(100deg, rgba(13, 19, 34, 0.96) 0%, rgba(13, 19, 34, 0.86) 45%, rgba(24, 35, 75, 0.55) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--bond-light);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  animation: bondDrift 40s linear infinite;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  margin-bottom: 1.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero__tag img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero h1 .line > span {
  display: inline-block;
}

.hero h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  max-width: 560px;
  font-size: var(--fs-md);
  color: #c9cfdc;
  margin-bottom: 2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 2.2rem;
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__meta .icon {
  color: var(--gold);
}

/* Layered image composition */
.hero__stack {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 520px);
  margin-inline: auto;
}

.hero__card {
  position: absolute;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

.hero__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__card--a {
  inset: 0 22% 26% 0;
}

.hero__card--b {
  width: 46%;
  aspect-ratio: 4 / 5;
  right: 0;
  top: 14%;
}

.hero__card--c {
  width: 44%;
  aspect-ratio: 4 / 3;
  left: 18%;
  bottom: 0;
}

.hero__badge {
  position: absolute;
  right: 4%;
  bottom: 6%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-lg);
}

.hero__badge svg {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  animation: spin 22s linear infinite;
}

.hero__badge text {
  font-family: var(--font-body);
  font-size: 8.6px;
  font-weight: 700;
  letter-spacing: 1.4px;
  fill: #dfe6ef;
  text-transform: uppercase;
}

.hero__badge img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollCue 2s var(--ease) infinite;
  transform-origin: top;
}

/* ---------- 7. Inner page banner ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6rem)) 0 clamp(3rem, 2rem + 4vw, 5.5rem);
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg, rgba(13, 19, 34, 0.95) 0%, rgba(13, 19, 34, 0.82) 50%, rgba(24, 35, 75, 0.5) 100%),
    var(--bond-light);
}

.page-hero::after {
  /* brick-red base stripe */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--grad-brand);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4.4rem);
  max-width: 14ch;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 600px;
  font-size: var(--fs-md);
  color: #c9cfdc;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  color: var(--gold);
}

.page-hero__index {
  position: absolute;
  right: var(--gutter);
  bottom: 1.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 3rem + 10vw, 11rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: -1;
}

/* ---------- 8. Marquee strip ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--brick);
  color: #fff;
  padding: 0.95rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.15);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  padding-right: 1.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 14px;
  height: 8px;
  background: var(--gold);
  border-radius: 1px;
}

/* ---------- 9. Gradient image border (signature) ---------- */
.gframe {
  --angle: 0deg;
  --gf-w: 3px;
  --gf-r: var(--r-lg);
  position: relative;
  border-radius: var(--gf-r);
  padding: var(--gf-w);
  background:
    conic-gradient(from var(--angle), #d2352b, #e0683a, #e9b44c, #f3d9a0, #c2562f, #8f2a1f, #d2352b);
  isolation: isolate;
  transition: --angle 1.2s var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.gframe::after {
  /* soft glow that appears on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  filter: blur(14px);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}

.gframe:hover,
.gframe:focus-within,
.is-hovered > .gframe {
  --angle: 200deg;
}

.gframe:hover::after,
.is-hovered > .gframe::after {
  opacity: 0.45;
}

.gframe__inner {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--gf-r) - var(--gf-w));
  background: var(--stone);
  height: 100%;
}

.gframe__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter var(--t-med);
}

.gframe:hover .gframe__inner img,
.is-hovered > .gframe .gframe__inner img {
  transform: scale(1.07);
}

.gframe--thin {
  --gf-w: 2px;
}

.gframe--sm {
  --gf-r: var(--r-md);
}

/* Catalogue sheets (white background with spec drawings) are shown whole */
.img-contain .gframe__inner,
.gframe__inner.is-contain {
  background: #f4f2ee;
}

.img-contain img,
.gframe__inner.is-contain img {
  object-fit: contain;
  padding: 6px;
}

/* ---------- 10. Intro / image-text ---------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split__media {
  position: relative;
}

.split__media .gframe {
  aspect-ratio: 4 / 5;
}

.split__media .float-card {
  position: absolute;
  right: -6px;
  bottom: -22px;
  width: 46%;
  aspect-ratio: 1;
  box-shadow: var(--shadow-lg);
}

.split__body h2 {
  margin-bottom: 1rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.6rem 0 2rem;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-list .icon {
  margin-top: 0.2rem;
  color: var(--brick);
  width: 1.25rem;
  height: 1.25rem;
}

.section--dark .check-list .icon {
  color: var(--gold);
}

/* ---------- 11. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.stat {
  padding: 1.6rem 1.2rem;
  background: #fff;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat__num .text-grad {
  font-size: 0.7em;
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---------- 12. Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.p-card:hover,
.p-card.is-hovered {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.p-card .gframe {
  aspect-ratio: 4 / 3;
  --gf-r: 18px;
}

.p-card__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--t-fast), transform var(--t-med) var(--ease);
}

.p-card:hover .p-card__zoom,
.p-card__zoom:focus-visible {
  opacity: 1;
  transform: none;
}

.p-card__cat {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13, 19, 34, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.p-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 0.6rem 0.5rem;
}

.p-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.p-card__title a::after {
  /* whole-card hit area for the title link without nesting buttons */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.p-card__spec {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--mist);
  border-radius: 999px;
}

.chip--warm {
  color: var(--brick-dark);
  background: #fbe5dc;
}

.p-card__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-card__actions {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.p-card__actions .btn {
  min-height: 44px;
  padding-inline: 0.6rem;
  font-size: 0.78rem;
}

/* ---------- 13. Applications bento ---------- */
.bento {
  display: grid;
  gap: 1rem;
}

.bento__item {
  position: relative;
  min-height: 260px;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}

.bento__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--ease);
}

.bento__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(13, 19, 34, 0.92) 0%, rgba(13, 19, 34, 0.35) 55%, rgba(13, 19, 34, 0.05) 100%);
  transition: background var(--t-med);
}

.bento__item::after {
  /* gradient frame that draws in on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}

.bento__item:hover img {
  transform: scale(1.08);
}

.bento__item:hover::after,
.bento__item:focus-visible::after {
  opacity: 1;
}

.bento__body {
  padding: 1.4rem;
}

.bento__num {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.bento__body h3 {
  color: #fff;
  margin-bottom: 0.3rem;
}

.bento__body p {
  margin: 0;
  font-size: var(--fs-sm);
  color: #cfd4df;
  max-width: 34ch;
}

/* ---------- 14. Feature (why choose) ---------- */
.features {
  display: grid;
  gap: 1rem;
}

.feature {
  position: relative;
  padding: 1.8rem 1.5rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), background-color var(--t-med), border-color var(--t-med);
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: var(--grad-brand);
  transition: width 0.7s var(--ease);
}

.feature:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(233, 180, 76, 0.3);
}

.feature:hover::before {
  width: 100%;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.2rem;
  border-radius: 14px;
  color: #fff;
  background: var(--grad-copper);
  box-shadow: 0 10px 24px -10px rgba(217, 130, 59, 0.8);
}

.feature__icon .icon {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 1.2rem;
}

.feature p {
  margin: 0;
  font-size: var(--fs-sm);
}

.feature__index {
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}

/* Light variant used on inner pages */
.features--light .feature {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.features--light .feature p {
  color: var(--muted);
}

.features--light .feature__index {
  -webkit-text-stroke: 1px rgba(13, 19, 34, 0.12);
}

/* ---------- 15. Steps (how to enquire) ---------- */
.steps {
  display: grid;
  gap: 1.2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.8rem 1.5rem 1.6rem;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--brick);
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ---------- 16. Gallery ---------- */
.mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.mini-gallery {
  grid-auto-rows: 150px;
}

.mini-gallery .g-item {
  height: 100%;
}

.masonry {
  columns: 1;
  column-gap: 1rem;
}

.masonry .g-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.g-item {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--r-md);
  cursor: zoom-in;
}

.g-item .gframe {
  --gf-r: var(--r-md);
  --gf-w: 2px;
  height: 100%;
}

.g-item__cap {
  position: absolute;
  inset: auto 2px 2px 2px;
  z-index: 2;
  padding: 2.4rem 1rem 0.9rem;
  border-radius: 0 0 calc(var(--r-md) - 2px) calc(var(--r-md) - 2px);
  background: linear-gradient(to top, rgba(13, 19, 34, 0.9), transparent);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  pointer-events: none;
}

.g-item__cap small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.g-item:hover .g-item__cap,
.g-item:focus-visible .g-item__cap {
  opacity: 1;
  transform: none;
}

/* ---------- 17. Filters & search ---------- */
.toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-med) var(--ease);
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.filter-btn[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 20px -10px rgba(13, 19, 34, 0.7);
}

.filter-btn .count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: var(--stone);
  color: var(--ink);
}

.filter-btn[aria-pressed="true"] .count {
  background: var(--brick);
  color: #fff;
}

.search {
  position: relative;
}

.search input {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 2.8rem 0.75rem 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: var(--fs-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.search input:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 4px rgba(210, 53, 43, 0.14);
}

.search > .icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
}

.search__clear:hover {
  background: var(--stone);
  color: var(--ink);
}

.results-meta {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.empty-state {
  display: none;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 2px dashed var(--stone-2);
  border-radius: var(--r-lg);
}

.empty-state.is-visible {
  display: block;
}

/* ---------- 18. Modal & lightbox ---------- */
.modal,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}

.modal.is-open,
.lightbox.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--t-med) var(--ease), visibility 0s;
}

.modal__backdrop,
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 980px);
  max-height: calc(100svh - 2 * var(--gutter));
  overflow-y: auto;
  background: var(--ivory);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.6s var(--ease);
}

.modal.is-open .modal__dialog {
  transform: none;
}

.modal__grid {
  display: grid;
}

.modal__media {
  padding: 12px;
}

.modal__media .gframe {
  aspect-ratio: 4 / 3;
}

.modal__body {
  padding: 1.2rem 1.5rem 1.8rem;
}

.modal__body h2 {
  font-size: var(--fs-xl);
  margin-bottom: 0.6rem;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(13, 19, 34, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform var(--t-med) var(--ease), background-color var(--t-fast);
}

.close-btn:hover {
  background: var(--brick);
  transform: rotate(90deg);
}

.thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
  overflow-x: auto;
  padding: 2px;
}

.thumb {
  flex: 0 0 68px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f2ee;
  box-shadow: inset 0 0 0 2px transparent;
  opacity: 0.6;
  transition: opacity var(--t-fast), box-shadow var(--t-fast), transform var(--t-med) var(--ease);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.thumb[aria-current="true"] {
  opacity: 1;
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: var(--fs-sm);
}

.spec-table th,
.spec-table td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  width: 42%;
  font-weight: 600;
  color: var(--muted);
}

.spec-table thead th {
  width: auto;
  color: var(--ink);
  background: var(--stone);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  font-size: var(--fs-sm);
  color: var(--navy);
  background: var(--mist);
  border-radius: var(--r-md);
  border-left: 4px solid var(--navy-2);
}

.note .icon {
  margin-top: 0.15rem;
}

.note--warm {
  color: #6c2a14;
  background: #fbe9df;
  border-left-color: var(--terra);
}

/* Lightbox */
.lightbox__stage {
  position: relative;
  width: min(100%, 1200px);
  height: min(82svh, 900px);
  display: grid;
  place-items: center;
}

.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(min(82svh, 900px) - 60px);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 3px solid transparent;
  background: linear-gradient(#111, #111) padding-box, var(--grad-brand) border-box;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}

.lightbox__img.is-switching {
  opacity: 0;
  transform: scale(0.96);
}

.lightbox__cap {
  margin-top: 0.9rem;
  color: #fff;
  text-align: center;
  font-size: var(--fs-sm);
}

.lightbox__cap span {
  color: var(--on-dark-muted);
  margin-left: 0.5rem;
}

.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
  transition: background-color var(--t-fast), transform var(--t-med) var(--ease);
}

.lb-nav:hover {
  background: var(--brick);
}

.lb-nav--prev { left: 0; }
.lb-nav--next { right: 0; }
.lb-nav--prev:hover { transform: translate(-3px, -50%); }
.lb-nav--next:hover { transform: translate(3px, -50%); }

.lightbox .close-btn {
  position: fixed;
}

/* ---------- 19. Product details page ---------- */
.pd {
  display: grid;
  gap: 2.5rem;
}

.pd__main .gframe {
  aspect-ratio: 4 / 3;
}

.pd__main .gframe__inner {
  cursor: zoom-in;
}

.pd__info h1 {
  font-size: var(--fs-2xl);
  color: var(--ink);
}

.pd__cat {
  display: inline-block;
  margin-bottom: 0.8rem;
}

.pd__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 1.6rem;
}

.pd__cta {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.pd-skeleton {
  min-height: 60vh;
}

/* ---------- 20. Applications page ---------- */
.app-block {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.app-block:last-child {
  border-bottom: 0;
}

.app-block__media {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.8rem;
}

.app-block__media .gframe {
  aspect-ratio: 3 / 4;
}

.app-block__media .gframe:nth-child(2) {
  margin-top: 2.5rem;
}

.app-block__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brick);
  margin-bottom: 0.6rem;
  display: block;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-fast);
}

.app-link img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.app-link:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px var(--brick), var(--shadow-sm);
}

.app-index {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

/* ---------- 21. Quality page ---------- */
.guide-grid {
  display: grid;
  gap: 1.2rem;
}

.guide-card {
  position: relative;
  padding: 1.8rem 1.5rem;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brick);
}

.guide-card:nth-child(2n) { border-top-color: var(--copper); }
.guide-card:nth-child(3n) { border-top-color: var(--navy-2); }

.guide-card h3 {
  font-size: 1.2rem;
}

.guide-card ul {
  display: grid;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.guide-card li {
  position: relative;
  padding-left: 1.2rem;
}

.guide-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 5px;
  background: var(--brick);
  border-radius: 1px;
}

.accordion {
  display: grid;
  gap: 0.7rem;
}

.acc-item {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.acc-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}

.acc-item summary::-webkit-details-marker {
  display: none;
}

.acc-item summary .icon {
  transition: transform var(--t-med) var(--ease);
  color: var(--brick);
}

.acc-item[open] summary .icon {
  transform: rotate(45deg);
}

.acc-item__body {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.acc-item__body p:last-child {
  margin: 0;
}

/* Pattern swatches drawn with CSS */
.patterns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pattern {
  background: #fff;
  border-radius: var(--r-md);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.pattern__swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  transition: transform var(--t-med) var(--ease);
}

.pattern:hover .pattern__swatch {
  transform: scale(0.97);
}

.pattern h4 {
  margin: 0.7rem 0.2rem 0.2rem;
  font-size: 1rem;
}

.pattern p {
  margin: 0 0.2rem 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.pattern--chequer .pattern__swatch {
  background: repeating-conic-gradient(#d2352b 0 25%, #e9b44c 0 50%) 0 0 / 50% 50%;
}

.pattern--stripe .pattern__swatch {
  background: repeating-linear-gradient(0deg, #1b2131 0 18%, #e9e7e3 18% 36%);
}

.pattern--zigzag .pattern__swatch {
  background:
    linear-gradient(135deg, #1b2131 25%, transparent 25%) -20px 0 / 40px 40px,
    linear-gradient(225deg, #1b2131 25%, transparent 25%) -20px 0 / 40px 40px,
    linear-gradient(315deg, #1b2131 25%, transparent 25%) 0 0 / 40px 40px,
    linear-gradient(45deg, #1b2131 25%, #e9e7e3 25%) 0 0 / 40px 40px;
}

.pattern--inset .pattern__swatch {
  background:
    radial-gradient(circle at center, #d2352b 0 18%, transparent 19%) 0 0 / 33.33% 33.33%,
    repeating-linear-gradient(90deg, #8a909c 0 2px, transparent 2px 33.33%),
    repeating-linear-gradient(0deg, #8a909c 0 2px, transparent 2px 33.33%),
    #e9e7e3;
}

/* ---------- 22. Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.c-card {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.3rem;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.c-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.c-card__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
}

.c-card__icon--wa {
  background: #1f9d55;
}

.c-card__icon--red {
  background: var(--brick);
}

.c-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.c-card p,
.c-card a {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.c-card a:hover {
  color: var(--brick);
}

.c-card .phones {
  display: grid;
  gap: 0.2rem;
}

.c-card .phones a {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--fs-base);
}

.form-card {
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--grad-brand);
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.field label .req {
  color: var(--brick);
}

.field label .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  font-size: var(--fs-base);
  background: var(--ivory);
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231b2131' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--brick);
  box-shadow: 0 0 0 4px rgba(210, 53, 43, 0.12);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c62828;
  background-color: #fff6f5;
}

.field__error {
  min-height: 1.1em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c62828;
}

.form-status {
  display: none;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}

.form-status.is-visible {
  display: flex;
}

.form-status--success {
  color: #145a32;
  background: #e3f5ea;
}

.form-status--error {
  color: #8e1c1c;
  background: #fdecea;
}

.form-actions {
  display: grid;
  gap: 0.6rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.map-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  background: var(--stone);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 23. CTA banner ---------- */
.cta {
  position: relative;
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(1.4rem, 1rem + 4vw, 4.5rem);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(210, 53, 43, 0.75), transparent 60%),
    linear-gradient(110deg, rgba(13, 19, 34, 0.95) 30%, rgba(13, 19, 34, 0.55));
}

.cta h2 {
  color: #fff;
  max-width: 16ch;
}

.cta p {
  max-width: 520px;
  color: #cdd3df;
  font-size: var(--fs-md);
  margin-bottom: 2rem;
}

.cta__deco {
  position: absolute;
  right: -40px;
  bottom: -40px;
  z-index: -1;
  width: 260px;
  height: 260px;
  background: repeating-conic-gradient(rgba(233, 180, 76, 0.22) 0 25%, transparent 0 50%) 0 0 / 52px 52px;
  transform: rotate(12deg);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}

/* ---------- 24. Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  background-image: var(--bond-light);
  color: var(--on-dark-muted);
  padding-top: clamp(3.5rem, 3rem + 3vw, 5.5rem);
  font-size: var(--fs-sm);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--grad-brand);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  margin: 1.2rem 0 1.4rem;
  max-width: 34ch;
}

.site-footer h3 {
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--t-fast), transform var(--t-med) var(--ease);
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-contact {
  display: grid;
  gap: 0.9rem;
}

.footer-contact li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.footer-contact .icon {
  margin-top: 0.2rem;
  color: var(--gold);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
}

/* ---------- 25. Floating buttons ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: #1f9d55;
  box-shadow: 0 12px 28px -8px rgba(31, 157, 85, 0.7);
  transition: transform var(--t-med) var(--ease);
}

.wa-float .icon {
  width: 28px;
  height: 28px;
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #1f9d55;
  animation: pulseRing 2.4s var(--ease) infinite;
}

.wa-float:hover {
  transform: scale(1.08) rotate(-6deg);
}

.wa-float__label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity var(--t-fast), transform var(--t-med) var(--ease);
  pointer-events: none;
}

.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label {
  opacity: 1;
  transform: translate(0, -50%);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 89;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-med), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med), background-color var(--t-fast);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-med), transform var(--t-med) var(--ease), visibility 0s, background-color var(--t-fast);
}

.to-top:hover {
  background: var(--brick);
}

.to-top svg.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top svg.ring circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
}

/* ---------- 26. Misc page parts ---------- */
.values {
  display: grid;
  gap: 1rem;
}

.value {
  display: flex;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
}

.value strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.value p {
  margin: 0;
  font-size: var(--fs-sm);
}

.value .feature__icon {
  margin: 0;
  width: 46px;
  height: 46px;
}

.quote-block {
  position: relative;
  margin: 0;
  padding: 2rem 1.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--brick);
}

.range-list {
  display: grid;
  gap: 0.8rem;
}

.range-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}

.range-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.range-item img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.range-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1.08rem;
}

.range-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.range-item .icon {
  margin-left: auto;
  color: var(--brick);
}

.deco-tiles {
  position: absolute;
  width: 140px;
  height: 140px;
  background: repeating-conic-gradient(rgba(210, 53, 43, 0.14) 0 25%, transparent 0 50%) 0 0 / 35px 35px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
}

noscript .noscript-msg {
  display: block;
  padding: 1rem;
  background: #fff3cd;
  color: #5c4400;
  border-radius: var(--r-md);
}

[hidden] {
  display: none !important;
}

/* Gallery tiles: keep grid items from growing to the image's intrinsic width */
.mini-gallery > *,
.product-grid > *,
.bento > * {
  min-width: 0;
}

.g-item .gframe,
.g-item .gframe__inner {
  display: block;
}

.mini-gallery .g-item .gframe,
.mini-gallery .g-item .gframe__inner {
  height: 100%;
}

.masonry .g-item .gframe__inner img {
  height: auto;
}

/* Aspect-ratio frames must not grow to the image's intrinsic height */
.gframe {
  min-height: 0;
}

.p-card .gframe {
  flex-shrink: 0;
}

.app-block > *,
.app-block__media > *,
.split > *,
.pd > *,
.contact-grid > * {
  min-width: 0;
}

.site-header.menu-open {
  z-index: 130;
  transform: none;
}

/* ---------- New brand (gold & navy, from the new visiting card) ---------- */
.brand__emblem {
  border-radius: 12px;
  box-shadow: 0 0 0 1.5px rgba(226, 181, 98, 0.65), 0 6px 16px -6px rgba(0, 0, 0, 0.7);
}

.brand__apm {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #f7dc9a 0%, #e2b562 45%, #b9853a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.brand__sub {
  color: #e9cf96;
}

.hero__tag img {
  border-radius: 6px;
}

.footer-tagline {
  margin: 1.2rem 0 0 !important;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2b562;
}

.footer-tagline + p {
  margin-top: 0.6rem !important;
}

/* Visiting card display in the home hero */
.hero__cards {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
  padding: 2.2rem 0 0.5rem;
}

.hero__cards-label {
  position: absolute;
  top: 0;
  left: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e2b562;
}

.vcard {
  margin: 0;
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

.vcard .gframe {
  --gf-r: 14px;
  --gf-w: 2px;
  aspect-ratio: 984 / 469;
  background: conic-gradient(from var(--angle), #f7dc9a, #b9853a, #e2b562, #7a5623, #f3d9a0, #b9853a, #f7dc9a);
  box-shadow: var(--shadow-lg);
}

.vcard .gframe__inner {
  background: #05152a;
}

.vcard--front {
  width: 88%;
  transform: rotate(-3deg);
}

.vcard--back {
  width: 88%;
  margin: -2% 0 0 auto;
  position: relative;
  z-index: 2;
  transform: rotate(2.5deg);
}

.vcard--back .gframe {
  aspect-ratio: 986 / 450;
}

.vcard:hover {
  z-index: 3;
  position: relative;
}

.vcard:focus-visible {
  outline-offset: 6px;
}

.js .vcard {
  opacity: 0;
  animation: tileIn 1.2s var(--ease) forwards;
}

.js .vcard--front { animation-delay: 0.3s; }
.js .vcard--back { animation-delay: 0.55s; }

@keyframes vcardInFront { from { opacity: 0; transform: translateY(40px) rotate(-8deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes vcardInBack { from { opacity: 0; transform: translateY(50px) rotate(8deg); } to { opacity: 1; transform: rotate(2.5deg); } }
.js .vcard--front { animation-name: vcardInFront; }
.js .vcard--back { animation-name: vcardInBack; }

@media (prefers-reduced-motion: reduce) {
  .js .vcard { opacity: 1; animation: none; }
}

.vcard:hover { scale: 1.02; }
.vcard { transition: scale 0.6s var(--ease), translate 0.9s var(--ease); }

/* ---------- Project type: multi-select checkbox chips ---------- */
.field--checks {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field--checks legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 560px) {
  .check-grid { grid-template-columns: repeat(2, 1fr); }
}

.check-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  background: var(--ivory);
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-med) var(--ease);
}

.check-chip:hover {
  border-color: var(--stone-2);
  transform: translateY(-1px);
}

.check-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.check-chip__box {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--concrete);
  background: #fff;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

.check-chip__box::after {
  content: "";
  width: 10px;
  height: 6px;
  border: solid #fff;
  border-width: 0 0 2.5px 2.5px;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.25s var(--ease);
}

.check-chip input:checked + .check-chip__box {
  background: var(--brick);
  border-color: var(--brick);
}

.check-chip input:checked + .check-chip__box::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.check-chip:has(input:checked) {
  background: #fdeee8;
  border-color: rgba(210, 53, 43, 0.45);
  color: var(--ink);
}

.check-chip input:focus-visible + .check-chip__box {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.field legend .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Products / services: dropdown with checkboxes ---------- */
.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.field__label .opt,
.field__label .req {
  font-size: 0.8rem;
}

.field__label .opt {
  font-weight: 400;
  color: var(--muted);
}

.field__label .req {
  color: var(--brick);
}

.ms {
  position: relative;
}

.ms__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: var(--fs-base);
  color: var(--muted);
  background: var(--ivory);
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.ms.has-value .ms__toggle {
  color: var(--text);
}

.ms__toggle:focus-visible,
.ms.is-open .ms__toggle {
  outline: none;
  background: #fff;
  border-color: var(--brick);
  box-shadow: 0 0 0 4px rgba(210, 53, 43, 0.12);
}

.field.has-error .ms__toggle {
  border-color: #c62828;
  background-color: #fff6f5;
}

.ms__summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms__chev {
  transform: rotate(90deg);
  transition: transform var(--t-med) var(--ease);
  color: var(--ink);
}

.ms.is-open .ms__chev {
  transform: rotate(-90deg);
}

.ms__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  max-height: min(420px, 70vh);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: fadeUp 0.25s var(--ease);
}

.ms__panel[hidden] {
  display: none;
}

.ms__search {
  position: relative;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.ms__search .icon {
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.ms__search input {
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 0.8rem 0.5rem 2.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ivory);
  font-size: var(--fs-sm);
}

.ms__search input:focus {
  outline: none;
  border-color: var(--brick);
  background: #fff;
}

.ms__list {
  overflow-y: auto;
  padding: 0.4rem 0.7rem 0.7rem;
  overscroll-behavior: contain;
}

.ms__group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ms__group legend {
  padding: 0.7rem 0.2rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
}

.ms__option {
  min-height: 44px;
  margin-bottom: 0.3rem;
  padding: 0.45rem 0.7rem;
}

.ms__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-top: 1px solid var(--line);
  background: var(--ivory);
}

.ms__clear {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  padding: 0.4rem 0.2rem;
}

.ms__clear:hover {
  color: var(--brick);
}

.ms__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ms__chips:empty {
  display: none;
}

.ms__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.3rem 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brick-dark);
  background: #fdeee8;
  border: 1px solid rgba(210, 53, 43, 0.3);
  border-radius: 999px;
}

.ms__chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--brick-dark);
}

.ms__chip button:hover {
  background: rgba(210, 53, 43, 0.15);
}

.ms__chip .icon {
  width: 13px;
  height: 13px;
}

/* ---------- Language switch (EN / தமிழ்) ---------- */
.lang-switch {
  display: none;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.lang-switch button {
  min-width: 40px;
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  transition: background-color var(--t-fast), color var(--t-fast);
}

.lang-switch button[lang="ta"] {
  font-family: "Noto Sans Tamil", var(--font-body);
}

.lang-switch button:hover {
  color: #fff;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: linear-gradient(180deg, #f7dc9a, #e2b562);
}

.lang-switch--mobile {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.4rem;
}

.lang-switch--mobile button {
  min-height: 42px;
  padding-inline: 1.1rem;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .header-actions .lang-switch {
    display: inline-flex;
  }
}

/* ---------- Tamil typography ---------- */
html.lang-ta body,
html.lang-ta button,
html.lang-ta input,
html.lang-ta select,
html.lang-ta textarea {
  font-family: "Noto Sans Tamil", var(--font-body);
}

html.lang-ta h1,
html.lang-ta h2,
html.lang-ta h3,
html.lang-ta h4,
html.lang-ta .stat__num,
html.lang-ta .mobile-nav__link,
html.lang-ta .marquee__item,
html.lang-ta .acc-item summary,
html.lang-ta .quote-block {
  font-family: "Noto Sans Tamil", var(--font-display);
  letter-spacing: 0;
  line-height: 1.32;
}

html.lang-ta h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.9rem); }
html.lang-ta h2 { font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.6rem); }
html.lang-ta h3 { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); }
html.lang-ta .page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.4rem); max-width: 20ch; }
html.lang-ta .hero h1 .line { padding-bottom: 0.12em; }

html.lang-ta .eyebrow,
html.lang-ta .breadcrumb,
html.lang-ta .site-footer h3,
html.lang-ta .bento__num,
html.lang-ta .g-item__cap small,
html.lang-ta .p-card__cat,
html.lang-ta .ms__group legend,
html.lang-ta .hero__cards-label,
html.lang-ta .footer-tagline {
  letter-spacing: 0.02em;
  text-transform: none;
}

html.lang-ta .footer-tagline {
  font-family: "Noto Sans Tamil", var(--font-body);
  font-weight: 600;
}

html.lang-ta .btn {
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

html.lang-ta .nav__link {
  font-size: 0.86rem;
  padding-inline: 0.6rem;
}

html.lang-ta .p-card__actions .btn {
  font-size: 0.74rem;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  html.lang-ta .nav__link { font-size: 0.78rem; padding-inline: 0.42rem; }
  html.lang-ta .header-actions .btn--quote { display: none; }
}

/* Long Tamil labels must wrap instead of widening the form grid */
.form-grid > *,
.check-grid > * {
  min-width: 0;
}

html.lang-ta .field label,
html.lang-ta .field__label,
html.lang-ta .check-chip,
html.lang-ta .ms__summary {
  overflow-wrap: anywhere;
}

.field > * {
  min-width: 0;
}

.ms__summary {
  flex: 1;
  min-width: 0;
}

/* Tamil place name தோட்டனூத்து is always shown in red */
.loc-ta {
  color: var(--brick);
  font-weight: 700;
}

.hero .loc-ta,
.page-hero .loc-ta,
.site-footer .loc-ta,
.section--dark .loc-ta,
.mobile-nav .loc-ta,
.cta .loc-ta,
.lightbox .loc-ta {
  color: #ff5a4d;
}
