/* ==========================================================================
   Icon Machinery Sales and Service
   ========================================================================== */

:root {
  --ink: #14171b;
  --steel-900: #1c2026;
  --steel-800: #262b33;
  --steel-700: #3a414b;
  --steel-500: #69727e;
  --steel-300: #b6bcc4;
  --steel-200: #d9dde2;
  --steel-100: #eef0f3;
  --paper: #f6f7f8;
  --white: #ffffff;
  --accent: #f26a1b;
  --accent-dark: #cf5309;
  --accent-soft: #fde9dc;
  --success: #1f7a4d;
  --warning: #9a6a00;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(20, 23, 27, 0.06), 0 6px 20px rgba(20, 23, 27, 0.06);
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  text-transform: uppercase;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
}
h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-dark);
}
.btn-outline {
  border-color: var(--steel-300);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--ink);
}
.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 1rem;
}

/* ---------- Top bar & header ---------- */

.topbar {
  background: var(--ink);
  color: var(--steel-300);
  font-size: 0.9rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar a {
  color: var(--white);
  text-decoration: none;
}
.topbar a:hover {
  color: var(--accent);
}
.topbar-links {
  display: flex;
  gap: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--steel-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 52px;
  height: 52px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
/* Matches the lettering in the logo artwork (images/logo.png) */
.brand-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.brand-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-top: 6px;
  padding-top: 5px;
  border-top: 2px solid var(--accent);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-logo img {
  width: 220px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel-700);
  padding: 8px 12px;
  border-bottom: 3px solid transparent;
}
.site-nav a:not(.btn):hover {
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.site-nav .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  padding: 0;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--steel-200);
    box-shadow: 0 12px 24px rgba(20, 23, 27, 0.08);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--steel-100);
  }
  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--steel-100);
    color: var(--accent-dark);
  }
  .site-nav .btn {
    margin: 16px 0 0;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 560px) {
  .topbar .topbar-address {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--steel-900);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  /* Subtle engineering grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 14px,
    var(--ink) 14px 28px
  );
}
.hero .container {
  position: relative;
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(64px, 10vw, 120px);
}
.hero-eyebrow,
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  max-width: 14ch;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.hero-logo {
  width: 100%;
  max-width: 460px;
  height: auto;
  justify-self: end;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  /* The header already shows the emblem; keep the hero focused on the message */
  .hero-logo {
    display: none;
  }
}
.hero-lead {
  max-width: 54ch;
  font-size: 1.2rem;
  color: var(--steel-200);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero {
  background: var(--steel-900);
  color: var(--white);
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 12px,
    var(--ink) 12px 24px
  );
}
.page-hero .container {
  padding-top: clamp(44px, 7vw, 76px);
  padding-bottom: clamp(44px, 7vw, 76px);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 12px;
}
.page-hero p {
  max-width: 62ch;
  color: var(--steel-200);
  font-size: 1.15rem;
  margin: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section-alt {
  background: var(--paper);
}
.section-dark {
  background: var(--steel-900);
  color: var(--white);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.section-head h2 {
  margin: 0;
}
.section-head p {
  max-width: 60ch;
  color: var(--steel-500);
  margin: 10px 0 0;
}

/* ---------- Split (Sales / Service) cards ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.split-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--steel-200);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.split-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--steel-500);
}
.split-card h3 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-top: 6px;
}
.split-card ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.split-card li {
  padding: 8px 0 8px 26px;
  border-bottom: 1px solid var(--steel-100);
  position: relative;
}
.split-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.split-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split-card {
    padding: 26px;
  }
}

/* ---------- Machine cards ---------- */

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}
.machine-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.machine-card:hover {
  border-color: var(--steel-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.machine-card.is-sold {
  opacity: 0.7;
}
.machine-card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.machine-card-hit:focus-visible {
  outline-offset: -3px;
}

.machine-media,
.dialog-media {
  aspect-ratio: 4 / 3;
  background: var(--steel-100);
  overflow: hidden;
}
.machine-media img,
.dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.is-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--steel-300);
  background:
    linear-gradient(rgba(20, 23, 27, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(20, 23, 27, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--steel-100);
}
.is-placeholder svg {
  width: 55%;
  max-width: 220px;
  fill: currentColor;
}
.is-placeholder span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.machine-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.machine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tag,
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
}
.tag {
  background: var(--steel-100);
  color: var(--steel-700);
}
.badge-pending {
  background: #fff3cd;
  color: var(--warning);
}
.badge-sold {
  background: var(--ink);
  color: var(--white);
}
.machine-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.machine-meta {
  color: var(--steel-500);
  font-size: 0.98rem;
  margin-bottom: 16px;
}
.machine-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--steel-100);
}
.machine-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}
.machine-stock {
  font-size: 0.85rem;
  color: var(--steel-500);
  white-space: nowrap;
}

/* ---------- Inventory toolbar ---------- */

