:root {
    /* Colors - Earthy Beige and Terracotta theme */
    --clr-primary: #C35B30; /* Warm Rust/Terracotta */
    --clr-primary-dark: #A14320;
    --clr-secondary: #D4A373; /* Earthy sand/gold */
    --clr-bg-light: #F9F6F0; /* Creamy off-white/beige background */
    --clr-bg-dark: #ECE7DF; /* Slightly darker sand for offset sections */
    --clr-surface: #FFFFFF;
    --clr-surface-dark: #FFFFFF; /* High-contrast white cards */
    
    --clr-text: #3D352E; /* Warm Espresso/Brown Gray for text */
    --clr-text-light: #FFFFFF; /* Retained for dark images/overlays */
    --clr-text-muted: #5D544F;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Variables */
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg-light);
}

body {
    overflow-x: hidden;
}

/* Typography Utils */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

.text-center { text-align: center; }
.text-light { color: var(--clr-text-light); }
.text-light-dim { color: rgba(255, 255, 255, 0.8); }
.text-gray { color: var(--clr-text-muted); }
.max-w-lg { max-width: 600px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.bg-dark { background-color: var(--clr-bg-dark); }
.section-padding { padding: 5rem 0; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .grid-2-col { grid-template-columns: 1fr 1fr; }
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3-col { grid-template-columns: repeat(3, 1fr); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
    color: white;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.4);
}

.btn-outline {
    border-color: var(--clr-primary-dark);
    color: var(--clr-primary-dark);
    background: transparent;
}

.btn-outline:hover {
    background: var(--clr-primary-dark);
    color: white;
}

.btn-light {
    background: white;
    color: var(--clr-primary);
}

.btn-light:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--clr-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--clr-text);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9); /* ensures text is visible against hero */
    padding: 2px 8px;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .logo-img {
        height: 80px;
        max-height: 100px;
    }
}

.navbar.scrolled .logo-img {
    height: 50px;
    background: transparent; /* white bg not needed when navbar is white */
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta { display: none; }
@media (min-width: 768px) {
    .nav-cta { display: inline-block; }
}

/* Mobile Menu Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

@media (min-width: 768px) {
    .menu-toggle { display: none; }
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.navbar.scrolled .menu-toggle span,
.menu-toggle.active span {
    background: var(--clr-text);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    transform: translateY(-20px);
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--clr-text);
    text-decoration: none;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background: #1e1510; /* Dark fallback background for color contrast compliance during image load */
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* Slight zoom for potential animation */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-outline {
    border-color: white;
    color: white;
}

.hero .btn-outline:hover {
    background: white;
    color: var(--clr-primary-dark);
}

/* About Section */
.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    background: #FFF3E0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.glass-border {
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Services */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(61, 53, 46, 0.08);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(61, 53, 46, 0.05);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(61, 53, 46, 0.15);
    box-shadow: 0 20px 40px rgba(61, 53, 46, 0.15);
}

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glass-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    color: var(--clr-text);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--clr-text);
}

.card-content p {
    color: var(--clr-text-muted);
    line-height: 1.6;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 600px) {
    .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
    .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--clr-primary);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.process-step h3 {
    margin-bottom: 0.5rem;
}

/* CTA */
.gradient-bg {
    background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary), var(--clr-secondary));
    position: relative;
    overflow: hidden;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #000;
    padding: 4rem 0 2rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
    border-radius: 8px;
    background: white; /* ensures dark text is visible in dark footer */
    padding: 0.5rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.75); /* High-contrast light text for black background */
    margin-bottom: 0.5rem;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.75) !important; /* High-contrast social links */
}

.footer-socials a:hover {
    color: var(--clr-primary) !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.75) !important; /* High-contrast custom links */
}

.footer a:hover {
    color: var(--clr-primary) !important;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* CART SYSTEM styles */
.cart-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--clr-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
}

.cart-floating-btn:hover {
    transform: scale(1.05);
    background: var(--clr-primary-dark);
}

.cart-floating-btn.cart-pop {
    animation: cartPopAnimation 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartPopAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E74C3C;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--clr-bg-light);
}

.cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1; pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0; right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--clr-surface-dark);
    color: var(--clr-text);
    z-index: 1002;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active { right: 0; }

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 { font-family: var(--font-heading); margin: 0; color: var(--clr-text); }

