/* =========================================
   Flood Doctor - Landing Page Styles
   Shared across all LP templates
   ========================================= */

:root {
    --fd-red:    #D72828;
    --fd-dark:   #0A0A0A;
    --fd-gold:   #FAB207;
    --fd-grey:   #F5F5F5;
    --fd-text:   #333333;
    --fd-white:  #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--fd-text);
    font-size: 16px;
    line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fd-red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- EMERGENCY BAR ---- */
.lp-emergency-bar {
    background: var(--fd-red);
    color: var(--fd-white);
    text-align: center;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.lp-emergency-bar a { color: var(--fd-white); text-decoration: underline; }

/* ---- HEADER ---- */
.lp-header {
    background: var(--fd-white);
    border-bottom: 3px solid var(--fd-red);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.lp-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.lp-header-logo img { max-height: 55px; width: auto; }
.lp-header-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lp-phone-link {
    font-size: 22px;
    font-weight: 700;
    color: var(--fd-dark) !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.lp-phone-link:hover { color: var(--fd-red) !important; }
.lp-header-tagline { font-size: 11px; color: #666; text-align: right; }
.lp-avail-badge {
    display: inline-block;
    background: #1a7a1a;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ---- HERO ---- */
.lp-hero {
    position: relative;
    background: var(--fd-dark) center center / cover no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
}
.lp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: center;
    width: 100%;
}
.lp-hero-content h1 {
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 700;
    color: var(--fd-white);
    line-height: 1.2;
    margin-bottom: 18px;
}
.lp-hero-content h1 span { color: var(--fd-gold); }
.lp-hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,.85);
    margin-bottom: 28px;
}
.lp-check-list {
    list-style: none;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}
.lp-check-list li {
    color: var(--fd-white);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.lp-check-list li::before {
    content: '✓';
    color: var(--fd-gold);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1.4;
}
.lp-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary-lp {
    display: inline-block;
    background: var(--fd-red);
    color: var(--fd-white) !important;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none !important;
    border: 2px solid var(--fd-red);
    transition: all .25s;
    text-align: center;
}
.btn-primary-lp:hover {
    background: #b01e1e;
    border-color: #b01e1e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(215,40,40,.4);
}
.btn-secondary-lp {
    display: inline-block;
    background: transparent;
    color: var(--fd-white) !important;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none !important;
    border: 2px solid rgba(255,255,255,.6);
    transition: all .25s;
}
.btn-secondary-lp:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--fd-white);
}

/* ---- HERO FORM CARD ---- */
.lp-form-card {
    background: var(--fd-white);
    border-radius: 8px;
    padding: 30px 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.lp-form-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--fd-dark);
    margin-bottom: 6px;
}
.lp-form-card p { font-size: 13px; color: #666; margin-bottom: 18px; }
.lp-form-card .or-divider {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin: 14px 0;
    position: relative;
}
.lp-form-card .or-divider::before,
.lp-form-card .or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}
.lp-form-card .or-divider::before { left: 0; }
.lp-form-card .or-divider::after { right: 0; }
.lp-form-card .call-now-btn {
    display: block;
    width: 100%;
    background: var(--fd-dark);
    color: var(--fd-white) !important;
    text-align: center;
    padding: 13px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none !important;
    transition: background .2s;
}
.lp-form-card .call-now-btn:hover { background: var(--fd-red); }

/* ---- TRUST BAR ---- */
.lp-trust-bar {
    background: var(--fd-dark);
    padding: 22px 20px;
}
.lp-trust-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.lp-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fd-white);
    font-size: 14px;
    font-weight: 500;
}
.lp-trust-item .trust-icon {
    font-size: 22px;
    color: var(--fd-gold);
}
.lp-trust-item strong { display: block; font-size: 16px; font-weight: 700; }

/* ---- SECTIONS ---- */
.lp-section {
    padding: 70px 20px;
}
.lp-section-alt { background: var(--fd-grey); }
.lp-container {
    max-width: 1200px;
    margin: 0 auto;
}
.lp-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.lp-section-header .overline {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fd-red);
    margin-bottom: 10px;
}
.lp-section-header h2 {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--fd-dark);
    margin-bottom: 16px;
    line-height: 1.25;
}
.lp-section-header p {
    font-size: 17px;
    color: #555;
    max-width: 650px;
    margin: 0 auto;
}

/* ---- STATS ROW ---- */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--fd-red);
    border-radius: 8px;
    overflow: hidden;
    margin: 40px 0;
}
.lp-stat {
    padding: 30px 20px;
    text-align: center;
    color: var(--fd-white);
    border-right: 1px solid rgba(255,255,255,.2);
}
.lp-stat:last-child { border-right: none; }
.lp-stat .stat-number {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}
.lp-stat .stat-label { font-size: 13px; opacity: .9; }

