/* Brand Colors */
:root {
    --primary-orange: #FFC107;
    --primary-orange-dark: #ff8c00;
    --primary-orange-light: #ff6b00;
    --brand-ink: #1f2933;

    --gradient-orange: linear-gradient(135deg, #ffa500, #ff6b00);
    --gradient-dark: linear-gradient(135deg, #2c3e50, #34495e);
}

/* Custom utility classes */
.bg-brand-orange {
    background-color: var(--primary-orange) !important;
}

.text-brand-orange {
    color: var(--primary-orange) !important;
}

.btn-brand-orange {
    background-color: var(--primary-orange) !important;
    color: white !important;
    border: none !important;
}

.btn-brand-orange:hover {
    background-color: var(--primary-orange-dark) !important;
    color: white !important;
}

.btn-brand-yellow {
    background-color: var(--primary-orange) !important;
    color: white !important;
    border: none !important;
}

.btn-brand-yellow:hover {
    background-color: var(--primary-orange-dark) !important;
    color: white !important;
}

.btn-outline-brand-light {
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: white !important;
}

.btn-outline-brand-light:hover {
    background: white !important;
    color: var(--brand-ink) !important;
}

.top-contact-link {
    color: var(--primary-orange) !important;
    text-decoration: none;
}

.top-contact-link:hover,
.footer-link:hover {
    text-decoration: underline;
}

.navbar-brand span {
    white-space: normal;
    line-height: 1.15;
}

.trust-stat-label {
    color: #6c757d;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 700;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 64px;
    padding: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.18);
    color: var(--primary-orange);
    font-weight: 800;
    line-height: 1;
}

.contact-strip {
    row-gap: 0.75rem;
}

.contact-strip a {
    font-weight: 700;
}

.bg-gradient-orange {
    background: var(--gradient-orange) !important;
}

.bg-gradient-dark {
    background: var(--gradient-dark) !important;
}

/* Gallery styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay .expand-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay .expand-icon {
    transform: scale(1);
}

/* Gallery lightbox */
#galleryModal {
    --bs-modal-bg: transparent;
}

#galleryModal .modal-content {
    background: transparent;
    border: none;
}

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
}

@media (max-width: 767.98px) {
    /* Scale down large headings on mobile */
    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .display-6 {
        font-size: 1.25rem;
    }

    /* Reduce hero section height */
    .position-relative[style*="min-height: 500px"],
    .d-flex[style*="min-height: 500px"] {
        min-height: 350px !important;
    }

    /* Reduce padding on sections */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Prevent long words/emails from overflowing */
    a, p, span, li, h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Reduce gallery modal height */
    .d-flex[style*="min-height: 80vh"] {
        min-height: 50vh !important;
    }

    /* Scale contact info layout */
    .d-flex.gap-4 {
        gap: 1rem !important;
    }

    .fs-5 {
        font-size: 1rem !important;
    }

    /* Gallery hover disabled on touch — keep overlay hidden */
    .gallery-overlay {
        display: none;
    }

    .gallery-item {
        border-radius: 0.5rem;
    }

    /* Reduce map height on mobile */
    .rounded.shadow.overflow-hidden[style*="height: 400px"] {
        height: 280px !important;
    }
}
