/* 
   Atelier Madeira Nobre - V3 Premium Theme 
   Theme Author
*/

:root {
    /* Colors */
    --primary-color: #C5A059; /* Luxury Gold */
    --primary-dark: #A38240;
    --secondary-color: #1A1A1A; /* Deep Black/Brown */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --white: #FFFFFF;
    --border-color: #E5E5E5;
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 2px; /* Sharp luxury feel */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-white {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-white-outline {
    display: inline-block;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 10px 24px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-white-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.btn-text:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.btn-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-color);
    gap: 15px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
    padding: 20px 0;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

#header.scrolled .logo {
    color: var(--secondary-color);
}

.logo-dot {
    color: var(--primary-color);
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
}

#header.scrolled .desktop-nav a {
    color: var(--secondary-color);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions .btn-primary {
    padding: 10px 24px;
    font-size: 0.8rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

#header.scrolled .mobile-menu-btn span {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.1);
    animation: zoomEffect 20s infinite alternate;
}

.slide.active {
    opacity: 1;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: -1;
}

.hero-subtitle {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.1;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 110px; /* Adjusted to avoid overlap with trust-bar */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    z-index: 5;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Trust Bar */
.trust-bar {
    background-color: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    margin-top: -80px; /* Overlap hero slightly */
    box-shadow: var(--shadow-sm);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
    border-right: 1px solid var(--border-color);
}

.trust-item:last-child {
    border-right: none;
}

.trust-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.trust-item h3 {
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 4px;
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Brands Marquee */
.brands-section {
    padding: 40px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.brands-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.brand-logo {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ccc;
    margin: 0 40px;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.experience-badge .years {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-tag {
    display: block;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.feature-list i {
    color: var(--primary-color);
}

/* Collections */
.section-desc {
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-light);
}

.collections-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 400px;
    gap: 20px;
}

.collection-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover img {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.collection-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
}

/* Materials Section */
.materials-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 100px 0;
}

.materials-section .section-title,
.materials-section .section-desc {
    color: var(--white);
}

.materials-section .section-tag {
    color: var(--primary-color);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.material-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition);
}

.material-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.material-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.material-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.material-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Editorial Section */
.editorial-section {
    padding: 0;
}

.editorial-container {
    display: flex;
    flex-direction: column;
}

.editorial-item {
    display: flex;
    height: 600px;
}

.editorial-item.reverse {
    flex-direction: row-reverse;
}

.editorial-img {
    flex: 1;
    overflow: hidden;
}

.editorial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.editorial-item:hover .editorial-img img {
    transform: scale(1.05);
}

.editorial-content {
    flex: 1;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
}

.editorial-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.editorial-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.editorial-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 30px;
    max-width: 400px;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 120px 0;
    background-image: url('../images/1e02151f11ec949c82e466bdcccb24b7.jpg'); /* Use one of the images */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.section-title.white {
    color: var(--white);
}

.cta-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-col h4 {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    justify-content: space-between;
}

.footer-bottom a {
    color: var(--white);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-content {
    text-align: center;
    width: 100%;
    padding: 20px;
}

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-list li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav-list li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-list li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-list li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-list li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-nav-list li:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav-list a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--white);
}

.mobile-menu-footer {
    margin-top: 40px;
}

.full-width {
    width: 100%;
    display: block;
    text-align: center;
}

/* Gallery Grid */
.gallery-filters {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 10px 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-info p {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.gallery-item:hover .gallery-info h3,
.gallery-item:hover .gallery-info p {
    transform: translateY(0);
}

.gallery-icon {
    margin-top: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transform: scale(0);
    transition: var(--transition);
    transition-delay: 0.2s;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border: 2px solid var(--primary-color);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .trust-item { border-right: none; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
    .trust-item:nth-last-child(-n+2) { border-bottom: none; }
    .collections-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .collection-card { height: 300px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .materials-grid { grid-template-columns: 1fr; }
    .editorial-item { flex-direction: column; height: auto; }
    .editorial-item.reverse { flex-direction: column; }
    .editorial-img { height: 400px; }
    .editorial-content { padding: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .desktop-nav, .header-actions .btn-primary { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .experience-badge { right: 0; bottom: -20px; width: 100px; height: 100px; padding: 10px; }
    .experience-badge .years { font-size: 2rem; }
    .trust-bar { margin-top: 0; border-radius: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.2rem; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    
    /* Gallery Mobile Optimization */
    .gallery-grid { grid-template-columns: 1fr; gap: 15px; }
    .gallery-item { height: 300px; }
    
    /* Always show overlay content on mobile at the bottom */
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
        justify-content: flex-end;
        padding-bottom: 30px;
        align-items: flex-start;
        text-align: left;
        padding-left: 20px;
    }
    
    .gallery-info h3, 
    .gallery-info p {
        transform: translateY(0);
    }
    
    .gallery-info h3 {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }
    
    .gallery-info p {
        font-size: 0.8rem;
    }
    
    .gallery-icon {
        position: absolute;
        top: 15px;
        right: 15px;
        margin-top: 0;
        width: 40px;
        height: 40px;
        transform: scale(1);
        background-color: rgba(255,255,255,0.9);
        font-size: 0.9rem;
    }

    /* Filters Scrollable on Mobile */
    .gallery-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-left: 20px; /* Align with container padding */
        margin-right: -20px; /* Extend to edge */
    }
    
    .gallery-filters::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .filter-btn { 
        padding: 8px 20px; 
        font-size: 0.8rem; 
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Lightbox Mobile */
    .lightbox {
        padding-top: 0;
        align-items: center;
        justify-content: center;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 60vh;
        margin: 0 auto;
        object-fit: contain;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        background: rgba(0,0,0,0.5);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        z-index: 3001;
    }
    
    #lightbox-caption {
        width: 90%;
        font-size: 1rem;
        height: auto;
        padding: 15px 0;
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.8);
        border-radius: 4px;
    }
    
    #lightbox-caption h3 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    #lightbox-caption p {
        font-size: 0.9rem;
    }
}
