/* Ironclad Auto Repair - case-study mini-site
   Inspired by classic auto-shop layouts (bold utility bar, garage photo
   hero with overlay headline, welcome split section, service tag footer).
   Original build: new brand, copy, and a racing-red + charcoal palette. */

:root {
  --red: #d3272b;
  --red-dark: #a81e22;
  --charcoal: #1d1d1d;
  --gray-bg: #f3f3f3;
  --ink: #201f1d;
  --gray: #6b6764;
  --white: #ffffff;
  --font-head: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
p { margin: 0 0 1em; color: var(--gray); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.back-link { background: var(--charcoal); color: rgba(255,255,255,0.8); font-size: 0.78rem; text-align: center; padding: 8px 0; }
.back-link a { color: var(--white); font-weight: 600; }
.back-link a:hover { text-decoration: underline; }

.top-bar { background: var(--red); color: var(--white); font-size: 0.8rem; }
.top-bar .wrap { display: flex; justify-content: space-between; padding: 9px 24px; flex-wrap: wrap; gap: 8px; }
.top-bar a { font-weight: 700; }

.site-header { background: var(--white); border-bottom: 3px solid var(--charcoal); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.logo { font-family: var(--font-head); font-size: 1.3rem; color: var(--charcoal); }
.logo span { color: var(--red); }
nav.main-nav ul { display: flex; gap: 26px; }
nav.main-nav a { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); padding-bottom: 3px; border-bottom: 2px solid transparent; }
nav.main-nav a:hover, nav.main-nav a.active { border-color: var(--red); }

.btn { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; padding: 13px 26px; border-radius: 4px; border: 2px solid transparent; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline-dark { border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-white { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--charcoal); }

/* Hero */
.hero { position: relative; background: linear-gradient(0deg, rgba(29,29,29,0.9), rgba(29,29,29,0.55)), repeating-linear-gradient(100deg, #2a2a2a 0 50px, #1d1d1d 50px 100px); color: var(--white); padding: 100px 0 70px; }
.hero .wrap { max-width: 720px; }
.hero p.placeholder-note { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

.section { padding: 80px 0; }
.center { text-align: center; }
.section-intro { max-width: 620px; margin: 0 auto 40px; }
.bg-gray { background: var(--gray-bg); }
.bg-charcoal { background: var(--charcoal); color: var(--white); }
.bg-charcoal h2 { color: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.photo-box { aspect-ratio: 4/3; border: 2px dashed #d6d3ce; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--gray); font-size: 0.85rem; padding: 20px; }
.photo-box.dark { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.75); }
img.photo-box {
  border: none;
  background: none;
  padding: 0;
  display: block;
  width: 100%;
  object-fit: cover;
}

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: var(--white); border: 1px solid #e5e2dc; border-radius: 6px; padding: 26px 22px; }
.service-card .icon { width: 44px; height: 44px; border-radius: 6px; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; margin: 0; }

/* Service area */
.area-text { text-align: center; font-size: 0.92rem; max-width: 800px; margin: 0 auto; }
.area-text strong { color: var(--red); }

.cta-band { background: var(--red); color: var(--white); text-align: center; padding: 60px 0; }
.cta-band h2 { color: var(--white); }

.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.footer-grid h4 { color: var(--white); font-family: var(--font-head); font-size: 0.85rem; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; font-size: 0.86rem; }
.footer-grid a:hover { color: var(--red); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; font-size: 0.76rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 13px 14px; border: 1px solid #d6d3ce; border-radius: 4px; font-family: var(--font-body); font-size: 1rem; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-success { display: none; background: var(--gray-bg); border-radius: 4px; padding: 14px 16px; margin-bottom: 18px; font-weight: 700; }
.form-success.show { display: block; }
.info-card { background: var(--gray-bg); border-radius: 6px; padding: 30px; }
.info-card li { display: flex; gap: 10px; margin-bottom: 16px; font-size: 0.92rem; }

@media (max-width: 900px) {
  .split, .contact-layout { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 14px; }
  nav.main-nav { width: 100%; order: 3; }
  nav.main-nav ul { flex-wrap: wrap; gap: 12px 18px; }
  .services-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
