/* =============================================================
   BP Autocare – Main Stylesheet
   ============================================================= */

/* ── CSS Custom Properties ── */
:root {
  --blue:    #1565c0;
  --blue-dk: #0d47a1;
  --dark:    #0a0f1e;
  --mid:     #0d1b3e;
  --light:   #f4f6fb;
  --grey:    #6c757d;
  --border:  #d0d8e8;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #1a1a2e;
  background: #f8f9fa;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Skip Link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
}

/* ── Top Bar ── */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: .82rem;
  padding: .45rem 0;
}

.topbar .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  align-items: center;
  justify-content: flex-end;
}

.topbar a {
  color: #ccc;
  transition: color .2s;
}

.topbar a:hover {
  color: #fff;
}

.topbar span {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.topbar .icon {
  font-size: 1rem;
}

/* ── Header / Nav ── */
header {
  background: #fff;
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.logo-icon {
  width: 52px;
  height: 52px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1.2;
}

.logo-text strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.5px;
}

.logo-text span {
  font-size: .78rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}

nav a {
  padding: .5rem .85rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  transition: background .2s, color .2s;
}

nav a:hover,
nav a.active {
  background: var(--blue);
  color: #fff;
}

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: .5rem 1.1rem !important;
}

.nav-cta:hover {
  background: var(--blue-dk) !important;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  color: #fff;
  padding: 5.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-pattern.svg');
  background-repeat: repeat;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.hero h1 span {
  color: var(--blue);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .8);
  max-width: 580px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dk);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .5);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

/* ── Trust Strip ── */
.trust-strip {
  background: var(--blue);
  color: #fff;
  padding: 1rem 1.5rem;
}

.trust-strip .inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: center;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 600;
}

.trust-item .tick {
  font-size: 1.1rem;
}

/* ── Section Wrapper ── */
section {
  padding: 4.5rem 1.5rem;
  scroll-margin-top: 80px; /* offset for sticky header so titles don't clip */
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.divider {
  width: 50px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── About ── */
#about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--blue);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.3;
}

.about-body p + p {
  margin-top: 1rem;
}

.about-points {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .97rem;
}

.about-points li::before {
  content: '✓';
  background: var(--blue);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ── Services ── */
#services {
  background: var(--light);
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.services-intro .section-lead {
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: transform .2s, box-shadow .2s;
  border-left: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  border-left-color: var(--blue);
}

.service-icon {
  width: 42px;
  height: 42px;
  background: #e8f0fe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.service-card span {
  font-size: .93rem;
  font-weight: 600;
  color: var(--dark);
}

/* ── Payment ── */
#payment {
  background: #fff;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.payment-card {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
  border: 2px solid var(--border);
  transition: border-color .2s, background .2s;
}

.payment-card:hover {
  border-color: var(--blue);
  background: #e8f0fe;
}

.payment-card .pay-icon {
  font-size: 2rem;
  margin-bottom: .5rem;
}

/* ── Contact ── */
#contact {
  background: var(--dark);
  color: #fff;
}

#contact .section-title {
  color: #fff;
}

#contact .section-lead {
  color: rgba(255, 255, 255, .65);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.contact-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background .2s;
}

.contact-card:hover {
  background: rgba(255, 255, 255, .1);
}

.contact-card .c-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}

.contact-card p,
.contact-card a {
  font-size: 1rem;
  color: rgba(255, 255, 255, .85);
  line-height: 1.5;
}

.contact-card a:hover {
  color: #fff;
  text-decoration: underline;
}

.map-embed {
  margin-top: 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ── Footer ── */
footer {
  background: #111;
  color: rgba(255, 255, 255, .5);
  text-align: center;
  padding: 1.75rem 1.5rem;
  font-size: .83rem;
}

footer a {
  color: rgba(255, 255, 255, .6);
}

footer a:hover {
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-grid,
  .services-intro {
    grid-template-columns: 1fr;
  }

  .about-img-wrap img {
    height: 260px;
  }

  nav {
    display: none;
  }

  .header-inner {
    justify-content: center;
  }
}