.inventory-toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--steel-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--steel-700);
  cursor: pointer;
}
.chip:hover {
  border-color: var(--steel-500);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.chip-count {
  display: inline-block;
  min-width: 1.6em;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--steel-100);
  color: var(--steel-700);
  font-size: 0.85rem;
  text-align: center;
}
.chip[aria-pressed="true"] .chip-count {
  background: var(--accent);
  color: var(--white);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.search-field {
  position: relative;
  flex: 1 1 280px;
}
.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  stroke: var(--steel-500);
  fill: none;
  stroke-width: 2;
}
.search-field input {
  padding-left: 42px;
}
.toolbar-row label.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: var(--steel-700);
  white-space: nowrap;
}
.toolbar-row select {
  width: auto;
}
.inventory-count {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  border: 2px dashed var(--steel-200);
  border-radius: var(--radius);
}
.empty-state p {
  max-width: 50ch;
  margin: 0 auto 22px;
  color: var(--steel-500);
}

/* ---------- Form controls ---------- */

input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--steel-300);
  border-radius: var(--radius);
  padding: 12px 14px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea {
  min-height: 150px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.field .req {
  color: var(--accent-dark);
}
.form-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--success);
  background: #e8f4ee;
  border-radius: 0 var(--radius) var(--radius) 0;
}
@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Detail dialog ---------- */

.machine-dialog {
  width: min(920px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
}
.machine-dialog::backdrop {
  background: rgba(20, 23, 27, 0.7);
}
.dialog-close {
  /* Sticky so it stays reachable while scrolling; negative bottom margin
     lets the content slide underneath instead of being pushed down. */
  position: sticky;
  top: 12px;
  z-index: 3;
  display: block;
  margin: 12px 12px -54px auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:hover {
  background: var(--accent);
}
.dialog-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  /* Fill the photo column down to the bottom of the dialog */
  background: linear-gradient(90deg, var(--steel-100) 50%, var(--white) 50%);
}
.dialog-media {
  grid-column: 1;
  grid-row: 1;
}
.dialog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 6px;
  padding: 6px;
  grid-column: 1;
  grid-row: 2;
}
.dialog-gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}
.dialog-content {
  padding: 28px 28px 32px;
  grid-column: 2;
  grid-row: 1 / span 3;
}
.dialog-content .machine-tags {
  padding-right: 52px; /* keep clear of the close button */
}
.dialog-content h2 {
  font-size: 1.9rem;
  text-transform: none;
}
.dialog-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--accent-dark);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--steel-200);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 0.98rem;
}
.spec-table th,
.spec-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 0;
  border-bottom: 1px solid var(--steel-100);
}
.spec-table th {
  width: 45%;
  font-weight: 600;
  color: var(--steel-500);
  padding-right: 12px;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) {
  .dialog-body {
    grid-template-columns: 1fr;
    background: var(--white);
  }
  .dialog-gallery {
    grid-row: auto;
  }
  .dialog-content {
    grid-column: 1;
    grid-row: auto;
    padding: 22px 20px 26px;
  }
}

/* ---------- Services page ---------- */

.service-group + .service-group {
  margin-top: clamp(56px, 8vw, 88px);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.service-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
}
.service-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.service-card .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--steel-700);
  margin: 0;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brands li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  color: var(--steel-200);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 18px;
  border-top: 3px solid var(--steel-200);
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}
.steps h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.steps p {
  color: var(--steel-700);
  margin: 0;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Feature list ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.feature p {
  color: var(--steel-300);
  margin: 0;
}
.feature::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 18px;
  background: var(--accent);
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Location / contact ---------- */

.location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: stretch;
}
.location-info address {
  font-style: normal;
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.contact-lines {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.contact-lines a:hover {
  color: var(--accent-dark);
}
.contact-lines svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-dark);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  margin: 0;
}
.hours dt {
  font-weight: 600;
}
.hours dd {
  margin: 0;
  color: var(--steel-700);
}
.map-frame {
  width: 100%;
  min-height: 340px;
  height: 100%;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  background: var(--steel-100);
}
@media (max-width: 860px) {
  .location {
    grid-template-columns: 1fr;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.contact-aside {
  padding: 28px;
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 5px solid var(--accent);
}
.contact-aside h3 {
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin: 0 0 10px;
}
.contact-aside section + section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--steel-200);
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--accent);
  color: var(--white);
}
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.cta-band h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.cta-band p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.9);
}
.cta-band .btn-dark {
  background: var(--ink);
  color: var(--white);
}
.cta-band .btn-dark:hover {
  background: var(--steel-800);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--steel-300);
  font-size: 0.98rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.site-footer .brand {
  color: var(--white);
  margin-bottom: 14px;
}
.site-footer h3 {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer a {
  color: var(--steel-300);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent);
}
.site-footer address {
  font-style: normal;
}
.footer-bottom {
  border-top: 1px solid var(--steel-800);
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.9rem;
  color: var(--steel-500);
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
