/* =========================================
   contact.css — page-specific styles
   Extends: assets/css/styles.css
   All root variables from styles.css are
   available here — do NOT redefine :root.
   ========================================= */

/* ── Shared page-hero & breadcrumb ── */
.page-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    overflow: hidden;
    background: var(--navy);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .20;
    animation: slowZoom 22s ease-in-out infinite alternate;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(10, 22, 40, .97) 0%,
            rgba(10, 22, 40, .72) 60%,
            rgba(215, 38, 56, .12) 100%);
}

.page-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
}

.breadcrumb-custom {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.breadcrumb-custom li {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, .55);
    transition: color var(--transition);
}

.breadcrumb-custom a:hover {
    color: var(--red);
}

.breadcrumb-custom i {
    font-size: .6rem;
    color: rgba(255, 255, 255, .3);
}

.breadcrumb-custom [aria-current="page"] {
    color: var(--gold);
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: .04em;
    line-height: 1.05;
    color: var(--white);
    animation: fadeInUp .8s ease both;
}

.page-hero__title span {
    color: var(--red);
}

.page-hero__sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .65);
    max-width: 600px;
    line-height: 1.7;
    margin-top: 1.2rem;
    animation: fadeInUp .9s .15s ease both;
}

/* ── Emergency Strip ── */
.contact-emergency-strip {
    background: var(--navy-mid);
    border-bottom: 2px solid rgba(215, 38, 56, .3);
    padding: 1rem 0;
}

.ces-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.ces-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ces-icon {
    font-size: 1.6rem;
    color: var(--red);
    animation: pulseDot 1.4s ease infinite;
}

.ces-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .92rem;
    color: var(--white);
}

.ces-sublabel {
    font-size: .78rem;
    color: rgba(255, 255, 255, .5);
    margin-top: .1rem;
}

.ces-number {
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: .06em;
    color: var(--white);
    background: var(--red);
    padding: .5rem 1.6rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    box-shadow: var(--shadow-red);
    transition: all var(--transition);
}

.ces-number:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(215, 38, 56, .4);
}

/* ── Main Contact Section ── */
.contact-main {
    padding: 90px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.contact-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Override contact-info-card for navy background (matches styles.css definition) */
.contact-main .contact-info-card {
    /* inherits from styles.css — no override needed */
}

/* Map inside contact page */
.contact-map-wrap {
    margin-top: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, .08);
    height: 260px;
}

.contact-map-wrap #map {
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* ── Contact form wrapper overrides ── */
.cf-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: .04em;
    color: var(--navy);
    margin-bottom: .5rem;
}

.cf-sub {
    font-size: .92rem;
    color: var(--gray-600);
    margin-bottom: 1.8rem;
    line-height: 1.65;
}

/* Alert boxes (server-side feedback) */
.cf-alert {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.55;
}

.cf-alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.cf-alert--success {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #15803d;
}

.cf-alert--success i {
    color: #22c55e;
}

.cf-alert--error {
    background: rgba(215, 38, 56, .08);
    border: 1px solid rgba(215, 38, 56, .3);
    color: var(--red-dark);
}

.cf-alert--error i {
    color: var(--red);
}

/* ── FAQ Section ── */
.contact-faq {
    padding: 90px 0;
    background: var(--off-white);
}

.faq-accordion {
    gap: .75rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    margin-bottom: .75rem;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .97rem;
    color: var(--navy);
    background: var(--white);
    padding: 1.2rem 1.5rem;
    border: none;
    box-shadow: none !important;
}

.faq-btn:not(.collapsed) {
    color: var(--red);
    background: var(--white);
}

.faq-btn::after {
    /* Bootstrap's default chevron — keep it, just tint it */
    filter: none;
}

.faq-btn:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23D72638' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.faq-body {
    font-size: .93rem;
    color: var(--gray-600);
    line-height: 1.72;
    padding: 0 1.5rem 1.4rem;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

/* ── Navbar dropdown overrides ─────────────────────────────── */
/* Applied globally here so all pages that load contact.css 
   also get these; if you prefer, move to styles.css globally. */

.nav-dropdown {
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: .5rem;
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    margin-top: .5rem;
}

.nav-dropdown .dropdown-item {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .88rem;
    color: rgba(255, 255, 255, .7);
    border-radius: 6px;
    padding: .55rem .9rem;
    transition: all var(--transition);
    display: flex;
    align-items: center;
}

.nav-dropdown .dropdown-item i {
    width: 18px;
    color: var(--red);
    flex-shrink: 0;
}

.nav-dropdown .dropdown-item:hover {
    background: rgba(215, 38, 56, .15);
    color: var(--white);
}

.nav-dropdown .dropdown-all {
    color: var(--gold);
    font-weight: 700;
}

.nav-dropdown .dropdown-all i {
    color: var(--gold);
}

.nav-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, .08);
    margin: .3rem .4rem;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .ces-inner {
        flex-direction: column;
        text-align: center;
    }

    .ces-left {
        justify-content: center;
    }
}

@media (max-width: 767px) {

    .contact-main,
    .contact-faq {
        padding: 60px 0;
    }

    .page-hero {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .page-hero__title {
        font-size: 2.6rem;
    }

    .contact-map-wrap {
        height: 200px;
    }

    .ces-number {
        font-size: 1.3rem;
    }
}