/*
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.2.0
Text Domain: tom-landry-painting
*/

/* ==========================
   DESIGN TOKENS
   ========================== */

:root {
    --tlp-navy: #0b2239;
    --tlp-navy-deep: #050b16;
    --tlp-gold: #d4a017;
    --tlp-light: #ffffff;
    --tlp-bg: #f5f7fa;
    --tlp-gray: #eef1f4;
    --tlp-text: #1f2933;
    --tlp-max-width: 1120px;

    --tlp-radius-card: 12px;
    --tlp-shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* ==========================
   BASE ELEMENTS
   ========================== */

*,
*::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: var(--tlp-bg);
    line-height: 1.5;
}

a {
    color: var(--tlp-gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.tlp-container {
    width: 100%;
    max-width: var(--tlp-max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================
   HEADER / SITE CHROME
   ========================== */

.tlp-site-header {
    background: linear-gradient(90deg, var(--tlp-navy-deep) 0%, var(--tlp-navy) 40%, #123457 100%);
    color: var(--tlp-light);
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tlp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Left side: logo + site title/tagline */

.tlp-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tlp-branding .custom-logo {
    max-height: 72px;
    width: auto;
    height: auto;
}

.tlp-brand-text {
    display: flex;
    flex-direction: column;
}

.tlp-site-title a {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--tlp-light);
}

.tlp-site-tagline {
    font-size: 0.9rem;
    color: #c7d0e3;
}

/* Middle: navigation */

.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;
}

/* Right: header CTA */

.tlp-header-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.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;
}

/* ==========================
   FRONT PAGE BRANDING TOGGLE
   (optional logo / title / both in hero)
   ========================== */

.tlp-front-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tlp-front-logo .custom-logo {
    max-height: 72px;
    width: auto;
    height: auto;
}

.tlp-front-text {
    display: flex;
    flex-direction: column;
}

.tlp-front-site-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.tlp-front-tagline {
    font-size: 0.9rem;
    color: #555;
}

/* ==========================
   MAIN & HERO
   ========================== */

.tlp-main {
    padding-bottom: 40px;
}

.tlp-hero {
    position: relative;
    padding: 40px 0 28px;
    background: radial-gradient(circle at top center, #1a3c66 0%, #0b2239 45%, #050b16 100%);
    color: var(--tlp-light);
    overflow: hidden;
}

.tlp-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 65%);
    opacity: 0.9;
    pointer-events: none;
}

.tlp-hero-inner {
    position: relative;
    z-index: 1;
}



.tlp-hero-copy h1 {
    font-size: 2.3rem;
    margin: 0 0 12px;
    line-height: 1.15;
}

.tlp-hero-copy p {
    margin: 0 0 14px;
    font-size: 1.02rem;
    max-width: 640px;
}

.tlp-hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    font-size: 0.95rem;
}

.tlp-hero-benefits li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 18px;
}

.tlp-hero-benefits li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--tlp-gold);
}

.tlp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.tlp-hero-meta {
    font-size: 0.9rem;
    color: #d1d5db;
}

/* Hero logo/text block if used inside hero */

.tlp-hero-logo img {
    max-height: 80px;
    width: auto;
    display: block;
    margin-bottom: 8px;
}

.tlp-hero-site-title {
    margin: 0 0 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
}

.tlp-hero-tagline {
    margin: 0 0 10px;
    font-size: 0.9rem;
}

/* Buttons */

.tlp-btn,
.tlp-bottom-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f4d26b 0%, #d4a017 40%, #b1830f 100%);
    color: #1f2933;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.12s ease;
}
.tlp-btn::before,
.tlp-bottom-btn::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -30%;
    width: 60%;
    height: 260%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.75) 0%,
        rgba(255,255,255,0.15) 40%,
        transparent 70%
    );
    transform: translateX(-100%);
    pointer-events: none;
}

.tlp-btn:hover::before,
.tlp-bottom-btn:hover::before {
    transform: translateX(220%);
    transition: transform 0.6s ease-out;
}

.tlp-btn:hover,
.tlp-bottom-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.tlp-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: none;
}


/* ==========================
   SLIDER
   ========================== */

.tlp-slider-wrap {
    padding: 12px 0 32px;
    background: #f9fafc;
}

.tlp-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: var(--tlp-shadow-soft);
}

/* Aspect ratio container */

.tlp-slider-track {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 fallback */
}

