/* GEMT components - buttons, hero, cards, forms, admin (no base/nav) */


.facet-corner { position: relative; }
.facet-corner::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 18px; height: 18px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
}

/* Eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2.5px solid var(--gold);
  line-height: 1.3;
}
.eyebrow::before {
  display: none;
  content: none;
}

/* NAV moved to nav.css */

/* ============================= BUTTONS ============================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; font-family: var(--body); font-weight: 600; font-size: 14.5px;
  border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--forest-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { border-color: rgba(251, 249, 243, 0.45); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-forest { background: var(--forest); color: var(--paper); }
.btn-forest:hover { background: var(--forest-deep); }
.btn-outline-dark {
  border-color: var(--line); color: var(--forest-deep); background: transparent;
}
.btn-outline-dark:hover { border-color: var(--forest); background: var(--stone); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ============================= HERO ============================= */
.hero {
  position: relative;
  background: var(--forest-deep);
  color: var(--paper);
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(201, 162, 39, 0.16), transparent 50%),
    radial-gradient(ellipse at 15% 80%, rgba(47, 107, 79, 0.28), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: 40px 48px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.hero-copy {
  max-width: none;
  min-width: 0;
}
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.hero-stat {
  background: rgba(251, 249, 243, 0.06);
  border: 1px solid rgba(228, 200, 106, 0.22);
  padding: 20px 22px;
  border-radius: var(--radius);
}
.hero-stat .stat-num {
  font-family: var(--display);
  font-size: 28px;
  color: var(--gold-soft);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 4px;
}
.hero-stat .stat-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 249, 243, 0.65);
}
.hero p.lede {
  max-width: none;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 520px) {
  .hero-aside {
    grid-template-columns: 1fr;
  }
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 20px;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2.5px solid var(--gold);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  color: #fff;
  line-height: 1.08;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 500;
}
.hero p.lede {
  font-size: 17.5px;
  color: rgba(251, 249, 243, 0.84);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================= SECTIONS ============================= */
section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.18; }
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin-top: 12px; margin-bottom: 0; }
.on-forest { background: var(--forest-deep); color: var(--paper); }
.on-forest h2, .on-forest h3, .on-forest h4 { color: #fff; }
.on-forest .section-head p { color: rgba(251, 249, 243, 0.75); }
.on-stone-dim { background: var(--stone-dim); }
.on-paper { background: var(--paper); }

/* Why grid */
.why-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.why-card {
  background: var(--paper);
  padding: 32px 28px;
}
.why-card h3 { font-size: 18px; margin-bottom: 10px; }
.why-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.55; }

/* Expect steps */
.expect-list {
  display: grid;
  gap: 28px;
}
.expect-item {
  border-top: 2px solid var(--gold);
  padding-top: 16px;
}
.expect-item .tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.expect-item h4 { font-size: 17px; margin: 8px 0 8px; }
.expect-item p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* Cards */
.card-grid {
  display: grid;
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card .idx {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card h3 { font-size: 18px; margin: 12px 0 10px; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.card.wide { grid-column: span 2; }
.card.feature {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}
.card.feature h3, .card.feature .idx { color: #fff; }
.card.feature .idx { color: var(--gold-soft); }
.card.feature p { color: rgba(251, 249, 243, 0.85); }
.card .card-actions { margin-top: auto; padding-top: 8px; }

/* Stone / product gallery */
.stone-grid {
  display: grid;
  gap: 20px;
}
.stone-card { text-align: center; }
.stone-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--stone-dim);
}
.stone-card h4 {
  font-size: 15px;
  font-family: var(--body);
  font-weight: 600;
  margin-bottom: 2px;
}
.stone-card span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Machine cards */
.machine-grid {
  display: grid;
  gap: 22px;
}
.machine-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.machine-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: var(--stone-dim);
}
.machine-body { padding: 20px 22px 24px; }
.machine-body h4 { font-size: 17px; margin-bottom: 6px; }
.machine-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.machine-status.available { color: var(--success); }
.machine-status.limited { color: var(--clay); }
.machine-status.booked { color: var(--garnet); }
.machine-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.machine-body p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* CTA band */
.cta-band {
  background: var(--gold);
  color: var(--forest-deep);
  padding: 52px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  color: var(--forest-deep);
  font-size: clamp(22px, 2.8vw, 28px);
  max-width: 520px;
}

/* Values */
.values-list {
  display: grid;
  gap: 20px;
}
.value-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.value-item h4 { font-size: 16px; margin-bottom: 8px; }
.value-item p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Mission / Vision */
.mv-split {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mv-panel {
  background: var(--paper);
  padding: 40px 36px;
}
.mv-panel .eyebrow { margin-bottom: 16px; }
.mv-panel p {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--forest-deep);
  font-weight: 450;
  margin: 0;
}

/* Two-col content */
.split-content {
  display: grid;
  gap: 48px;
  align-items: start;
}
.split-content .prose p {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin-bottom: 1.1em;
}

/* ============================= FORMS ============================= */
.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px;
}
.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full { grid-column: 1 / -1; }
label {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest-deep);
}
input, textarea, select {
  font-family: var(--body);
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: var(--stone);
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
textarea { resize: vertical; min-height: 100px; }
.form-submit { margin-top: 4px; }
.form-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 12px;
}
.form-confirm {
  display: none;
  color: var(--forest);
  font-weight: 500;
  margin-top: 12px;
}

