/*Global Responsive Typography */
/* Base responsive font sizing */
html {
    font-size: 16px;
}

/* Page titles - h1 with display classes */
h1.display-1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h1.display-2 {
    font-size: 3rem;
    line-height: 1.2;
}

h1.display-3 {
    font-size: 2.75rem;
    line-height: 1.2;
}

h1.display-4 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h1.display-5 {
    font-size: 2rem;
    line-height: 1.2;
}

h1.display-6 {
    font-size: 1.75rem;
    line-height: 1.2;
}

/* Standard headings */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h5 {
    font-size: 1.25rem;
    line-height: 1.4;
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
}

/* Lead text */
.lead {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Page title icons - relative sizing */
h1 i.me-2, h1 i.me-3 {
    font-size: 0.85em;
}

/* Divider icons */
.divider {
    font-size: 1.5rem !important;
}

/* Tablet responsiveness (768px - 991px) */
@media (max-width: 991px) {
    h1.display-1 {
        font-size: 2.75rem;
    }

    h1.display-2 {
        font-size: 2.5rem;
    }

    h1.display-3 {
        font-size: 2.25rem;
    }

    h1.display-4 {
        font-size: 2rem;
    }

    h1.display-5 {
        font-size: 1.75rem;
    }

    h1.display-6 {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.35rem;
    }

    h5 {
        font-size: 1.15rem;
    }

    h6 {
        font-size: 0.95rem;
    }

    .lead {
        font-size: 1.15rem;
    }

    .divider {
        font-size: 1.3rem !important;
    }
}

/* Mobile responsiveness (up to 767px) */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    h1.display-1 {
        font-size: 2rem;
    }

    h1.display-2 {
        font-size: 1.85rem;
    }

    h1.display-3 {
        font-size: 1.75rem;
    }

    h1.display-4 {
        font-size: 1.65rem;
    }

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

    h1.display-6 {
        font-size: 1.35rem;
    }

    h1 {
        font-size: 1.65rem;
    }

    h2 {
        font-size: 1.45rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    h6 {
        font-size: 0.95rem;
    }

    .lead {
        font-size: 1.05rem;
    }

    /* Page title icons - maintain relative sizing */
    h1 i.me-2, h1 i.me-3 {
        font-size: 0.8em;
    }

    /* Divider icons */
    .divider {
        font-size: 1.2rem !important;
    }

    /* Gallery section h2 */
    h2.display-6 {
        font-size: 1.4rem;
    }
}

/* Extra small mobile (up to 575px) */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }

    h1.display-1 {
        font-size: 1.75rem;
    }

    h1.display-2 {
        font-size: 1.65rem;
    }

    h1.display-3 {
        font-size: 1.6rem;
    }

    h1.display-4 {
        font-size: 1.5rem;
    }

    h1.display-5 {
        font-size: 1.4rem;
    }

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

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1.05rem;
    }

    h6 {
        font-size: 0.9rem;
    }

    .lead {
        font-size: 1rem;
    }

    /* Page title icons - further reduce */
    h1 i.me-2, h1 i.me-3 {
        font-size: 0.75em;
    }

    /* Divider icons */
    .divider {
        font-size: 1rem !important;
    }

    /* Gallery section h2 */
    h2.display-6 {
        font-size: 1.25rem;
    }

    /* Reduce body text padding */
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Carousel caption responsive text */
@media (max-width: 767px) {
    .carousel-caption h5 {
        font-size: 1.2rem !important;
    }

    .carousel-caption p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 575px) {
    .carousel-caption h5 {
        font-size: 1.1rem !important;
    }

    .carousel-caption p {
        font-size: 0.85rem !important;
    }
}

