/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.82);
}

.topbar-inner {
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12.5px;
  letter-spacing: 0.3px;
}

.topbar-items {
  display: flex;
  align-items: center;
}

.topbar-items > * {
  padding: 0 16px;
}

.topbar-items > *:first-child {
  padding-left: 0;
}

.topbar-items > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar a {
  color: #ffffff;
  font-weight: 700;
}

.topbar a:hover {
  color: var(--cta-soft);
}

.topbar .placeholder-value {
  background: rgba(253, 241, 224, 0.16);
  border-color: rgba(253, 241, 224, 0.4);
  color: #f4dcb8;
}

@media (max-width: 860px) {
  .topbar-inner {
    justify-content: center;
    padding: 7px 0;
    font-size: 11.5px;
  }
  .topbar-secondary {
    display: none;
  }
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.logo:hover {
  color: var(--brand-dark);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #ffffff;
  flex: none;
}

.logo-mark svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links a + a {
  border-left: 1px solid var(--line);
}

.nav-links a:hover {
  color: var(--brand-dark);
}

.nav-links a.is-current {
  color: var(--brand);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta .btn {
  padding: 12px 20px;
  font-size: 12px;
}

.hire-btn {
  position: relative;
}

.hire-badge[hidden] {
  display: none;
}

.hire-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--cta-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle .bars {
  display: grid;
  gap: 4px;
}

.nav-toggle .bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 1080px) {
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav.open .nav-links,
  .nav.open .nav-cta {
    display: grid;
    grid-column: 1 / -1;
  }
  .nav.open .nav-links {
    padding: 6px 0;
    border-top: 1px solid var(--line);
    margin-top: 6px;
  }
  .nav.open .nav-links a {
    padding: 15px 2px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-cta {
    gap: 10px;
    padding: 14px 0 18px;
  }
  .nav.open .nav-cta .btn {
    width: 100%;
    padding: 15px 20px;
  }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 18px 0;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 24px;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--brand);
}

@media (max-width: 860px) {
  .trust-inner {
    padding: 12px 0;
  }
  .trust-item {
    border-left: 0 !important;
    padding: 5px 14px;
    font-size: 11px;
  }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

/* Ruled grid: cells divided by hairlines rather than gaps */
.grid-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  border: 1px solid var(--line);
  border-width: 1px 0 0 1px;
  background: var(--card);
}

.grid-rules > * {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-width: 0 1px 1px 0;
  transition: background 0.2s ease;
}

.grid-rules > *:hover {
  background: var(--card-2);
}

.feature-card,
.info-panel,
.contact-card,
.spec-panel,
.quote-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card {
  padding: 28px 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.feature-card h3,
.grid-rules h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feature-card p:last-child,
.grid-rules p:last-child {
  margin-bottom: 0;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.info-panel,
.contact-card,
.spec-panel {
  padding: 28px;
}

.info-panel h3,
.spec-panel h3 {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Category cards
   ========================================================================== */
.category-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category-media {
  display: block;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.category-media img {
  width: 100%;
  max-height: 230px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.category-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 26px 28px;
  flex: 1;
}

.category-body h3 {
  margin-bottom: 6px;
}

.category-body p {
  flex: 1;
}

.category-body .btn {
  margin-top: 8px;
}

/* ==========================================================================
   Product cards
   ========================================================================== */
/* auto-fill, not auto-fit: a category holding a single product keeps a
   normal card width instead of stretching across the whole row. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-media {
  position: relative;
  display: block;
  padding: 22px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
}

.product-card.playful .product-media {
  background: linear-gradient(150deg, #fdf3df, #eef8f2 70%, var(--card-2));
}

/* Supplied photos are shot on white, so the panel goes white to match
   rather than framing them in a tinted box. Removed automatically if the
   photo is missing and the illustration is used instead. */
.product-media.has-photo,
.category-media.has-photo,
.product-card.playful .product-media.has-photo {
  background: #ffffff;
  padding: 0;
}

/* The supplied shots carry their own white margin, so cover crops that
   rather than the product and fills the card properly. */
.product-media.has-photo img,
.category-media.has-photo img {
  object-fit: cover;
  object-position: center;
  max-height: none;
}

.product-media img {
  width: 100%;
  max-height: 250px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.product-body {
  padding: 22px 24px 0;
  flex: 1;
}

.product-cat {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 9px;
}

.product-body h3 {
  font-size: 21px;
  margin-bottom: 9px;
}

.product-body h3 a {
  color: var(--ink);
}

.product-body h3 a:hover {
  color: var(--brand-dark);
}

.product-note {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.product-price {
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Availability indicator */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-family: "Archivo", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--brand);
}

.availability::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  flex: none;
}

.availability.low {
  color: var(--warn);
}

.availability.none {
  color: var(--error);
}

.buy-box-availability {
  flex-basis: 100%;
  margin: 0;
}

.quote-item-body .availability {
  margin: 4px 0 6px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.swatches li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.swatch {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 24px;
}

/* The button takes its own full-width row so the label never wraps
   inside a narrow card. */
.product-actions .btn {
  flex: 1 1 100%;
  letter-spacing: 1.2px;
}

.product-link {
  flex-basis: 100%;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Quantity stepper
   ========================================================================== */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  flex: none;
}

.qty button {
  width: 44px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.qty button:hover:not([disabled]) {
  background: var(--brand);
  color: #ffffff;
}

.qty button[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty input {
  width: 54px;
  height: 46px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}

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

.qty input:focus {
  outline: none;
  background: var(--brand-soft);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field .hint {
  font-size: 13.5px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f7278' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 99, 87, 0.15);
}

.field input.has-error,
.field select.has-error,
.field textarea.has-error {
  border-color: var(--error);
  background: var(--error-soft);
}

.field-error {
  font-size: 14px;
  font-weight: 600;
  color: var(--error);
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
}

.fieldset legend {
  font-family: "Archivo", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink);
  padding: 0;
  margin-bottom: 6px;
}

.fieldset .legend-note {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.notice {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  background: var(--card-2);
  font-size: 15.5px;
  margin-bottom: 18px;
}

.notice:last-child {
  margin-bottom: 0;
}

.notice h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.notice p:last-child,
.notice ul:last-child {
  margin-bottom: 0;
}

.notice.ok {
  background: var(--ok-soft);
  border-color: rgba(23, 105, 74, 0.28);
  border-left-color: var(--ok);
}

.notice.warn {
  background: var(--warn-soft);
  border-color: rgba(150, 87, 10, 0.28);
  border-left-color: var(--warn);
}

.notice.error {
  background: var(--error-soft);
  border-color: rgba(169, 32, 25, 0.28);
  border-left-color: var(--error);
}

.notice.info {
  background: var(--brand-soft);
  border-color: rgba(14, 99, 87, 0.24);
  border-left-color: var(--brand);
}

.copy-block {
  display: block;
  white-space: pre-wrap;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 13.5px;
  line-height: 1.6;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px;
  margin: 14px 0;
  max-height: 260px;
  overflow: auto;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq-entry {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.faq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.faq-item:hover {
  background: var(--card-2);
}

.faq-item[aria-expanded="true"] {
  background: var(--card-2);
}

.faq-icon {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  padding: 4px 22px 22px;
  color: var(--ink-soft);
  background: var(--card-2);
}

.faq-panel p:last-child,
.faq-panel ul:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #0b1c21;
  color: #cfdcde;
  padding: 62px 0 26px;
}

.footer h4 {
  color: #ffffff;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer a {
  color: #cfdcde;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer p {
  color: #9fb4b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 0;
}

.footer-grid > * {
  padding: 0 34px;
}

.footer-grid > *:first-child {
  padding-left: 0;
}

.footer-grid > *:last-child {
  padding-right: 0;
}

.footer-grid > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer .logo-mark {
  background: rgba(255, 255, 255, 0.12);
}

.footer-links {
  display: grid;
  gap: 11px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15.5px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  color: #9fb4b8;
}

.footer .placeholder-value {
  background: rgba(253, 241, 224, 0.14);
  border-color: rgba(253, 241, 224, 0.4);
  color: #f4dcb8;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 30px;
  }
  .footer-grid > * {
    padding: 0;
  }
  .footer-grid > * + * {
    border-left: 0;
  }
}

/* ==========================================================================
   Mobile sticky quote bar
   ========================================================================== */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  gap: 10px;
  padding: 10px 4vw calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -8px 20px -12px rgba(17, 36, 42, 0.5);
}

.mobile-bar .btn {
  flex: 1;
  padding: 15px 12px;
}

.mobile-bar .btn.ghost {
  flex: 0 0 auto;
  width: auto;
  padding: 15px 18px;
}

@media (max-width: 1080px) {
  .mobile-bar {
    display: flex;
  }
  body {
    padding-bottom: 80px;
  }
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translate(-50%, 20px);
  max-width: min(440px, 90vw);
  padding: 15px 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.warn {
  background: var(--warn);
}

@media (max-width: 1080px) {
  .toast {
    bottom: 94px;
  }
}