.work-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.work-tab {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: background .15s, color .15s, border-color .15s;
}
.work-tab:hover { border-color: var(--forest); color: var(--forest); }
.work-tab.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.work-panel { display: none !important; }
.work-panel.active { display: block !important; }
.work-panel[hidden] { display: none !important; }
.work-intro { max-width: 680px; margin-bottom: 28px; }
.work-intro h3 { font-size: 24px; margin-bottom: 10px; }
.work-intro p { color: var(--ink-soft); }
.work-perks {
  display: grid;
  gap: 8px 28px;
  margin-bottom: 28px;
}
.work-perks li {
  font-size: 14.5px;
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
}
.work-perks li::before {
  content: " - ";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ============================= BLOG ============================= */
.blog-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.blog-grid {
  display: grid;
  gap: 24px;
}
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.post-card:hover { box-shadow: 0 6px 24px rgba(27, 26, 22, 0.08); }
.post-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--forest-glow), var(--forest-deep));
  position: relative;
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-thumb .cat {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gold);
  color: var(--forest-deep);
  padding: 4px 9px;
  border-radius: 2px;
}
.post-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-body .cat-inline {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gold);
  color: var(--forest-deep);
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.post-body .date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-body h4 {
  font-size: 17px;
  margin: 8px 0 10px;
  line-height: 1.3;
}
.post-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  flex: 1;
}
.post-link {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
  font-weight: 600;
}
.post-link:hover { color: var(--forest-deep); }

.blog-more {
  margin-top: 40px;
  text-align: center;
}

/* Article detail */
.article-layout {
  max-width: 720px;
  margin: 0 auto;
}
.article-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.article-body h2 {
  font-size: 24px;
  margin: 2em 0 0.6em;
}
.article-body h3 {
  font-size: 20px;
  margin: 1.6em 0 0.5em;
}
.article-body p { margin-bottom: 1.2em; }
.article-body ul, .article-body ol {
  margin: 0 0 1.2em 1.4em;
  padding: 0;
}
.article-body li { margin-bottom: 0.4em; list-style: disc; }
.article-body a { color: var(--forest); text-decoration: underline; }

