/* ==========================================================================
   Minoletti Rentals — shared stylesheet
   Design language: work-yard / equipment-plate. Steel, concrete, hazard
   yellow, oxide rust. Spec-plate cards are the signature element, used
   for every listing (trailers, tools) so the whole site reads like a
   yard of tagged equipment.
   ========================================================================== */

:root {
  --ink:        #1b1b18;
  --concrete:   #e4e0d8;
  --concrete-2: #d6d1c6;
  --steel:      #2b2e33;
  --steel-2:    #383c42;
  --steel-blue: #6b747c;
  --yellow:     #f3b200;
  --yellow-ink: #3a2c00;
  --oxide:      #a8482b;
  --white:      #f7f5f1;

  --font-display: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 2px;
  --border: 1px solid rgba(27, 27, 24, 0.18);
  --border-dark: 1px solid rgba(247, 245, 241, 0.16);

  --container: 1120px;
}

@media (prefers-reduced-motion: no-preference) {
  :root { --transition: 160ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --transition: 0ms; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxide);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--yellow);
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 14px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition);
  background: transparent;
  color: var(--ink);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--yellow-ink);
}
.btn--primary:hover { background: #ffc72b; }

.btn--on-dark {
  border-color: var(--white);
  color: var(--white);
}
.btn--on-dark:hover { background: rgba(247,245,241,0.08); }

/* ---------- header ---------- */
.site-header {
  background: var(--steel);
  color: var(--white);
  border-bottom: 4px solid var(--yellow);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--white);
}
.logo span { color: var(--yellow); }

.nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--white);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--yellow);
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  background: var(--steel);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  padding-top: 84px;
  padding-bottom: 84px;
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(247,245,241,0.82);
  max-width: 52ch;
}
.hero .cta-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hazard-strip {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    var(--yellow) 0 22px,
    var(--steel) 22px 44px
  );
  opacity: 0.06;
  pointer-events: none;
}

/* small page hero for interior pages */
.page-hero {
  background: var(--steel);
  color: var(--white);
}
.page-hero .wrap { padding: 56px 24px 48px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: rgba(247,245,241,0.78); max-width: 60ch; margin: 0; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.on-dark { background: var(--steel); color: var(--white); }
.on-dark .eyebrow { color: var(--yellow); }
.on-alt { background: var(--concrete-2); }

/* ---------- category / job cards (home) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.job-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.job-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.job-card p { color: var(--steel-blue); margin-bottom: 18px; font-size: 0.96rem; }
.job-card a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 2px solid var(--oxide);
  padding-bottom: 2px;
  color: var(--oxide);
}

/* ---------- SIGNATURE: spec plate ---------- */
.plate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.spec-plate {
  background: var(--white);
  border: 1px solid rgba(27,27,24,0.22);
  border-radius: var(--radius);
  position: relative;
  padding: 22px 22px 20px;
}
.spec-plate::before,
.spec-plate::after,
.spec-plate .rivet-tl,
.spec-plate .rivet-tr {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(27,27,24,0.3);
}
.spec-plate::before { top: 10px; left: 10px; }
.spec-plate::after { top: 10px; right: 10px; }
.spec-plate .rivet-tl { bottom: 10px; left: 10px; }
.spec-plate .rivet-tr { bottom: 10px; right: 10px; }

.spec-plate .plate-photo {
  aspect-ratio: 4/3;
  background: var(--concrete-2);
  border: 1px dashed rgba(27,27,24,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel-blue);
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px;
}
.spec-plate h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.spec-table tr { border-top: 1px solid rgba(27,27,24,0.12); }
.spec-table tr:first-child { border-top: none; }
.spec-table td { padding: 7px 0; }
.spec-table td:first-child {
  color: var(--steel-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 55%;
}
.spec-table td:last-child { text-align: right; font-weight: 600; }

.plate-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(27,27,24,0.12);
}
.plate-footer .rate {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
}
.plate-footer .rate small {
  font-family: var(--font-mono);
  text-transform: none;
  color: var(--steel-blue);
  font-size: 0.72rem;
}
.plate-footer a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 2px solid var(--oxide);
  color: var(--oxide);
}

.notice-strip {
  background: var(--yellow);
  color: var(--yellow-ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 16px;
  letter-spacing: 0.02em;
}

/* ---------- forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-blue);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--oxide); }

.contact-info {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.contact-info a { text-decoration: none; border-bottom: 1px solid var(--steel-blue); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--steel);
  color: rgba(247,245,241,0.7);
  border-top: 4px solid var(--yellow);
  padding: 40px 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(247,245,241,0.3); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--steel);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
    border-bottom: 4px solid var(--yellow);
  }
  .nav.is-open { display: flex; }
  .nav li { border-top: 1px solid rgba(247,245,241,0.1); }
  .nav a { display: block; padding: 12px 0; }
  .site-header { position: relative; }
}