/* Card heading responsiveness */
@media (max-width: 767px) {
    .card-body h2.h5,
    .card-body h3,
    .card-body h4,
    .card-body h5 {
        font-size: 1.1rem;
    }

    .card-body h6 {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .card-body h2.h5,
    .card-body h3,
    .card-body h4,
    .card-body h5 {
        font-size: 1.05rem;
    }

    .card-body h6 {
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .carousel-caption h5 {
        font-size: 1.1rem !important;
    }

    .carousel-caption p {
        font-size: 0.85rem !important;
    }
}

/* Card heading responsiveness */
@media (max-width: 767px) {
    .card-body h2,
    .card-body h3,
    .card-body h4,
    .card-body h5 {
        font-size: inherit;
    }
}

/* Mobile-Responsive Header Styles */
/* Hide navbar items on mobile */
@media (max-width: 991px) {
    .navbar-desktop-items {
        display: none !important;
    }
}

/* Show navbar items on desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Smooth transitions */
.navbar-desktop-items {
    transition: all 0.3s ease;
}

/* Navbar styling improvements */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-desktop-items a {
    margin: 0 0.25rem;
    white-space: nowrap;
}

/* Enhanced Desktop Navbar Button Styles */
.navbar-desktop-items .btn,
.navbar-desktop-items a.btn {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* Hover effect for navbar buttons */
.navbar-desktop-items .btn:hover,
.navbar-desktop-items a.btn:hover {
    background-color: rgba(255, 193, 7, 0.15) !important;
    color: #ffc107 !important;
    transform: translateY(-2px);
}

/* Active/Focus state */
.navbar-desktop-items .btn:active,
.navbar-desktop-items .btn:focus,
.navbar-desktop-items a.btn:active,
.navbar-desktop-items a.btn:focus {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
}

/* Dropdown button specific styling */
.navbar-desktop-items .dropdown .btn:hover {
    background-color: rgba(255, 193, 7, 0.15) !important;
}

/* Underline effect on hover */
.navbar-desktop-items .btn::after,
.navbar-desktop-items a.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffc107;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-desktop-items .btn:hover::after,
.navbar-desktop-items a.btn:hover::after {
    width: 80%;
}

/* Dropdown styling */
.dropdown-menu {
    border-radius: 0.375rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown items hover */
.dropdown-menu .dropdown-item {
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding-left: 1.5rem;
    transform: translateX(5px);
}

.dropdown-menu .dropdown-item:active {
    background-color: rgba(255, 193, 7, 0.3);
}

/* Offcanvas styling */
.offcanvas {
    width: 100% !important;
}

@media (min-width: 576px) {
    .offcanvas {
        width: 400px !important;
    }
}

.offcanvas-body {
    padding: 1rem;
}

/* Fix for dropdown in offcanvas */
.offcanvas .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    animation: none;
}

/* Mobile menu items hover effect */
.offcanvas .nav-link {
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.offcanvas .nav-link:hover {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107 !important;
    padding-left: 1.5rem;
    transform: translateX(5px);
}

.offcanvas .dropdown-item:hover {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107 !important;
    padding-left: 1.5rem;
}

/* Logo hover effect */
.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.2);
}

/* Hamburger menu button hover */
.navbar-toggler {
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.navbar-toggler:hover {
    border-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Search button hover in mobile */
.offcanvas form button[type="submit"] {
    transition: all 0.3s ease;
}

.offcanvas form button[type="submit"]:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    transform: scale(1.05);
}

/* Smooth scrolling for page navigation */
html {
    scroll-behavior: smooth;
}

/* ===== Mobile Navigation Consistency ===== */
/* Ensure offcanvas matches desktop navbar theme */
.offcanvas {
    --bs-offcanvas-bg: #383d41;
}

.offcanvas-dark {
    --bs-offcanvas-bg: #383d41;
}

/* Mobile dropdown menu styling to match desktop */
.offcanvas .dropdown-menu {
    background-color: #2c3136;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.offcanvas .dropdown-item:hover,
.offcanvas .dropdown-item:focus {
    background-color: #3a3f44;
    color: #ffc107;
}

/* Mobile nav link hover effects to match desktop */
.offcanvas .nav-link {
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.offcanvas .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffc107 !important;
}

/* Offcanvas header consistency */
.offcanvas-header {
    background-color: #383d41;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Offcanvas body consistency */
.offcanvas-body {
    background-color: #383d41;
}

/* Close button styling */
.offcanvas .btn-close-white {
    filter: brightness(0) invert(1);
}

/* Mobile dropdown divider */
.offcanvas .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
