/* WePrice Theme — navy & amber brand system */

:root {
  --navy: #1a2e5a;
  --navy-dark: #0f1e3a;
  --navy-mid: #142347;
  --navy-light: #1a3a6a;
  --amber: #f5a623;
  --amber-mute: #f5a62322;
  --wp-white: #ffffff;
  --grey-bg: #f9fafb;
  --grey-light: #f0f4fa;
  --grey-border: #e5e7eb;
  --grey-text: #6b7280;
  --blue-mute: #e8f0fb;
  --muted: #a8b8d0;
  --muted-dark: #6b7a90;
}

/* ── Global overrides ─────────────────────────────────────────── */
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--wp-white);
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  color: var(--navy);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

::selection {
  background: var(--amber);
  color: var(--navy);
}

.bg-primary,
.btn-primary,
.btn.btn-primary {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
}

.bg-primary:hover,
.btn-primary:hover,
.btn.btn-primary:hover {
  background-color: var(--navy-light) !important;
  border-color: var(--navy-light) !important;
}

.btn.btn-linear-primary {
  background: var(--amber) !important;
  color: var(--navy) !important;
  font-weight: 600;
}

.btn.btn-linear-primary::before {
  background: #e09510 !important;
}

.btn.btn-linear-primary:hover {
  color: var(--navy) !important;
}

.text-linear-primary {
  color: var(--amber) !important;
  background: none !important;
  -webkit-text-fill-color: var(--amber) !important;
}

.link-primary,
a.text-primary {
  color: var(--navy) !important;
}

.link-primary:hover {
  color: var(--amber) !important;
}

/* ── Layout helpers ───────────────────────────────────────────── */
.wp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.wp-section {
  padding: 64px 0;
  background: var(--wp-white);
}

.wp-section--alt {
  padding: 64px 0;
  background: var(--grey-bg);
}

.wp-section--dark {
  padding: 64px 0;
  background: var(--navy);
  color: var(--wp-white);
}

.wp-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.wp-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.wp-section--dark h2 {
  color: var(--wp-white);
}

