/*
Theme Name: The Autoboiyz Garage
Theme URI: https://autoboiyzgarage.ae
Author: The Autoboiyz Garage LLC
Author URI: https://autoboiyzgarage.ae
Description: Custom WordPress theme for The Autoboiyz Garage LLC automotive repair workshop.
Version: 1.1.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autoboiyz-garage
*/

:root {
  --ab-black: #050505;
  --ab-panel: #101010;
  --ab-panel-soft: #171717;
  --ab-white: #ffffff;
  --ab-text: #eeeeee;
  --ab-muted: #b8b8b8;
  --ab-line: #303030;
  --ab-red: #c60012;
  --ab-red-dark: #97000d;
  --ab-gold: #d7a943;
  --ab-gold-soft: #f0d17a;
  --ab-grey: #f4f4f4;
  --ab-radius: 8px;
  --ab-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --ab-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #151515;
  background: var(--ab-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ab-gold);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ab-container {
  width: min(100% - 32px, var(--ab-container));
  margin-inline: auto;
}

.ab-topbar {
  background: var(--ab-black);
  color: var(--ab-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ab-topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.ab-topbar a {
  color: var(--ab-white);
}

.ab-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.94);
  color: var(--ab-white);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ab-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}

.ab-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.ab-brand img {
  width: 68px;
  height: 54px;
  object-fit: contain;
}

.ab-brand__text {
  display: grid;
  line-height: 1.1;
}

.ab-brand__name {
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.98rem;
}

.ab-brand__tag {
  color: var(--ab-gold-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.ab-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ab-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ab-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--ab-text);
  font-weight: 700;
  font-size: 0.94rem;
  border-radius: var(--ab-radius);
}

.ab-nav a:hover,
.ab-nav .current-menu-item > a,
.ab-nav .current_page_item > a {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ab-white);
}

.ab-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ab-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--ab-white);
  border-radius: var(--ab-radius);
  cursor: pointer;
}

.ab-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.ab-button,
.ab-form button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--ab-radius);
  border: 1px solid transparent;
  background: var(--ab-red);
  color: var(--ab-white);
  font-weight: 800;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ab-button:hover,
.ab-form button:hover {
  background: var(--ab-red-dark);
  transform: translateY(-1px);
}

.ab-button--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.ab-button--outline:hover {
  border-color: var(--ab-gold);
  background: rgba(255, 255, 255, 0.08);
}

.ab-button--gold {
  background: var(--ab-gold);
  color: var(--ab-black);
}

.ab-button--gold:hover {
  background: var(--ab-gold-soft);
}

.ab-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: grid;
  align-items: center;
  color: var(--ab-white);
  background:
    radial-gradient(circle at 78% 18%, rgba(215, 169, 67, 0.16), transparent 32%),
    linear-gradient(115deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.92) 48%, rgba(5, 5, 5, 0.72) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 16px);
}

.ab-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -90px auto;
  width: min(54vw, 680px);
  height: min(54vw, 680px);
  background: url("assets/images/autoboiyz-logo.jpeg") center / contain no-repeat;
  opacity: 0.18;
  filter: saturate(1.1);
  pointer-events: none;
}

.ab-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  padding: 72px 0 96px;
}

.ab-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--ab-gold-soft);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.ab-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--ab-red);
}

