/*
Theme Name: Grit to Gloss Detailing
Description: Custom one-page website for Grit to Gloss Detailing in North Belle Vernon.
Version: 1.0.22
Text Domain: grit-to-gloss
*/
/* Apply predictable sizing to every element. */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0b0b10;
    color: #f5f5f7;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Keep content centered and comfortable to read. */
header,
main,
footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

header {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

    header img {
        display: block;
        width: 400px;
        max-width: 100%;
        height: auto;
        margin: 0 auto 24px;
    }

h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.1;
    margin: 0 0 24px;
}

header p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: #c9c9d4;
    font-size: 18px;
}

#contact {
    margin-top: 60px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

    .contact-links a {
        display: inline-block;
        padding: 12px 20px;
        border: 2px solid #20d6d2;
        border-radius: 8px;
        color: #20d6d2;
        font-weight: bold;
        text-decoration: none;
    }

        .contact-links a:hover {
            background: #20d6d2;
            color: #0b0b10;
        }

        .contact-links a:focus-visible {
            outline: 3px solid #ffffff;
            outline-offset: 5px;
        }

/* Style the introduction link as a button. */
header a {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    background: #20d6d2;
    color: #0b0b10;
    font-weight: bold;
    text-decoration: none;
}

    header a:hover {
        background: #7aeeeb;
    }

    header a:focus-visible {
        outline: 3px solid #ffffff;
        outline-offset: 5px;
    }

h2 {
    font-size: 32px;
    border-bottom: 2px solid #aa43e8;
    padding-bottom: 12px;
}

h3 {
    color: #20d6d2;
    margin-top: 32px;
    margin-bottom: 8px;
}

main p {
    color: #c9c9d4;
    margin-top: 0;
}

footer {
    border-top: 1px solid #343440;
    color: #c9c9d4;
    text-align: center;
    font-size: 14px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: #17171f;
    border: 1px solid #343440;
    border-radius: 12px;
    padding: 24px;
}

    .service-card h3 {
        margin-top: 0;
    }

    .service-card p {
        margin-bottom: 0;
    }

#results {
    margin-top: 60px;
}

.photo-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

    .photo-pair figure {
        margin: 0;
    }

    .photo-pair img {
        display: block;
        width: 100%;
        height: auto;
        border: 1px solid #343440;
        border-radius: 12px;
    }

    .photo-pair figcaption {
        padding-top: 8px;
        color: #20d6d2;
        font-weight: bold;
    }

/* Stack the photos on smaller screens. */
@media (max-width: 600px) {
    .photo-pair {
        grid-template-columns: 1fr;
    }
}

.photo-pair + .photo-pair {
    margin-top: 32px;
}

#about {
    margin-top: 60px;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding: 20px 24px;
    background: #0b0b10;
    border-bottom: 1px solid #343440;
}

    nav a {
        color: #f5f5f7;
        font-weight: bold;
        text-decoration: none;
    }

        nav a:hover {
            color: #20d6d2;
        }

        nav a:focus-visible {
            outline: 3px solid #20d6d2;
            outline-offset: 5px;
        }

#about p {
    max-width: 750px;
}




/* Legal and content links on dark backgrounds. */
main a:not(.button),
footer a,
main a:not(.button):visited,
footer a:visited {
    color: #39d5d5 !important;
}
main a:not(.button):hover,
main a:not(.button):focus-visible,
footer a:hover,
footer a:focus-visible {
    color: #ffffff !important;
    text-decoration: underline;
}
footer .footer-legal a { color: #39d5d5 !important; }

/* v1.0.16: Compact, readable page headings and transparent logo. */
header h1 { font-size: clamp(27px, 3.3vw, 42px); line-height: 1.18; max-width: 920px; margin: 0 auto 20px; }
header img { width: 360px; max-width: 85%; height: auto; margin-bottom: 22px; }
header { padding-top: 34px; padding-bottom: 38px; }
@media (max-width: 600px) { header h1 { font-size: clamp(25px, 6vw, 32px); } header img { width: 300px; } }

/* v1.0.19: Accessible contrast for turquoise navigation buttons.
   More specific than the general nav a rule above. */
header nav a, header nav a:visited {
    color: #0b0b10;
}
header nav a:hover, header nav a:focus-visible {
    color: #0b0b10;
    background-color: #7aeeeb;
}
