/*
Theme Name: Eufonia
Theme URI: https://eufonia.no
Author: Eufonia AS
Description: Tema for eufonia.no - hifi-forhandler siden 1976
Version: 1.0
License: Private
Text Domain: eufonia
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1A1919;
    background: #fff;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   HEADER
   ============================================ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 12px rgba(47, 62, 70, 0.1);
}

.header-wrapper {
    max-width: 1344px;
    margin: 0 auto;
    padding: 0 48px;
}

#site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

#site-header-inner .logo img {
    max-height: 48px;
    width: auto;
}

#primary-menu {
    display: flex;
    align-items: center;
}

.nav.top-nav {
    display: flex;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav.top-nav li a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #2F3E46;
    transition: color 0.2s ease;
}

.nav.top-nav li a:hover {
    color: #52796F;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #2F3E46;
    transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(47, 62, 70, 0.68);
}

.hero-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.hero .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    text-align: center;
    max-width: 720px;
}

.hero .logo img {
    max-width: 430px;
    width: 100%;
    filter: brightness(0) invert(1);
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    line-height: 1.75;
    max-width: 600px;
    font-weight: 400;
}

.hero .button {
    display: inline-block;
    padding: 14px 44px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.25s ease;
    background: transparent;
}

.hero .button:hover {
    background: #fff;
    color: #2F3E46;
    border-color: #fff;
}

/* ============================================
   BENEFITS / FORDELER
   ============================================ */
.block-benefits {
    background: #CAD2C5;
    padding: 0;
}

.fordeler {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
}

.fordeler li {
    flex: 1;
    min-width: 160px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    border-right: 1px solid rgba(47, 62, 70, 0.2);
}

.fordeler li:last-child {
    border-right: none;
}

.fordeler li p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #2F3E46;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

/* ============================================
   RETAILERS / PRODUKTER
   ============================================ */
.block-retailers {
    width: 100%;
}

.retailers__inner-container {
    display: flex;
    min-height: 600px;
}

.block-retailers-child {
    flex: 1;
}

.retailer {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.retailer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(47, 62, 70, 0.92) 0%,
        rgba(47, 62, 70, 0.55) 50%,
        rgba(47, 62, 70, 0.2) 100%
    );
}

.about-retailer {
    position: relative;
    z-index: 1;
    padding: 40px 48px 16px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.7;
}

.logo-link {
    position: relative;
    z-index: 1;
    padding: 16px 48px 48px;
}

.logo-link img {
    max-width: 180px;
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ============================================
   ABOUT / OM OSS
   ============================================ */
.block-about {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
}

.block-about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(47, 62, 70, 0.82);
}

.block-about .wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
}

.block-about .logo {
    margin-bottom: 48px;
}

.block-about .logo img {
    max-width: 217px;
    opacity: 0.85;
}

.wp-block-columns {
    display: flex;
    gap: 48px;
}

.wp-block-column {
    flex: 1;
}

.wp-block-column p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
    background: #2F3E46;
    padding: 64px 0 0;
}

#site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-column-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column-inner .image img {
    max-width: 220px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-column-inner .address {
    color: #84A98C;
    font-size: 15px;
    line-height: 1.9;
}

.footer-column-inner .address a {
    display: block;
    color: #84A98C;
    transition: color 0.2s;
}

.footer-column-inner .address a:hover {
    color: #CAD2C5;
}

.footer-row {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 64px;
    border-top: 1px solid rgba(132, 169, 140, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-row p {
    color: rgba(132, 169, 140, 0.7);
    font-size: 13px;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .header-wrapper {
        padding: 0 32px;
    }
    .block-about .wrapper {
        padding: 0 40px;
    }
    #site-footer-inner {
        padding: 0 40px;
        grid-template-columns: 1fr 1fr;
    }
    .footer-row {
        padding: 20px 40px;
    }
}

@media (max-width: 768px) {
    #site-header-inner .logo img {
        max-height: 36px;
    }
    .nav.top-nav {
        display: none;
        position: fixed;
        inset: 80px 0 0 0;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }
    .nav.top-nav.is-open {
        display: flex;
    }
    .nav.top-nav li a {
        font-size: 18px;
    }
    .hamburger {
        display: flex;
    }
    .hero {
        min-height: 80vh;
    }
    .hero .logo img {
        max-width: 280px;
    }
    .hero p {
        font-size: 17px;
    }
    .fordeler li {
        flex-basis: 50%;
        border-right: none;
        border-bottom: 1px solid rgba(47, 62, 70, 0.15);
    }
    .fordeler li:nth-child(odd) {
        border-right: 1px solid rgba(47, 62, 70, 0.15);
    }
    .retailers__inner-container {
        flex-direction: column;
    }
    .retailer {
        min-height: 480px;
    }
    .wp-block-columns {
        flex-direction: column;
        gap: 32px;
    }
    .block-about {
        padding: 64px 0;
    }
    .block-about .wrapper {
        padding: 0 32px;
    }
    #site-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 32px;
    }
    .footer-row {
        padding: 20px 32px;
    }
    .about-retailer {
        padding: 32px 32px 16px;
    }
    .logo-link {
        padding: 16px 32px 40px;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 0 20px;
    }
    .hero p {
        font-size: 16px;
    }
    .fordeler li {
        flex-basis: 100%;
        border-right: none;
    }
    .fordeler li:nth-child(odd) {
        border-right: none;
    }
}
