/* ============================================================
   McKinney Garage Repair — Main Stylesheet
   Primary: #1c1c1e  |  Accent: #c0392b
   Fonts: DM Serif Display (headings), Inter (body)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #1c1c1e;
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.2;
  color: #1c1c1e;
}

a { color: #c0392b; text-decoration: none; transition: color .2s; }
a:hover { color: #96281b; }

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

ul { list-style: none; }

/* ---------- Utilities ---------- */
.container { width: 92%; max-width: 1140px; margin: 0 auto; }
.text-center { text-align: center; }
.section { padding: 72px 0; }
.section--gray { background: #f5f5f7; }
.section--dark { background: #1c1c1e; color: #f5f5f7; }
.section--dark h2, .section--dark h3 { color: #fff; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}

.btn--primary {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}
.btn--primary:hover { background: #96281b; border-color: #96281b; color: #fff; }

.btn--outline {
  background: transparent;
  color: #c0392b;
  border-color: #c0392b;
}
.btn--outline:hover { background: #c0392b; color: #fff; }

.btn--white {
  background: #fff;
  color: #c0392b;
  border-color: #fff;
}
.btn--white:hover { background: #f0e6e6; color: #96281b; border-color: #f0e6e6; }

.tag {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Top Bar ---------- */
.topbar {
  background: #1c1c1e;
  color: #ccc;
  font-size: .82rem;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #f5f5f7; font-weight: 600; }
.topbar a:hover { color: #c0392b; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
  color: #1c1c1e;
  line-height: 1.1;
}
.site-logo span { color: #c0392b; }
.site-logo small { display: block; font-family: 'Inter', sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #888; margin-top: 1px; }

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: #1c1c1e;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: #c0392b;
  transition: width .2s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active { color: #c0392b; }

.nav-cta { margin-left: 12px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #1c1c1e;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(.45);
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero__bg { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,28,30,.15) 0%, rgba(28,28,30,.72) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  max-width: 780px;
}
.hero__eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ff6b6b;
  margin-bottom: 16px;
}
.hero__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 34px;
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.65);
  font-size: .75rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero__scroll-arrow {
  width: 22px; height: 22px;
  border-right: 2px solid rgba(255,255,255,.65);
  border-bottom: 2px solid rgba(255,255,255,.65);
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* Sub-page hero (shorter) */
.page-hero {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.38);
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,.55) 0%, rgba(28,28,30,.75) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.page-hero__content h1 { font-size: clamp(1.9rem, 4vw, 3rem); color: #fff; margin-bottom: 10px; }
.page-hero__content p { font-size: 1.05rem; color: rgba(255,255,255,.85); }

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: #c0392b;
  padding: 16px 0;
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  font-weight: 600;
}
.trust-bar__icon { font-size: 1.25rem; }

/* ---------- Section Heading ---------- */
.section-heading { margin-bottom: 46px; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.section-heading p { font-size: 1.05rem; color: #555; max-width: 620px; }
.section-heading.centered { text-align: center; }
.section-heading.centered p { margin: 0 auto; }

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: #c0392b;
  transform: scaleY(0);
  transition: transform .3s;
  transform-origin: bottom;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleY(1); }
.service-card__icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  display: block;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: #555; font-size: .95rem; margin-bottom: 18px; }
.service-card a { font-weight: 700; font-size: .9rem; color: #c0392b; }

/* ---------- Why Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}
.why-item { text-align: center; padding: 24px 16px; }
.why-item__icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
  display: block;
}
.why-item h3 { font-size: 1.15rem; margin-bottom: 8px; color: #fff; }
.why-item p { color: rgba(255,255,255,.75); font-size: .93rem; }

/* ---------- Service Areas ---------- */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.area-tag {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: .88rem;
  font-weight: 600;
  color: #1c1c1e;
  transition: background .2s, color .2s, border-color .2s;
}
.area-tag:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #c0392b 0%, #96281b 100%);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.88); font-size: 1.05rem; margin-bottom: 30px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* ---------- Cost Guide ---------- */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.cost-table th {
  background: #1c1c1e;
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.cost-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #ececec;
  color: #333;
}
.cost-table tr:nth-child(even) td { background: #f9f9f9; }
.cost-table tr:hover td { background: #fff5f5; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: #1c1c1e;
  padding: 0;
}
.faq-question:hover { color: #c0392b; }
.faq-toggle {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 14px 0 4px;
  color: #555;
  font-size: .97rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #1c1c1e;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s, filter .4s;
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(.7); }
.gallery-item__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(28,28,30,.85));
  color: #fff;
  padding: 28px 16px 14px;
  font-size: .9rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform .3s;
}
.gallery-item:hover .gallery-item__label { transform: translateY(0); }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 52px;
  align-items: start;
}
.contact-info h2 { font-size: 2rem; margin-bottom: 20px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-detail__icon {
  width: 44px; height: 44px;
  background: #fff5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: #c0392b;
}
.contact-detail__text h4 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: .9rem; color: #888; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.contact-detail__text p, .contact-detail__text a { font-size: 1.05rem; color: #1c1c1e; font-weight: 600; }
.contact-detail__text a:hover { color: #c0392b; }

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .form-sub { color: #666; font-size: .92rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: .97rem;
  color: #1c1c1e;
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Thank You Page ---------- */
.thankyou-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.thankyou-box {
  max-width: 560px;
}
.thankyou-check {
  font-size: 4rem;
  margin-bottom: 24px;
  display: block;
}
.thankyou-box h1 { font-size: 2.6rem; margin-bottom: 16px; color: #1c1c1e; }
.thankyou-box p { font-size: 1.1rem; color: #555; margin-bottom: 28px; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  color: #aaa;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .site-logo { color: #fff; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: .9rem; line-height: 1.7; color: #888; max-width: 260px; }
.footer-brand .footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ff6b6b;
  margin-top: 16px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: #888; font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: #c0392b; }

.footer-bottom {
  border-top: 1px solid #222;
  padding: 18px 0;
  font-size: .82rem;
  color: #555;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 10px 0;
  font-size: .82rem;
  color: #888;
}
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #c0392b; }
.breadcrumb span { color: #c0392b; }

/* ---------- Sticky Phone Bar (mobile) ---------- */
.sticky-phone-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #c0392b;
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  z-index: 1000;
  text-decoration: none;
  letter-spacing: .02em;
  box-shadow: 0 -2px 14px rgba(0,0,0,.18);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    gap: 18px;
    border-top: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .nav-menu.open { display: flex; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .site-header { position: relative; }

  /* ---- MOBILE HERO ---- */
  .hero {
    height: 220px !important;
    min-height: 220px !important;
    overflow: hidden !important;
  }
  .hero__title { font-size: 1.5rem; }
  .hero__subtitle { font-size: .9rem; margin-bottom: 20px; }
  .hero__actions .btn { padding: 11px 22px; font-size: .88rem; }
  .hero__scroll { display: none; }
  .page-hero { height: 200px; }
  .page-hero__content h1 { font-size: 1.6rem; }

  .trust-bar .container { gap: 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .sticky-phone-bar { display: block; }
  body { padding-bottom: 56px; }
  .cost-table { font-size: .82rem; }
  .cost-table th, .cost-table td { padding: 10px 12px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .trust-bar .container { justify-content: flex-start; gap: 14px; }
}
