/*
Theme Name: AHB Auto Body Editable
Theme URI: https://example.com/
Author: Lewis Duah
Description: Editable WordPress theme for AHB Auto Body Paint, Repair & Mechanic. This version creates editable pages in the WordPress block editor.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ahb-auto-body-editable
Tags: custom-logo, custom-menu, featured-images, business, one-column
*/

:root {
  --ahb-black: #050505;
  --ahb-dark: #111111;
  --ahb-card: #171717;
  --ahb-yellow: #ffd400;
  --ahb-white: #ffffff;
  --ahb-gray: #dddddd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0b0b;
  color: var(--ahb-white);
  line-height: 1.65;
}

a { color: var(--ahb-yellow); text-decoration: none; }
a:hover { color: #ffffff; }
img { max-width: 100%; height: auto; }

.site-header {
  background: #000;
  border-bottom: 3px solid var(--ahb-yellow);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo img,
.custom-logo {
  width: 210px;
  max-height: 86px;
  object-fit: contain;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-navigation a {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .06em;
}

.main-navigation a:hover { color: var(--ahb-yellow); }

.menu-toggle {
  display: none;
  background: var(--ahb-yellow);
  border: 0;
  color: #000;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

.page-main { background: #0b0b0b; }

.page-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  color: #eeeeee;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  text-transform: uppercase;
}

.ahb-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 95px max(22px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(0,0,0,.96), rgba(0,0,0,.72), rgba(0,0,0,.38)),
    url("assets/images/shop-front.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 212, 0, .35);
}

.ahb-kicker {
  color: var(--ahb-yellow);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 14px;
}

.ahb-hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .95;
  margin: 16px 0 22px;
  text-transform: uppercase;
  letter-spacing: -.04em;
  color: #fff;
}

.ahb-hero p {
  max-width: 680px;
  font-size: 20px;
  color: #eeeeee;
  margin-bottom: 34px;
}

.wp-block-button__link,
.ahb-button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 2px solid var(--ahb-yellow);
  background: var(--ahb-yellow);
  color: #000 !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: #fff !important;
  border: 2px solid var(--ahb-yellow);
}

.wp-block-button__link:hover,
.ahb-button:hover {
  background: #fff;
  color: #000 !important;
  border-color: #fff;
}

.ahb-section {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 76px max(22px, calc((100vw - 1180px) / 2));
}

.ahb-dark-section { background: linear-gradient(135deg, #151515, #000); }
.ahb-yellow-section { background: var(--ahb-yellow); color: #000; }

.ahb-section h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  margin-top: 0;
  color: #fff;
}

.ahb-yellow-section h2,
.ahb-yellow-section p {
  color: #000;
}

.ahb-lead {
  color: #d9d9d9;
  max-width: 780px;
  font-size: 18px;
}

.ahb-services {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.ahb-card {
  background: var(--ahb-card);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 4px solid var(--ahb-yellow);
  padding: 28px;
  min-height: 240px;
}

.ahb-card h3 {
  color: var(--ahb-yellow);
  font-size: 24px;
  margin-top: 0;
  text-transform: uppercase;
}

.ahb-card p { color: #dddddd; }

.ahb-two-col {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 44px;
  align-items: center;
}

.ahb-list-box {
  background: #000;
  border: 1px solid rgba(255, 212, 0, .35);
  padding: 28px;
}

.ahb-list-box h3 {
  color: var(--ahb-yellow);
  text-transform: uppercase;
  margin-top: 0;
}

.ahb-list-box ul { margin: 0; padding-left: 20px; color: #e8e8e8; }

.ahb-gallery {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.ahb-gallery-item {
  background: #171717;
  min-height: 210px;
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ahb-yellow);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  padding: 22px;
}

.ahb-contact-card {
  background: #000;
  color: #fff;
  padding: 32px;
  border-radius: 4px;
}

.ahb-contact-card h3 {
  color: var(--ahb-yellow);
  margin-top: 0;
  text-transform: uppercase;
}

.site-footer {
  background: #000;
  border-top: 3px solid var(--ahb-yellow);
  padding: 34px 22px;
  color: #d0d0d0;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 900;
  color: var(--ahb-yellow);
  text-transform: uppercase;
}

.wp-block-image img {
  border-radius: 4px;
}

@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-wrap: wrap; }
  .menu-toggle { display: inline-block; }
  .main-navigation { width: 100%; }
  .main-navigation ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
  }
  .main-navigation.toggled ul { display: flex; }
  .ahb-services,
  .ahb-gallery,
  .ahb-two-col { grid-template-columns: 1fr; }
  .ahb-hero { min-height: 520px; }
  .site-logo img,
  .custom-logo { width: 180px; }
}