/* Archive / search */
.archive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  align-items: flex-end;
}
.archive-controls .field { min-width: 140px; flex: 1; }
.archive-controls input,
.archive-controls select {
  width: 100%;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination button {
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.pagination button:hover:not(:disabled) {
  border-color: var(--forest);
  color: var(--forest);
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination .page-info {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============================= CONTACT ============================= */
.contact-grid {
  display: grid;
  gap: 48px;
}
.contact-info h3 { font-size: 20px; margin-bottom: 16px; }
.contact-block { margin-bottom: 22px; }
.contact-block .lbl {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay);
  margin-bottom: 5px;
  display: block;
}
.contact-block a, .contact-block p { font-size: 15px; margin: 0; }
.map-box {
  aspect-ratio: 16 / 10;
  background: var(--forest-deep);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85);
}

/* ============================= MODAL ============================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 50, 39, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal-panel {
  position: relative;
  background: var(--paper);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: modalIn .18s ease;
}
.modal-panel.modal-wide { max-width: 640px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-panel h3 { font-size: 22px; margin: 10px 0 8px; }
.modal-panel .modal-sub {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 22px;
}
.modal-panel .modal-body {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}
.modal-panel .modal-body ul {
  margin: 10px 0 0 1.2em;
}
.modal-panel .modal-body li {
  list-style: disc;
  margin-bottom: 4px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--stone);
  font-size: 20px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.modal-close:hover { background: var(--stone-dim); color: var(--ink); }
body.modal-open { overflow: hidden; }

/* ============================= FOOTER ============================= */
.site-footer {
  background: var(--forest-deep);
  color: rgba(251, 249, 243, 0.75);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand svg, .footer-brand img.logo-svg, .footer-brand img.logo-img,
.footer-brand img.logo-footer {
  height: 58px;
  width: auto;
  max-width: 260px;
  margin-bottom: 14px;
  object-fit: contain;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}
.footer-brand p {
  font-size: 13.5px;
  max-width: 280px;
  color: rgba(251, 249, 243, 0.55);
  margin: 0;
  line-height: 1.55;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: rgba(251, 249, 243, 0.72);
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(251, 249, 243, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(251, 249, 243, 0.45);
}

/* ============================= PAGE HERO ============================= */
.page-hero {
  background: var(--forest-deep);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 15%, rgba(201, 162, 39, 0.16), transparent 50%);
}
.page-hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 3.8vw, 40px);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(251, 249, 243, 0.78);
  font-size: 16.5px;
  max-width: 580px;
  margin: 0;
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}
.empty-state p { margin: 0; }

/* ============================= ADMIN ============================= */
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 12px 0;
}
.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--forest);
}

/* ============================= RESPONSIVE GRID SYSTEM ============================= */
/*
  Breakpoints:
 - xl: default desktop (>980)
 - lg: ≤980 - tablets landscape / small desktop
 - md: ≤900 - tablet / mobile nav
 - sm: ≤640 - mobile
 - xs: ≤480 - small phones
*/

/* Large tablets / small desktops */
@media (max-width: 900px) {
  :root {
    --gutter: 20px;
    --container-pad: 24px;
  }

  .card.wide,
  .col-span-2 {
    grid-column: span 2;
  }

  .split-content,
  .hero-content {
    gap: 32px;
  }
  
  
  
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --gutter-sm: 12px;
    --container-pad: 16px;
    --header-h: 64px;
  }

  .container,
  .hero-inner,
  .page-hero-inner {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
  }
  .nav {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
  }

  .card.wide,
  .col-span-2,
  .col-span-3 {
    grid-column: span 1;
  }

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

  section {
    padding: 48px 0;
  }
  .section-tight {
    padding: 40px 0;
  }
  .section-head {
    margin-bottom: 28px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .page-hero {
    padding: 40px 0 36px;
  }
  .modal-panel {
    padding: 24px 18px;
    margin: 12px;
    max-height: calc(100vh - 24px);
  }
  .form-panel {
    padding: 20px 16px;
  }

  .brand .logo-img,
  .brand img.logo-img {
    height: 40px;
    max-width: 160px;
  }
  .footer-brand img.logo-footer {
    height: 48px;
    max-width: 200px;
  }

  
  .back-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --container-pad: 14px;
    --gutter: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .blog-filter {
    gap: 6px;
  }
  .blog-filter button {
    font-size: 11px;
    padding: 6px 10px;
  }

  .post-body {
    padding: 16px 16px 20px;
  }
}

/* Prefer auto-fit grids on intermediate widths when useful */
@media (min-width: 641px) and (max-width: 900px) {
  .stone-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* Prevent grid blowout from long words / media */
.why-grid > *,
.card-grid > *,
.blog-grid > *,
.machine-grid > *,
.footer-grid > *,
.grid > * {
  min-width: 0;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* ============================= ENHANCEMENTS v2 ============================= */

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--forest-deep);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  outline: none;
}

/* Selection */
::selection {
  background: rgba(201, 162, 39, 0.35);
  color: var(--forest-deep);
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 50px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, visibility .2s, transform .2s, background .15s;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(18, 50, 39, 0.25);
}
.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover { background: var(--forest-deep); }
.back-top svg { width: 18px; height: 18px; }

/* Trust strip */





