/* Watermark overlay for images */
.wm-overlay-container {
    position: relative !important;
    display: inline-block !important;
}
.wm-overlay-text {
    position: absolute !important;
    bottom: 16px !important;
    right: 16px !important;
    left: auto !important;
    color: rgba(255,255,255,0.95) !important;
    font-size: 2em !important;
    font-weight: bold !important;
    text-shadow: 0 0 10px rgba(0,0,0,0.8) !important;
    pointer-events: none !important;
    z-index: 10 !important;
    opacity: 1 !important;
    background: rgba(0,0,0,0.15);
    padding: 0.1em 0.5em;
    border-radius: 6px;
}




/* Root Variables - Earthy Color Palette */
:root {
    --primary-sand: #E8DCC4;
    --primary-earth: #A67B5B;
    --primary-clay: #8B6F47;
    --primary-stone: #5C5552;
    --primary-mist: #F5F1EA;
    --primary-forest: #6B7F6E;
    --primary-sky: #B8C5D6;
    
    --text-primary: #3E3835;
    --text-secondary: #6B6764;
    --text-light: #9C9591;
    
    --bg-primary: #FDFCF9;
    --bg-secondary: var(--primary-mist);
    --bg-overlay: rgba(0, 0, 0, 0.6);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: auto; /* allow lightbox etc, but block drag */
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: rgba(253, 252, 249, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-clay);
    letter-spacing: -0.5px;
}

.brand-amp {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--primary-earth);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-earth);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-clay);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--primary-mist);
    padding: 0.4rem;
    border-radius: 24px;
}

.language-switcher .switch {
    cursor: pointer;
    position: relative;
}

.language-switcher input[type="radio"] {
    display: none;
}

.lang-label {
    display: block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.language-switcher input[type="radio"]:checked + .lang-label {
    background: var(--primary-earth);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-mist) 0%, var(--primary-sand) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="%23E8DCC4" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: bottom;
    z-index: 1;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-clay);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-light);
    animation: bounce 2s infinite;
}

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

/* Sections */
.stories-section,
.gallery-section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-clay);
    margin-bottom: 3rem;
    text-align: center;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.story-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
}

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

.story-images {
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--primary-mist);
}

.story-images.single-image {
    grid-template-columns: 1fr;
}

.story-images.single-image img {
    height: 350px;
}

.story-images.three-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}

.story-images.three-images img:first-child {
    grid-row: span 2;
    height: 100%;
}

.story-images.three-images img:not(:first-child) {
    height: 100%;
}

.story-images.four-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}

.story-images.four-images img:first-child {
    grid-row: span 2;
    height: 100%;
}

.story-images.four-images img:not(:first-child) {
    height: 100%;
}

.story-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition-base);
}

.story-card:hover .story-image {
    opacity: 0.9;
}

.story-content {
    padding: 1.5rem;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.story-category {
    background: var(--primary-sand);
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-weight: 600;
    color: var(--primary-clay);
}

.story-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-stone);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.story-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.btn-read-more {
    background: var(--primary-earth);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 24px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-block;
}

.btn-read-more:hover {
    background: var(--primary-clay);
    transform: translateX(4px);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-load-more {
    background: transparent;
    color: var(--primary-earth);
    padding: 0.9rem 2.5rem;
    border: 2px solid var(--primary-earth);
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1rem;
}

.btn-load-more:hover {
    background: var(--primary-earth);
    color: white;
}

/* Footer */
.footer {
    background: var(--primary-stone);
    color: var(--primary-mist);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 5rem;
}

.footer p {
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .brand-name {
        font-size: 1.4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .story-title {
        font-size: 1.3rem;
    }
}

/* Contact Modal (shared across site) */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.contact-modal.active {
    display: flex;
}

/* Floating side-panel variant */
.contact-modal.floating {
    align-items: stretch;
    justify-content: flex-end;
    background: rgba(0,0,0,0.4);
}

.contact-modal.floating .contact-modal-content {
    width: 420px;
    height: 100vh;
    max-width: 420px;
    max-height: 100vh;
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: -8px 0 24px rgba(0,0,0,0.2);
    overflow-y: auto;
}

/* Popup centered modal variant */
.contact-modal.popup {
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
}

.contact-modal.popup .contact-modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    overflow-y: auto;
}

.contact-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.3s ease;
}

/* Watermark overlay for displayed images */
.image-with-watermark {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.image-with-watermark.large {
    max-height: 500px;
    margin: 2rem 0 3rem;
    box-shadow: var(--shadow-md);
}

.image-with-watermark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-with-watermark::after {
    /* show admin-configurable watermark text via data attribute */
    content: attr(data-watermark);
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.95);
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 10002;
    font-weight: 500;
}

/* Diagonal faint watermark for larger images */
.image-with-watermark.large::before {
    /* large diagonal faint watermark uses same configurable text */
    content: attr(data-watermark);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 48px;
    color: rgba(255,255,255,0.06);
    pointer-events: none;
    z-index: 9998;
    white-space: nowrap;
}

/* Ensure watermark overlay is visible in modals/lightbox */
.lightbox .image-with-watermark::after,
.lightbox .image-with-watermark::before {
    z-index: 10001;
}

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

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
}

.contact-modal-close:hover {
    color: var(--primary-clay);
}

.contact-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-clay);
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--primary-sand);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-earth);
}

.btn-submit {
    background: var(--primary-earth);
    color: white;
    padding: 1rem 2rem;
    border-radius: 24px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--primary-clay);
    transform: translateY(-2px);
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
}

