/*
Theme Name: Tom Landry Painting
Theme URI: https://tomlandrypainting.com
Author: Tom Landry
Description: Custom theme for Tom Landry Painting with local SEO-focused layout.
Version: 1.0.0
Text Domain: tom-landry-painting
*/

:root {
    --tlp-navy: #03152b;
    --tlp-gold: #d4a017;
    --tlp-light: #ffffff;
    --tlp-gray: #f4f4f6;
    --tlp-text: #222222;
    --tlp-max-width: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--tlp-text);
    background-color: #ffffff;
    line-height: 1.5;
}

a {
    color: var(--tlp-gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.tlp-container {
    width: 100%;
    max-width: var(--tlp-max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */

.tlp-site-header {
    background: var(--tlp-navy);
    color: var(--tlp-light);
    padding: 10px 0;
}

.tlp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tlp-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tlp-branding .custom-logo {
    max-height: 72px;
    width: auto;
    height: auto;
}

.tlp-site-title a {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--tlp-light);
}

.tlp-site-tagline {
    font-size: 0.9rem;
    color: #c7d0e3;
}

.tlp-main-nav {
    flex: 1;
}

.tlp-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tlp-menu a {
    color: var(--tlp-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.tlp-header-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.tlp-header-phone {
    color: var(--tlp-gold);
    font-weight: 700;
}

.tlp-header-estimate {
    background: var(--tlp-gold);
    color: var(--tlp-navy);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
}

/* HERO */

.tlp-main {
    padding-bottom: 40px;
}

.tlp-hero {
    padding: 32px 0 16px;
}

.tlp-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}


.tlp-hero-copy h1 {
    font-size: 2rem;
    margin: 0 0 12px;
}

.tlp-hero-copy p {
    margin: 0 0 16px;
    font-size: 1rem;
}

.tlp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.tlp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: var(--tlp-gold);
    color: var(--tlp-navy);
    font-weight: 600;
    font-size: 0.95rem;
}

.tlp-btn-outline {
    background: transparent;
    color: var(--tlp-navy);
    border: 1px solid var(--tlp-navy);
}

.tlp-hero-meta {
    font-size: 0.9rem;
    color: #555;
}

.tlp-hero-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* SLIDER (GROVE-STREET-STYLE, SIMPLE) */

.tlp-slider-wrap {
    padding: 8px 0 24px;
    background: #f9fafc;
}

.tlp-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.tlp-slider-track {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 45%; /* Aspect ratio of slider */
}

.tlp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.tlp-slide.is-active {
    opacity: 1;
}

.tlp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tlp-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(3, 21, 43, 0.7);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tlp-slider-prev {
    left: 10px;
}

.tlp-slider-next {
    right: 10px;
}

/* SECTIONS */

.tlp-section {
    padding: 32px 0;
}

.tlp-section.alt {
    background: var(--tlp-gray);
}

.tlp-section-inner h2 {
    font-size: 1.6rem;
    margin: 0 0 8px;
}

.tlp-section-sub {
    margin: 0 0 20px;
    color: #555;
}

/* CARDS */

.tlp-cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tlp-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.tlp-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.tlp-card p {
    margin: 0 0 10px;
}

.tlp-card-link {
    font-size: 0.9rem;
    font-weight: 600;
}

/* AREAS WE SERVE */

.tlp-areas {
    background: #f7f8fb;
}

.tlp-areas-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.tlp-areas-columns h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1rem;
}

.tlp-areas-columns ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.9rem;
}

.tlp-areas-columns li + li {
    margin-top: 3px;
}

/* TRUST */

.tlp-trust {
    background: #ffffff;
}

.tlp-trust-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 20px;
}

.tlp-trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.tlp-trust-logos img {
    max-height: 52px; /* Footer image size control */
    width: auto;
    display: block;
}

/* CTA */

.tlp-cta {
    background: var(--tlp-navy);
    color: var(--tlp-light);
    text-align: center;
}

.tlp-cta h2 {
    color: var(--tlp-light);
}

.tlp-cta p {
    max-width: 560px;
    margin: 0 auto 16px;
}

/* REVIEWS */

.tlp-reviews {
    background: #f7f8fb;
}

.tlp-reviews-widget {
    margin-top: 16px;
}

/* FOOTER (existing footer.php uses these classes) */

.site-footer,
.tlp-site-footer {
    background: #050b16;
    color: #c7d0e3;
    padding: 24px 0;
    font-size: 0.9rem;
}

.site-footer a,
.tlp-site-footer a {
    color: var(--tlp-gold);
}

.site-footer-inner,
.tlp-site-footer-inner {
    max-width: var(--tlp-max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.footer-col h4 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #ffffff;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .tlp-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .tlp-header-cta {
        align-items: center;
    }

    .tlp-hero-inner {
        grid-template-columns: 1fr;
    }

    .tlp-hero-image {
        order: -1;
    }

    .tlp-cards {
        grid-template-columns: 1fr 1fr;
    }

    .tlp-areas-columns {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer-inner,
    .tlp-site-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {

    .tlp-header-inner {
        align-items: flex-start;
    }

    .tlp-hero {
        padding-top: 20px;
    }

    .tlp-hero-copy h1 {
        font-size: 1.5rem;
    }

    .tlp-slider-track {
        padding-bottom: 60%; /* taller slider on phones */
    }

    .tlp-cards {
        grid-template-columns: 1fr;
    }

    .tlp-areas-columns {
        grid-template-columns: 1fr;
    }

    .site-footer-inner,
    .tlp-site-footer-inner {
        grid-template-columns: 1fr;
    }
}
