/*
Theme Name:   24 Hour LA Plumber Child
Theme URI:    https://24hourlaplumber.com
Description:  Child theme for GeneratePress - 24 Hour LA Plumber emergency services site
Author:       24 Hour LA Plumber
Author URI:   https://24hourlaplumber.com
Template:     generatepress
Version:      1.0.0
Text Domain:  24lap-child
*/

/* =========================================================
   1. BRAND VARIABLES
   ========================================================= */
:root {
    /* Primary palette */
    --24lap-navy: #0F2540;
    --24lap-navy-dark: #081628;
    --24lap-navy-light: #1F3A5F;

    /* Urgent accent (emergency / CTA) */
    --24lap-orange: #FF6B1A;
    --24lap-orange-dark: #E55A0E;
    --24lap-orange-light: #FF8847;

    /* Secondary accent (trust / success) */
    --24lap-green: #2D8F4E;

    /* Neutrals */
    --24lap-white: #FFFFFF;
    --24lap-off-white: #F7F8FA;
    --24lap-grey-100: #EEF1F5;
    --24lap-grey-200: #D5DBE3;
    --24lap-grey-400: #8794A5;
    --24lap-grey-600: #4A5568;
    --24lap-grey-800: #2D3748;

    /* Typography */
    --24lap-font-display: 'Barlow', 'Arial Black', sans-serif;
    --24lap-font-body: 'Open Sans', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --24lap-radius: 6px;
    --24lap-radius-lg: 12px;
    --24lap-shadow-sm: 0 2px 6px rgba(15, 37, 64, 0.08);
    --24lap-shadow-md: 0 6px 20px rgba(15, 37, 64, 0.12);
    --24lap-shadow-lg: 0 12px 40px rgba(15, 37, 64, 0.18);
}

/* =========================================================
   2. GLOBAL TYPOGRAPHY OVERRIDES
   ========================================================= */
body {
    font-family: var(--24lap-font-body);
    color: var(--24lap-grey-800);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title {
    font-family: var(--24lap-font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--24lap-navy);
    line-height: 1.15;
}

h1, .entry-title { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

a { color: var(--24lap-orange-dark); }
a:hover { color: var(--24lap-navy); }

/* =========================================================
   3. HEADER + LOGO
   ========================================================= */
.site-header {
    background: var(--24lap-white);
    border-bottom: 3px solid var(--24lap-orange);
    box-shadow: var(--24lap-shadow-sm);
}

/* Text-based logo (replaces image until you upload one) */
.site-branding .site-title {
    font-family: var(--24lap-font-display);
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--24lap-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-branding .site-title a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* The orange "24" badge before the wordmark */
.site-branding .site-title::before {
    content: "24";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--24lap-orange);
    color: var(--24lap-white);
    border-radius: 50%;
    font-size: 1.05rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 107, 26, 0.35);
}

.site-description {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--24lap-grey-600);
    margin-top: 4px;
}

/* =========================================================
   4. HEADER CALL-TO-ACTION (desktop)
   ========================================================= */
.header-call-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--24lap-navy);
    color: var(--24lap-white);
    padding: 10px 22px;
    border-radius: var(--24lap-radius);
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: var(--24lap-shadow-sm);
}

.header-call-cta:hover {
    background: var(--24lap-orange);
    color: var(--24lap-white);
    transform: translateY(-1px);
}

.header-call-cta__icon {
    width: 34px;
    height: 34px;
    background: var(--24lap-orange);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--24lap-white);
    font-size: 1.1rem;
}

.header-call-cta__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    line-height: 1;
    color: var(--24lap-orange-light);
}

.header-call-cta__number {
    font-family: var(--24lap-font-display);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--24lap-white);
}

/* =========================================================
   5. STICKY MOBILE CALL BAR
   ========================================================= */
.mobile-call-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--24lap-orange);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
}

.mobile-call-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    color: var(--24lap-white);
    text-decoration: none;
    font-family: var(--24lap-font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.mobile-call-bar a:hover,
.mobile-call-bar a:focus {
    color: var(--24lap-white);
    background: var(--24lap-orange-dark);
}

.mobile-call-bar__pulse {
    width: 12px;
    height: 12px;
    background: var(--24lap-white);
    border-radius: 50%;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

@media (max-width: 768px) {
    .mobile-call-bar { display: block; }
    body { padding-bottom: 70px; } /* prevent content hiding behind bar */
}

/* =========================================================
   6. BUTTONS
   ========================================================= */
.btn-24lap,
.wp-block-button.is-style-24lap-primary .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--24lap-orange);
    color: var(--24lap-white) !important;
    padding: 14px 28px;
    border-radius: var(--24lap-radius);
    font-family: var(--24lap-font-display);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--24lap-shadow-sm);
    border: none;
    cursor: pointer;
}

.btn-24lap:hover,
.wp-block-button.is-style-24lap-primary .wp-block-button__link:hover {
    background: var(--24lap-orange-dark);
    color: var(--24lap-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--24lap-shadow-md);
}

.btn-24lap--ghost {
    background: transparent;
    color: var(--24lap-navy) !important;
    border: 2px solid var(--24lap-navy);
    box-shadow: none;
}

.btn-24lap--ghost:hover {
    background: var(--24lap-navy);
    color: var(--24lap-white) !important;
}

/* =========================================================
   7. HERO SECTION (homepage)
   ========================================================= */
