/* === Strauss Winterthur — Main Stylesheet === */

:root {
    --sw-espresso: #3C1518;
    --sw-dijon: #C49102;
    --sw-paper: #FAFAF5;
    --sw-white: #FFFFFF;
    --sw-chocolate: #2A1F14;
    --sw-text-light: #6B5E52;
    --sw-light: #F0EDE6;
    --sw-border: #D4CDC2;
    --sw-font-heading: 'Noto Serif Display', Georgia, serif;
    --sw-font-body: 'Albert Sans', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--sw-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--sw-chocolate);
    background: var(--sw-paper);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--sw-espresso); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sw-dijon); }

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

/* === Header === */
.sw-header {
    background: var(--sw-white);
    border-bottom: 3px solid var(--sw-espresso);
    position: relative;
    z-index: 100;
}

.sw-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sw-logo img { height: 47px; width: auto; }

.sw-nav { display: flex; gap: 2rem; list-style: none; }
.sw-nav li a {
    color: var(--sw-chocolate);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.sw-nav li a:hover,
.sw-nav li.current-menu-item a,
.sw-nav li.current-menu-parent a { color: var(--sw-espresso); }

/* Mobile menu toggle */
.sw-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}
.sw-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--sw-espresso);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}
.sw-menu-toggle span:nth-child(1) { top: 0; }
.sw-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.sw-menu-toggle span:nth-child(3) { bottom: 0; }

.sw-menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.sw-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sw-menu-toggle[aria-expanded="true"] span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* === Hero === */
.sw-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(60, 21, 24, 0.85) 0%, rgba(42, 14, 16, 0.7) 100%);
}

.sw-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sw-dijon);
}

.sw-hero-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--sw-white);
    padding: 4rem 2rem;
}

.sw-hero h1 {
    font-family: var(--sw-font-heading);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.sw-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* === Category Chips === */
.sw-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sw-cat-chip {
    display: inline-block;
    background: var(--sw-white);
    border: 2px solid var(--sw-espresso);
    color: var(--sw-espresso);
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}
.sw-cat-chip:hover,
.sw-cat-chip.active {
    background: var(--sw-espresso);
    color: var(--sw-white);
}

/* === Content Area === */
.sw-content,
.sw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
}

.sw-section-title {
    font-family: var(--sw-font-heading);
    font-size: 1.8rem;
    color: var(--sw-espresso);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dotted var(--sw-dijon);
    font-weight: 400;
}

