/* =============================================
   C&D Engineering - Main Stylesheet
   Color Palette: Navy Blue + White
   ============================================= */

:root {
    --primary:     #0d2b55;
    --secondary:   #1565c0;
    --accent:      #42a5f5;
    --accent-light:#e3f2fd;
    --bg-light:    #f4f8fc;
    --text-dark:   #1e293b;
    --text-muted:  #64748b;
    --white:       #ffffff;
    --border:      #dbeafe;
    --shadow:      0 4px 24px rgba(13,43,85,0.10);
    --shadow-lg:   0 8px 40px rgba(13,43,85,0.16);
}

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; transition: color .25s; }
img { max-width: 100%; }

/* ---- Utility ---- */
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 60px 0; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .5rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}
.divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
    margin: 12px auto 24px;
}
.divider-left { margin-left: 0; }

.btn-primary-custom {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    display: inline-block;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21,101,192,.35);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.7);
    padding: 11px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
    display: inline-block;
}
.btn-outline-custom:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--white);
    color: var(--white);
}

/* ====================================================
   NAVBAR
   ==================================================== */
.navbar-custom {
    background: var(--primary);
    padding: 0;
    box-shadow: 0 2px 16px rgba(13,43,85,.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
    flex-shrink: 0;
}

.brand-text .brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: .5px;
}
.brand-text .brand-tagline {
    font-size: .72rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 600;
    padding: 24px 16px !important;
    transition: all .3s;
    font-size: .95rem;
    position: relative;
}
.navbar-custom .nav-link:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .3s;
}
.navbar-custom .nav-link:not(.nav-cta):hover::after,
.navbar-custom .nav-link:not(.nav-cta).active::after {
    transform: scaleX(1);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--white) !important;
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255,255,255,.3);
}
.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    margin-left: 15px;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(66,165,245,0.3);
    transition: all .3s !important;
}
.nav-cta:hover {
    background: var(--white) !important;
    color: var(--secondary) !important;
    box-shadow: 0 6px 18px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.nav-cta i { margin-right: 8px; }

/* ====================================================
   HERO
   ==================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 60%, #1976d2 100%);
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 500px; height: 500px;
    background: rgba(66,165,245,.08);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(66,165,245,.18);
    color: var(--accent);
    border: 1px solid rgba(66,165,245,.3);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero h1 span { color: #80c4ff; text-shadow: 0 0 20px rgba(0,0,0,0.1); }

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.82);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.hero-stat .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.hero-stat .label {
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hero-visual {
    position: relative;
    z-index: 1;
}
.hero-card {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    color: var(--white);
}
.hero-card .icon-wrap {
    width: 72px; height: 72px;
    background: rgba(66,165,245,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
}
.hero-card h4 { font-weight: 700; margin-bottom: 8px; }
.hero-card p { font-size: .9rem; color: rgba(255,255,255,.75); margin: 0; }

.hero-card-mini {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 14px 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.hero-card-mini i { color: var(--accent); font-size: 1.2rem; }
.hero-card-mini span { font-size: .88rem; font-weight: 600; }

/* ====================================================
   SERVICES
   ==================================================== */
.services { background: var(--bg-light); }

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.service-icon {
    width: 64px; height: 64px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--secondary);
    transition: background .25s;
}
.service-card:hover .service-icon {
    background: var(--secondary);
    color: var(--white);
}
.service-card h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.service-card p {
    color: var(--text-muted);
    font-size: .9rem;
    margin: 0;
}

/* ====================================================
   WHY CHOOSE US
   ==================================================== */
.why-us { background: var(--white); }

.why-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    transition: box-shadow .2s;
    height: 100%;
}
.why-item:hover { box-shadow: var(--shadow); }

