/* ============ TopGear Auto Service — Styles ============ */
:root {
  --tg-dark: #0b1220;
  --tg-dark-2: #111a2e;
  --tg-accent: #ff4d2d;
  --tg-accent-2: #ff7a1a;
  --tg-light: #f6f8fb;
  --tg-muted: #6b7a93;
  --tg-border: #e6ebf2;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1b2536;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .navbar-brand { font-weight: 700; }

.text-accent { color: var(--tg-accent) !important; }
.bg-accent { background: var(--tg-accent) !important; }
.text-muted-2 { color: var(--tg-muted) !important; }

/* ---------- Buttons ---------- */
.btn-tg {
  background: var(--tg-accent);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  transition: all .25s ease;
  box-shadow: 0 8px 20px rgba(255, 77, 45, .28);
}
.btn-tg:hover { background: var(--tg-accent-2); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 77, 45, .36); }

.btn-outline-tg {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  transition: all .25s ease;
}
.btn-outline-tg:hover { background: #fff; color: var(--tg-dark); }

/* ---------- Navbar ---------- */
.navbar-tg {
  background: rgba(11, 18, 32, .96);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar-tg .navbar-brand { color: #fff; font-size: 1.5rem; letter-spacing: .5px; }
.navbar-tg .navbar-brand .accent { color: var(--tg-accent); }
.navbar-tg .nav-link { color: rgba(255,255,255,.8); font-weight: 500; margin: 0 .4rem; transition: color .2s; }
.navbar-tg .nav-link:hover { color: #fff; }
.navbar-tg .nav-link.active { color: var(--tg-accent); }
.navbar-tg .btn-tg { font-weight: 700; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero-tg {
  position: relative;
  background: linear-gradient(115deg, #0b1220 0%, #101a30 55%, #17233d 100%);
  color: #fff;
  padding: 9rem 0 7rem;
  overflow: hidden;
}
.hero-tg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,77,45,.18), transparent 45%);
}
.hero-tg .hero-badge {
  display: inline-block;
  background: rgba(255,77,45,.16);
  border: 1px solid rgba(255,77,45,.4);
  color: #ffb3a4;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
}
.hero-tg h1 { font-size: 3.3rem; line-height: 1.15; }
.hero-tg .lead { color: rgba(255,255,255,.72); font-size: 1.15rem; }
.hero-tg .hero-img {
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.08);
}
.hero-stats { margin-top: 2.2rem; }
.hero-stats .stat { border-left: 2px solid rgba(255,77,45,.6); padding-left: 1rem; }
.hero-stats .stat-num { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stats .stat-label { color: rgba(255,255,255,.6); font-size: .9rem; }

/* ---------- Section base ---------- */
.section-pad { padding: 5.5rem 0; }
.section-title { font-size: 2.4rem; }
.section-sub { color: var(--tg-muted); font-size: 1.1rem; max-width: 620px; }
.eyebrow {
  display: inline-block;
  color: var(--tg-accent);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .6rem;
}

/* ---------- Services cards ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--tg-border);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  height: 100%;
  transition: all .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(11,18,32,.1); border-color: transparent; }
.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  color: #fff;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
}
.service-card h4 { font-size: 1.25rem; margin-bottom: .7rem; }
.service-card p { color: var(--tg-muted); margin-bottom: 0; }

/* ---------- Feature image block ---------- */
.feature-img {
  border-radius: 20px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 24px 50px rgba(11,18,32,.14);
}
.feature-list li { margin-bottom: .9rem; display: flex; align-items: flex-start; }
.feature-list .ti { color: var(--tg-accent); font-size: 1.3rem; margin-right: .7rem; margin-top: .1rem; }

/* ---------- Price table ---------- */
.price-card {
  background: #fff;
  border: 1px solid var(--tg-border);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  height: 100%;
  transition: all .3s ease;
}
.price-card:hover { box-shadow: 0 18px 40px rgba(11,18,32,.1); transform: translateY(-4px); }
.price-card .price-name { font-weight: 600; margin-bottom: .5rem; }
.price-card .price-value { font-size: 1.9rem; font-weight: 800; color: var(--tg-dark); }
.price-card .price-value small { font-size: .95rem; color: var(--tg-muted); font-weight: 500; }
.price-card .price-note { color: var(--tg-muted); font-size: .85rem; }

/* ---------- Dark CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #0b1220, #1a2540);
  color: #fff;
  border-radius: 24px;
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,77,45,.25), transparent 70%);
}

/* ---------- Contact / form ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--tg-border);
  border-radius: 20px;
  padding: 2.4rem;
  box-shadow: 0 24px 60px rgba(11,18,32,.08);
}
.form-control-tg {
  border: 1px solid var(--tg-border);
  border-radius: 10px;
  padding: .85rem 1rem;
  font-size: .95rem;
}
.form-control-tg:focus {
  border-color: var(--tg-accent);
  box-shadow: 0 0 0 3px rgba(255,77,45,.12);
}
.form-control-tg,
.form-control-tg option {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: #1b2536 !important;
}
.form-control-tg.is-invalid {
  border-color: #ff4d2d !important;
  box-shadow: 0 0 0 3px rgba(255,77,45,.15) !important;
}
select.form-control-tg {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: .95rem !important;
  color: #1b2536 !important;
  cursor: pointer;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
  appearance: auto !important;
}
/* ---------- Custom select ---------- */
.custom-select-wrapper {
  position: relative;
  user-select: none;
}
.custom-select-trigger {
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  padding: .85rem 2.5rem .85rem 1rem;
  font-size: .95rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1b2536;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7a93;
}
.custom-select-trigger.open::after {
  border-top: none;
  border-bottom: 6px solid #6b7a93;
}
.custom-select-trigger.placeholder {
  color: #6b7a93;
}
.custom-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  margin-top: 4px;
  z-index: 1000;
  box-shadow: 0 12px 30px rgba(11,18,32,.12);
  overflow: hidden;
}
.custom-select-dropdown.open {
  display: block;
}
.custom-select-option {
  padding: .75rem 1rem;
  font-size: .95rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1b2536;
  cursor: pointer;
  transition: background .15s;
}
.custom-select-option:hover {
  background: #f6f8fb;
}
.custom-select-option.selected {
  background: rgba(255,77,45,.08);
  color: #ff4d2d;
  font-weight: 600;
}

.contact-info-item { display: flex; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-info-item .ti { color: var(--tg-accent); font-size: 1.4rem; margin-right: .9rem; margin-top: .15rem; }
.contact-info-item h6 { margin-bottom: .2rem; font-weight: 700; }
.contact-info-item p { color: var(--tg-muted); margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer-tg {
  background: var(--tg-dark);
  color: rgba(255,255,255,.6);
  padding: 3rem 0 1.5rem;
}
.footer-tg a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-tg a:hover { color: var(--tg-accent); }
.footer-tg .footer-head { color: #fff; font-weight: 700; margin-bottom: 1rem; }

/* ---------- Toast ---------- */
.toast-tg {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #0b1220;
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  z-index: 9999;
  display: none;
  font-weight: 500;
  border-left: 4px solid #28c76f;
}
.toast-tg.show { display: block; animation: tgFade .3s ease; }
@keyframes tgFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-tg { padding: 6rem 0 4rem; }
  .hero-tg h1 { font-size: 2.4rem; }
  .hero-tg .hero-img { margin-top: 2rem; }
  .section-pad { padding: 4rem 0; }
  .section-title { font-size: 2rem; }
}