/* UZYHOMES - Quiet Luxury CSS */

/* ===== VARIABLES ===== */
:root {
    --color-ivory: #FAF9F7;
    --color-stone: #F5F3F0;
    --color-sand: #E8E4DD;
    --color-charcoal: #2D2D2D;
    --color-grey: #777777;
    --color-clay: #A68A6F;
    --color-linen: #D9D1C7;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--color-charcoal);
    background-color: var(--color-ivory);
    line-height: 1.6;
    overflow-x: hidden;
}

.quiet-luxury {
    background-color: var(--color-ivory);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
}

h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.8rem;
}

p {
    font-size: 1.1rem;
    color: var(--color-grey);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
}

.section-title {
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: var(--color-clay);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-grey);
    margin-bottom: 1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 1.5rem 0;
    background-color: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.fixed-top.scrolled {
    padding: 1rem 0;
    background-color: rgba(250, 249, 247, 0.98);
    box-shadow: var(--shadow-subtle);
}

/* Container */
.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
}

/* Logo styles */
.brand-logo {
    height: 200px;
    width: auto;
    transition: transform 0.4s ease, opacity 0.4s ease;
    max-width: 2500px;
    object-fit: contain;
    filter: contrast(1.1) brightness(0.9);
}

.navbar.scrolled .brand-logo {
    height: 150px;
}

.navbar-brand:hover .brand-logo {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* ----- DESKTOP NAVIGATION (992px and up) ----- */
@media (min-width: 992px) {
    /* Desktop layout: Left dropdown - Centered logo - Right icons */
    .navbar .container-fluid {
        justify-content: space-between;
        padding: 0 2rem;
    }
    
    /* Left side - Desktop dropdown */
    .desktop-dropdown-container {
        display: flex !important;
        align-items: center;
        min-width: 100px;
    }
    
    /* Center - Logo */
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Right side - Icons */
    .desktop-icons {
        display: flex !important;
        align-items: center;
        min-width: 100px;
    }
    
    /* Mobile elements - HIDE on desktop */
    .mobile-icons {
        display: none !important;
    }
    
    #mobileNav {
        display: none !important;
    }
    
    /* Desktop dropdown styling */
    .desktop-dropdown .dropdown-toggle {
        border: 1px solid var(--color-sand);
        padding: 0.5rem 0.75rem;
        background: transparent;
        border-radius: 0;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
    }
    
    .desktop-dropdown .dropdown-toggle:hover {
        border-color: var(--color-charcoal);
    }
    
    .desktop-dropdown .dropdown-toggle:focus {
        box-shadow: none;
    }
    
    .desktop-dropdown .dropdown-toggle::after {
        margin-left: 0.5em;
        vertical-align: 0.15em;
        transition: transform 0.3s ease;
        border-top: 0.3em solid var(--color-charcoal);
        border-right: 0.3em solid transparent;
        border-left: 0.3em solid transparent;
    }
    
    .desktop-dropdown .dropdown-menu {
        background-color: var(--color-ivory);
        border: 1px solid var(--color-sand);
        border-radius: 0;
        min-width: 220px;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        animation: fadeInUp 0.3s ease-out;
    }
    
    .desktop-dropdown .dropdown-item {
        font-family: var(--font-sans);
        font-weight: 300;
        font-size: 0.9rem;
        color: var(--color-charcoal);
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 0.75rem 1.5rem;
        transition: var(--transition);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-decoration: none;
    }
    
    .desktop-dropdown .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .desktop-dropdown .dropdown-item:hover {
        background-color: var(--color-stone);
        color: var(--color-charcoal);
    }
}

