/* Hassan's Auto Repair - Site Styles */
:root {
  --navy: #0b2545;
  --navy-dark: #061a33;
  --red: #d62828;
  --red-dark: #a91f1f;
  --light: #f5f7fa;
  --gray: #5b6472;
  --border: #e3e7ed;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(11, 37, 69, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy-dark);
  background: var(--white);
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo strong { color: var(--red); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: #dfe6f0;
  font-weight: 600;
  font-size: 0.98rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-call { background: var(--red); color: #fff; }
.btn-call:hover { background: var(--red-dark); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-dark); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 70px 0;
}
.hero-inner { display: grid; gap: 30px; align-items: center; grid-template-columns: 1.2fr 1fr; }
.hero p.lead { font-size: 1.15rem; color: #cfd8e6; max-width: 46ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none;
}
.hero-badges li {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: .9rem;
  color: #e7ecf5;
}
.hero-card {
  background: #fff;
  color: var(--navy-dark);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.3rem; }
.hero-card .hours-list { margin: 14px 0; }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--gray); }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 8px;
}

/* Grids & Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  height: 100%;
}
.card .icon {
  width: 46px; height: 46px;
  color: var(--red);
  margin-bottom: 14px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--gray); margin-bottom: 12px; }

.service-anchor { scroll-margin-top: 90px; }

/* Why choose us */
.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.reasons li { display: flex; gap: 14px; align-items: flex-start; }
.reasons .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Service area */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.area-list li {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--navy);
}

/* CTA band */
.cta-band {
  background: var(--red);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.cta-band .btn-outline { border-color: #fff; }

/* Reviews */
.review-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stars { color: #f5a623; font-size: 1.4rem; letter-spacing: 3px; margin-bottom: 10px; }

/* Blog cards */
.post-card { display: flex; flex-direction: column; }
.post-card .date { color: var(--gray); font-size: .85rem; margin-bottom: 6px; }
.post-card h3 a { color: var(--navy); }
.post-card .read-more { margin-top: auto; font-weight: 700; }

/* Article */
article.post {
  max-width: 760px;
  margin: 0 auto;
}
article.post h1 { margin-bottom: 6px; }
article.post .meta { color: var(--gray); margin-bottom: 26px; font-size: .92rem; }
article.post h2 { margin-top: 34px; }
article.post p { margin: 16px 0; }
article.post ul, article.post ol { margin: 16px 0; padding-left: 22px; }
article.post li { margin-bottom: 8px; }
.post-cta {
  background: var(--light);
  border-left: 4px solid var(--red);
  padding: 20px 24px;
  border-radius: 6px;
  margin: 30px 0;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: .88rem;
  color: var(--gray);
  padding: 16px 0;
}
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--red); }

/* Table (hours) */
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.hours-list li:last-child { border-bottom: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { width: 26px; height: 26px; color: var(--red); flex-shrink: 0; }

form.contact-form { display: grid; gap: 16px; }
form.contact-form label { font-weight: 600; display: block; margin-bottom: 6px; color: var(--navy); }
form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
form.contact-form input:focus,
form.contact-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.form-note { font-size: .85rem; color: var(--gray); }
#form-status { font-weight: 600; }

.map-embed { border: 0; width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.faq summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-size: 1.3rem; color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--gray); margin: 12px 0 0; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #cdd6e3; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: #cdd6e3; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding: 18px 0 24px;
  font-size: .85rem;
  color: #93a0b4;
  text-align: center;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--navy);
    transform: translateY(-120%);
    transition: transform .25s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,.2);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; padding: 16px 20px 22px; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .header-inner .btn-call { padding: 9px 14px; font-size: .9rem; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