@supports (aspect-ratio: 16 / 9) {
    .tlp-slider-track {
        height: auto;
        padding-bottom: 0;
        aspect-ratio: 16 / 9;
    }
}

/* Slides */

.tlp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    display: none;
    transition: opacity 0.6s ease;
}

.tlp-slide.is-active {
    opacity: 1;
    display: block;
}

/* Slide images */

.tlp-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

/* Clickable overlay wrapper */

.tlp-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Caption overlay */

.tlp-slide-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    right: 16px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Arrows */

.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;
    z-index: 10;
}

.tlp-slider-prev {
    left: 10px;
}

.tlp-slider-next {
    right: 10px;
}

/* ==========================
   SECTIONS / CONTENT BLOCKS
   ========================== */

.tlp-section {
    padding: 48px 0;
    background: var(--tlp-light);
}

.tlp-section-alt {
    background: var(--tlp-gray);
}

.tlp-section h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.tlp-section-sub {
    max-width: 640px;
    margin: 0 0 24px;
    font-size: 0.98rem;
    color: #4b5563;
}

/* Service cards */

.tlp-cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tlp-card {
    background: linear-gradient(145deg, #ffffff 0%, #f6f7fb 40%, #eef1f7 100%);
    border-radius: 14px;
    padding: 18px 18px 20px;
    box-shadow: 0 10px 28px rgba(15,23,42,0.18);
    border: 1px solid rgba(148,163,184,0.25);
}


.tlp-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.tlp-card p {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.tlp-card-link {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Areas we serve */

.tlp-areas {
    background: var(--tlp-gray);
}

.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 section */

.tlp-trust {
    background: var(--tlp-light);
}

.tlp-trust-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 20px;
    font-size: 0.95rem;
}

.tlp-trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.tlp-trust-logos img {
    max-height: 52px;
    width: auto;
}

/* CTA section */

.tlp-cta {
    background: var(--tlp-navy-deep);
    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 section */

.tlp-reviews {
    background: var(--tlp-gray);
}

.tlp-reviews-widget {
    margin-top: 16px;
}

/* ==========================
   FOOTER
   ========================== */

.site-footer,
.tlp-site-footer {
    background: var(--tlp-navy-deep);
    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;
}

/* ==========================
   STANDARD PAGE WRAPPER
   (About, Contact, etc.)
   ========================== */

.tlp-page-wrapper {
    max-width: var(--tlp-max-width);
    margin: 0 auto;
    padding: 40px 16px;
}

.tlp-page-wrapper .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.tlp-page-wrapper .entry-header h1 {
    text-align: center;
    margin-bottom: 24px;
}

/* ==========================
   CONTACT PAGE
   ========================== */

.tlp-contact-quick-wrapper {
    max-width: 720px;
    margin-bottom: 24px;
}

#tlp-question-topic {
    margin-top: 6px;
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    width: 100%;
    max-width: 360px;
}

.tlp-quick-answer {
    padding: 14px 16px;
    border-radius: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.tlp-quick-answer--hidden {
    display: none;
}

.tlp-contact-form {
    max-width: 720px;
    margin-bottom: 24px;
}

.tlp-field {
    margin-bottom: 16px;
}

.tlp-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tlp-field label span {
    color: #d9534f;
}

.tlp-contact-form input,
.tlp-contact-form select,
.tlp-contact-form textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    font-family: inherit;
    font-size: 0.95rem;
}

.tlp-checkbox-group,
.tlp-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.9rem;
}

.tlp-contact-direct {
    margin-top: 24px;
    font-size: 0.95rem;
}

/* ==========================
   SCHEDULE PAGE
   ========================== */

.tlp-schedule-main {
    padding: 40px 16px;
}

.tlp-schedule-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.tlp-schedule-wrap h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tlp-schedule-wrap p {
    margin-bottom: 20px;
}

.tlp-schedule-form {
    background: #0f172a;
    color: #fff;
    padding: 24px;
    border-radius: 8px;
}

.tlp-schedule-form .tlp-field {
    margin-bottom: 16px;
}

.tlp-schedule-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.tlp-schedule-form label span {
    color: #fbbf24;
}

.tlp-schedule-form input,
.tlp-schedule-form select,
.tlp-schedule-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #1f2937;
    background: #111827;
    color: #e5e7eb;
}

.tlp-schedule-form input:focus,
.tlp-schedule-form select:focus,
.tlp-schedule-form textarea:focus {
    outline: 1px solid #fbbf24;
    border-color: #fbbf24;
}

