/* ==========================================================================
   TechGrid — refined visual system
   Warm ivory surfaces, deep forest green, muted brass accents.
   The homepage's hand-drawn network switch remains unchanged.
   ========================================================================== */

/* 1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  --ink-950: #17251f;
  --ink-900: #20352c;
  --ink-800: #2c4539;
  --ink-700: #405a4b;
  --ink-600: #587061;

  --on-ink: #f7f5ee;
  --on-ink-muted: #c1cdc2;

  --paper: #f6f4ee;
  --paper-deep: #eeece3;
  --white: #fffefa;
  --line: #e2e0d5;
  --line-strong: #cbc9bb;

  --text: #25342c;
  --text-muted: #6e786e;
  --text-soft: #899087;

  --accent: #426b53;
  --accent-hover: #345640;
  --accent-soft: #e6eee5;
  --accent-on-ink: #c7d6a4;

  --brass: #b28b51;
  --brass-soft: #f2eadb;

  --ok: #347450;
  --ok-hover: #285d3e;
  --warn: #986c28;
  --danger: #a6473d;
  --danger-soft: #f8e9e5;

  --focus: #648b6c;

  --font-body: "Barlow", "Noto Sans Georgian", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow",
    "Noto Sans Georgian", system-ui, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.8rem, 1.4rem + 1.5vw, 2.45rem);
  --text-3xl: clamp(2.35rem, 1.65rem + 2.7vw, 3.6rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --radius-sm: 5px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(32, 53, 44, 0.045);
  --shadow-md: 0 10px 28px rgba(32, 53, 44, 0.085);
  --shadow-lg: 0 20px 50px rgba(32, 53, 44, 0.12);

  --container: 76rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 4.75rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
}


/* 2. Reset and global styles
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

::selection {
  color: var(--ink-950);
  background: #dce7cf;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-main {
  flex: 1 0 auto;
}


/* 3. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

p {
  text-wrap: pretty;
}

.lead {
  max-width: 59ch;
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: 1.75;
}

.prose {
  max-width: 70ch;
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose :is(h2, h3) {
  margin-top: var(--space-6);
}


/* 4. Layout
   -------------------------------------------------------------------------- */

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

.section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.section--tight {
  padding-block: var(--space-6);
}

.section--white {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
}

.section-head h2 {
  max-width: 22ch;
}

.section-head > a {
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.section-head > a::after {
  content: " ↗";
  display: inline-block;
  margin-left: 0.2rem;
  transition: transform var(--dur) var(--ease);
}

.section-head > a:hover::after {
  transform: translate(2px, -2px);
}

.stack > * + * {
  margin-top: var(--stack-gap, var(--space-4));
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}


/* 5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 3px 8px rgba(53, 86, 64, 0.12);
}

.btn--primary:hover {
  color: var(--white);
  background: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(53, 86, 64, 0.18);
}

.btn--secondary {
  color: var(--ink-900);
  background: rgba(255, 254, 250, 0.72);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  color: var(--ink-900);
  background: var(--white);
  border-color: var(--ink-600);
}

.btn--whatsapp {
  color: #fff;
  background: #287a50;
}

.btn--whatsapp:hover {
  color: #fff;
  background: #20633f;
}

.btn--sm {
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
  font-size: var(--text-sm);
}

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

.btn:disabled,
.btn.is-disabled {
  color: #858b83;
  background: #e8e7df;
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}


/* 6. Forms
   -------------------------------------------------------------------------- */

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

.field__label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.field__hint {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.field__error {
  color: var(--danger);
  font-size: var(--text-xs);
  font-weight: 500;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-600);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 107, 83, 0.12);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-soft);
}

.textarea {
  min-height: 8rem;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236e786e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}


/* Quantity control */

