/*
Theme Name: AP Auto-Tech
Theme URI: https://apauto-tech.com/
Author: Re-Entri
Description: Custom WordPress theme for AP Auto-Tech, VW Audi Group specialists in Warwickshire.
Version: 1.0.0
Text Domain: apauto-tech
*/

:root {
    --black: #050607;
    --panel: #111417;
    --panel-light: #171b1f;
    --steel: #8d99a6;
    --steel-bright: #c2ccd6;
    --text: #f4f6f8;
    --muted: #a8b0b8;
    --line: rgba(194, 204, 214, 0.22);
    --accent: #b6c0ca;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

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

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 16px clamp(20px, 5vw, 72px);
    background: rgba(5, 6, 7, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-logo {
    width: 160px;
    height: auto;
}

.footer-logo {
    width: 128px;
    height: auto;
    border: 1px solid var(--line);
    background: #000;
}

nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    color: var(--steel-bright);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

nav a {
    position: relative;
    padding: 8px 0;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-dropdown {
    position: relative;
    padding: 8px 0;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-dropdown-trigger::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    order: 2;
    opacity: 0.82;
    transition: transform 180ms ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 240px;
    padding: 12px;
    background: rgba(10, 12, 14, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.nav-dropdown-menu a {
    display: block;
    padding: 11px 12px;
    color: var(--steel-bright);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    background: rgba(194, 204, 214, 0.08);
    color: #fff;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown:hover .nav-dropdown-trigger::before,
.nav-dropdown:focus-within .nav-dropdown-trigger::before {
    transform: rotate(180deg);
}

button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

input,
textarea {
    font: inherit;
}

.quote-button,
.learn-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d2d8de, #7f8a95);
    color: #070809;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.quote-button:hover,
.learn-more-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(141, 153, 166, 0.22);
}

main {
    overflow: hidden;
}

.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 150px clamp(22px, 7vw, 96px) 90px;
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, 0.95) 0%, rgba(5, 6, 7, 0.72) 42%, rgba(5, 6, 7, 0.28) 100%),
        linear-gradient(0deg, rgba(5, 6, 7, 1) 0%, rgba(5, 6, 7, 0) 34%),
        url("images/hero-background.png") center right / cover no-repeat;
}

.hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.8rem, 6.5vw, 6rem);
    line-height: 0.9;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h2 {
    width: fit-content;
    margin: 28px 0 0;
    padding: 10px 14px;
    color: var(--steel-bright);
    border-left: 4px solid var(--accent);
    background: rgba(17, 20, 23, 0.72);
    font-size: clamp(1rem, 2vw, 1.45rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-text {
    max-width: 560px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.about,
.services {
    padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.about {
    background:
        linear-gradient(180deg, #050607 0%, #0c0f11 50%, #050607 100%);
}

.content-div {
    max-width: 1480px;
    margin: 0 auto 72px;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr);
    align-items: stretch;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(23, 27, 31, 0.76), rgba(10, 12, 14, 0.42)),
        radial-gradient(circle at 50% 50%, rgba(194, 204, 214, 0.08), rgba(5, 6, 7, 0) 72%);
    box-shadow:
        0 0 42px 18px rgba(5, 6, 7, 0.92),
        0 30px 90px rgba(0, 0, 0, 0.42),
        inset 0 0 86px 22px rgba(5, 6, 7, 0.78);
}

.content-div::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, 0.34), rgba(5, 6, 7, 0) 18%, rgba(5, 6, 7, 0) 82%, rgba(5, 6, 7, 0.34)),
        linear-gradient(180deg, rgba(5, 6, 7, 0.42), rgba(5, 6, 7, 0) 16%, rgba(5, 6, 7, 0) 84%, rgba(5, 6, 7, 0.42));
}

.content-div:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
}

.content-div:nth-child(even) > img {
    order: 2;
}

