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

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Roboto', system-ui, sans-serif;
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}
img, video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* === PREMIUM TOKENS === */
:root {
  --bg: #120a10; /* Midnight Rose Dark Background */
  --bg-alt: #1a0f18;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #e5989b; /* Dusty Rose */
  --accent-light: #ffb7b2; /* Blush Pink */
  --accent-dark: #b5838d;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --section-padding: 80px;
}

/* === STRUCTURAL BASELINES === */
.container { max-width: 1240px; margin: 0 auto; padding: 0 5%; width: 100%; }
section { padding: var(--section-padding) 0; position: relative; overflow: hidden; }

/* Background Textures: Flat solid colors alternating */
.section-dark { background-color: #120a10; }
.section-rose { background-color: #1a0f18; }
.section-accent { background-color: #241421; }

/* Linear Gradient Accents (2-5 degree) */
.section-gradient {
    background: linear-gradient(177deg, #120a10 0%, #1a0f18 100%);
}

/* Glass Panels Layout Archetype */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-glass);
}

/* Navigation - Classic Fixed Top Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 10, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.open { transform: translateY(0); }
}

/* Hero Style: Vertical split hero (3 strips) */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    padding: 0;
}

.hero-strip {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.hero-strip-image {
    flex: 2;
    background-attachment: fixed; /* Minimal parallax */
    background-size: cover;
    background-position: center;
}

.hero-strip-content {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--bg);
    z-index: 2;
}

.hero-strip-accent {
    flex: 1;
    background: var(--accent-dark);
}

@media (max-width: 1024px) {
    .hero { flex-direction: column; height: auto; }
    .hero-strip { flex: none; width: 100%; }
    .hero-strip-image { height: 40vh; }
    .hero-strip-content { padding: 3rem 1.5rem; }
    .hero-strip-accent { display: none; }
}

/* Buttons: Tag-style */
.btn-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: #120a10;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tag:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

/* Section Internal Layout: Full-width media + compact text overlay */
.media-overlay-section {
    position: relative;
    width: 100%;
    min-height: 500px;
}

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

.overlay-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: 5%;
}

/* Grid: Columns property for masonry */
.masonry-grid {
    columns: 4;
    column-gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) { .masonry-grid { columns: 3; } }
@media (max-width: 768px) { .masonry-grid { columns: 2; } }
@media (max-width: 480px) { .masonry-grid { columns: 1; } }

/* Interactive: Tab-Based Showcase */
.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-family: 'Oswald', sans-serif;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--accent);
    color: var(--bg);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .tab-content.active { grid-template-columns: 1fr; }
}

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

/* Testimonials Carousel */
.testimonial-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0;
    scrollbar-width: none;
}

.testimonial-carousel::-webkit-scrollbar { display: none; }

.testimonial-card {
    flex: 0 0 400px;
    scroll-snap-align: center;
}

@media (max-width: 500px) {
    .testimonial-card { flex: 0 0 85vw; }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
}

.dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    background: #090608;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: inline-block;
    margin: 0 3rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.6;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Social Feed */
.social-feed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

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

.social-post {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.social-post img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
}

.social-post:hover img { transform: scale(1.1); }

/* SVG Wave Dividers */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
    fill: currentColor;
}

/* Footer - Brutalist Style */
.brutalist-footer {
    background: #000;
    border-top: 5px solid var(--accent);
    padding: 4rem 0 2rem;
    font-family: 'Courier New', Courier, monospace;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    border-bottom: 2px solid #333;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

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

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

.footer-section {
    border: 2px solid #333;
    padding: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-section a {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    text-decoration: underline;
}

.footer-section a:hover {
    background: var(--accent);
    color: #000;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Stats */
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

/* Inner Page Enrichment */
.cta-banner {
    background: var(--accent-dark);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 4rem 0;
}

.reading-time {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 100px 0 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs span { margin: 0 10px; }

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.mt-2 { margin-top: 2rem; }

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}
.newsletter-form input {
    padding: 0.5rem;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    flex: 1;
}
.newsletter-form button {
    background: var(--accent);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}
