@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --primary: #1a1a1a;
    --accent: #8b6f47;
    --accent-light: #c4a97d;
    --sage: #7d8c6e;
    --sage-light: #e8ede4;
    --cream: #faf8f5;
    --white: #ffffff;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --text-muted: #999;
    --border: #e8e4df;
    --radius: 4px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

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

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

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

/* ─── Navbar ─── */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo a { display: flex; flex-direction: column; gap: 0; }

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* ─── Hero ─── */
.hero-editorial {
    position: relative;
    background: url('images/hero-new.png') center/cover no-repeat;
    color: var(--white);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-editorial-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-headline {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subheadline {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-editorial {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 14px 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    transition: var(--transition);
}

.cta-button-editorial:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* ─── Sections ─── */
section { padding: 5rem 0; }

.section-title-magazine {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}

.section-title-magazine::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 12px auto 0;
}

/* ─── Introduction ─── */
.introduction { background: var(--cream); padding: 5rem 0; }

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

.intro-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.intro-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ─── Category Cards ─── */
.categories-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.category-feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.category-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.category-feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.category-feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

.category-link:hover { color: var(--primary); border-color: var(--primary); }

/* ─── Brand Spotlight ─── */
.brand-spotlight { background: var(--sage-light); }

.brand-cards-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.brand-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.brand-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sage-light);
    color: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.brand-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.brand-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

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

.brand-discover:hover { color: var(--primary); }

/* ─── Article Cards ─── */
.articles-grid-magazine {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.card-image {
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

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

.card-content {
    padding: 1.5rem;
}

.card-content .category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--primary);
    line-height: 1.3;
}

.card-content h3 a:hover { color: var(--accent); }

.card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.read-more:hover { color: var(--primary); }

/* ─── Newsletter ─── */
.newsletter-magazine {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 0;
}

.newsletter-content-magazine {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content-magazine h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.newsletter-subtitle {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.newsletter-form-magazine {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form-magazine input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}

.newsletter-form-magazine input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-form-magazine button {
    padding: 14px 28px;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.newsletter-form-magazine button:hover { background: var(--accent-light); }

/* ─── Footer ─── */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

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

.footer-section h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-section ul { list-style: none; }

.footer-section ul li { margin-bottom: 0.5rem; }

.footer-section ul a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-headline { font-size: 2.5rem; }
    .hero-subheadline { font-size: 1rem; }
    .categories-grid-three { grid-template-columns: 1fr; }
    .brand-cards-horizontal { grid-template-columns: repeat(2, 1fr); }
    .articles-grid-magazine { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .nav-menu { display: none; }
}

/* ─── Grid (used in style-guides, capsule-wardrobe, etc.) ─── */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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