/* ═══════════════════════════════════════════════════════════
   archdevelo — shared styles
   Font: SUSE (self-hosted), max-width: 1200px
   Dark/light mode via data-theme attribute
   ═══════════════════════════════════════════════════════════ */

/* ── Font faces ── */
@font-face {
    font-family: 'SUSE';
    src: url('../fonts/suse-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SUSE';
    src: url('../fonts/suse-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SUSE';
    src: url('../fonts/suse-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SUSE';
    src: url('../fonts/suse-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SUSE';
    src: url('../fonts/suse-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── CSS Variables ── */
:root {
    --font-main: 'SUSE', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;

    /* Dark mode (default) */
    --bg-primary: #0c0d10;
    --bg-secondary: #141519;
    --bg-card: #1a1b21;
    --bg-card-hover: #22232b;
    --text-primary: #eae8e3;
    --text-secondary: #a8a5a0;
    --text-muted: #6b6863;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    --grid-color: rgba(255, 255, 255, 0.035);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
    --accent: var(--site-accent, #c8ff2e);
}

[data-theme="light"] {
    --bg-primary: #f5f4f0;
    --bg-secondary: #eceae5;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f7f4;
    --text-primary: #1a1917;
    --text-secondary: #5c5a55;
    --text-muted: #9c9a95;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.15);
    --grid-color: rgba(0, 0, 0, 0.04);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Architectural grid background ── */
.page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
}

/* ── Container ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    background: rgba(12, 13, 16, 0.9);
}

[data-theme="light"] .header {
    background: rgba(245, 244, 240, 0.9);
}

.header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.header__logo span {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.4em;
    letter-spacing: 0.12em;
}

/* Navigation */
.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.header__nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.2s;
    padding: 0.3rem 0;
}

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

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Language switch */
.lang-switch {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.lang-switch:hover {
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mobile menu toggle */
.header__menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   HERO (division sites: powerdevelo, projektdevelo)
   ═══════════════════════════════════════════════════════════ */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.hero__description {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   TILES (archdevelo homepage accordion)
   ═══════════════════════════════════════════════════════════ */
.tiles {
    padding: 4rem 0;
}

.tiles__heading {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

.tiles__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.tile {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    position: relative;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    text-decoration: none;
    color: inherit;
}

.tile:hover {
    background: var(--bg-card-hover);
}

.tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tile-color);
    opacity: 0.5;
    transition: opacity 0.3s, height 0.3s;
}

.tile:hover::after {
    opacity: 1;
    height: 4px;
}

.tile__number {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: auto;
}

.tile__label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--tile-color);
    margin-bottom: 0.5rem;
}

.tile__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.tile__desc {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
}

.tile__arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity 0.3s, transform 0.3s;
}

.tile:hover .tile__arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ═══════════════════════════════════════════════════════════
   PRESS RELEASES
   ═══════════════════════════════════════════════════════════ */
.press {
    padding: 4rem 0;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    text-align: center;
}

.press__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.press-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.press-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-card);
}

.press-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.press-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.press-card__date {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.press-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.press-card__excerpt {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: auto;
}

.press-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 1rem;
    transition: gap 0.2s;
}

.press-card:hover .press-card__link {
    gap: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   PARTNERS
   ═══════════════════════════════════════════════════════════ */
.partners {
    padding: 4rem 0;
}

.partners__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
}

.partner-logo {
    height: 40px;
    opacity: 0.5;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

[data-theme="dark"] .partner-logo {
    filter: grayscale(100%) brightness(2);
}

.partner-logo:hover {
    opacity: 1;
    filter: none;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.footer__tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

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

    .press__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .header__inner {
        padding: 0 1.2rem;
        height: 60px;
    }

    .header__nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem 1.2rem;
        gap: 0;
    }

    .header__nav-links.open {
        display: flex;
    }

    .header__nav-links a {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-color);
        display: block;
    }

    .header__nav-links li:last-child a {
        border-bottom: none;
    }

    .header__menu-btn {
        display: block;
    }

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

    .tile {
        min-height: 200px;
    }

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

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .footer__inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header__logo {
        font-size: 1.1rem;
    }

    .header__logo span {
        display: none;
    }

    .hero__title {
        font-size: 2rem;
    }
}
