/*
Theme Name: Kadence Fagkjop
Template: kadence
Version: 2.0
Description: FIXED design for Fagkjop AS
*/

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CRITICAL: Override ALL WordPress/Kadence defaults */
* {
    box-sizing: border-box;
}

:root {
    /* PMS 554 - C84 M22 Y77 K60 */
    --primary-green: #1A6647;
    --dark-green: #0D3324;
    --light-green: #E8F3ED;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --border-color: #E0E0E0;
}

/* FORCE font everywhere */
body,
body *,
.entry-content,
.entry-content * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text-dark) !important;
    line-height: 1.6 !important;
    background: var(--white) !important;
}

/* Hide ALL Kadence default elements */
.site-header-row-layout-standard,
.site-top-header-wrap,
.site-header-row,
.site-header,
#masthead {
    display: none !important;
}

/* Remove ALL default padding/margins */
.site-container,
.site,
.site-content,
#primary,
.content-area,
.entry,
.entry-content-wrap,
.entry-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* CUSTOM HEADER */
.custom-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
}

.custom-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.custom-logo-link img {
    height: 80px !important; /* 1/3 større (60px * 1.33 = 80px) */
    width: auto !important;
    object-fit: contain;
}

.custom-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-nav li {
    margin: 0;
    padding: 0;
}

.custom-nav a {
    text-decoration: none !important;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.custom-nav a:hover,
.custom-nav a.active {
    color: var(--primary-green) !important;
}

.custom-nav .btn-login {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    padding: 0.7rem 1.8rem !important;
    border-radius: 8px !important;
}

.custom-nav .btn-login:hover {
    background: var(--dark-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 204, 102, 0.3);
}

/* HERO SECTION - FULL WIDTH */
.wp-block-cover.hero-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    min-height: 450px !important; /* Smalere */
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%) !important;
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3rem 2rem !important; /* Mindre padding */
}

.wp-block-cover.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.wp-block-cover.hero-section .wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero text - HVIT og TYDELIG */
.hero-title,
h1.hero-title,
.wp-block-cover .hero-title,
.wp-block-cover h1 {
    font-size: 3rem !important; /* Litt mindre */
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
    color: #FFFFFF !important; /* HVIT */
}

.hero-subtitle,
p.hero-subtitle,
.wp-block-cover .hero-subtitle,
.wp-block-cover p {
    font-size: 1.2rem !important; /* Litt mindre */
    margin-bottom: 2rem !important;
    color: #FFFFFF !important; /* HVIT */
    opacity: 1 !important; /* Full opacity */
}

/* SECTIONS */
.section,
.wp-block-group.section {
    padding: 5rem 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
}

.section-light,
.wp-block-group.section-light {
    background: var(--light-gray) !important;
}

/* Section content wrapper */
.section > *,
.wp-block-group.section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* HIDE breadcrumb/page titles */
.entry-header,
.page-title,
.entry-title {
    display: none !important;
}

/* HEADINGS */
.entry-content h1 {
    font-size: 2.5rem !important;
    color: var(--dark-green) !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-align: center;
}

.entry-content h2 {
    font-size: 2.5rem !important;
    color: var(--dark-green) !important;
    font-weight: 700 !important;
    margin: 3rem 0 1rem !important;
    text-align: center;
}

.entry-content h3 {
    color: var(--dark-green) !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.8rem !important;
}

.entry-content h4 {
    color: var(--dark-green) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

/* PARAGRAPHS */
.entry-content p {
    color: var(--text-gray) !important;
    line-height: 1.8 !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.1rem !important;
}

.entry-content p.has-text-align-center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* COLUMNS / CARDS */
.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    margin: 2rem 0 !important;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.wp-block-column {
    background: var(--white) !important;
    padding: 2.5rem 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    text-align: center;
    margin: 0 !important;
}

.wp-block-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 204, 102, 0.15) !important;
}

.section-light .wp-block-column {
    background: var(--white) !important;
}

/* BUTTONS */
.wp-block-buttons {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin: 1.5rem 0 !important; /* Mindre spacing */
}

.wp-block-button__link {
    display: inline-block !important;
    background: var(--white) !important;
    color: var(--dark-green) !important;
    padding: 0.9rem 2rem !important; /* Litt mindre */
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    cursor: pointer;
}

.wp-block-button__link:hover {
    background: var(--light-green) !important;
    color: var(--dark-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: #FFFFFF !important; /* HVIT tekst */
    border: 2px solid #FFFFFF !important; /* HVIT border */
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #FFFFFF !important; /* HVIT bakgrunn */
    color: var(--dark-green) !important;
}

/* LISTS */
.entry-content ul {
    list-style: none;
    padding-left: 0;
}

.entry-content ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--text-gray);
}

.entry-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* CONTACT FORM */
.wpcf7-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 2rem auto;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: 'Inter', sans-serif;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.wpcf7-form input[type="submit"] {
    background: var(--primary-green);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 1rem;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 204, 102, 0.3);
}

/* FOOTER */
.site-footer {
    background: var(--dark-green) !important;
    color: var(--white) !important;
    padding: 3rem 2rem 1.5rem !important;
    text-align: center;
}

.site-footer,
.site-footer * {
    color: var(--white) !important;
}

.site-footer a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.site-footer a:hover {
    opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .entry-content h2 {
        font-size: 2rem !important;
    }

    .custom-nav {
        display: none;
    }

    .wp-block-columns {
        grid-template-columns: 1fr !important;
    }

    .section,
    .wp-block-group.section {
        padding: 3rem 1rem !important;
    }
}

/* FORCE VISIBILITY */
.entry-content,
.entry-content * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* ULTIMATE MEMBER STYLING */
.um {
    font-family: 'Inter', sans-serif !important;
}

.um-form {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.um-form input[type="text"],
.um-form input[type="email"],
.um-form input[type="password"] {
    width: 100% !important;
    padding: 1rem !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s !important;
    font-family: 'Inter', sans-serif !important;
}

.um-form input:focus {
    outline: none !important;
    border-color: var(--primary-green) !important;
}

.um-button {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    padding: 1rem 2.5rem !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

.um-button:hover {
    background: var(--dark-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 102, 71, 0.3) !important;
}

.um-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.um-member {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
}

.um-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 102, 71, 0.15);
}

.um-member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

/* Restrict content message */
.um-restrict-content-message {
    background: var(--light-green);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    border: 2px solid var(--primary-green);
}