.tlp-notice {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.tlp-notice-success {
    background: #065f46;
    color: #ecfdf5;
}

.tlp-notice-error {
    background: #7f1d1d;
    color: #fee2e2;
}

.tlp-notice-error ul {
    margin: 0;
    padding-left: 18px;
}

/* ==========================
   OPTIONAL APP SHELL STYLES
   (Estimator app page)
   ========================== */

.tlp-app-body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #072447 0%, #03152b 45%, #000000 100%);
    color: var(--tlp-light);
}

.tlp-app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tlp-app-header {
    padding: 12px 16px;
    background: linear-gradient(90deg, #03152b 0%, #05274b 50%, #0b314f 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tlp-logo-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #f0f0f0 40%, #b58b12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.tlp-logo-circle img {
    width: 130%;
    height: auto;
}

.tlp-header-text {
    display: flex;
    flex-direction: column;
}

.tlp-brand-name {
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.tlp-subtitle {
    font-size: 0.8rem;
    opacity: 0.85;
}

.tlp-app-main {
    flex: 1;
    padding: 12px 12px 70px;
    display: flex;
    justify-content: center;
}

.tlp-estimator-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    color: var(--tlp-text);
    border-radius: 18px;
    padding: 18px 16px 20px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    margin-top: 10px;
}

.tlp-estimator-title {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #03152b;
}

.tlp-estimator-sub {
    margin: 0 0 14px;
    font-size: 0.85rem;
    color: #555;
}

.tlp-estimator-embed {
    border-radius: 12px;
    border: 1px solid #e2e2e2;
    padding: 10px;
    background: #fafafa;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.tlp-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #03152b;
    padding: 8px 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.8);
    z-index: 20;
}

.tlp-btn,
.tlp-bottom-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f4d26b 0%, #d4a017 40%, #b1830f 100%);
    color: #1f2933;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.12s ease;
}

.tlp-btn::before,
.tlp-bottom-btn::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -30%;
    width: 60%;
    height: 260%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.75) 0%,
        rgba(255,255,255,0.15) 40%,
        transparent 70%
    );
    transform: translateX(-100%);
    pointer-events: none;
}

.tlp-btn:hover::before,
.tlp-bottom-btn:hover::before {
    transform: translateX(220%);
    transition: transform 0.6s ease-out;
}

.tlp-btn:hover,
.tlp-bottom-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.tlp-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: none;
}


/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 900px) {

    .tlp-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .tlp-header-cta {
        align-items: center;
        text-align: center;
    }

    .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: 768px) {

    .tlp-hero-inner {
        display: flex;
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 0 16px;
    }

    .tlp-front-branding {
        justify-content: center;
        text-align: center;
    }

    .tlp-hero {
        padding-top: 26px;
    }

    .tlp-hero-copy h1 {
        font-size: 1.8rem;
    }

    .tlp-hero-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .tlp-btn,
    .tlp-btn-outline {
        width: 100%;
        text-align: center;
    }

    .tlp-section {
        padding: 32px 0;
    }

    .tlp-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tlp-areas-columns {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .tlp-main p,
    .tlp-section-sub {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .tlp-field-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .tlp-header-inner {
        align-items: flex-start;
    }

    .site-footer-inner,
    .tlp-site-footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .site-header-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* HERO – lighter navy with subtle spotlight */

.tlp-hero {
    position: relative;
    padding: 40px 0 28px;
    background: radial-gradient(circle at top center, #1a3c66 0%, #0b2239 45%, #050b16 100%);
    color: var(--tlp-light);
    overflow: hidden;
}

.tlp-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 65%);
    opacity: 0.9;
    pointer-events: none;
}

.tlp-hero-inner {
    position: relative;
    z-index: 1;
}

.tlp-reviews-slider {
    position: relative;
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tlp-reviews-track {
    position: relative;
}

.tlp-review-card {
    display: none;
    transition: opacity 0.3s ease;
}

.tlp-review-card.is-active {
    display: block;
}

.tlp-review-rating {
    color: #f4b000;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.tlp-review-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.tlp-review-date {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: #777;
}

.tlp-review-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tlp-reviews-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #03152b;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tlp-reviews-prev { left: 8px; }
.tlp-reviews-next { right: 8px; }

.tlp-reviews-arrow:hover {
    opacity: 0.9;
}