.wp-section-sub {
  font-size: 15px;
  color: var(--grey-text);
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.wp-section--dark .wp-section-sub {
  color: var(--muted);
}

/* ── Navigation ───────────────────────────────────────────────── */
.wp-nav {
  background: var(--wp-white);
  border-bottom: 1px solid var(--grey-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.wp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.wp-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.wp-nav__logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.wp-nav__logo-text span {
  color: var(--amber);
}

.wp-nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: #4a5568;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-nav__links a {
  text-decoration: none;
  color: #4a5568;
  cursor: pointer;
}

.wp-nav__links a:hover {
  color: var(--navy);
}

.wp-nav__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wp-nav__signin {
  font-size: 14px;
  color: #4a5568;
  text-decoration: none;
  cursor: pointer;
}

.wp-nav__signin:hover {
  color: var(--navy);
}

.wp-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
  border: none;
}

.wp-btn:hover {
  opacity: 0.88;
}

.wp-btn--primary {
  background: var(--amber);
  color: var(--navy);
}

.wp-btn--secondary {
  background: var(--navy);
  color: var(--wp-white);
}

.wp-btn--outline {
  background: transparent;
  color: var(--wp-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.wp-btn--large {
  padding: 14px 28px;
  font-size: 15px;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.wp-hero {
  background: var(--navy);
  padding: 72px 32px 64px;
  color: var(--wp-white);
}

.wp-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.wp-hero__tag {
  background: var(--amber-mute);
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.wp-hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 640px;
  color: var(--wp-white);
}

.wp-hero h1 span {
  color: var(--amber);
}

.wp-hero__sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.wp-hero__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Trust bar ────────────────────────────────────────────────── */
.wp-trust-bar {
  background: var(--navy-mid);
  padding: 18px 32px;
}

.wp-trust-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.wp-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.wp-trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* ── Auth cards in hero ───────────────────────────────────────── */
.wp-auth-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .wp-auth-cards {
    flex-direction: row;
    gap: 20px;
  }
}

.wp-auth-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 24px;
  flex: 1;
}

.wp-auth-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--wp-white);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-auth-card .bullet-amber {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.wp-auth-card .bullet-muted {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.wp-auth-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.wp-auth-card .wp-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.wp-auth-card .wp-btn-signin {
  background: rgba(255, 255, 255, 0.1);
  color: var(--wp-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wp-auth-card .wp-btn-signin:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--wp-white);
}

.wp-auth-card .customer-box {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Steps (how it works) ─────────────────────────────────────── */
.wp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--wp-white);
  border: 1px solid var(--grey-border);
  border-radius: 14px;
  overflow: hidden;
}

.wp-step {
  padding: 28px 24px;
  border-right: 1px solid var(--grey-border);
}

.wp-step:last-child {
  border-right: none;
}

.wp-step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--wp-white);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.wp-step h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.wp-step p {
  font-size: 13px;
  color: var(--grey-text);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ── Service categories ───────────────────────────────────────── */
.wp-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.wp-cat {
  background: var(--grey-light);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.wp-cat:hover {
  background: #dde7f6;
}

.wp-cat--cta {
  background: var(--navy);
}

.wp-cat--cta:hover {
  background: #243f75;
}

.wp-cat__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wp-cat--cta .wp-cat__icon {
  background: var(--amber-mute);
}

.wp-cat span {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.wp-cat--cta span {
  color: var(--wp-white);
}

/* ── Cards ────────────────────────────────────────────────────── */
.wp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.wp-card {
  background: var(--wp-white);
  border: 1px solid var(--grey-border);
  border-radius: 14px;
  padding: 24px;
}

.wp-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.wp-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.wp-card p {
  font-size: 14px;
  color: var(--grey-text);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Footer ───────────────────────────────────────────────────── */
.wp-footer {
  background: var(--navy-dark);
  padding: 56px 32px 0;
}

.wp-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.wp-footer__brand p {
  font-size: 13px;
  color: var(--muted-dark);
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.65;
}

.wp-footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.wp-footer__col a,
.wp-footer__col .footer-link {
  display: block;
  font-size: 13px;
  color: var(--muted-dark);
  margin-bottom: 10px;
  transition: color 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.wp-footer__col a:hover,
.wp-footer__col .footer-link:hover {
  color: var(--wp-white);
}

.wp-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.wp-social__icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.wp-social__icon:hover {
  background: #254a8a;
}

.wp-social__icon img {
  width: 15px;
  height: 15px;
  filter: brightness(0) saturate(100%) invert(78%) sepia(12%) saturate(456%) hue-rotate(182deg) brightness(92%) contrast(88%);
}

.wp-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 32px;
}

.wp-footer__bottom__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wp-footer__bottom p {
  font-size: 12px;
  color: #4a5568;
  margin-bottom: 0;
}

/* ── Section header overrides ─────────────────────────────────── */
.section-header h2 {
  color: var(--navy);
}

.service-section,
.testimonial-section,
.mechanics-section,
.about-sec {
  background: var(--wp-white);
}

.info-section {
  background: var(--grey-bg);
}

.info-section .categories-grid .category-link {
  color: var(--navy);
}

.info-section .categories-grid .category-link:hover {
  color: var(--amber);
}

.testimonial-item {
  border: 1px solid var(--grey-border);
  border-radius: 14px;
}

.service-items {
  border: 1px solid var(--grey-border) !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.service-items:hover {
  box-shadow: 0 4px 16px rgba(26, 46, 90, 0.1);
}

.work-section.bg-black {
  background: var(--navy) !important;
  border-radius: 14px;
}

.mechanics-section .nav-pills .nav-link.active {
  background: var(--navy);
}

.mechanics-section .nav-pills .nav-link {
  /* color: var(--navy); */
}

/* Hide legacy header styles when wp-nav is active - no longer needed */

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .wp-nav__links {
    display: none;
  }

  .wp-hero h1 {
    font-size: 30px;
  }

  .wp-steps {
    grid-template-columns: 1fr 1fr;
  }

  .wp-step {
    border-right: none;
    border-bottom: 1px solid var(--grey-border);
  }

  .wp-step:nth-child(odd) {
    border-right: 1px solid var(--grey-border);
  }

  .wp-step:last-child {
    border-bottom: none;
  }

  .wp-cards {
    grid-template-columns: 1fr;
  }

  .wp-cats {
    grid-template-columns: 1fr 1fr;
  }

  .wp-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .wp-hero {
    padding: 48px 20px 40px;
  }

  .wp-hero h1 {
    font-size: 26px;
  }

  .wp-steps {
    grid-template-columns: 1fr;
  }

  .wp-cats {
    grid-template-columns: 1fr;
  }

  .wp-footer__inner {
    grid-template-columns: 1fr;
  }

  .wp-trust-bar__inner {
    gap: 18px;
  }

  .wp-footer__bottom__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