.content-div > img {
    width: 100%;
    height: 460px;
    min-height: 460px;
    object-fit: cover;
    background:
        linear-gradient(135deg, rgba(141, 153, 166, 0.24), rgba(5, 6, 7, 0.92)),
        #15191d;
}

.text-div {
    padding: clamp(30px, 5vw, 58px);
}

.text-div h3 {
    margin-bottom: 28px;
    text-align: center;
}

h3 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.text-div p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.2rem;
}

.logo-image-banner {
    display: grid;
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 14px;
    margin: 28px 0;
    padding: 8px 0;
}

.banner-logo-image {
    width: 100%;
    height: 52px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.4);
    opacity: 0.86;
}

.services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    background: #050607;
}

.service-card {
    min-height: 510px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--panel);
    isolation: isolate;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    transition: transform 260ms ease, filter 260ms ease;
    filter: grayscale(0.2) brightness(0.72);
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 6, 7, 0.08) 0%, rgba(5, 6, 7, 0.56) 38%, rgba(5, 6, 7, 0.95) 100%),
        linear-gradient(135deg, rgba(141, 153, 166, 0.24), rgba(5, 6, 7, 0) 42%);
}

.service-card:nth-child(1)::before {
    background-image: url("images/service.png");
}

.service-card:nth-child(2)::before {
    background-image: url("images/diagnostics.png");
}

.service-card:nth-child(3)::before {
    background-image: url("images/repairs.png");
}

.service-card:nth-child(4)::before {
    background-image: url("images/modified-cars.png");
}

.service-card:hover::before {
    transform: scale(1.08);
    filter: grayscale(0) brightness(0.86);
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.service-card p {
    min-height: 78px;
    margin: 0 0 22px;
    color: var(--steel-bright);
}

.learn-more-button {
    width: fit-content;
}

.service-hero {
    min-height: 68vh;
    display: flex;
    align-items: flex-end;
    padding: 150px clamp(22px, 7vw, 96px) 76px;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.7) 48%, rgba(5, 6, 7, 0.28) 100%),
        linear-gradient(0deg, rgba(5, 6, 7, 1) 0%, rgba(5, 6, 7, 0) 36%),
        var(--service-image) center / cover no-repeat;
}

.service-maintenance-hero {
    --service-image: url("images/service.png");
}

.diagnostics-hero {
    --service-image: url("images/diagnostics.png");
}

.repairs-hero {
    --service-image: url("images/repairs.png");
}

.modified-cars-hero {
    --service-image: url("images/modified-cars.png");
}

.service-hero-content {
    max-width: 880px;
}

.eyebrow {
    width: fit-content;
    margin: 0 0 18px;
    padding: 8px 12px;
    color: var(--steel-bright);
    border-left: 4px solid var(--accent);
    background: rgba(17, 20, 23, 0.72);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 0.94;
    letter-spacing: 0;
    text-transform: uppercase;
}

.service-hero p:last-child {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--steel-bright);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.service-detail {
    padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
    background:
        linear-gradient(180deg, #050607 0%, #101316 48%, #050607 100%);
}

.service-intro,
.service-feature,
.service-cta {
    max-width: 1180px;
    margin-inline: auto;
}

.service-intro {
    margin-bottom: 56px;
}

.service-intro h2 {
    margin: 0 0 20px;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    text-transform: uppercase;
}

.service-intro p,
.service-cta p {
    max-width: 860px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.05rem;
}

.service-feature {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(0, 0.82fr);
    align-items: stretch;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(23, 27, 31, 0.82), rgba(10, 12, 14, 0.58)),
        radial-gradient(circle at 50% 0%, rgba(194, 204, 214, 0.08), rgba(5, 6, 7, 0) 70%);
    box-shadow:
        0 0 42px 18px rgba(5, 6, 7, 0.9),
        0 30px 90px rgba(0, 0, 0, 0.42),
        inset 0 0 86px 22px rgba(5, 6, 7, 0.72);
}

.service-feature img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

.service-feature > div {
    padding: clamp(30px, 5vw, 58px);
}

