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

:root {
    --bg-primary: #0f0d0b;
    --bg-secondary: #1a1714;
    --bg-card: #221f1a;
    --bg-card-hover: #2a261f;
    --text-primary: #f5ede4;
    --text-secondary: #b8a99a;
    --text-muted: #7a6e63;
    --accent: #c8956c;
    --accent-light: #ddb08a;
    --accent-dark: #a0714e;
    --gold: #d4a853;
    --border: rgba(200, 149, 108, 0.15);
    --border-hover: rgba(200, 149, 108, 0.3);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--accent-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 13, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    position: relative;
    padding: 4px 0;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 13, 11, 0.92) 0%,
        rgba(15, 13, 11, 0.75) 50%,
        rgba(15, 13, 11, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 120px 0 80px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    position: relative;
    padding-left: 40px;
}

.hero-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all var(--transition);
    border: 2px solid var(--accent);
}

.btn:hover {
    background: transparent;
    color: var(--accent);
}

/* ===== SECTIONS COMMON ===== */
.section-header {
    margin-bottom: 56px;
}

.section-header--center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.section-header--center .section-tag {
    padding-left: 0;
}

.section-header--center .section-tag::before {
    display: none;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-subtitle {
    margin-top: 16px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ABOUT ===== */
.about {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.about-image img {
    border-radius: var(--radius-lg);
    aspect-ratio: 3/2;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ===== GALLERY ===== */
.gallery {
    padding: 80px 0 120px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item--large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ===== COMING SOON / FEATURES ===== */
.coming-soon {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand p {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== ARTICLES PAGE ===== */
.page-hero {
    padding: 140px 0 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.page-hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
}

.articles-main {
    padding: 80px 0;
}

.article-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 100px;
    padding-bottom: 100px;
    border-bottom: 1px solid var(--border);
}

.article-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-card--reverse {
    direction: rtl;
}

.article-card--reverse > * {
    direction: ltr;
}

.article-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.article-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.6s ease;
}

.article-image:hover img {
    transform: scale(1.03);
}

.article-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(200, 149, 108, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.75;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 500;
}

.article-body em {
    color: var(--accent-light);
    font-style: italic;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 0 0 100px;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(200, 149, 108, 0.08) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 13, 11, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 32px 0;
        gap: 24px;
        transform: translateY(-120%);
        transition: transform var(--transition);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .hero {
        background-attachment: scroll;
    }

    .hero-content {
        padding: 100px 0 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

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

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-card {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 64px;
        padding-bottom: 64px;
    }

    .article-card--reverse {
        direction: ltr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-card {
        padding: 40px 24px;
    }
}

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

    .gallery-item--large {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }
}