/* Homepage product teaser */
.teaser-grid {
  display: grid;
  gap: 20px;
}
.teaser-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.teaser-card:hover {
  box-shadow: 0 8px 28px rgba(27, 26, 22, 0.1);
  transform: translateY(-3px);
}
.teaser-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--stone-dim);
}
.teaser-card .teaser-body {
  padding: 16px 18px 20px;
}
.teaser-card h4 {
  font-size: 16px;
  font-family: var(--body);
  font-weight: 600;
  margin-bottom: 4px;
}
.teaser-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* Process numbers on expect steps */
.expect-item {
  position: relative;
  padding-left: 0;
}
.expect-item .step-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.9;
}

/* Card hover lift */
.card:not(.feature) {
  transition: box-shadow .2s, border-color .2s;
}
.card:not(.feature):hover {
  box-shadow: 0 6px 24px rgba(27, 26, 22, 0.07);
  border-color: rgba(31, 77, 58, 0.2);
}
.why-card {
  transition: background .15s;
}
.why-card:hover {
  background: #fff;
}

/* Machine card hover */
.machine-card {
  transition: box-shadow .2s;
}
.machine-card:hover {
  box-shadow: 0 8px 28px rgba(27, 26, 22, 0.1);
}

/* Nav body lock when mobile open */
body.nav-open {
  overflow: hidden;
}

/* Logo sizing consistency */
.brand .logo-svg,
.brand img.logo-svg,
.brand img.logo-img {
  height: 48px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}
.footer-brand .logo-svg,
.footer-brand img.logo-svg,
.footer-brand img.logo-img,
.footer-brand img.logo-footer {
  height: 58px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: none;
  image-rendering: auto;
}

/* Form field error state */
.field input:invalid:not(:placeholder-shown):not(:focus),
.field textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: var(--garnet);
}

/* Article share / related */
.article-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

/* Blog featured first card emphasis */
.blog-grid .post-card:first-child {
  border-color: rgba(201, 162, 39, 0.35);
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--stone-dim) 25%, var(--stone) 50%, var(--stone-dim) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Print */
@media print {
  
  a { text-decoration: underline; }
  .page-hero, .hero { background: none; color: #000; padding: 20px 0; }
  .page-hero h1, .hero h1 { color: #000; }
}

/* Focus ring for buttons inside cards */
.card .btn:focus-visible,
.machine-card .btn:focus-visible {
  outline-offset: 2px;
}

/* Smooth image fade-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity .35s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"][src] {
  opacity: 1;
}
/* Ensure immediate show when already cached */
img.logo-svg, .post-thumb img, .hero img {
  opacity: 1;
}

/* Imported Word / rich article content */
.article-body img {
  max-width: 100%;
  height: auto;
  margin: 1.2em 0;
  border-radius: var(--radius);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 14.5px;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.article-body th { background: var(--stone-dim); }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.2em 0;
  padding: 8px 0 8px 18px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Teaser / what we trade - responsive */
.teaser-grid {
  display: grid;
  gap: var(--gutter, 20px);
}
@media (max-width: 520px) {
  .teaser-card img { aspect-ratio: 16/10; }
}

/* Products page cards on small screens */
@media (max-width: 640px) {
  .card { padding: 20px 18px; }
  .card .btn { width: 100%; }
}

/* ============================= SERVICE DETAIL ============================= */
.service-detail-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
.service-detail-content h2 {
  font-size: 22px;
  margin: 28px 0 12px;
}
.service-detail-content ul {
  list-style: disc;
  padding-left: 1.25em;
  margin: 0 0 1em;
}
.service-detail-content li {
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.service-detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  margin-bottom: 16px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.contact-list strong {
  color: var(--forest-deep);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}
@media (max-width: 900px) {
  .service-detail-grid {
    gap: 28px;
  }
  .service-detail-aside {
    position: static;
  }
}

/* Machine cards - plant hire */
.machine-grid {
  display: grid;
  gap: var(--gutter, 22px);
}
.machine-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.machine-thumb {
  position: relative;
  background: var(--stone-dim);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.machine-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.machine-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ink-soft);
  font-size: 13px;
}
.machine-status {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  background: var(--forest);
  color: #fff;
}
.machine-status.status-limited {
  background: var(--gold);
  color: var(--forest-deep);
}
.machine-status.status-booked {
  background: var(--garnet);
  color: #fff;
}
.machine-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.machine-body h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.machine-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
  flex: 1;
}
.machine-body .btn { align-self: flex-start; }