/* ---- SERVICES GRID ---- */
.lp-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
/* 5-item grid: use 6 cols so the last 2 cards center */
.lp-services-grid--5 {
    grid-template-columns: repeat(6, 1fr);
}
.lp-services-grid--5 .lp-service-card {
    grid-column: span 2;
}
.lp-services-grid--5 .lp-service-card:nth-child(4) {
    grid-column: 2 / span 2;
}
.lp-services-grid--5 .lp-service-card:nth-child(5) {
    grid-column: 4 / span 2;
}
.lp-service-card {
    background: var(--fd-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
}
.lp-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.lp-service-card-img {
    height: 200px;
    background: #ccc center/cover no-repeat;
    position: relative;
}
.lp-service-card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #1a3a5c 0%, #0d6efd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.lp-service-card-body { padding: 22px; }
.lp-service-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--fd-dark);
}
.lp-service-card-body p { font-size: 14px; color: #555; margin-bottom: 0; }

/* ---- PROCESS ---- */
.lp-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: process;
}
.lp-process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}
.lp-process-step::after {
    content: '';
    position: absolute;
    top: 38px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--fd-red);
}
.lp-process-step:last-child::after { display: none; }
.lp-process-number {
    width: 64px;
    height: 64px;
    background: var(--fd-red);
    color: var(--fd-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 18px;
}
.lp-process-step h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--fd-dark);
}
.lp-process-step p { font-size: 13px; color: #666; }

/* ---- WHY US ---- */
.lp-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.lp-why-img {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.lp-why-img img { width: 100%; height: 460px; object-fit: cover; }
.lp-why-img-placeholder {
    height: 460px;
    background: linear-gradient(135deg, #0d2137 0%, #1a5276 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
}
.lp-why-content h2 {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--fd-dark);
}
.lp-why-content p {
    color: #555;
    margin-bottom: 24px;
    font-size: 15px;
}
.lp-why-points { list-style: none; }
.lp-why-points li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.lp-why-points li:last-child { border-bottom: none; }
.lp-why-points li .point-icon {
    width: 36px;
    height: 36px;
    background: rgba(215,40,40,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.lp-why-points li .point-text strong { display: block; font-weight: 600; color: var(--fd-dark); }
.lp-why-points li .point-text span { color: #666; font-size: 13px; }

/* ---- TESTIMONIALS ---- */
.lp-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.lp-review-aggregate {
    font-size: 15px;
    color: #555;
    margin-top: 6px;
}
.lp-review-card {
    background: var(--fd-white);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    border-top: 3px solid var(--fd-gold);
}
.lp-review-stars { color: var(--fd-gold); font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.lp-review-text {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 8px;
    font-style: italic;
}
.lp-review-read-more {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: var(--fd-blue);
    cursor: pointer;
    margin-bottom: 12px;
    font-weight: 600;
    display: block;
}
.lp-review-read-more:hover { text-decoration: underline; }
.lp-reviewer { font-weight: 600; font-size: 14px; color: var(--fd-dark); }
.lp-reviewer span { font-weight: 400; color: #888; font-size: 12px; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.lp-reviewer span svg { flex-shrink: 0; }

/* ---- COVERAGE ---- */
.lp-coverage {
    background: var(--fd-dark);
    color: var(--fd-white);
}
.lp-coverage h2 { color: var(--fd-white); }
.lp-coverage p { color: rgba(255,255,255,.75); }
.lp-damage-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}
.lp-damage-cat {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 6px;
    padding: 20px 24px;
}
.lp-damage-cat h3 {
    color: var(--fd-gold);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.lp-damage-cat ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.lp-damage-cat ul li {
    color: rgba(255,255,255,.85);
    font-size: 14px;
    line-height: 1.6;
    padding: 4px 0 4px 16px;
    position: relative;
}
.lp-damage-cat ul li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--fd-gold);
}
.lp-areas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 30px;
}
.lp-area-tag {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px;
    padding: 8px 12px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.8);
}

/* ---- FAQ ---- */
.lp-faq { max-width: 800px; margin: 0 auto; }
.lp-faq-item {
    border-bottom: 1px solid #e0e0e0;
}
.lp-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--fd-dark);
    text-align: left;
    gap: 20px;
    font-family: 'Poppins', sans-serif;
}
.lp-faq-question:hover { color: var(--fd-red); }
.lp-faq-icon { font-size: 20px; flex-shrink: 0; color: var(--fd-red); transition: transform .2s; }
.lp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.lp-faq-answer p { padding-bottom: 18px; color: #555; font-size: 15px; line-height: 1.7; }
.lp-faq-item.open .lp-faq-icon { transform: rotate(45deg); }
.lp-faq-item.open .lp-faq-answer { max-height: 400px; }

/* ---- CTA BAND ---- */
.lp-cta-band {
    background: var(--fd-red);
    padding: 60px 20px;
    text-align: center;
}
.lp-cta-band h2 {
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--fd-white);
    margin-bottom: 14px;
}
.lp-cta-band p {
    font-size: 17px;
    color: rgba(255,255,255,.9);
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.btn-white-lp {
    display: inline-block;
    background: var(--fd-white);
    color: var(--fd-red) !important;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 4px;
    text-decoration: none !important;
    margin: 6px;
    transition: all .25s;
}
.btn-white-lp:hover {
    background: var(--fd-dark);
    color: var(--fd-white) !important;
    transform: translateY(-2px);
}
.btn-outline-white-lp {
    display: inline-block;
    background: transparent;
    color: var(--fd-white) !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 4px;
    text-decoration: none !important;
    border: 2px solid var(--fd-white);
    margin: 6px;
    transition: all .25s;
}
.btn-outline-white-lp:hover { background: rgba(255,255,255,.15); }

/* ---- ACCREDITATIONS ---- */
/* Carousel CSS lives in lp-accreditations.php (self-contained) */

/* ---- FOOTER ---- */
.lp-footer {
    background: #111;
    color: rgba(255,255,255,.6);
    padding: 36px 20px;
}
.lp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.lp-footer-logo img { max-height: 45px; opacity: .8; }
.lp-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-footer-links a { color: rgba(255,255,255,.6); font-size: 13px; text-decoration: none; }
.lp-footer-links a:hover { color: var(--fd-white); }
.lp-footer-copy { font-size: 12px; text-align: right; }

/* ---- FORM STYLES ---- */
.lp-form-field {
    margin-bottom: 12px;
}
.lp-form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lp-form-field input,
.lp-form-field select,
.lp-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color .2s;
    background: #fafafa;
}
.lp-form-field input:focus,
.lp-form-field select:focus,
.lp-form-field textarea:focus {
    border-color: var(--fd-red);
    outline: none;
    background: var(--fd-white);
}
.lp-form-submit {
    width: 100%;
    background: var(--fd-red);
    color: var(--fd-white);
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background .2s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 4px;
}
.lp-form-submit:hover { background: #b01e1e; }
.lp-form-privacy {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

/* ---- IMAGE PLACEHOLDER HELPER ---- */
/* Remove these when replacing with real Adobe Stock images */
.img-placeholder {
    background: linear-gradient(135deg, #0d2137 0%, #1a5276 50%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    font-size: 13px;
    text-align: center;
    padding: 0;
}
.img-placeholder-text {
    border: 2px dashed rgba(255,255,255,.3);
    padding: 15px;
    border-radius: 4px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .lp-hero-inner { grid-template-columns: 1fr; }
    .lp-form-card { max-width: 480px; }
    .lp-services-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-services-grid--5 { grid-template-columns: repeat(2, 1fr); }
    .lp-services-grid--5 .lp-service-card,
    .lp-services-grid--5 .lp-service-card:nth-child(4),
    .lp-services-grid--5 .lp-service-card:nth-child(5) { grid-column: span 1; }
    .lp-process { grid-template-columns: repeat(2, 1fr); }
    .lp-process-step::after { display: none; }
    .lp-why-grid { grid-template-columns: 1fr; }
    .lp-why-img { display: none; }
    .lp-reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-areas-grid { grid-template-columns: repeat(3, 1fr); }
    .lp-damage-categories { grid-template-columns: repeat(2, 1fr); }
    .lp-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .lp-hero { min-height: auto; }
    .lp-hero-inner { padding: 40px 16px; }
    .lp-check-list { grid-template-columns: 1fr; }
    .lp-services-grid { grid-template-columns: 1fr; }
    .lp-services-grid--5 { grid-template-columns: 1fr; }
    .lp-process { grid-template-columns: 1fr; }
    .lp-reviews-grid { grid-template-columns: 1fr; }
    .lp-areas-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-damage-categories { grid-template-columns: 1fr; }
    .lp-stats { grid-template-columns: 1fr 1fr; }
    .lp-trust-bar-inner { gap: 20px; }
    .lp-footer-inner { flex-direction: column; text-align: center; }
    .lp-footer-copy { text-align: center; }
    .lp-header-cta { display: none; }
}

/* ---- MOBILE STICKY CALL BTN ---- */
.lp-mobile-cta {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 400px;
}
.lp-mobile-cta a {
    display: block;
    background: var(--fd-red);
    color: var(--fd-white) !important;
    text-align: center;
    padding: 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(215,40,40,.5);
}
@media (max-width: 640px) {
    .lp-mobile-cta { display: block; }
    body { padding-bottom: 80px; }
}

/* =========================================
   Gallery Section
   ========================================= */
.lp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
}
.lp-gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--fd-radius);
    cursor: pointer;
}
.lp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.lp-gallery-item img:hover { transform: scale(1.04); }
@media (max-width: 640px) {
    .lp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
