:root {
  --bg: #f3efe8;
  --bg-soft: #fbf8f3;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #fffdf9;
  --ink: #162126;
  --muted: #5b6a70;
  --line: rgba(22, 33, 38, 0.12);
  --accent: #c35c2e;
  --accent-deep: #8a3d1c;
  --accent-soft: #f0d8cc;
  --navy: #12333c;
  --shadow: 0 24px 60px rgba(18, 51, 60, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(195, 92, 46, 0.15), transparent 32%),
    radial-gradient(circle at right 20%, rgba(18, 51, 60, 0.1), transparent 28%),
    linear-gradient(180deg, #f9f5ef 0%, #efe7dc 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: padding 180ms ease, gap 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
  transition: width 180ms ease, height 180ms ease;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.brand-copy strong {
  font-size: 1.5rem;
  line-height: 1.15;
  transition: font-size 180ms ease;
}

.brand-copy small {
  color: var(--muted);
  line-height: 1.5;
  transition: font-size 180ms ease, line-height 180ms ease;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  transition: gap 180ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-item {
  position: relative;
  z-index: 1;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(22, 33, 38, 0.08);
  transition: min-height 180ms ease, padding 180ms ease, font-size 180ms ease;
}

.nav-item:hover > a,
.nav-item > a:focus-visible {
  background: rgba(255, 245, 238, 1);
  color: var(--ink);
}

.nav-item:hover,
.nav-item:focus-within {
  z-index: 40;
}

.nav-flyout {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  display: none;
  padding: 12px;
  border: 1px solid rgba(22, 33, 38, 0.12);
  border-radius: 18px;
  background: rgb(255, 252, 247);
  box-shadow: 0 22px 48px rgba(18, 51, 60, 0.18);
  z-index: 50;
}

.nav-flyout a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.nav-flyout a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.nav-item:hover .nav-flyout {
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #df7d42);
  color: white;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(195, 92, 46, 0.22);
}

.button-secondary {
  background: rgba(255, 245, 238, 1);
  color: var(--ink);
  box-shadow: none;
}

.site-header.is-compact {
  gap: 12px;
  padding: 8px 14px;
}

.site-header.is-compact .brand {
  gap: 10px;
}

.site-header.is-compact .brand-logo {
  width: 40px;
  height: 40px;
}

.site-header.is-compact .brand-copy strong {
  font-size: 1.2rem;
}

.site-header.is-compact .brand-copy small {
  font-size: 0.82rem;
  line-height: 1.2;
}

.site-header.is-compact .desktop-nav {
  gap: 6px;
}

.site-header.is-compact .header-actions {
  gap: 8px;
}

.site-header.is-compact .nav-item > a,
.site-header.is-compact .header-actions .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.92rem;
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  padding: 42px 0 24px;
  align-items: stretch;
}

.hero-home {
  display: block;
}

.hero-home .hero-copy {
  max-width: none;
  width: 100%;
}

.hero-copy,
.hero-panel,
.page-copy,
.page-media,
.content-card,
.side-card,
.category-card,
.highlight-card,
.solution-card a,
.contact-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy,
.page-copy {
  padding: 40px;
}

.hero-copy h1,
.page-copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.eyebrow,
.category-kicker,
.panel-label {
  margin: 0;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}

.lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-panel,
.page-media {
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(18, 51, 60, 0.95), rgba(21, 71, 82, 0.88)),
    linear-gradient(135deg, rgba(195, 92, 46, 0.18), transparent);
  color: white;
}

.hero-panel ul {
  margin: 20px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 14px;
}

.section {
  padding: 34px 0;
}

.section-accent {
  padding: 26px 28px;
  border-radius: 40px;
  background: rgba(18, 51, 60, 0.05);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-heading h2,
.two-column h2,
.side-card h2,
.contact-band h2 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.category-grid,
.highlights,
.solution-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-card,
.contact-grid article {
  padding: 22px;
}

.category-card h3,
.highlight-card h3,
.solution-card span {
  margin: 10px 0 12px;
  font-size: 1.2rem;
}

.category-meta,
.text-link,
.breadcrumbs,
.solution-card small,
.search-shell span {
  color: var(--muted);
}

.text-link {
  font-weight: 700;
}

.highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlight-card {
  overflow: hidden;
}

.highlight-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.highlight-card div {
  padding: 22px;
}

.two-column,
.page-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.stack {
  display: grid;
  gap: 12px;
}

.catalog-head {
  align-items: center;
}

.search-shell {
  display: grid;
  gap: 8px;
  min-width: min(100%, 320px);
}

.search-shell input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
}

.solution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solution-card a {
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.solution-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(195, 92, 46, 0.35);
}

.contact-band {
  padding: 28px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(195, 92, 46, 0.1), rgba(18, 51, 60, 0.08));
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.page-main {
  padding-top: 26px;
}

.page-media {
  display: grid;
  place-items: center;
}

.page-media img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 22px;
  background: white;
}

.page-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 260px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  text-align: center;
  font: 700 clamp(1.3rem, 3vw, 2.1rem)/1.15 "Bahnschrift", sans-serif;
  letter-spacing: 0.04em;
}

.page-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.content-card,
.side-card {
  padding: 26px;
}

.side-links {
  display: grid;
  gap: 8px;
}

.side-links a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(18, 51, 60, 0.05);
}

.side-contact {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.prose {
  line-height: 1.75;
  color: var(--ink);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.1;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  font-weight: 700;
}

.prose a:hover,
.prose a:focus-visible {
  color: var(--accent);
}

.prose img {
  margin: 20px auto;
  border-radius: 18px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose ul,
.prose ol {
  padding-left: 18px;
}

.content-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.enquiry-modal[hidden] {
  display: none;
}

.enquiry-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 33, 38, 0.56);
  backdrop-filter: blur(6px);
}

.enquiry-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: calc(100vh - 48px);
  margin: auto 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: 0 28px 80px rgba(18, 51, 60, 0.24);
  overflow-y: auto;
}

.enquiry-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.enquiry-head h2 {
  margin: 8px 0 0;
}

.enquiry-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 51, 60, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.enquiry-form {
  display: grid;
  gap: 16px;
}

.enquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

.enquiry-form textarea {
  min-height: 132px;
  resize: vertical;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(31, 123, 69, 0.12);
  color: #155b35;
}

.form-status.is-error {
  background: rgba(168, 41, 41, 0.12);
  color: #8b1e1e;
}

.button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

body.enquiry-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .category-grid,
  .solution-grid,
  .contact-grid,
  .highlights,
  .two-column,
  .page-layout,
  .hero,
  .page-hero {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1240px);
  }

  .site-header,
  .section-heading,
  .hero,
  .page-hero,
  .two-column,
  .page-layout,
  .contact-grid,
  .highlights,
  .solution-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    display: grid;
    justify-content: stretch;
    border-radius: 28px;
  }

  .desktop-nav {
    justify-content: start;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .nav-flyout {
    display: none !important;
  }

  .hero-copy,
  .hero-panel,
  .page-copy,
  .page-media,
  .content-card,
  .side-card,
  .enquiry-dialog {
    padding: 22px;
  }

  .hero-copy h1,
  .page-copy h1 {
    font-size: 2.7rem;
  }
}