.hero-24lap {
    position: relative;
    background:
        linear-gradient(135deg, rgba(15, 37, 64, 0.92) 0%, rgba(8, 22, 40, 0.96) 100%),
        url('https://images.unsplash.com/photo-1581244277943-fe4a9c777189?w=1600&q=80') center/cover;
    color: var(--24lap-white);
    padding: clamp(60px, 10vw, 110px) 20px;
    overflow: hidden;
}

.hero-24lap::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 107, 26, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-24lap__inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.hero-24lap__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 107, 26, 0.15);
    border: 1px solid var(--24lap-orange);
    color: var(--24lap-orange-light);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.hero-24lap__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--24lap-orange);
    border-radius: 50%;
    animation: pulse 1.6s infinite;
}

.hero-24lap h1 {
    color: var(--24lap-white);
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero-24lap h1 .accent {
    color: var(--24lap-orange);
}

.hero-24lap__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--24lap-grey-200);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.5;
}

.hero-24lap__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-24lap__trust {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    justify-content: center;
    color: var(--24lap-grey-200);
    font-size: 0.9rem;
}

.hero-24lap__trust span::before {
    content: "✓";
    color: var(--24lap-orange);
    font-weight: 900;
    margin-right: 6px;
}

/* =========================================================
   8. SERVICE CARDS GRID
   ========================================================= */
.service-grid-24lap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card-24lap {
    background: var(--24lap-white);
    border: 1px solid var(--24lap-grey-200);
    border-radius: var(--24lap-radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--24lap-navy);
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card-24lap:hover {
    transform: translateY(-4px);
    border-color: var(--24lap-orange);
    box-shadow: var(--24lap-shadow-md);
    color: var(--24lap-navy);
}

.service-card-24lap.is-primary {
    background: linear-gradient(160deg, var(--24lap-navy) 0%, var(--24lap-navy-dark) 100%);
    color: var(--24lap-white);
    border-color: var(--24lap-navy);
}

.service-card-24lap.is-primary:hover {
    color: var(--24lap-white);
    border-color: var(--24lap-orange);
}

.service-card-24lap__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--24lap-orange);
    color: var(--24lap-white);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
}

.service-card-24lap__icon {
    width: 48px;
    height: 48px;
    background: var(--24lap-orange);
    border-radius: var(--24lap-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--24lap-white);
    font-size: 1.5rem;
}

.service-card-24lap h3 {
    color: inherit;
    font-size: 1.25rem;
    margin: 0;
}

.service-card-24lap__desc {
    font-size: 0.95rem;
    color: inherit;
    opacity: 0.85;
    margin: 0;
}

.service-card-24lap__cta {
    margin-top: auto;
    padding-top: 12px;
    color: var(--24lap-orange);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card-24lap.is-primary .service-card-24lap__cta {
    color: var(--24lap-orange-light);
}

/* =========================================================
   9. TRUST STRIP
   ========================================================= */
.trust-strip-24lap {
    background: var(--24lap-navy);
    color: var(--24lap-white);
    padding: 24px 20px;
}

.trust-strip-24lap__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    text-align: center;
}

.trust-strip-24lap__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.trust-strip-24lap__num {
    font-family: var(--24lap-font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--24lap-orange);
    line-height: 1;
}

.trust-strip-24lap__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--24lap-grey-200);
    text-align: left;
    line-height: 1.2;
}

/* =========================================================
   10. SECTION WRAPPERS
   ========================================================= */
.section-24lap {
    padding: clamp(50px, 8vw, 90px) 20px;
}

.section-24lap--light { background: var(--24lap-off-white); }
.section-24lap--dark { background: var(--24lap-navy); color: var(--24lap-white); }
.section-24lap--dark h2, .section-24lap--dark h3 { color: var(--24lap-white); }

.section-24lap__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-24lap__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-24lap__eyebrow {
    color: var(--24lap-orange);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.section-24lap__title {
    margin-bottom: 16px;
}

.section-24lap__sub {
    font-size: 1.1rem;
    color: var(--24lap-grey-600);
    line-height: 1.6;
}

.section-24lap--dark .section-24lap__sub { color: var(--24lap-grey-200); }

/* =========================================================
   11. FAQ ACCORDION
   ========================================================= */
.faq-24lap {
    max-width: 800px;
    margin: 0 auto;
}

.faq-24lap details {
    background: var(--24lap-white);
    border: 1px solid var(--24lap-grey-200);
    border-radius: var(--24lap-radius);
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-24lap details[open] {
    border-color: var(--24lap-orange);
    box-shadow: var(--24lap-shadow-sm);
}

.faq-24lap summary {
    padding: 18px 22px;
    cursor: pointer;
    font-family: var(--24lap-font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--24lap-navy);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-24lap summary::-webkit-details-marker { display: none; }

.faq-24lap summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--24lap-orange);
    font-weight: 900;
    transition: transform 0.2s ease;
}

.faq-24lap details[open] summary::after {
    content: "−";
}

.faq-24lap .faq-body {
    padding: 0 22px 20px;
    color: var(--24lap-grey-600);
    line-height: 1.7;
}

/* =========================================================
   12. RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 768px) {
    .site-branding .site-title { font-size: 1.15rem; }
    .site-branding .site-title::before { width: 36px; height: 36px; font-size: 0.9rem; }
    .header-call-cta { display: none; } /* hide desktop CTA on mobile - sticky bar replaces it */
    .hero-24lap__ctas { flex-direction: column; }
    .hero-24lap__ctas .btn-24lap { width: 100%; justify-content: center; }
    .trust-strip-24lap__item { flex-direction: column; gap: 4px; text-align: center; }
    .trust-strip-24lap__label { text-align: center; }
}

/* =========================================================
   13. UTILITY CLASSES
   ========================================================= */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 36px; }
