/*
Theme Name: Nocarlima Mobiliário
Theme URI: https://nocarlima.pt
Author: Nocarlima
Author URI: https://nocarlima.pt
Description: Tema profissional para a Nocarlima Mobiliário – Cozinhas & Carpintaria. Compatível com Gutenberg e Elementor, com imagens incluídas, demo importer 1-click, formulário de contacto RGPD com upload, botão WhatsApp, CPT de projetos e testemunhos.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nocarlima
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, portfolio, block-patterns, block-styles, full-site-editing, wide-blocks
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --color-primary: #8C6A4B;
    --color-primary-dark: #75583E;
    --color-text: #2D2A26;
    --color-text-light: #6B635B;
    --color-bg: #F9F8F6;
    --color-bg-alt: #F0EBE5;
    --color-border: #E5E0D8;
    --color-white: #ffffff;
    --color-dark: #2D2A26;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --border-radius: 0;
    --border-radius-full: 9999px;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text);
}

.heading-1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

.heading-2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

.heading-3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.body-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.caption-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 4rem;
    }
}

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(249, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

/* Transparent-over-hero mode (applied via JS on pages with .has-transparent-header body class) */
.site-header.is-transparent:not(.scrolled) {
    background-color: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}
.site-header.is-transparent:not(.scrolled) .site-logo,
.site-header.is-transparent:not(.scrolled) .site-logo a,
.site-header.is-transparent:not(.scrolled) .main-navigation a,
.site-header.is-transparent:not(.scrolled) .mobile-navigation a {
    color: var(--header-transparent-color, #ffffff);
}
.site-header.is-transparent:not(.scrolled) .main-navigation a::after {
    background-color: var(--header-transparent-color, #ffffff);
}
.site-header.is-transparent:not(.scrolled) .menu-toggle span {
    background-color: var(--header-transparent-color, #ffffff);
}
.site-header.is-transparent:not(.scrolled) .header-cta {
    background-color: transparent;
    border: 1px solid var(--header-transparent-color, #ffffff);
    color: var(--header-transparent-color, #ffffff);
}
.site-header.is-transparent:not(.scrolled) .header-cta:hover {
    background-color: var(--header-transparent-color, #ffffff);
    color: var(--color-text);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 0 4rem;
    }
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: none;
}

@media (min-width: 1024px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }
}

.main-navigation a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 100%;
}

.header-cta {
    display: none;
}

@media (min-width: 1024px) {
    .header-cta {
        display: inline-flex;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Mobile Navigation */
.mobile-navigation {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-navigation.active {
    transform: translateX(0);
}

.mobile-navigation a {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--border-radius-full);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    border-radius: var(--border-radius-full);
}

.btn-secondary:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-text);
    border-radius: var(--border-radius-full);
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-ghost {
    background: none;
    color: var(--color-primary);
    padding: 0;
}

.btn-ghost:hover {
    color: var(--color-primary-dark);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(45, 42, 38, 0.4) 0%,
        rgba(45, 42, 38, 0.6) 50%,
        rgba(45, 42, 38, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 1.5rem;
    color: var(--color-white);
}

.hero-content .caption-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.hero-content .heading-1 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator-inner {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator-dot {
    width: 6px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================================================
   Cards & Services
   ========================================================================== */
.service-card {
    background-color: var(--color-white);
    padding: 2rem;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card-image {
    height: 200px;
    margin: -2rem -2rem 1.5rem -2rem;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

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

.service-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

.grid-3 {
    grid-template-columns: 1fr;
}

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

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

.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

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

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-left: 4px solid var(--color-primary);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1.5rem;
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    fill: var(--color-primary);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 500;
    color: var(--color-text);
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Gallery / Projects
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 250px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: var(--color-white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

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

.gallery-item-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.gallery-item-location {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--color-white);
    color: var(--color-text);
    border: none;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    background-color: var(--color-white);
    padding: 2rem;
}

@media (min-width: 768px) {
    .contact-form {
        padding: 3rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-area:hover {
    border-color: var(--color-primary);
}

.file-upload-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 1rem;
    color: var(--color-primary);
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: var(--color-bg-alt);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-item-remove {
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    transition: var(--transition);
}

.file-item-remove:hover {
    color: var(--color-text);
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--color-primary-dark);
}

/* Contact Info */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--color-white);
    transition: var(--transition);
}

.contact-info-item:hover {
    box-shadow: var(--shadow-lg);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(140, 106, 75, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.contact-info-title {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.contact-info-text {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* Map */
.map-container {
    width: 100%;
    height: 300px;
    background-color: var(--color-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.faq-trigger:hover {
    color: var(--color-primary);
}

.faq-trigger svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.faq-content {
    padding-bottom: 1.5rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

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

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

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--color-primary);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-widget-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 0.5rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    opacity: 0.8;
}

.lightbox-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.lightbox-content img {
    max-height: 80vh;
    width: auto;
    margin: 0 auto;
}

.lightbox-info {
    margin-top: 1.5rem;
    color: var(--color-white);
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lightbox-location {
    opacity: 0.7;
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.page-header {
    padding-top: 120px;
    padding-bottom: 4rem;
    background-color: var(--color-bg);
}

.page-header-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ==========================================================================
   Privacy Policy
   ========================================================================== */
.privacy-section {
    margin-bottom: 4rem;
}

.privacy-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(140, 106, 75, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.privacy-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.privacy-content {
    padding-left: 64px;
    white-space: pre-line;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ==========================================================================
   CTA Sections
   ========================================================================== */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 6rem 4rem;
    }
}

.cta-section .heading-2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* ==========================================================================
   Background Colors
   ========================================================================== */
.bg-light {
    background-color: var(--color-bg);
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.bg-dark .heading-2,
.bg-dark .heading-3 {
    color: var(--color-white);
}

.bg-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.bg-primary .heading-2 {
    color: var(--color-white);
}

/* ==========================================================================
   Values Grid
   ========================================================================== */
.value-card {
    background-color: var(--color-white);
    padding: 2rem;
    text-align: center;
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background-color: rgba(140, 106, 75, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.timeline-year {
    flex-shrink: 0;
    width: 80px;
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.timeline-line {
    width: 2px;
    flex-grow: 1;
    background-color: var(--color-border);
    margin-top: 0.5rem;
}

.timeline-content {
    padding-bottom: 2rem;
    font-size: 1.125rem;
    color: var(--color-text);
}

/* ==========================================================================
   Process Steps
   ========================================================================== */
.process-step {
    position: relative;
}

.process-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.process-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.process-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.process-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.process-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* ==========================================================================
   Materials
   ========================================================================== */
.material-item {
    padding: 1rem;
    background-color: var(--color-bg-alt);
}

.material-title {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.material-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white);
}

.text-primary {
    color: var(--color-primary);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.pt-24 {
    padding-top: 6rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Form Messages
   ========================================================================== */
.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Loading States
   ========================================================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 767px) {
    .section {
        padding: 3rem 0;
    }
    
    .heading-1 {
        font-size: 2rem;
    }
    
    .heading-2 {
        font-size: 1.75rem;
    }
    
    .hero-content {
        padding-top: 4rem;
    }
    
    .gallery-grid {
        grid-auto-rows: 200px;
    }
    
    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 2;
    }
    
    .gallery-item.large {
        grid-row: span 1;
    }
    
    .gallery-item.tall {
        grid-row: span 1;
    }
}