/* ----- MOBILE NAVIGATION (below 992px) ----- */
@media (max-width: 991.98px) {
    /* Hide desktop elements */
    .desktop-dropdown-container,
    .desktop-icons {
        display: none !important;
    }
    
    /* Show mobile icons container */
    .mobile-icons {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
    
    /* Style the toggle button - THIS IS ON THE LEFT */
    .mobile-icons .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: none;
        padding: 0.5rem;
        background: transparent;
        cursor: pointer;
        order: 1;
        margin-right: auto !important;
    }
    
    /* Style the search icon - THIS IS ON THE RIGHT */
    .mobile-icons a[href="#"]:first-of-type {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        order: 2;
        margin: 0 0.5rem;
    }
    
    /* Style the cart icon - THIS IS ON THE RIGHT */
    .mobile-icons a[href="/cart"] {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        order: 3;
    }
    
    /* Remove me-3 classes from mobile icons */
    .mobile-icons .nav-icon.me-3 {
        margin-right: 0 !important;
    }
    
    /* Add spacing between icons */
    .mobile-icons a[href="#"]:first-of-type,
    .mobile-icons a[href="/cart"] {
        margin-left: 1rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    .navbar-toggler-icon {
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        vertical-align: middle;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(45, 45, 45, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
    }
    
    /* Logo positioning for mobile - CENTERED */
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 0;
        text-align: center;
        z-index: 1;
    }
    
    /* Fix for the brand logo size on mobile - INCREASED SIZE */
    .brand-logo {
        height: 80px;  /* Increased from 200px for better mobile visibility */
        width: auto;
        max-width: 250px;  /* Increased from 200px */
        display: block;
    }
    
    /* Cart count badge positioning */
    .mobile-icons .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background-color: var(--color-clay);
        color: white;
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile dropdown menu */
    #mobileNav {
        background-color: var(--color-ivory);
        border-top: 1px solid var(--color-sand);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        box-shadow: var(--shadow-subtle);
    }
    
    #mobileNav .container-fluid {
        flex-direction: column;
        padding: 0;
        min-height: auto;
    }
    
    #mobileNav .navbar-nav {
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    #mobileNav .nav-link {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-charcoal);
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: var(--transition);
        display: block;
    }
    
    #mobileNav .nav-link:hover {
        background-color: var(--color-stone);
        color: var(--color-charcoal);
    }
    
    #mobileNav .border-top {
        border-top-color: rgba(0, 0, 0, 0.05) !important;
        margin-top: 0.5rem;
        padding-top: 1rem;
    }
    
    #mobileNav .btn-book {
        margin: 1rem 1.5rem;
        display: inline-block;
        text-align: center;
    }
}

/* ----- COMMON NAVIGATION STYLES (both mobile and desktop) ----- */
/* Navigation icons */
.nav-icon {
    color: var(--color-charcoal);
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    text-decoration: none;
}

.nav-icon:hover {
    color: var(--color-clay);
}

.nav-icon i {
    font-size: 1.1rem;
    display: inline-block;
    line-height: 1;
    color: var(--color-charcoal);
    transition: var(--transition);
}

.nav-icon:hover i {
    color: var(--color-clay);
}

/* Specific fix for user icon */
a[href="/login"] .fa-user {
    font-size: 1.1rem;
    color: var(--color-charcoal);
}

a[href="/login"]:hover .fa-user {
    color: var(--color-clay);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-clay);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-book {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--color-charcoal);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--color-charcoal);
    border-radius: 0;
    transition: var(--transition);
    letter-spacing: 1px;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
}

.btn-book:hover {
    background-color: var(--color-charcoal);
    color: var(--color-ivory);
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.hero-buttons .btn {
    padding: 0.8rem 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-width: 1px;
    border-radius: 0;
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

/* ===== SECTION SPACING ===== */
.section-py {
    padding: 6rem 0;
}

/* ===== BRAND ESSENCE ===== */
.essence-image {
    position: relative;
}

.essence-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-sand);
    z-index: -1;
}

.essence-image img {
    transition: var(--transition);
}

.essence-image:hover img {
    transform: scale(1.02);
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: white;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    padding: 0.8rem 2rem;
    letter-spacing: 1px;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-grey);
    letter-spacing: 1px;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.service-card:hover {
    background-color: white;
    box-shadow: var(--shadow-subtle);
}

.service-icon {
    font-size: 2rem;
    color: var(--color-clay);
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-linen);
    transform: rotate(45deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-link {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--color-charcoal);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--color-clay);
}

/* ===== BEFORE/AFTER SLIDER ===== */
.before-after-slider {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-image img, .after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    width: 50%;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: white;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    background-color: transparent;
}

/* ===== PORTFOLIO ===== */
.portfolio-item {
    position: relative;
    display: block;
    overflow: hidden;
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-overlay span {
    color: white;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* ===== TESTIMONIAL ===== */
.testimonial {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-charcoal);
    line-height: 1.6;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
}

.testimonial::before,
.testimonial::after {
    content: '"';
    font-size: 4rem;
    color: var(--color-linen);
    position: absolute;
    height: 40px;
}

.testimonial::before {
    top: -20px;
    left: 0;
}

.testimonial::after {
    bottom: -40px;
    right: 0;
}

.testimonial-author {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--color-grey);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background-color: var(--color-stone);
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 2px;
    border-radius: 0;
    transition: var(--transition);
}

.cta-buttons .btn-dark {
    background-color: var(--color-charcoal);
    border-color: var(--color-charcoal);
}

.cta-buttons .btn-dark:hover {
    background-color: transparent;
    color: var(--color-charcoal);
}

.cta-buttons .btn-outline-dark:hover {
    background-color: var(--color-charcoal);
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #F5F3F0; /* Light stone color - same as bg-light */
    color: var(--color-grey);
    padding: 4rem 0 2rem;
}

/* Simple footer spacing */
.footer .navbar-brand {
    display: block;
    margin-bottom: 1.5rem;
}

.footer .navbar-brand .brand-name {
    color: rgb(17, 17, 17);
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.3;
}