.ab-hero h1,
.ab-page-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.2rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ab-hero p,
.ab-page-hero p {
  width: min(100%, 660px);
  margin: 22px 0 0;
  color: var(--ab-text);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.ab-hero__actions,
.ab-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ab-stat-strip {
  background: var(--ab-panel);
  color: var(--ab-white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ab-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ab-stat {
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ab-stat:last-child {
  border-right: 0;
}

.ab-stat strong {
  display: block;
  color: var(--ab-gold-soft);
  font-size: 1.2rem;
}

.ab-stat span {
  color: var(--ab-muted);
}

.ab-section {
  padding: 76px 0;
}

.ab-section--dark {
  background: var(--ab-black);
  color: var(--ab-white);
}

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

.ab-section__head {
  width: min(100%, 720px);
  margin-bottom: 34px;
}

.ab-section__head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.ab-section__head p {
  margin: 14px 0 0;
  color: #555;
}

.ab-section--dark .ab-section__head p,
.ab-section--dark p {
  color: var(--ab-muted);
}

.ab-grid {
  display: grid;
  gap: 18px;
}

.ab-grid--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ab-service-card {
  min-height: 210px;
  padding: 24px;
  background: var(--ab-white);
  border: 1px solid #e4e4e4;
  border-radius: var(--ab-radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.ab-section--dark .ab-service-card {
  background: var(--ab-panel);
  border-color: rgba(255, 255, 255, 0.1);
}

.ab-service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--ab-radius);
  background: rgba(198, 0, 18, 0.12);
  color: var(--ab-red);
  font-weight: 900;
}

.ab-service-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.ab-service-card p {
  margin: 0;
  color: #5c5c5c;
}

.ab-section--dark .ab-service-card p {
  color: var(--ab-muted);
}

.ab-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.ab-panel {
  padding: 28px;
  background: var(--ab-panel);
  color: var(--ab-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ab-radius);
  box-shadow: var(--ab-shadow);
}

.ab-check-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.ab-check-list li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
}

.ab-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ab-red);
  box-shadow: inset 0 0 0 4px var(--ab-gold-soft);
}

.ab-page-hero {
  padding: 86px 0;
  background:
    linear-gradient(120deg, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.78)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
  color: var(--ab-white);
}

.ab-form {
  display: grid;
  gap: 16px;
}

.ab-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ab-field {
  display: grid;
  gap: 6px;
}

.ab-field label {
  font-weight: 800;
  color: inherit;
}

.ab-field input,
.ab-field select,
.ab-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d6d6d6;
  border-radius: var(--ab-radius);
  padding: 11px 12px;
  font: inherit;
  color: #111;
  background: var(--ab-white);
}

.ab-field textarea {
  min-height: 132px;
  resize: vertical;
}

.ab-alert {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--ab-radius);
  font-weight: 700;
}

.ab-alert--success {
  background: #e9f8ee;
  color: #125a28;
  border: 1px solid #bfe6ca;
}

.ab-alert--error {
  background: #fff0f1;
  color: #8c0010;
  border: 1px solid #ffc4ca;
}

.ab-map {
  width: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.08);
}

.ab-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.ab-contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.ab-contact-list div {
  padding: 18px;
  background: var(--ab-white);
  border: 1px solid #e4e4e4;
  border-radius: var(--ab-radius);
}

.ab-contact-list dt {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #555;
}

.ab-contact-list dd {
  margin: 4px 0 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.ab-site-footer {
  background: var(--ab-black);
  color: var(--ab-white);
  padding: 46px 0 24px;
}

.ab-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 30px;
}

.ab-site-footer h2,
.ab-site-footer h3 {
  margin-top: 0;
}

.ab-site-footer p,
.ab-site-footer li {
  color: var(--ab-muted);
}

.ab-site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ab-site-footer a:hover {
  color: var(--ab-gold-soft);
}

.ab-footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ab-muted);
  font-size: 0.92rem;
}

.ab-floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 60;
}

.ab-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 54px;
  padding: 13px;
  border-radius: 999px;
  color: var(--ab-white);
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.ab-float--whatsapp {
  background: #1fae58;
}

.ab-float--call {
  background: var(--ab-red);
}

.ab-entry {
  padding: 64px 0;
}

.ab-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .ab-mobile-toggle {
    display: inline-block;
  }

  .ab-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 12px 16px 18px;
    background: var(--ab-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  body.ab-nav-open .ab-nav {
    display: block;
  }

  .ab-nav ul {
    display: grid;
    gap: 4px;
  }

  .ab-header-actions .ab-button {
    display: none;
  }

  .ab-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-split,
  .ab-contact-grid,
  .ab-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ab-topbar__inner {
    display: grid;
  }

  .ab-brand {
    min-width: 0;
  }

  .ab-brand img {
    width: 58px;
    height: 46px;
  }

  .ab-brand__tag {
    display: none;
  }

  .ab-hero {
    min-height: 570px;
  }

  .ab-stat-grid,
  .ab-grid--services,
  .ab-form-row {
    grid-template-columns: 1fr;
  }

  .ab-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ab-stat:last-child {
    border-bottom: 0;
  }

  .ab-section {
    padding: 56px 0;
  }

  .ab-floating-actions {
    right: 12px;
    bottom: 12px;
  }
}