.service-list {
    display: grid;
    gap: 14px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 26px;
    color: var(--steel-bright);
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 10px;
    height: 2px;
    background: var(--accent);
}

.service-cta {
    margin-top: 56px;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(23, 27, 31, 0.76), rgba(10, 12, 14, 0.42)),
        radial-gradient(circle at 50% 50%, rgba(194, 204, 214, 0.08), rgba(5, 6, 7, 0) 72%);
}

.service-cta h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.contact {
    padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
    background:
        linear-gradient(180deg, #050607 0%, #101316 48%, #050607 100%);
}

.contact-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.contact-heading {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.contact-heading h3 {
    margin-bottom: 18px;
}

.contact-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: clamp(24px, 4vw, 48px);
    background:
        linear-gradient(135deg, rgba(23, 27, 31, 0.82), rgba(10, 12, 14, 0.58)),
        radial-gradient(circle at 50% 0%, rgba(194, 204, 214, 0.08), rgba(5, 6, 7, 0) 70%);
    box-shadow:
        0 0 42px 18px rgba(5, 6, 7, 0.9),
        0 30px 90px rgba(0, 0, 0, 0.42),
        inset 0 0 86px 22px rgba(5, 6, 7, 0.72);
}

.contact-message {
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: rgba(23, 27, 31, 0.82);
    color: var(--steel-bright);
    text-align: center;
}

.contact-message-sent {
    border-color: rgba(150, 210, 170, 0.44);
}

.contact-message-failed,
.contact-message-invalid {
    border-color: rgba(230, 150, 150, 0.44);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-wide,
.contact-submit {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--steel-bright);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(194, 204, 214, 0.16);
    background: rgba(5, 6, 7, 0.58);
    color: var(--text);
    padding: 14px 16px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field textarea {
    min-height: 160px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(194, 204, 214, 0.56);
    background: rgba(5, 6, 7, 0.72);
    box-shadow: 0 0 0 3px rgba(194, 204, 214, 0.1);
}

.contact-submit {
    justify-self: center;
    margin-top: 8px;
}

footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 58px clamp(20px, 5vw, 72px) 26px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #111417, #050607);
}

.top-footer {
    display: flex;
    justify-content: center;
    align-items: anchor-center;
    width: 100%;
    gap: 50%;
}

footer p {
    margin: 6px 0;
}

.footer-business-details p:first-of-type {
    margin-top: 20px;
    color: var(--steel-bright);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
}

.footer-contact-details a,
.entri a {
    color: var(--steel-bright);
}

.footer-contact-details a:hover,
.entri a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--steel-bright);
    font-size: 0.76rem;
    font-weight: 800;
}

.social-icon img[src=""] {
    display: none;
}

.copywrite,
.entri {
    align-self: center;
    font-size: 0.9rem;
}

.entri {
    text-align: right;
}

@media (max-width: 1060px) {
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    header {
        position: static;
        flex-wrap: wrap;
        gap: 16px;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        font-size: 0.76rem;
    }

    .nav-dropdown {
        position: static;
    }

    .nav-dropdown-menu {
        left: auto;
        right: 20px;
        transform: translateY(12px);
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        transform: translateY(0);
    }

    .hero {
        min-height: 760px;
        padding-top: 92px;
        background-position: center;
    }

    .service-hero {
        min-height: 640px;
        padding-top: 92px;
    }

    .content-div,
    .content-div:nth-child(even),
    .service-feature {
        grid-template-columns: 1fr;
    }

    .content-div:nth-child(even) > img {
        order: 0;
    }

    .content-div > img {
        height: 320px;
        min-height: 320px;
    }

    .service-feature img {
        min-height: 320px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    footer {
        grid-template-columns: 1fr;
    }

    .copywrite,
    .entri {
        text-align: left;
    }
}

@media (max-width: 620px) {
    .header-logo {
        width: 130px;
    }

    .quote-button {
        padding-inline: 14px;
        font-size: 0.72rem;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 420px;
    }

    .logo-image-banner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