.qty {
  display: inline-flex;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.qty__btn {
  width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  font-size: var(--text-lg);
  transition: background-color var(--dur) var(--ease);
}

.qty__btn:hover {
  background: var(--paper-deep);
}

.qty__input {
  width: 3rem;
  border: 0;
  background: transparent;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}


/* 7. Badges, stock status and prices
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  color: var(--ink-800);
  background: var(--paper-deep);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
}

.badge--sale {
  color: var(--danger);
  background: var(--danger-soft);
}

.badge--new {
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-sm);
  font-weight: 500;
}

.stock::before {
  content: "";
  flex: none;
  width: 0.48rem;
  height: 0.48rem;
  background: currentColor;
  border-radius: 50%;
}

.stock--in {
  color: var(--ok);
}

.stock--order {
  color: var(--warn);
}

.stock--out {
  color: var(--text-muted);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.65rem;
  font-variant-numeric: tabular-nums;
}

.price__now {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.15;
}

.price__old {
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-decoration: line-through;
}

.price--lg .price__now {
  font-size: var(--text-2xl);
}


/* 8. Product cards and grids
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.product-card:hover,
.product-card:focus-within {
  border-color: #c3cdbf;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 1.25rem;
  overflow: hidden;
  background: #f0efe8;
  border-bottom: 1px solid var(--line);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 280ms var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.035);
}

.product-card__badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem 1rem 0.85rem;
}

.product-card__brand {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.product-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.2rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.product-card__link {
  color: var(--ink-900);
  text-decoration: none;
}

.product-card__link:hover {
  color: var(--accent);
}

.product-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product-card__link:focus-visible {
  outline: none;
}

.product-card:has(.product-card__link:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.product-card__specs {
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
}

.product-card__specs > div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 0.18rem;
}

.product-card__specs dt {
  color: var(--text-muted);
}

.product-card__specs dd {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.product-card__footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.product-card__action {
  position: relative;
  z-index: 2;
}

.product-card__empty {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 9rem;
  place-items: center;
  color: #a1a69a;
}

.empty-state {
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty-state h3 {
  margin-bottom: 0.7rem;
}

.empty-state p {
  max-width: 48ch;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
}


/* 9. Content blocks and reusable elements
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb > * + *::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--text-soft);
}

.page-head {
  padding-block: 2.5rem;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-bottom: 0.75rem;
}

.page-head p {
  max-width: 62ch;
  color: var(--text-muted);
}

.notice {
  padding: 1rem 1.2rem;
  color: var(--ink-800);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  width: 40%;
  color: var(--text-muted);
  background: #f1f0e9;
  font-weight: 500;
}

.spec-table td {
  color: var(--text);
  background: var(--white);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}


/* 10. Utility bar and site header
   -------------------------------------------------------------------------- */

.utility-bar {
  color: var(--on-ink-muted);
  background: var(--ink-950);
  font-size: var(--text-xs);
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 2.5rem;
  padding-block: 0.4rem;
}

.utility-bar__note {
  color: var(--on-ink-muted);
  line-height: 1.45;
}

.utility-bar__contact {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.2rem;
}

.utility-bar a {
  color: var(--on-ink);
  text-decoration: none;
}

.utility-bar a:hover {
  color: var(--accent-on-ink);
}

.utility-bar__contact a:last-child {
  color: var(--accent-on-ink);
  font-weight: 600;
}

.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-900);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink-900);
}

