/*
Theme Name: Hugo's Auto Electric
Theme URI: https://joechoe.com/auto/
Author: Joe Choe
Description: A custom WordPress theme for Hugo's Auto Electric in Los Angeles. Includes editable business information, hero content, pages, navigation, reviews, services, and contact details.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: hugos-auto-electric
*/

:root {
    --yellow: #ffd21c;
    --black: #0b0b0b;
    --cream: #f7f4ec;
    --white: #ffffff;
    --gray: #626262;
    --line: #d8d3c7;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--black);
    background: var(--cream);
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { transition: color .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease; }
.container { width: min(calc(100% - 40px), var(--max)); margin: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 20px; top: 20px; background: #fff; color: #111; padding: 10px; z-index: 999; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 11, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.admin-bar .site-header { top: 32px; }
.nav-wrap {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
    border: 0;
    text-decoration: none;
}
.brand img,
.custom-logo {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 76px;
    object-fit: contain;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .18));
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .94rem; }
.site-nav a:hover,
.site-nav a:focus,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--yellow); }
.header-call { margin-left: 2px; }
.menu-button {
    display: none;
    background: var(--yellow);
    color: var(--black);
    border: 0;
    padding: 12px 18px;
    font: inherit;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.menu-button:hover,
.menu-button:focus,
.menu-button:active { background: #ffe36f; color: var(--black); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    color: var(--black) !important;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 15px 22px;
    border: 2px solid var(--yellow);
    border-radius: 3px;
}
.button:hover, .button:focus { background: #ffe36f; border-color: #ffe36f; }
.button-small { padding: 10px 15px; font-size: .82rem; }
.button-outline { background: transparent; color: #fff !important; border-color: #fff; }
.button-outline:hover, .button-outline:focus { background: #fff; color: #0b0b0b !important; }
.button-dark { background: #0b0b0b; color: #fff !important; border-color: #0b0b0b; }

.hero {
    min-height: 690px;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.hero-image { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.015); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.7) 54%, rgba(0,0,0,.2) 100%); }
.hero-content { position: relative; z-index: 1; padding: 110px 0; }
.hero-content h1,
.page-hero h1 {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    text-transform: uppercase;
    font-size: clamp(3.4rem, 8vw, 6.8rem);
    line-height: .9;
    max-width: 780px;
    margin: 15px 0 24px;
}
.hero-content p { font-size: 1.18rem; max-width: 650px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 900; color: var(--yellow); font-size: .78rem; }
.eyebrow.dark { color: #745f00; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.rating-card { margin-top: 38px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stars { color: var(--yellow); letter-spacing: .08em; }

.quick-info { background: var(--yellow); padding: 26px 0; }
.info-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 35px; }
.info-grid > div { display: flex; flex-direction: column; }
.info-label { text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: .72rem; margin-bottom: 3px; }
.info-grid a { color: #0b0b0b; font-weight: 800; text-decoration: none; }

.section { padding: 100px 0; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section h2,
.copy h2,
.cta h2 {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    text-transform: uppercase;
    font-size: clamp(2.7rem, 6vw, 4.5rem);
    line-height: 1;
    margin: 12px 0 20px;
}
.section-heading p, .copy p { font-size: 1.08rem; color: #4f4f4f; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { background: #fff; padding: 30px; border-top: 5px solid var(--yellow); box-shadow: 0 12px 30px rgba(0,0,0,.06); }
.service-card span { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 900; color: #8a7100; }
.service-card h3 { font-family: 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; margin: 10px 0; }
.service-card p { color: #606060; margin-bottom: 0; }

.dark-section { background: #111; color: #fff; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.photo-frame { position: relative; }
.photo-frame:after { content: ''; position: absolute; right: -18px; bottom: -18px; width: 60%; height: 60%; border-right: 8px solid var(--yellow); border-bottom: 8px solid var(--yellow); }
.photo-frame img { width: 100%; display: block; position: relative; z-index: 1; }
.dark-section .copy p { color: #ccc; }
.check-list { list-style: none; padding: 0; margin: 28px 0; }
.check-list li { margin: 12px 0; padding-left: 28px; position: relative; }
.check-list li:before { content: '✓'; position: absolute; left: 0; color: var(--yellow); font-weight: 900; }
.text-link { color: var(--yellow); font-weight: 900; text-decoration: none; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reviews-grid blockquote { margin: 0; padding: 32px; background: #fff; border-left: 5px solid var(--yellow); box-shadow: 0 10px 24px rgba(0,0,0,.05); }
.reviews-grid p { font-size: 1.08rem; font-weight: 700; }
.reviews-grid footer { font-size: .88rem; color: #666; }

.cta { background: var(--yellow); }
.cta-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; align-items: start; }
.cta .eyebrow { color: #5d4c00; }
.hours-card { background: #fff; padding: 34px; box-shadow: 12px 12px 0 rgba(0,0,0,.13); }
.hours-card h3 { font-family: 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; font-size: 2rem; margin-top: 0; }
.hours-card dl { margin: 0; }
.hours-card dl div { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 10px 0; }
.hours-card dd { margin: 0; text-align: right; }

.page-hero { background: #111; color: #fff; padding: 90px 0 78px; border-bottom: 8px solid var(--yellow); }
.page-hero p { max-width: 700px; font-size: 1.12rem; color: #d4d4d4; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.detail-card { background: #fff; padding: 34px; border-left: 6px solid var(--yellow); }
.detail-card h2, .detail-card h3 { font-family: 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; margin-top: 0; }
.detail-card h3 { font-size: 1.8rem; }
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 50px; }
.contact-panel { background: #fff; padding: 36px; }
.contact-panel a { color: #111; font-weight: 800; }
.map-placeholder { min-height: 340px; background: #1b1b1b; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; border: 8px solid var(--yellow); }

.entry-content { max-width: 900px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: #725d00; font-weight: 700; }
.wp-block-image img { border-radius: 2px; }

.site-footer { background: #0b0b0b; color: #bbb; padding: 35px 0; font-size: .88rem; }
.footer-wrap { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-wrap strong { color: #fff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; }
.notice { font-size: .9rem; color: #666; margin-top: 20px; }

@media (max-width: 900px) {
    .admin-bar .site-header { top: 46px; }
    .nav-wrap { min-height: 94px; }
    .brand img, .custom-logo { max-width: 138px; max-height: 62px; }
    .menu-button { display: block; }
    .site-nav { display: none; position: absolute; top: 94px; left: 0; right: 0; background: #111; padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 18px; }
    .site-nav.open { display: flex; }
    .site-nav ul { width: 100%; flex-direction: column; align-items: stretch; gap: 18px; }
    .site-nav a { color: #fff; width: 100%; font-size: 1rem; display: block; }
    .header-call { width: 100%; text-align: center; }
    .info-grid, .services-grid, .two-col, .reviews-grid, .cta-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
    .two-col, .cta-grid { gap: 44px; }
    .section { padding: 76px 0; }
    .footer-wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
    .container { width: min(calc(100% - 28px), var(--max)); }
    .nav-wrap { min-height: 90px; }
    .brand img, .custom-logo { max-width: 125px; max-height: 56px; }
    .menu-button { padding: 11px 16px; font-size: .95rem; }
    .site-nav { top: 90px; }
    .hero { min-height: 620px; }
    .hero-content h1, .page-hero h1 { font-size: 3.4rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .button { width: 100%; }
    .hours-card, .contact-panel { padding: 24px; }
    .hours-card dl div { font-size: .9rem; }
    .section { padding: 62px 0; }
}
