/*
 * Rapid Dry Restoration of the Thumb — additive styles.
 * Layered on top of styles.css (which must NOT be modified).
 * This file adds: review carousel, gallery grid + lightbox + before/after
 * slider, contact form, toast notifications, and admin look-and-feel.
 */

/* ---------- Nav toggle (mobile) ---------- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #0b4d7a;
    cursor: pointer;
}

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
        order: 2;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        padding-top: 1rem;
    }
    .nav-links.open {
        display: flex;
    }
}

/* ---------- Footer grid ---------- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
    text-align: left;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-col p,
.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0.35rem 0;
}

.footer-col a:hover {
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0.35rem 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
}

/* ---------- Section helper ---------- */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: #f1f5f9;
}

.section-heading {
    text-align: center;
    font-size: 2rem;
    color: #0b4d7a;
    margin-bottom: 0.5rem;
}

.section-subheading {
    text-align: center;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

/* ---------- Reviews carousel ---------- */
.reviews-carousel {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem 2.25rem;
    box-shadow: 0 6px 24px rgba(11, 77, 122, 0.06);
    text-align: center;
    display: none;
}

.review-card.active {
    display: block;
    animation: fade-in 0.4s ease;
}

.review-stars {
    color: #f2b705;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.review-quote {
    font-size: 1.05rem;
    color: #1a2b3c;
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.review-author {
    font-weight: 600;
    color: #0b4d7a;
}

.review-location {
    font-size: 0.9rem;
    color: #64748b;
}

.review-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.review-dot.active {
    background: #1d8fd6;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Review list (public reviews page) ---------- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.reviews-grid .review-card {
    display: block;
    text-align: left;
    padding: 1.5rem;
}

.reviews-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.filter-chip {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-chip:hover,
.filter-chip.active {
    background: #1d8fd6;
    border-color: #1d8fd6;
    color: #fff;
}

/* ---------- Gallery ---------- */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(217, 48, 37, 0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 3rem 1rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

/* ---------- Gallery lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -2rem;
    right: -0.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
}

.lightbox-caption {
    color: #fff;
    margin-top: 1rem;
    text-align: center;
}

/* ---------- Before/After slider ---------- */
.ba-slider {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    user-select: none;
    margin: 0 auto;
}

.ba-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-slider .ba-after-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: 50%;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    cursor: ew-resize;
}

.ba-handle::after {
    content: "\f337";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1d8fd6;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-label {
    position: absolute;
    bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    pointer-events: none;
    text-transform: uppercase;
}

.ba-label-before { left: 0.75rem; }
.ba-label-after  { right: 0.75rem; }

/* ---------- Contact form ---------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 820px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(11, 77, 122, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 620px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0b3a5c;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #d8e2ec;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: #1a2b3c;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230b4d7a'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #b6c6d6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1d8fd6;
    box-shadow: 0 0 0 4px rgba(29, 143, 214, 0.18);
    background: #fff;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0 0.6rem 0 0;
    padding: 0;
    vertical-align: middle;
    accent-color: #1d8fd6;
    cursor: pointer;
    flex-shrink: 0;
}

.form-group label:has(> input[type="checkbox"]),
.form-group label:has(> input[type="radio"]) {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
    padding: 0.85rem 1rem;
    background: #fef3f2;
    border: 1.5px solid #fecaca;
    border-radius: 10px;
    color: #7f1d1d;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.form-group label:has(> input[type="checkbox"]):hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    color: #334155;
}

.form-check input {
    width: auto;
}

.form-submit {
    background: #d93025;
    color: #fff;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s;
}

.form-submit:hover {
    background: #b3251d;
}

.form-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.contact-side {
    background: linear-gradient(135deg, #0b4d7a 0%, #1d8fd6 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
}

.contact-side h3 {
    margin-bottom: 1rem;
}

.contact-side p {
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.5;
}

.contact-side a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.contact-side .contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

/* ---------- FAQ accordion ---------- */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0b4d7a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
}

.faq-question i {
    transition: transform 0.2s;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1.25rem;
    color: #475569;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 0.85rem 1.15rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ---------- Toasts ---------- */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: #1a2b3c;
    color: #fff;
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 260px;
    pointer-events: auto;
    animation: slide-in 0.25s ease;
}

.toast-success { background: #065f46; }
.toast-error   { background: #991b1b; }
.toast-info    { background: #1e40af; }

@keyframes slide-in {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ---------- Generic buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.15s;
}

.btn-primary {
    background: #1d8fd6;
    color: #fff;
}

.btn-primary:hover { background: #166fab; }

.btn-danger {
    background: #d93025;
    color: #fff;
}

.btn-danger:hover { background: #b3251d; }

.btn-outline {
    background: transparent;
    color: #0b4d7a;
    border: 1px solid #0b4d7a;
}

.btn-outline:hover {
    background: #0b4d7a;
    color: #fff;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
    background: linear-gradient(135deg, #0b4d7a 0%, #1d8fd6 100%);
    color: #fff;
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    opacity: 0.95;
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- Emergency banner ---------- */
.emergency-banner {
    background: #d93025;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
}

.emergency-banner a {
    color: #fff;
    text-decoration: underline;
}

/* ---------- Service areas list ---------- */
.service-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.service-area-chip {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

/* =====================================================================
 * Rebuild (plan 01) additions — new top bar, dropdown nav, hero,
 * value cards, service detail layout, and refreshed footer styles.
 * These override/extend the base styles.css layout without editing it.
 * ===================================================================== */

/* ---------- Top utility bar ---------- */
.top-bar {
    background: #0b4d7a;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #cbd5e1;
}

.top-bar-item i { color: #1d8fd6; }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.top-bar-phone {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.top-bar-phone:hover { color: #1d8fd6; }

.top-bar-cta {
    background: #d93025;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    transition: background 0.15s;
}

.top-bar-cta:hover { background: #b3251d; }

@media (max-width: 760px) {
    .top-bar-left { display: none; }
    .top-bar-inner { justify-content: center; }
}

/* ---------- Main nav logo img ---------- */
.header { max-width: none; }
.nav-container { max-width: 1200px; }

.logo {
    text-decoration: none;
    padding: 0;
    gap: 0;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
}

.logo i,
.logo span { display: none; }

/* ---------- Dropdown nav ---------- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown > .nav-link i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: -1rem;
    min-width: 260px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(11, 77, 122, 0.18);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.18s;
    z-index: 500;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover > .nav-link i,
.nav-dropdown.open > .nav-link i {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a i {
    color: #1d8fd6;
    width: 1.25rem;
    text-align: center;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: #eff6ff;
    color: #0b4d7a;
}

.nav-dropdown.active > .nav-link { color: #1d8fd6; }

@media (max-width: 900px) {
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0.25rem 0 0 1.25rem;
        min-width: 0;
    }
}

/* ---------- Full-width hero (home) ---------- */
.hero {
    position: relative;
    padding: 6rem 1.5rem 5rem;
    background:
        linear-gradient(135deg, rgba(11, 77, 122, 0.55) 0%, rgba(13, 60, 97, 0.45) 100%),
        url('/assets/images/stock/hero-water-damage.jpg') center / cover no-repeat;
    color: #fff;
    text-align: left;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(217, 48, 37, 0.95);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    max-width: 820px;
    margin: 0 0 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 680px;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-buttons { justify-content: flex-start; }

.hero-trust {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    font-size: 0.9rem;
    opacity: 0.92;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-trust i { color: #86c5ef; }

@media (max-width: 720px) {
    .hero { padding: 4rem 1.25rem 3.5rem; }
    .hero h1 { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1.05rem; }
}

/* ---------- Three value cards ---------- */
.value-cards-section {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    padding: 0 1.5rem 4rem;
}

.value-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.value-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    box-shadow: 0 20px 50px rgba(11, 77, 122, 0.15);
    border-top: 4px solid #d93025;
}

.value-card .value-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b4d7a 0%, #1d8fd6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: #0b4d7a;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.value-card p {
    color: #475569;
    line-height: 1.55;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .value-cards { grid-template-columns: 1fr; gap: 1rem; }
    .value-cards-section { margin-top: -2rem; padding-bottom: 3rem; }
}

/* ---------- Page banner (subpages) ---------- */
.page-banner {
    position: relative;
    padding: 5rem 1.5rem 4rem;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(11, 77, 122, 0.5) 0%, rgba(13, 60, 97, 0.4) 100%),
        url('/assets/images/stock/hero-water-damage.jpg') center / cover no-repeat;
}

.page-banner--about       { background-image: linear-gradient(135deg, rgba(11, 77, 122, 0.5), rgba(13, 60, 97, 0.4)), url('/assets/images/stock/crew-working.jpg'); }
.page-banner--water       { background-image: linear-gradient(135deg, rgba(11, 77, 122, 0.5), rgba(13, 60, 97, 0.4)), url('/assets/images/stock/water-damage.jpg'); }
.page-banner--fire        { background-image: linear-gradient(135deg, rgba(51, 15, 15, 0.45), rgba(130, 30, 20, 0.35)), url('/assets/images/stock/fire-damage.jpg'); }
.page-banner--mold        { background-image: linear-gradient(135deg, rgba(11, 77, 122, 0.5), rgba(13, 60, 97, 0.4)), url('/assets/images/stock/mold-remediation.jpg'); }
.page-banner--storm       { background-image: linear-gradient(135deg, rgba(11, 77, 122, 0.5), rgba(13, 60, 97, 0.4)), url('/assets/images/stock/house-exterior-storm.jpg'); }
.page-banner--gallery     { background-image: linear-gradient(135deg, rgba(11, 77, 122, 0.5), rgba(13, 60, 97, 0.4)), url('/assets/images/stock/restoration-equipment.jpg'); }
.page-banner--contact     { background-image: linear-gradient(135deg, rgba(11, 77, 122, 0.5), rgba(13, 60, 97, 0.4)), url('/assets/images/stock/crew-working.jpg'); }
.page-banner--testimonials { background-image: linear-gradient(135deg, rgba(11, 77, 122, 0.5), rgba(13, 60, 97, 0.4)), url('/assets/images/stock/dehumidifier.jpg'); }
.page-banner--services    { background-image: linear-gradient(135deg, rgba(11, 77, 122, 0.5), rgba(13, 60, 97, 0.4)), url('/assets/images/stock/restoration-equipment.jpg'); }

.page-banner h1 {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    opacity: 0.95;
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.breadcrumbs {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.breadcrumbs a { color: #cbd5e1; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Service detail (two-column with left rail) ---------- */
.service-detail {
    padding: 4rem 1.5rem;
}

.service-detail-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .service-detail-grid { grid-template-columns: 1fr; }
}

.service-rail {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 1.25rem;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.service-rail h4 {
    color: #0b4d7a;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
}

.service-rail ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.service-rail li { margin: 0.25rem 0; }

.service-rail a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
}

.service-rail a i { color: #1d8fd6; width: 1.2rem; text-align: center; }

.service-rail a:hover,
.service-rail a.active {
    background: #fff;
    color: #0b4d7a;
    font-weight: 600;
}

.service-rail .rail-cta {
    display: block;
    margin-top: 0.5rem;
    background: #d93025;
    color: #fff;
    text-align: center;
    padding: 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-rail .rail-cta:hover { background: #b3251d; }

.service-body h2 {
    color: #0b4d7a;
    font-size: 1.8rem;
    margin: 0 0 0.85rem;
}

.service-body h3 {
    color: #0b4d7a;
    font-size: 1.2rem;
    margin: 1.75rem 0 0.5rem;
}

.service-body p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-body ul {
    color: #475569;
    line-height: 1.7;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.service-body li { margin-bottom: 0.35rem; }

.service-body .hero-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    max-height: 360px;
    object-fit: cover;
}

.service-body .service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.service-body .service-tag {
    background: #eff6ff;
    color: #0b4d7a;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-weight: 500;
}

/* ---------- 3-column reviews (static cards, no slider) ---------- */
.reviews-grid-static {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .reviews-grid-static { grid-template-columns: 1fr; }
}

.reviews-grid-static .review-card {
    display: block;
    text-align: left;
}

/* ---------- Services overview grid (home + services.php) ---------- */
.services-grid-lg {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-tile {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: #0b4d7a;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.service-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 77, 122, 0) 0%, rgba(11, 77, 122, 0.45) 60%, rgba(11, 77, 122, 0.75) 100%);
    z-index: 1;
}

.service-tile > * { position: relative; z-index: 2; }

.service-tile--water { background-image: url('/assets/images/stock/water-damage.jpg'); background-size: cover; background-position: center; }
.service-tile--fire  { background-image: url('/assets/images/stock/fire-damage.jpg'); background-size: cover; background-position: center; }
.service-tile--mold  { background-image: url('/assets/images/stock/mold-remediation.jpg'); background-size: cover; background-position: center; }
.service-tile--storm { background-image: url('/assets/images/stock/house-exterior-storm.jpg'); background-size: cover; background-position: center; }

.service-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(11, 77, 122, 0.25);
}

.service-tile i {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #86c5ef;
}

.service-tile h3 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.service-tile p {
    font-size: 0.92rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.service-tile .tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #86c5ef;
}

/* ---------- About / specializations list ---------- */
.about-specs {
    max-width: 1000px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.about-spec {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
}

.about-spec i { color: #1d8fd6; }

/* ---------- 3 about tiles (home) ---------- */
.about-tiles {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .about-tiles { grid-template-columns: 1fr; }
}

.about-tile {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.about-tile .about-tile-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b4d7a, #1d8fd6);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.about-tile h3 {
    color: #0b4d7a;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.about-tile p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---------- CTA strip ---------- */
.cta-strip {
    background: linear-gradient(135deg, #0b4d7a 0%, #1d8fd6 100%);
    color: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
}

.cta-strip h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.cta-strip p {
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.cta-strip .btn {
    background: #d93025;
    color: #fff;
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
}

.cta-strip .btn:hover { background: #b3251d; }

/* ---------- Refreshed footer (overrides base) ---------- */
.footer {
    background: #0b3a5c;
    color: #cbd5e1;
    padding: 0;
    text-align: left;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 2rem;
    text-align: left;
}

@media (max-width: 1000px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .footer-logo {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.55;
    max-width: 360px;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.footer-social a:hover { background: #d93025; }

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-col p,
.footer-col li {
    font-size: 0.9rem;
    margin: 0.4rem 0;
}

.footer-col i { margin-right: 0.3rem; color: #86c5ef; }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.footer-bottom p { margin: 0; }

.footer-bottom a,
.footer-bottom a:link,
.footer-bottom a:visited,
.footer-bottom a:hover,
.footer-bottom a:active,
.footer-bottom a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* ---------- Responsive nav (mobile) ---------- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        padding-top: 1rem;
        gap: 0.5rem;
        align-items: stretch;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e2e8f0;
    }
    .nav-dropdown > .nav-link i { display: none; }
    .cta-btn { display: none; }
    .nav-toggle {
        display: block;
        order: 2;
    }
}

/* Slightly tighter top of hero so the dropdown doesn't clip */
header.header { overflow: visible; }

/* Ensure the body doesn't inherit a weird margin from the old hero */
.hero + .value-cards-section { background: transparent; }

/* ---------- About page extras ---------- */
.container-narrow {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.section p.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #2b3a4a;
    margin-bottom: 1.25rem;
}

.about-credentials {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-credentials-text h2 {
    margin: 0 0 1rem;
    font-size: 2rem;
    color: #0b3a5c;
}

.about-credentials-text p {
    color: #394b5c;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.credentials-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.credentials-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: #0b3a5c;
}

.credentials-list li i {
    color: #1d8fd6;
    font-size: 1.1rem;
}

.about-credentials-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(11, 58, 92, 0.15);
    display: block;
}

@media (max-width: 900px) {
    .about-credentials {
        grid-template-columns: 1fr;
    }
    .about-credentials-image {
        order: -1;
    }
}

/* ---------- Service detail page extras ---------- */
.service-detail-intro {
    max-width: 780px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #394b5c;
    font-size: 1.1rem;
    line-height: 1.7;
}

.service-checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    display: grid;
    gap: 0.6rem;
}

.service-checklist li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: #2b3a4a;
    line-height: 1.55;
}

.service-checklist li i {
    color: #1d8fd6;
    margin-top: 0.25rem;
}

.service-rail h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0b3a5c;
    margin: 0 0 0.75rem;
}

.service-rail ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.4rem;
}

.service-rail ul a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: #2b3a4a;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 0.95rem;
}

.service-rail ul a:hover,
.service-rail ul a.active {
    background: #eef6fc;
    color: #0b3a5c;
}

.service-rail-cta {
    background: linear-gradient(135deg, #0b4d7a 0%, #1d8fd6 100%);
    color: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}

.service-rail-cta h4 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: #fff;
}

.service-rail-cta p {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.service-rail-cta a {
    display: inline-block;
    background: #fff;
    color: #0b4d7a;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.service-rail-cta a:hover {
    background: #e6f2fa;
}

/* Testimonials page grid */
.testimonial-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ---------- Contact page layout ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 820px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-info-card {
    background: linear-gradient(160deg, #0b4d7a 0%, #1d8fd6 100%);
    color: #fff;
    padding: 2rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(11, 77, 122, 0.18);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info-card > * { position: relative; z-index: 1; }

.contact-info-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.contact-info-card h3 i { font-size: 0.85rem; }

.contact-info-card p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.92;
}

.contact-big-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
    margin: 0.25rem 0 0.5rem;
    transition: transform 0.15s ease;
}

.contact-big-number:hover {
    transform: translateX(3px);
    color: #fff;
}

.contact-form-card {
    background: #fff;
    padding: 2.25rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(11, 77, 122, 0.08);
    border: 1px solid #eef2f7;
}

.contact-form-card h2 {
    font-size: 1.65rem;
    margin: 0 0 0.5rem;
    color: #0b3a5c;
}

.contact-form-card > p {
    margin: 0 0 1.75rem;
    color: #556170;
    font-size: 0.95rem;
}

.contact-form-card .btn-primary {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d8fd6 0%, #0b4d7a 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(29, 143, 214, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    margin-top: 0.5rem;
}

.contact-form-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(29, 143, 214, 0.35);
    filter: brightness(1.05);
}

.contact-form-card .btn-primary:active {
    transform: translateY(0);
}

.contact-form-card .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-form-card .alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-form-card .alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.contact-form-card .alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Contact page extras */
.contact-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    background: #eef6fc;
    color: #0b4d7a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.contact-social a:hover {
    background: #dcebf7;
}

.home-find-online {
    margin-top: 2rem;
    text-align: center;
}

.home-find-online h3 {
    color: #0b4d7a;
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.home-find-online .contact-social {
    justify-content: center;
}