.brand__mark {
  width: 36px;
  height: 19px;
  color: var(--accent);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  width: 2.9rem;
  height: 2.9rem;
  place-items: center;
  color: var(--ink-800);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.icon-btn:hover {
  color: var(--accent-hover);
  background: var(--accent-soft);
  border-color: #d8e3d5;
}

.icon-btn svg {
  width: 1.4rem;
  height: 1.4rem;
}

.cart-count {
  position: absolute;
  top: 0.05rem;
  right: 0.02rem;
  display: grid;
  min-width: 1.2rem;
  height: 1.2rem;
  padding-inline: 0.2rem;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border: 2px solid var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

.cart-count[data-count="0"] {
  color: var(--ink-800);
  background: var(--paper-deep);
}

.site-nav {
  align-self: stretch;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 100%;
}

.nav-list > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.55rem 0.8rem;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link.is-current {
  color: var(--ink-900);
  background: var(--paper);
}

.nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px var(--accent);
  border-radius: 0;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  cursor: pointer;
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.6rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.nav-dropdown[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 0;
  z-index: 60;
  min-width: 14rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.dropdown-link {
  display: block;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-decoration: none;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.dropdown-link:hover {
  color: var(--ink-900);
  background: var(--paper);
}

.nav-toggle {
  display: none;
}

.nav-toggle__close {
  display: none;
}


/* 11. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  color: var(--on-ink);
  background: var(--ink-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-block: 4rem 3.5rem;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin-bottom: 1.2rem;
  color: var(--on-ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-text {
  max-width: 34ch;
  color: var(--on-ink-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
}

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

.footer-links a {
  color: var(--on-ink-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-links a:hover {
  color: var(--accent-on-ink);
}

.footer-contact {
  font-style: normal;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.2rem;
  color: var(--on-ink-muted);
  font-size: var(--text-xs);
}

.footer-bottom__inner p:last-child {
  text-align: right;
}


/* 12. Accessibility utilities
   -------------------------------------------------------------------------- */

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.text-muted {
  color: var(--text-muted);
}

.nowrap {
  white-space: nowrap;
}

.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
}


/* 13. Homepage — hero and hand-drawn switch
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background:
    radial-gradient(
      ellipse at 86% 48%,
      rgba(198, 211, 181, 0.18),
      transparent 43%
    ),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  max-width: 13ch;
  color: var(--ink-900);
  font-size: clamp(2.6rem, 1.8rem + 3.2vw, 4.45rem);
  line-height: 1.045;
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 52ch;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.8;
}

.hero__actions {
  margin-top: 1.8rem;
}

.hero__panel {
  position: relative;
  width: 100%;
  max-width: 31rem;
  justify-self: center;
  padding: clamp(0.75rem, 2vw, 1.4rem);
  background: linear-gradient(145deg, #e9e9df, #f5f3ec);
  border: 1px solid #deded2;
  border-radius: var(--radius-lg);
  box-shadow:
    0 16px 45px rgba(32, 53, 44, 0.07),
    inset 0 1px rgba(255, 255, 255, 0.75);
}

/*
  Keep the original .rack SVG and all its hand-drawn details.
  This only changes the presentation around the illustration.
*/

.rack {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(23, 37, 31, 0.12));
}


/* Category cards */

.category-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 15rem), 1fr)
  );
  gap: 1.1rem;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 12rem;
  padding: 1.6rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.category-card::before {
  content: "";
  position: absolute;
  top: -3.5rem;
  right: -3.5rem;
  width: 8rem;
  height: 8rem;
  background: var(--accent-soft);
  border-radius: 50%;
  opacity: 0.65;
  transition: transform 350ms var(--ease);
}