.footer-text {
    color: #0e0d0d;
    font-size: 1rem;
    max-width: 300px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer h5 {
    color: rgb(12, 12, 12);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
    line-height: 1.5;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links.inline {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    justify-content: flex-end;
}

.footer-links.inline li {
    margin-bottom: 0;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 2rem;
}

.copyright {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ===== BUTTONS ===== */
.btn {
    font-family: var(--font-sans);
    font-weight: 300;
    letter-spacing: 1px;
    border-radius: 0;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}

.btn-outline-light, .btn-outline-dark {
    border-width: 1px;
}

.btn-lg {
    padding: 0.8rem 2.5rem;
}

/* ===== UTILITIES ===== */
.bg-light {
    background-color: var(--color-stone) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .hero-title { font-size: 3rem; }
    .section-py { padding: 4rem 0; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-section { height: 80vh; min-height: 600px; }
    .testimonial { font-size: 1.2rem; }
    .brand-logo { 
        height: 100px;  /* Increased from 40px for tablet */
        max-width: 220px;  /* Added max-width control */
    }
    .navbar { padding: 1rem 0; }
    
    /* Footer mobile styles */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer .row {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer .col-lg-4,
    .footer .col-md-2,
    .footer .col-md-3 {
        width: 100%;
        text-align: center;
    }
    
    .footer .navbar-brand .brand-name {
        font-size: 1.8rem;
    }
    
    .footer-text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 1rem;
    }
    
    .footer-links.inline {
        justify-content: center;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn,
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    .hero-buttons .btn.me-3,
    .cta-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
    .mobile-icons a[href="#"]:first-of-type,
    .mobile-icons a[href="/cart"] {
        margin-left: 0.75rem;
    }
    .nav-icon { 
        width: 22px;  /* Slightly increased icon size */
        height: 22px;
    }
    .brand-logo { 
        height: 150px;  /* Increased from 35px for better mobile visibility */
        max-width: 300px;  /* Increased from 140px */
    }
    .navbar .container-fluid { 
        padding: 0 0.5rem; 
    }
    
    .footer {
        padding: 2.5rem 0 1.25rem;
    }
    
    .footer .navbar-brand .brand-name {
        font-size: 1.7rem;
    }
    
    .footer-text {
        margin-top: 0.5rem;
    }
    
    .footer h5 {
        font-size: 0.95rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .brand-logo {
        height: 50px;  /* Slightly smaller for very small screens */
        max-width: 160px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== FLOATING SOCIAL WIDGET ===== */
.floating-social-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: var(--font-sans);
}

.social-widget-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--color-charcoal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    margin-left: auto;
    margin-bottom: 10px;
}

.social-widget-toggle:hover {
    background-color: var(--color-clay);
    transform: scale(1.05);
}

.social-widget-content {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 280px;
    background-color: white;
    border: 1px solid var(--color-sand);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.floating-social-widget.active .social-widget-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-widget-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--color-sand);
}

.social-widget-header h6 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-charcoal);
    margin-bottom: 0.25rem;
}

.social-widget-header p {
    font-size: 0.85rem;
    color: var(--color-grey);
    margin-bottom: 0;
}

.social-widget-links {
    padding: 1rem 1.5rem 1.5rem;
}

.social-widget-links .social-icon {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--color-charcoal);
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.social-widget-links .social-icon:hover {
    background-color: var(--color-stone);
    transform: translateX(-3px);
}

.social-widget-links .social-icon i {
    width: 30px;
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.social-widget-links .social-icon span {
    font-size: 0.9rem;
    font-weight: 300;
}

.social-icon.instagram:hover {
    color: #E4405F;
}

.social-icon.pinterest:hover {
    color: #BD081C;
}

.social-icon.facebook:hover {
    color: #1877F2;
}

.social-icon.youtube:hover {
    color: #FF0000;
}

@media (max-width: 768px) {
    .floating-social-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .social-widget-toggle {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    
    .social-widget-content {
        width: 260px;
        bottom: 76px;
    }
}

@media (max-width: 576px) {
    .floating-social-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .social-widget-toggle {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
    
    .social-widget-content {
        width: 250px;
        right: -10px;
    }
}

/* FINAL FIX - ADD THIS AT THE VERY END */
.footer .navbar-brand {
    margin-bottom: 2rem !important;
    display: block !important;
}

.footer-text {
    margin-top: 1.5rem !important;
    display: block !important;
}

/* Sidebar Styles */
.sidebar {
    padding-left: 2rem;
}

.sidebar-widget {
    margin-bottom: 3rem;
}

.sidebar-widget h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sand);
    color: var(--dark);
}

.sidebar-about p {
    color: var(--grey);
    line-height: 1.8;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    color: var(--grey);
    text-decoration: none;
    transition: var(--transition);
}

.category-list li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.category-list li a span {
    color: var(--sand);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--light);
    color: var(--grey);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--sand);
    transition: var(--transition);
}

.tag-cloud a:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

@media (max-width: 992px) {
    .sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }
}