/* === Card Grid === */
.sw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.sw-card {
    background: var(--sw-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sw-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.sw-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.sw-card-img-placeholder {
    display: block;
    height: 200px;
    background: linear-gradient(135deg, var(--sw-light), #d4c9a8);
}

.sw-card-body { padding: 1.2rem 1.5rem; }

.sw-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sw-dijon);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sw-card-title {
    font-family: var(--sw-font-heading);
    font-size: 1.2rem;
    color: var(--sw-chocolate);
    margin-bottom: 0.6rem;
    line-height: 1.3;
    font-weight: 400;
}
.sw-card-title a { color: inherit; }
.sw-card-title a:hover { color: var(--sw-espresso); }

.sw-card-excerpt {
    font-size: 0.9rem;
    color: var(--sw-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 300;
}

.sw-card-link {
    color: var(--sw-espresso);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sw-card-link:hover { color: var(--sw-dijon); }

/* === About Teaser (Homepage) === */
.sw-about {
    background: var(--sw-white);
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.sw-about-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.sw-about h2 {
    font-family: var(--sw-font-heading);
    color: var(--sw-espresso);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.sw-about p {
    color: #5A4E44;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
}

/* === Archive Header === */
.sw-archive-header {
    background: var(--sw-espresso);
    padding: 3rem 0;
    color: var(--sw-white);
    margin-bottom: 2rem;
}

.sw-archive-header .sw-section-title {
    color: var(--sw-white);
    border-bottom-color: var(--sw-dijon);
}

.sw-archive-desc {
    max-width: 700px;
    font-weight: 300;
    opacity: 0.9;
}

/* === Single Article === */
.sw-article-hero {
    max-height: 500px;
    overflow: hidden;
}

.sw-article-hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sw-article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.sw-article-header { margin-bottom: 2rem; }

.sw-article-cat {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sw-dijon);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.sw-article-title {
    font-family: var(--sw-font-heading);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--sw-espresso);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.sw-article-meta {
    font-size: 0.85rem;
    color: var(--sw-text-light);
}

.sw-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.sw-article-content h2 {
    font-family: var(--sw-font-heading);
    font-size: 1.6rem;
    color: var(--sw-espresso);
    margin: 2rem 0 1rem;
    font-weight: 400;
}

.sw-article-content h3 {
    font-family: var(--sw-font-heading);
    font-size: 1.3rem;
    color: var(--sw-espresso);
    margin: 1.5rem 0 0.8rem;
    font-weight: 400;
}

.sw-article-content p { margin-bottom: 1.2rem; }

.sw-article-content ul,
.sw-article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.sw-article-content li { margin-bottom: 0.4rem; }

.sw-article-content blockquote {
    border-left: 4px solid var(--sw-dijon);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--sw-light);
    font-style: italic;
}

.sw-article-content img {
    border-radius: 6px;
    margin: 1.5rem 0;
}

.sw-article-content a { color: var(--sw-espresso); text-decoration: underline; }
.sw-article-content a:hover { color: var(--sw-dijon); }

/* === Post Navigation === */
.sw-post-nav {
    border-top: 1px solid var(--sw-border);
    margin-top: 3rem;
}

.sw-post-nav-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.sw-post-nav-prev,
.sw-post-nav-next {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-width: 45%;
}

.sw-post-nav-next { text-align: right; margin-left: auto; }

.sw-post-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sw-text-light);
}

.sw-post-nav-title {
    font-family: var(--sw-font-heading);
    font-size: 1rem;
    color: var(--sw-espresso);
}

/* === Page === */
.sw-page-container,
.sw-legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.sw-page-title,
.sw-legal-title {
    font-family: var(--sw-font-heading);
    font-size: 2.2rem;
    color: var(--sw-espresso);
    margin-bottom: 2rem;
    font-weight: 400;
}

.sw-page-content,
.sw-legal-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.sw-page-content h2,
.sw-legal-content h2 {
    font-family: var(--sw-font-heading);
    font-size: 1.5rem;
    color: var(--sw-espresso);
    margin: 2rem 0 1rem;
    font-weight: 400;
}

.sw-page-content h3,
.sw-legal-content h3 {
    font-family: var(--sw-font-heading);
    font-size: 1.2rem;
    color: var(--sw-espresso);
    margin: 1.5rem 0 0.8rem;
    font-weight: 400;
}

.sw-page-content p,
.sw-legal-content p { margin-bottom: 1.2rem; }

.sw-page-content ul,
.sw-page-content ol,
.sw-legal-content ul,
.sw-legal-content ol { margin: 1rem 0 1.5rem 1.5rem; }

.sw-page-content li,
.sw-legal-content li { margin-bottom: 0.4rem; }

/* === 404 === */
.sw-404-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
}

.sw-404-title {
    font-family: var(--sw-font-heading);
    font-size: 2.5rem;
    color: var(--sw-espresso);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.sw-404-text {
    font-size: 1.05rem;
    color: var(--sw-text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.sw-404-text a { color: var(--sw-espresso); text-decoration: underline; }

.sw-404-cats { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* === Footer === */
.sw-footer {
    background: var(--sw-espresso);
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 2rem;
}

.sw-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sw-footer-copy { font-size: 0.85rem; }

.sw-footer-nav { display: flex; gap: 1.5rem; list-style: none; }
.sw-footer-nav li a { color: var(--sw-dijon); font-size: 0.85rem; }
.sw-footer-nav li a:hover { text-decoration: underline; }

/* === Pagination === */
.sw-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.sw-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--sw-white);
    color: var(--sw-chocolate);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--sw-border);
}

.sw-pagination .page-numbers.current {
    background: var(--sw-espresso);
    color: var(--sw-white);
    border-color: var(--sw-espresso);
}

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

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

    .sw-header-inner { position: relative; }

    .sw-menu-toggle { display: block; }

    .sw-nav-wrap {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--sw-white);
        border-bottom: 3px solid var(--sw-espresso);
        padding: 1rem 2rem;
        z-index: 99;
    }
    .sw-nav-wrap.sw-nav-open { display: block; }

    .sw-nav { flex-direction: column; gap: 0; }
    .sw-nav li a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--sw-light);
    }

    .sw-hero h1 { font-size: 2rem; }
    .sw-hero-overlay { padding: 3rem 1.5rem; }

    .sw-article-title { font-size: 1.8rem; }
    .sw-article-container,
    .sw-page-container,
    .sw-legal-container { padding: 1.5rem; }

    .sw-footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .sw-post-nav-inner { flex-direction: column; }
    .sw-post-nav-next { text-align: left; margin-left: 0; }
}
