/* Liberty Auto Repair — minimal static styles. Mobile-first. */

:root {
  --red: #c8102e;
  --red-dark: #a00d24;
  --black: #111;
  --gray-900: #1f1f1f;
  --gray-700: #444;
  --gray-300: #ddd;
  --gray-100: #f5f5f5;
  --white: #fff;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--black);
  color: var(--white);
  border-bottom: 4px solid var(--red);
}
.wordmark {
  color: var(--white);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.wordmark span { color: var(--red); }
.header-phone {
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.95rem;
}
.header-phone:hover { color: var(--red); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--gray-900), var(--black));
  color: var(--white);
  text-align: center;
  padding: 56px 20px 48px;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.hero .tagline {
  font-size: 1.1rem;
  color: var(--gray-300);
  margin: 0 auto 24px;
  max-width: 600px;
}
.hero-phone {
  margin: 8px 0;
}
.hero-phone a {
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.hero-phone a:hover { color: var(--red); text-decoration: none; }
.hero-meta {
  color: var(--gray-300);
  margin: 0 0 28px;
  font-size: 0.95rem;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--black); text-decoration: none; }

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
}
.section-alt {
  background: var(--gray-100);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.section h2 {
  font-size: 1.75rem;
  border-bottom: 3px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 20px;
  display: inline-block;
}
.section-note {
  color: var(--gray-700);
  margin: 0 0 24px;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-left: 4px solid var(--red);
  padding: 16px 18px;
  border-radius: 4px;
}
.service h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--black);
}
.service p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
}
.pricing-table th {
  background: var(--black);
  color: var(--white);
  font-size: 0.95rem;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:last-child { font-weight: 700; }

/* About */
.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.about-list li {
  background: var(--gray-100);
  border-left: 4px solid var(--red);
  padding: 14px 16px;
}

/* Hours & Location */
.hours-location {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.hours-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--gray-300);
}
.hours-table td:last-child { text-align: right; font-weight: 700; }
.map iframe {
  border-radius: 4px;
  border: 1px solid var(--gray-300);
}

/* Contact */
.contact-line {
  margin: 6px 0;
  font-size: 1.05rem;
}
.contact-line a { font-weight: 700; }
.walkin {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--gray-100);
  border-left: 4px solid var(--red);
  font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 32px 20px;
  margin-top: 0;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--red); text-decoration: none; }
.copyright {
  margin-top: 16px;
  color: var(--gray-300);
  font-size: 0.85rem;
}

/* Tablet+ */
@media (min-width: 700px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-phone a { font-size: 2.8rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hours-location { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Desktop */
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .header-phone { font-size: 1.05rem; }
  .wordmark { font-size: 1.3rem; }
  .section { padding: 72px 20px; }
}