.category-card:hover,
.category-card:focus-within {
  border-color: #c9d5c6;
  border-top-color: var(--brass);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.category-card:hover::before {
  transform: scale(1.25);
}

.category-card__name {
  position: relative;
  z-index: 1;
  font-size: 1.45rem;
}

.category-card__link {
  color: var(--ink-900);
  text-decoration: none;
}

.category-card__link:hover {
  color: var(--accent);
}

.category-card__text {
  position: relative;
  z-index: 1;
  max-width: 38ch;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.category-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
  font-weight: 600;
}

.category-card__chevron {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.category-card__chevron::before {
  content: "↗";
  font-size: 1rem;
}

.category-card:hover .category-card__chevron {
  color: var(--white);
  background: var(--accent);
  transform: translate(2px, -2px);
}


/* Benefits */

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.benefit {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.benefit:hover {
  background: var(--white);
  border-color: #d1d9ca;
  transform: translateY(-2px);
}

.benefit__icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.benefit__title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.benefit p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

.benefit p a {
  font-weight: 600;
}


/* Final call to action */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  color: var(--on-ink);
  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(199, 214, 164, 0.12),
      transparent 42%
    ),
    var(--ink-900);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(199, 214, 164, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 2rem rgba(199, 214, 164, 0.025),
    0 0 0 4rem rgba(199, 214, 164, 0.02);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band__text {
  max-width: 43rem;
}

.cta-band__text h2 {
  margin-bottom: 0.8rem;
  color: var(--on-ink);
}

.cta-band__text p {
  max-width: 59ch;
  color: var(--on-ink-muted);
  line-height: 1.8;
}

.cta-band__actions {
  flex-shrink: 0;
}

.cta-band .btn--secondary {
  color: var(--on-ink);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.cta-band .btn--secondary:hover {
  color: var(--on-ink);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.55);
}


/* 14. Responsive layout
   -------------------------------------------------------------------------- */

@media (min-width: 56rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .hero__panel {
    max-width: none;
    justify-self: end;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 76rem) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 62rem) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-block: 0.8rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .nav-list {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }

  .cta-band__inner {
    align-items: flex-start;
  }
}

@media (max-width: 44rem) {
  :root {
    --header-h: 4.25rem;
    --space-7: 2.5rem;
  }

  .utility-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
    padding-block: 0.65rem;
  }

  .utility-bar__contact {
    gap: 1rem;
  }

  .site-header__inner {
    min-height: var(--header-h);
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-block: 0.4rem;
  }

  .brand__name {
    font-size: 1.65rem;
  }

  .header-actions {
    gap: 0.2rem;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .nav-toggle__close {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__open {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 70;
    display: none;
    width: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0.65rem var(--gutter) 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .js .site-nav {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility var(--dur) var(--ease);
  }

  .js .site-header:has(.nav-toggle[aria-expanded="true"]) .site-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .no-js .site-nav {
    display: block;
  }

  .nav-list {
    align-items: stretch;
    flex-direction: column;
    gap: 0.25rem;
    height: auto;
  }

  .nav-list > li {
    display: block;
    height: auto;
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 3rem;
    padding-inline: 0.85rem;
  }

  .nav-link[aria-current="page"] {
    background: var(--accent-soft);
    box-shadow: inset 3px 0 var(--accent);
    border-radius: var(--radius-sm);
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-panel {
    position: static;
    min-width: 0;
    padding: 0.35rem 0 0.35rem 0.8rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .dropdown-link {
    padding-block: 0.6rem;
  }

  .hero {
    padding-block: 3rem;
  }

  .hero__inner {
    gap: 2rem;
  }

  .hero__title {
    max-width: 14ch;
    font-size: clamp(2.5rem, 10vw, 3.4rem);
  }

  .hero__lead {
    margin-top: 1rem;
    font-size: 1.05rem;
  }

  .hero__actions {
    margin-top: 1.4rem;
  }

  .hero__panel {
    max-width: 34rem;
  }

  .section-head {
    align-items: flex-start;
  }

  .product-grid {
    gap: 0.75rem;
  }

  .product-card__body {
    gap: 0.55rem;
    padding: 0.85rem 0.75rem 0.7rem;
  }

  .product-card__title {
    font-size: 1.05rem;
  }

  .product-card__footer {
    gap: 0.7rem;
    padding: 0.75rem;
  }

  .price__now {
    font-size: 1.35rem;
  }

  .product-card__action {
    padding-inline: 0.55rem;
    font-size: var(--text-sm);
  }

  .category-card {
    min-height: 11rem;
    padding: 1.25rem;
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .benefit {
    padding: 1.25rem;
  }

  .cta-band__inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cta-band__actions {
    width: 100%;
  }

  .cta-band__actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.25rem;
    padding-block: 3rem 2.5rem;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom__inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-bottom__inner p:last-child {
    text-align: left;
  }
}

@media (max-width: 23rem) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card__media {
    aspect-ratio: 5 / 3;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .hero__actions .btn {
    width: 100%;
  }
}


/* 15. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}