.why-icon {
    width: 48px; height: 48px;
    background: var(--secondary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.why-item h6 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    font-size: .98rem;
}
.why-item p { color: var(--text-muted); font-size: .88rem; margin: 0; }

/* ====================================================
   CLIENTS
   ==================================================== */
.clients { background: var(--primary); }
.clients .section-title { color: var(--white); }
.clients .section-subtitle { color: rgba(255,255,255,.65); }

.client-badge {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    padding: 18px 28px;
    text-align: center;
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    transition: all .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.client-badge:hover {
    background: rgba(66,165,245,.18);
    border-color: var(--accent);
    transform: translateY(-3px);
}
.client-badge i { font-size: 1.6rem; color: var(--accent); }

/* ====================================================
   ABOUT
   ==================================================== */
.about { background: var(--bg-light); }

.about-img-wrap {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.about-img-wrap::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.about-img-wrap .big-icon {
    font-size: 4.5rem;
    margin-bottom: 16px;
    color: var(--accent);
    position: relative;
}
.about-img-wrap h3 { font-weight: 800; font-size: 1.5rem; }
.about-img-wrap p { color: rgba(255,255,255,.75); font-size: .9rem; }

.about-stat-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.about-stat {
    flex: 1;
    min-width: 100px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 12px;
}
.about-stat .num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
}
.about-stat .lbl { font-size: .8rem; color: var(--text-muted); }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: .95rem;
    color: var(--text-dark);
}
.check-list li i { color: var(--secondary); margin-top: 3px; flex-shrink: 0; }

/* ====================================================
   TESTIMONIALS
   ==================================================== */
.testimonials { background: var(--white); }

.testi-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
    position: relative;
}
.testi-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--accent);
    line-height: 1;
    position: absolute;
    top: 12px; left: 20px;
    font-family: Georgia, serif;
    opacity: .4;
}
.testi-card p {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 20px;
    padding-top: 24px;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testi-avatar {
    width: 44px; height: 44px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
}
.testi-author .name { font-weight: 700; font-size: .9rem; color: var(--primary); }
.testi-author .company { font-size: .78rem; color: var(--text-muted); }
.stars { color: #f59e0b; font-size: .85rem; margin-bottom: 4px; }

/* ====================================================
   CONTACT
   ==================================================== */
.contact { background: var(--primary); }
.contact .section-title { color: var(--white); }
.contact .section-subtitle { color: rgba(255,255,255,.65); }

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-icon {
    width: 44px; height: 44px;
    background: rgba(66,165,245,.18);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-info-item .title { font-weight: 700; color: var(--white); font-size: .9rem; }
.contact-info-item .val { color: rgba(255,255,255,.7); font-size: .88rem; }

.contact-form-wrap {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    padding: 36px;
}
.contact-form-wrap .form-control,
.contact-form-wrap .form-select {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white);
    border-radius: 8px;
    padding: 12px 16px;
}
.contact-form-wrap .form-control::placeholder { color: rgba(255,255,255,.45); }
.contact-form-wrap .form-control:focus,
.contact-form-wrap .form-select:focus {
    background: rgba(255,255,255,.15);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(66,165,245,.2);
    color: var(--white);
}
.contact-form-wrap .form-select option { background: var(--primary); color: var(--white); }
.contact-form-wrap label { color: rgba(255,255,255,.8); font-size: .88rem; margin-bottom: 6px; font-weight: 500; }
.contact-form-wrap textarea.form-control { resize: none; }

/* ====================================================
   FOOTER
   ==================================================== */
footer {
    background: #061a36;
    color: rgba(255,255,255,.7);
    padding: 56px 0 0;
}
.footer-brand { margin-bottom: 16px; }
.footer-brand .brand-name { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.footer-brand .brand-tagline { font-size: .75rem; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }
.footer-desc { font-size: .88rem; line-height: 1.8; margin-bottom: 20px; }

.footer h6 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: .95rem;
    letter-spacing: .3px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: .88rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,.65);
}
.footer-contact i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .82rem;
}
.footer-bottom span { color: var(--accent); }

/* ====================================================
   FLOATING CTA
   ==================================================== */
.float-call {
    position: fixed;
    bottom: 28px; right: 28px;
    background: var(--secondary);
    color: var(--white);
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(21,101,192,.4);
    z-index: 999;
    transition: transform .2s, box-shadow .2s;
}
.float-call:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(21,101,192,.5);
    color: var(--white);
}

/* ====================================================
   SCROLL REVEAL
   ==================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 991.98px) {
    .hero { min-height: auto; padding: 60px 0; }
    .hero-visual { margin-top: 40px; }
    .hero-stats { gap: 20px; }
    .section-padding { padding: 60px 0; }
}

@media (max-width: 767.98px) {
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 16px; }
    .hero-stat .num { font-size: 1.4rem; }
    .section-title { font-size: 1.6rem; }
    .about-stat-row { gap: 12px; }
    .contact-form-wrap { padding: 24px 18px; }
    .footer-bottom { text-align: center; justify-content: center; }
    .float-call { bottom: 18px; right: 18px; width: 50px; height: 50px; font-size: 1.2rem; }
}

@media (max-width: 575.98px) {
    .hero { padding: 50px 0 40px; }
    .hero-stats { flex-direction: row; gap: 12px; }
    .btn-primary-custom, .btn-outline-custom { width: 100%; text-align: center; margin-bottom: 10px; }
}

/* ====================================================
   GALLERY
   ==================================================== */
.gallery-filters {
    margin-bottom: 40px;
}
.filter-btn {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    outline: none !important;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--secondary);
    color: var(--white) !important;
    border-color: var(--secondary);
    box-shadow: 0 6px 15px rgba(21,101,192,.3);
    transform: translateY(-2px);
}

.gallery-item {
    margin-bottom: 30px;
}
.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}
.gallery-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform .5s;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(13,43,85,.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity .3s;
}
.gallery-card:hover img { transform: scale(1.1); }
.gallery-card:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h6 { color: var(--white); font-weight: 700; margin-bottom: 4px; }
.gallery-overlay span { color: var(--accent); font-size: .8rem; font-weight: 600; text-transform: uppercase; }