.cart-close {
    background: none; border: none; color: var(--clr-text);
    font-size: 2rem; cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-item h4 { margin-bottom: 0.25rem; font-family: var(--font-heading); color: var(--clr-text); }
.text-muted { color: var(--clr-text-muted); }

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.cart-item-price { font-weight: bold; color: var(--clr-primary); }

.qty-controls {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(0,0,0,0.05);
    border-radius: 20px; padding: 0.2rem 0.5rem;
}

.qty-controls button {
    background: none; border: none; color: var(--clr-text);
    font-size: 1.2rem; cursor: pointer; padding: 0 0.5rem;
}

.cart-footer {
    padding: 1.5rem;
    background: var(--clr-bg-dark);
    border-top: 1px solid rgba(0,0,0,0.1);
}

.cart-total {
    display: flex; justify-content: space-between;
    font-size: 1.25rem; font-weight: bold; font-family: var(--font-heading);
    color: var(--clr-text);
}

/* Checkout Page Styles */
.bg-light { background: #F8F9FA; color: var(--clr-text); }
.success-card { background: white; margin-top: 2rem; border-color: rgba(0,0,0,0.1); box-shadow: 0 10px 40px rgba(0,0,0,0.05); border-radius: var(--border-radius); }

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media(min-width: 900px) {
    .checkout-grid { grid-template-columns: 1.5fr 1fr; }
}

.checkout-form-side {
    background: white; padding: 2rem; border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-section-title {
    font-family: var(--font-heading); color: var(--clr-text);
    border-bottom: 2px solid var(--clr-primary); padding-bottom: 0.5rem; margin-bottom: 1.5rem; display: inline-block;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; color: #555; }
.form-group input {
    width: 100%; padding: 0.8rem 1rem;
    border: 1px solid #ddd; border-radius: 8px;
    font-family: var(--font-body); outline: none; transition: var(--transition);
}

.form-group input:focus { border-color: var(--clr-primary); box-shadow: 0 0 0 3px rgba(211,84,0,0.1); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .checkout-form-side {
        padding: 1.5rem 1rem;
    }
}

.square-mock-container {
    background: #f9fafc; border: 1px solid #e1e4e8; border-radius: 8px; padding: 1.5rem;
}

.sq-input-wrapper {
    position: relative;
    display: flex; align-items: center;
}
.sq-input-wrapper svg {
    position: absolute; left: 1rem; color: #aaa;
}
.sq-input-wrapper input { padding-left: 3rem; }

.checkout-summary-side .cart-drawer.static-summary {
    position: static; width: 100%; height: auto; border-radius: var(--border-radius);
    background: white; color: var(--clr-text); border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.static-summary .cart-header { border-bottom-color: rgba(0,0,0,0.1); color: var(--clr-text); }
.static-summary .cart-item { border-bottom-color: rgba(0,0,0,0.1); }
.static-summary .cart-footer { background: transparent; border-top-color: rgba(0,0,0,0.1); }

/* Spinner */
.spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3); border-radius: 50%;
    border-top-color: white; animation: spin 1s ease-in-out infinite; margin-right: 8px; vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Form inputs font-size to prevent iOS zoom */
.form-group input,
.form-group select,
.form-group textarea,
.form-input,
.other-input,
select,
input,
textarea {
    font-size: 16px !important; /* Ensure min 16px to disable auto-zoom on mobile safari/chrome */
}

/* Quote Selection Cards Section */
.quote-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .quote-options-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.quote-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    color: var(--clr-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(61, 53, 46, 0.08);
}

.quote-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(61, 53, 46, 0.15);
    border-color: rgba(195, 91, 48, 0.3);
}

.quote-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quote-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--clr-text);
    font-family: var(--font-heading);
}

.quote-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.quote-card .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
}

/* GALLERY PAGE STYLES */
.gallery-hero {
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 1)), url('assets/hero.png') no-repeat center center/cover;
    padding: 10rem 0 4rem;
    text-align: center;
}

.gallery-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.gallery-tab {
    padding: 0.65rem 1.5rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--clr-text);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-tab:hover, .gallery-tab.active {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.2);
}

/* CSS Masonry Grid for Gallery */
.gallery-grid {
    column-count: 1;
    column-gap: 1.5rem;
    width: 100%;
}

@media (min-width: 600px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .gallery-grid {
        column-count: 3;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--clr-surface);
    border: 1px solid rgba(61, 53, 46, 0.05);
    box-shadow: 0 4px 15px rgba(61, 53, 46, 0.02);
    transition: var(--transition);
    cursor: pointer;
    display: block; /* avoids rendering issues in some browsers */
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(61, 53, 46, 0.1);
    border-color: rgba(195, 91, 48, 0.15);
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.03);
}

/* Gallery Item Hover Overlay */
.gallery-item-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(61, 53, 46, 0.75);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

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

.gallery-item-overlay-content {
    color: white;
    text-align: center;
    padding: 1.5rem;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-item-overlay-content {
    transform: translateY(0);
}

.gallery-item-overlay-content .item-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.gallery-item-overlay-content h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-item-overlay-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Play Badge for Video Thumbnail in Grid */
.gallery-video-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(195, 91, 48, 0.9);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Lightbox Theater Mode Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 12, 10, 0.98);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: none;
}

.lightbox-content.active {
    display: block;
    animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-video {
    width: 100%;
    max-width: 800px;
    max-height: 70vh;
    border-radius: 8px;
    outline: none;
    display: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-video.active {
    display: block;
    animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    text-align: center;
}

/* Lightbox Controls */
.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    z-index: 2010;
}

.lightbox-btn:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}

.lightbox-close {
    top: -60px;
    right: 0;
}

.lightbox-prev {
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 1024px) {
    .lightbox-prev {
        left: 10px;
        top: auto;
        bottom: -60px;
        transform: none;
    }
    .lightbox-next {
        right: 10px;
        top: auto;
        bottom: -60px;
        transform: none;
    }
    .lightbox-close {
        top: -50px;
        right: 10px;
    }
}

/* SOCIAL FEED GRID */
.social-feed-section {
    background: var(--clr-bg-dark);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 600px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .social-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.social-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #000;
}

.social-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.social-tile-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    gap: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.social-tile:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.social-tile:hover .social-tile-overlay {
    opacity: 1;
}

.social-tile-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.social-follow-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* Accessibility Focus Indicators & Skip Link */
:focus-visible {
    outline: 3px solid var(--clr-primary) !important;
    outline-offset: 3px !important;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus-visible {
    top: 0;
    outline: 3px solid white !important;
    outline-offset: -3px !important;
}
/* Disabled state for buttons and link-buttons */
.btn.disabled,
.btn:disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Sticky Submit Bar */
.sticky-submit-bar {
    position: fixed;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(195, 91, 48, 0.18);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 1.25rem;
    z-index: 1010;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
}

.sticky-submit-bar.visible {
    bottom: 25px;
    opacity: 1;
}

.sticky-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.sticky-bar-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sticky-bar-label {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sticky-bar-count {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #E74C3C;
    transition: color 0.3s ease;
}

.sticky-bar-btn {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 600;
}

