/* ============================================
   LA STELLE MAGAZINE - LUXURY DESIGN SYSTEM
   ============================================ */

/* --- CSS Variables --- */
:root {
    --black: #0A0A0A;
    --ivory: #FAF8F5;
    --gold: #C9A96E;
    --gold-light: #D4BC8A;
    --white: #FFFFFF;
    --cream: #F5F0EB;
    --charcoal: #1A1A1A;
    --muted: #8A8A8A;
    --light-gray: #E8E4DF;
    --serif: 'Playfair Display', 'Georgia', serif;
    --sans: 'Montserrat', 'Helvetica Neue', sans-serif;
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--sans);
    color: var(--charcoal);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.2;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-text {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--gold);
    letter-spacing: 12px;
    text-transform: uppercase;
    animation: preloaderPulse 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.top-bar {
    width: 100%;
    background: var(--black);
    padding: 14px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9000;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.top-bar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-bar-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.top-bar-logo span {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: var(--white);
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    padding: 4px 0;
}

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

.nav-links a:hover {
    color: var(--gold);
}

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

/* Mobile Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 9999;
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 8999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--gold);
}

/* ============================================
   HERO / COVER SECTION
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 68px;
    background: var(--black);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.1) 40%,
        rgba(10, 10, 10, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 30px;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1s 0.5s forwards;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 6.5rem);
    color: var(--white);
    line-height: 1;
    margin-bottom: 25px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1s 0.8s forwards;
}

.hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1s 1.1s forwards;
}

.hero-cta {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 50px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1s 1.4s forwards;
}

.hero-cta:hover {
    background: var(--gold);
    color: var(--black);
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   COUNTRY TICKER
   ============================================ */
.ticker-section {
    background: var(--black);
    padding: 16px 0;
    overflow: hidden;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 60s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    flex-shrink: 0;
    padding: 0 24px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
    font-weight: 400;
}

.ticker-item::after {
    content: '•';
    margin-left: 24px;
    color: var(--gold);
}

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

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 400;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--charcoal);
    font-weight: 400;
    line-height: 1.15;
}

.section-title-light {
    color: var(--white);
}

.section-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 24px auto 0;
}

/* ============================================
   FEATURED MAGAZINES (HOME PAGE - 4 issues)
   ============================================ */
.featured-magazines {
    padding: 100px 60px;
    background: var(--ivory);
}

.magazine-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mag-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    transition: transform 0.5s var(--transition), box-shadow 0.5s var(--transition);
}

.mag-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.mag-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.mag-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--transition), filter 0.5s ease;
}

.mag-card:hover .mag-card-image img {
    transform: scale(1.04);
}

.mag-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mag-card:hover .mag-card-overlay {
    opacity: 1;
}

.mag-card-overlay span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.mag-card-info {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
}

.mag-card-info h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--charcoal);
}

.mag-card-info p {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.view-all-btn-wrap {
    text-align: center;
    margin-top: 50px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 55px;
    background: var(--black);
    color: var(--white);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid var(--black);
    transition: all 0.4s var(--transition);
    font-family: var(--sans);
    cursor: pointer;
}

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

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
}

/* ============================================
   GLOBAL IMPACT SECTION
   ============================================ */
.global-impact {
    padding: 100px 60px;
    background: var(--black);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.global-impact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border: 1px solid rgba(201, 169, 110, 0.05);
    border-radius: 50%;
}

.impact-headline {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 400;
    position: relative;
}

.impact-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    padding: 40px 20px;
    border: 1px solid rgba(201, 169, 110, 0.15);
    position: relative;
}

.stat-number {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--gold);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    padding: 100px 60px;
    background: var(--ivory);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-card {
    background: var(--white);
    overflow: hidden;
    transition: transform 0.5s var(--transition), box-shadow 0.5s var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.team-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--transition);
}

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

.team-card-body {
    padding: 30px;
}

.team-card-body h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 16px;
}

.team-bio {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--muted);
}

/* Full team page - larger cards */
.team-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 40px;
}

.team-card-full {
    background: var(--white);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.team-card-full .team-card-image {
    aspect-ratio: auto;
    height: 100%;
}

.team-card-full .team-card-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card-full .team-bio {
    font-size: 0.82rem;
}

/* ============================================
   MAGAZINES PAGE GRID
   ============================================ */
.magazines-page {
    padding: 120px 60px 100px;
    background: var(--ivory);
    min-height: 100vh;
    margin-top: 68px;
}

.magazines-masonry {
    columns: 4;
    column-gap: 20px;
    margin-top: 40px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s var(--transition), filter 0.4s ease;
}

.masonry-item:hover img {
    transform: scale(1.03);
}

.masonry-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.masonry-item-overlay span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
}

/* ============================================
   CONTACT SECTION / PAGE
   ============================================ */
.contact-section {
    padding: 100px 60px;
    background: var(--white);
}

.contact-page {
    margin-top: 68px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 60px;
    background: var(--ivory);
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-channels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    padding: 40px 30px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    transition: all 0.4s var(--transition);
    text-align: center;
}

.contact-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.contact-card-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: block;
}

.contact-card h4 {
    font-family: var(--serif);
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.contact-card p {
    font-size: 0.8rem;
    color: var(--muted);
}

.contact-card a {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--charcoal);
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.events-section {
    padding: 100px 60px;
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.event-card:hover img {
    transform: scale(1.05);
}

.event-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.event-card-overlay h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.event-card-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--black);
    padding: 80px 60px 40px;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.footer-cities {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    font-family: var(--sans);
    font-weight: 300;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.lightbox-close:hover {
    color: var(--gold);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   PAGE HERO (for inner pages)
   ============================================ */
.page-hero {
    margin-top: 68px;
    padding: 100px 60px 60px;
    background: var(--black);
    text-align: center;
}

.page-hero .section-label {
    color: var(--gold);
}

.page-hero .section-title {
    color: var(--white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .magazine-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
    .magazines-masonry {
        columns: 3;
    }
    .team-grid-full {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .team-card-full {
        grid-template-columns: 1fr;
    }
    .team-card-full .team-card-image {
        aspect-ratio: 3/4;
        max-height: 450px;
    }
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .impact-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 12px 24px;
    }
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero {
        margin-top: 60px;
        min-height: 80vh;
    }
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 4rem);
    }
    .featured-magazines,
    .global-impact,
    .team-section,
    .events-section,
    .contact-section,
    .magazines-page {
        padding: 60px 24px;
    }
    .page-hero {
        padding: 60px 24px 40px;
    }
    .magazine-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .magazines-masonry {
        columns: 2;
        column-gap: 12px;
    }
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
    .contact-channels {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
}

@media (max-width: 480px) {
    .magazine-grid-home {
        grid-template-columns: 1fr;
    }
    .magazines-masonry {
        columns: 1;
    }
    .top-bar-logo span {
        font-size: 1rem;
        letter-spacing: 3px;
    }
    .top-bar-logo img {
        height: 30px;
    }
}