/* Additional Gallery Fixes */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-overlay {
    padding-bottom: 30px !important;
}

.gallery-overlay h6 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.gallery-overlay span {
    background: rgba(66,165,245,0.2);
    padding: 2px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* ====================================================
   HERO CAROUSEL
   ==================================================== */
.hero-slide-img {
    height: 320px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    background: linear-gradient(to top, rgba(13,43,85,0.92), transparent);
    padding: 28px 20px 14px;
    text-align: left;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: 0;
}
.hero-caption i { color: var(--accent); }
.hero-caption span { color: var(--white); }

.hero-indicators {
    bottom: 10px;
    margin-bottom: 0;
}
.hero-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    transition: background .3s, transform .3s;
}
.hero-indicators .active {
    background: var(--accent) !important;
    transform: scale(1.3);
}

.hero-ctrl {
    width: 38px;
    height: 38px;
    background: rgba(13,43,85,0.55) !important;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity .3s;
}
#heroCarousel:hover .hero-ctrl { opacity: 1; }
.hero-ctrl span { width: 14px; height: 14px; }

/* Crossfade transition */
#heroCarousel .carousel-item {
    transition: opacity .8s ease-in-out !important;
}

/* ====================================================
   ABOUT HOME SECTION
   ==================================================== */
.about-home-section {
    background: var(--white);
}

/* Logo wrapper */
.cd-logo-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cd-logo-svg {
    width: 100%;
    max-width: 280px;
    filter: drop-shadow(0 12px 32px rgba(13,43,85,0.15));
    transition: transform .4s ease, filter .4s ease;
}
.cd-logo-svg:hover {
    transform: scale(1.04) rotate(-1deg);
    filter: drop-shadow(0 18px 40px rgba(21,101,192,0.22));
}

.cd-logo-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--secondary);
    border: 1px solid var(--border);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Right-side text */
.about-home-label {
    display: inline-block;
    background: var(--accent-light);
    color: var(--secondary);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--border);
}

.about-home-lead {
    font-size: 1.13rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.about-home-body {
    color: var(--text-muted);
    font-size: .96rem;
    line-height: 1.8;
}

/* Mini stat boxes */
.ah-stat {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 10px;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}
.ah-stat:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.ah-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}
.ah-stat-lbl {
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 4px;
}

/* Outline button fix for light bg */
.btn-outline-light-custom {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 11px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
    display: inline-block;
}
.btn-outline-light-custom:hover {
    background: var(--secondary);
    color: var(--white);
}

/* ====================================================
   CONTACT PAGE (contact.php) — Light theme
   ==================================================== */

/* Info cards row */
.cp-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    height: 100%;
}
.cp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.cp-card-icon {
    width: 60px; height: 60px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: var(--secondary);
    transition: background .25s, color .25s;
}
.cp-card:hover .cp-card-icon {
    background: var(--secondary);
    color: var(--white);
}
.cp-card h6 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    font-size: .95rem;
}
.cp-card p, .cp-card a {
    color: var(--text-muted);
    font-size: .88rem;
    margin: 0;
}
.cp-card a:hover { color: var(--secondary); }

/* Light form (white bg) */
.cp-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow);
}
.cp-form-wrap .form-control,
.cp-form-wrap .form-select {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-dark);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .93rem;
}
.cp-form-wrap .form-control:focus,
.cp-form-wrap .form-select:focus {
    background: var(--white);
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(21,101,192,.12);
    color: var(--text-dark);
}
.cp-form-wrap label {
    color: var(--text-dark);
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.cp-form-wrap textarea.form-control { resize: none; }

/* Map wrapper */
.map-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: 300px;
}
.map-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    filter: saturate(.9) contrast(1.05);
}

/* Hours box */
.hours-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 20px;
}
.hours-box h6 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: .87rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { color: var(--text-dark); font-weight: 500; }
.hours-row .time { color: var(--secondary); font-weight: 600; }
.hours-row.emergency .time {
    color: #e53935;
    font-weight: 700;
}

/* Right panel info items (light) */
.cp-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.cp-info-icon {
    width: 40px; height: 40px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary);
    font-size: 1rem;
    flex-shrink: 0;
}
.cp-info-item .cp-title { font-weight: 700; color: var(--primary); font-size: .88rem; }
.cp-info-item .cp-val  { color: var(--text-muted); font-size: .85rem; }
.cp-info-item a.cp-val { color: var(--secondary); }
.cp-info-item a.cp-val:hover { text-decoration: underline; }

/* Alert success */
.form-success {
    display: none;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: .9rem;
    font-weight: 500;
    margin-top: 16px;
}

@media (max-width: 767.98px) {
    .cp-form-wrap { padding: 22px 16px; }
    .map-wrap { height: 240px; }
}
