/*
 * Theme Name:   Elementbolig Minihus Theme
 * Theme URI:    https://elementbolig-minihus.no
 * Description:  Custom Hello Elementor child theme for Elementbolig Minihus AS
 * Author:       Elementbolig Minihus AS
 * Author URI:   https://elementbolig-minihus.no
 * Template:     hello-elementor
 * Version:      1.0.0
 * License:      GNU General Public License v2 or later
 * License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  elementbolig-theme
 * Requires at least: 6.0
 * Tested up to: 6.4
 * Requires PHP: 7.4
 */

/* ==========================================================================
   Elementbolig Minihus AS - Brand Styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Brand Colors)
   -------------------------------------------------------------------------- */
:root {
    /* Primary Colors */
    --eb-charcoal: #2D2D2D;
    --eb-charcoal-dark: #1A1A1A;
    --eb-charcoal-light: #404040;

    /* Secondary Colors */
    --eb-warm-gray: #8B8178;
    --eb-beige: #C4B8A5;
    --eb-sand: #E8E0D5;
    --eb-off-white: #F5F3F0;
    --eb-cream: #FAF9F7;

    /* Accent Color - Gold (subtle use only) */
    --eb-gold: #B8965A;
    --eb-gold-light: #D4B87A;
    --eb-gold-dark: #9A7B48;

    /* Functional Colors */
    --eb-success: #4A7C59;
    --eb-error: #9B4444;
    --eb-info: #4A6B8A;

    /* Typography */
    --eb-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --eb-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing Scale */
    --eb-space-xs: 0.25rem;
    --eb-space-sm: 0.5rem;
    --eb-space-md: 1rem;
    --eb-space-lg: 1.5rem;
    --eb-space-xl: 2rem;
    --eb-space-2xl: 3rem;
    --eb-space-3xl: 4rem;
    --eb-space-4xl: 6rem;

    /* Border Radius */
    --eb-radius-sm: 4px;
    --eb-radius-md: 8px;
    --eb-radius-lg: 12px;
    --eb-radius-xl: 16px;

    /* Shadows */
    --eb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --eb-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --eb-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --eb-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --eb-transition-fast: 150ms ease;
    --eb-transition-normal: 250ms ease;
    --eb-transition-slow: 350ms ease;
}

/* --------------------------------------------------------------------------
   Base Typography
   -------------------------------------------------------------------------- */
body {
    font-family: var(--eb-font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--eb-charcoal);
    background-color: var(--eb-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--eb-font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--eb-charcoal-dark);
    margin-bottom: var(--eb-space-md);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--eb-space-md);
    color: var(--eb-charcoal-light);
}

a {
    color: var(--eb-charcoal);
    text-decoration: none;
    transition: color var(--eb-transition-fast);
}

a:hover {
    color: var(--eb-gold);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.eb-btn,
.elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--eb-space-sm);
    padding: var(--eb-space-md) var(--eb-space-xl);
    font-family: var(--eb-font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: none;
    border: none;
    border-radius: var(--eb-radius-sm);
    cursor: pointer;
    transition: all var(--eb-transition-normal);
}

.eb-btn-primary,
.elementor-button-primary {
    background-color: var(--eb-charcoal);
    color: var(--eb-off-white);
}

.eb-btn-primary:hover,
.elementor-button-primary:hover {
    background-color: var(--eb-charcoal-dark);
    color: var(--eb-cream);
    transform: translateY(-1px);
    box-shadow: var(--eb-shadow-md);
}

.eb-btn-secondary {
    background-color: transparent;
    color: var(--eb-charcoal);
    border: 1px solid var(--eb-charcoal);
}

.eb-btn-secondary:hover {
    background-color: var(--eb-charcoal);
    color: var(--eb-off-white);
}

.eb-btn-sm {
    padding: var(--eb-space-sm) var(--eb-space-lg);
    font-size: 0.875rem;
}

.eb-btn-gold {
    background-color: var(--eb-gold);
    color: var(--eb-cream);
}

.eb-btn-gold:hover {
    background-color: var(--eb-gold-dark);
    box-shadow: var(--eb-shadow-md);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.eb-card {
    background-color: var(--eb-cream);
    border-radius: var(--eb-radius-md);
    overflow: hidden;
    box-shadow: var(--eb-shadow-sm);
    transition: all var(--eb-transition-normal);
}

.eb-card:hover {
    box-shadow: var(--eb-shadow-lg);
    transform: translateY(-4px);
}

.eb-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.eb-card-content {
    padding: var(--eb-space-lg);
}

.eb-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--eb-space-sm);
}

.eb-card-meta {
    font-size: 0.875rem;
    color: var(--eb-warm-gray);
    margin-bottom: var(--eb-space-md);
}

/* --------------------------------------------------------------------------
   Section Styling
   -------------------------------------------------------------------------- */
.eb-section {
    padding: var(--eb-space-4xl) 0;
}

.eb-section-dark {
    background-color: var(--eb-charcoal);
    color: var(--eb-off-white);
}

.eb-section-dark h2,
.eb-section-dark h3 {
    color: var(--eb-cream);
}

.eb-section-dark p {
    color: var(--eb-sand);
}

.eb-section-light {
    background-color: var(--eb-off-white);
}

.eb-section-sand {
    background-color: var(--eb-sand);
}

/* --------------------------------------------------------------------------
   Gold Accent Elements (Subtle Use)
   -------------------------------------------------------------------------- */
.eb-accent-line {
    width: 60px;
    height: 2px;
    background-color: var(--eb-gold);
    margin-bottom: var(--eb-space-lg);
}

.eb-icon-gold {
    color: var(--eb-gold);
}

.eb-link-gold:hover {
    color: var(--eb-gold);
}

.eb-border-gold {
    border-color: var(--eb-gold);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.eb-header {
    background-color: var(--eb-cream);
    border-bottom: 1px solid var(--eb-sand);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.eb-nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--eb-charcoal);
    padding: var(--eb-space-sm) var(--eb-space-md);
    position: relative;
}

.eb-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--eb-gold);
    transition: all var(--eb-transition-normal);
    transform: translateX(-50%);
}

.eb-nav-link:hover::after,
.eb-nav-link.active::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.eb-footer {
    background-color: var(--eb-charcoal-dark);
    color: var(--eb-sand);
    padding: var(--eb-space-3xl) 0 var(--eb-space-xl);
}

.eb-footer h4 {
    color: var(--eb-cream);
    font-size: 1rem;
    margin-bottom: var(--eb-space-lg);
}

.eb-footer a {
    color: var(--eb-sand);
}

.eb-footer a:hover {
    color: var(--eb-gold-light);
}

.eb-footer-bottom {
    border-top: 1px solid var(--eb-charcoal-light);
    padding-top: var(--eb-space-xl);
    margin-top: var(--eb-space-2xl);
    font-size: 0.875rem;
    color: var(--eb-warm-gray);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.eb-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--eb-charcoal);
    overflow: hidden;
}

.eb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.6) 50%,
        rgba(26, 26, 26, 0.3) 100%
    );
}

.eb-hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.eb-hero h1 {
    color: var(--eb-cream);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--eb-space-lg);
}

.eb-hero p {
    color: var(--eb-sand);
    font-size: 1.125rem;
    margin-bottom: var(--eb-space-xl);
}

/* --------------------------------------------------------------------------
   Project Archive / Grid
   -------------------------------------------------------------------------- */
.eb-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--eb-space-xl);
}

.eb-project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--eb-radius-md);
    aspect-ratio: 4/3;
}

.eb-project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--eb-transition-slow);
}

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

.eb-project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 26, 26, 0.9) 0%,
        rgba(26, 26, 26, 0) 50%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--eb-space-lg);
    opacity: 0;
    transition: opacity var(--eb-transition-normal);
}

.eb-project-card:hover .eb-project-card-overlay {
    opacity: 1;
}

.eb-project-card-title {
    color: var(--eb-cream);
    font-size: 1.25rem;
    margin-bottom: var(--eb-space-xs);
}

.eb-project-card-category {
    color: var(--eb-gold-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Project Filter
   -------------------------------------------------------------------------- */
.eb-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--eb-space-2xl);
    justify-content: center;
}

.eb-filter-btn {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid var(--eb-sand);
    border-radius: var(--eb-radius-sm);
    font-size: 0.85rem;
    color: var(--eb-charcoal);
    cursor: pointer;
    transition: all var(--eb-transition-fast);
    white-space: nowrap;
}

.eb-filter-btn:hover,
.eb-filter-btn.active {
    background-color: var(--eb-charcoal);
    border-color: var(--eb-charcoal);
    color: var(--eb-cream);
}

/* --------------------------------------------------------------------------
   Product Catalog - Dark Theme
   -------------------------------------------------------------------------- */
.eb-products-section {
    background: transparent;
    padding: var(--eb-space-3xl) 0;
}

.eb-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1200px) {
    .eb-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .eb-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .eb-products-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

.eb-product-card {
    background: rgba(60, 60, 60, 0.4);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.eb-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #c9a961;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.eb-product-card:hover::before {
    transform: scaleX(1);
}

.eb-product-card:hover {
    transform: translateY(-5px);
    border-color: #c9a961;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    background: rgba(70, 70, 70, 0.5);
}

.eb-product-card.hidden {
    display: none;
}

.eb-product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eb-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.eb-product-placeholder {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eb-product-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.eb-product-category {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 3px;
    color: #c9a961;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.eb-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5f5f5;
    line-height: 1.3;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
}

.eb-product-card:hover .eb-product-title {
    color: #c9a961;
}

.eb-product-dimension {
    color: #b8b8b8;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.eb-product-dimension strong {
    color: #f5f5f5;
}

.eb-product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #c9a961;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(80, 80, 80, 0.3);
    margin-top: auto;
}

.eb-product-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #b8b8b8;
}

.eb-product-description {
    font-size: 0.8rem;
    color: #888888;
    line-height: 1.5;
    margin-top: 0.35rem;
}

/* Product Filter Dark Theme */
.eb-products-section .eb-filter {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.eb-products-section .eb-filter-btn {
    padding: 0.65rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.5);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.eb-products-section .eb-filter-btn:hover {
    background: rgba(201, 169, 97, 0.15);
    border-color: #c9a961;
    color: #c9a961;
}

.eb-products-section .eb-filter-btn.active {
    background: #c9a961;
    border-color: #c9a961;
    color: #1a1a1a;
    font-weight: 600;
}

/* Product Count */
.eb-product-count {
    text-align: center;
    margin-bottom: 2rem;
    color: #b8b8b8;
    font-size: 0.95rem;
}

.eb-product-count span {
    color: #c9a961;
    font-weight: 600;
}

/* No results message dark theme */
.eb-products-section .eb-no-results {
    color: #b8b8b8;
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   Modulhus Section
   -------------------------------------------------------------------------- */
.eb-modulhus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--eb-space-xl);
}

.eb-modulhus-card {
    background-color: var(--eb-cream);
    border-radius: var(--eb-radius-lg);
    overflow: hidden;
    box-shadow: var(--eb-shadow-md);
}

.eb-modulhus-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.eb-modulhus-content {
    padding: var(--eb-space-xl);
}

.eb-modulhus-title {
    font-size: 1.5rem;
    margin-bottom: var(--eb-space-md);
}

.eb-modulhus-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--eb-space-md);
    margin-bottom: var(--eb-space-lg);
    padding: var(--eb-space-lg);
    background-color: var(--eb-off-white);
    border-radius: var(--eb-radius-sm);
}

.eb-modulhus-spec {
    text-align: center;
}

.eb-modulhus-spec-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--eb-charcoal);
}

.eb-modulhus-spec-label {
    font-size: 0.75rem;
    color: var(--eb-warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eb-modulhus-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--eb-charcoal);
    margin-bottom: var(--eb-space-lg);
}

.eb-modulhus-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--eb-warm-gray);
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.eb-form {
    max-width: 600px;
    margin: 0 auto;
}

.eb-form-group {
    margin-bottom: var(--eb-space-lg);
}

.eb-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--eb-charcoal);
    margin-bottom: var(--eb-space-sm);
}

.eb-form-input,
.eb-form-textarea,
.eb-form-select {
    width: 100%;
    padding: var(--eb-space-md);
    font-family: var(--eb-font-primary);
    font-size: 1rem;
    color: var(--eb-charcoal);
    background-color: var(--eb-cream);
    border: 1px solid var(--eb-sand);
    border-radius: var(--eb-radius-sm);
    transition: border-color var(--eb-transition-fast);
}

.eb-form-input:focus,
.eb-form-textarea:focus,
.eb-form-select:focus {
    outline: none;
    border-color: var(--eb-gold);
}

.eb-form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.eb-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--eb-space-xl);
}

.eb-service-card {
    text-align: center;
    padding: var(--eb-space-xl);
    background-color: var(--eb-cream);
    border-radius: var(--eb-radius-md);
    transition: all var(--eb-transition-normal);
}

.eb-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eb-shadow-lg);
}

.eb-service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--eb-space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--eb-off-white);
    border-radius: 50%;
    color: var(--eb-gold);
}

.eb-service-title {
    font-size: 1.125rem;
    margin-bottom: var(--eb-space-sm);
}

.eb-service-description {
    font-size: 0.9375rem;
    color: var(--eb-warm-gray);
}

/* --------------------------------------------------------------------------
   Services Grid Dark (Tjenester-stil for Hjem-siden)
   -------------------------------------------------------------------------- */
.eb-services-grid-dark {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--eb-space-xl);
}

@media (max-width: 968px) {
    .eb-services-grid-dark {
        grid-template-columns: 1fr;
    }
}

.eb-service-card-dark {
    background-color: var(--eb-charcoal);
    border-radius: var(--eb-radius-md);
    overflow: hidden;
    transition: transform var(--eb-transition-normal), box-shadow var(--eb-transition-normal);
}

.eb-service-card-dark:hover {
    transform: translateY(-4px);
    box-shadow: var(--eb-shadow-xl);
}

.eb-service-card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.eb-service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--eb-transition-slow);
}

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

.eb-service-card-placeholder {
    background: linear-gradient(135deg, var(--eb-charcoal-light) 0%, var(--eb-charcoal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eb-service-card-content {
    padding: var(--eb-space-xl);
}

.eb-service-card-title {
    color: #FAF9F7;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--eb-space-md);
    transition: color var(--eb-transition-fast);
}

.eb-service-card-dark:hover .eb-service-card-title {
    color: var(--eb-gold);
}

.eb-service-card-desc {
    color: var(--eb-sand);
    font-size: 0.9375rem;
    margin-bottom: var(--eb-space-lg);
    line-height: 1.6;
}

.eb-service-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--eb-space-xl);
}

.eb-service-card-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--eb-space-md);
    color: var(--eb-sand);
    font-size: 0.9rem;
    line-height: 1.5;
}

.eb-service-card-features li:last-child {
    margin-bottom: 0;
}

.eb-service-card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 7px;
    height: 7px;
    background-color: var(--eb-gold);
    border-radius: 50%;
}

.eb-service-card-buttons {
    display: flex;
    gap: var(--eb-space-md);
    flex-wrap: wrap;
}

.eb-service-card-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--eb-gold);
    color: var(--eb-charcoal-dark);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--eb-radius-sm);
    transition: background-color var(--eb-transition-fast), transform var(--eb-transition-fast);
    text-align: center;
}

.eb-service-card-btn:hover {
    background-color: var(--eb-gold-light);
    color: var(--eb-charcoal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 150, 90, 0.3);
}

.eb-service-card-btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: #FAF9F7 !important;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid #FAF9F7;
    border-radius: var(--eb-radius-sm);
    transition: all var(--eb-transition-fast);
    text-align: center;
}

.eb-service-card-btn-outline:hover {
    background-color: #FAF9F7;
    color: #1A1A1A !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 249, 247, 0.2);
}

/* --------------------------------------------------------------------------
   Tjenester Page Cards (Matcher eksisterende design, to kolonner)
   -------------------------------------------------------------------------- */
.eb-tjenester-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--eb-space-xl);
}

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

.eb-tjeneste-card {
    background: rgba(60, 60, 60, 0.4);
    border-radius: var(--eb-radius-md);
    overflow: hidden;
    border: 1px solid rgba(80, 80, 80, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.eb-tjeneste-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #c9a961;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.eb-tjeneste-card:hover::before {
    transform: scaleX(1);
}

.eb-tjeneste-card:hover {
    transform: translateY(-5px);
    border-color: #c9a961;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    background: rgba(70, 70, 70, 0.5);
}

.eb-tjeneste-card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.eb-tjeneste-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--eb-transition-slow);
}

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

.eb-tjeneste-card-content {
    padding: var(--eb-space-xl);
}

.eb-tjeneste-card-title {
    color: #FAF9F7;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: var(--eb-space-md);
    transition: color var(--eb-transition-fast);
}

.eb-tjeneste-card:hover .eb-tjeneste-card-title {
    color: var(--eb-gold);
}

.eb-tjeneste-card-desc {
    color: var(--eb-sand);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--eb-space-xl);
}

.eb-tjeneste-card-buttons {
    display: flex;
    gap: var(--eb-space-md);
    flex-wrap: wrap;
}

.eb-tjeneste-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--eb-gold);
    color: var(--eb-charcoal-dark);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--eb-radius-sm);
    transition: all var(--eb-transition-fast);
    text-align: center;
}

.eb-tjeneste-card-btn:hover {
    background-color: var(--eb-gold-light);
    color: var(--eb-charcoal-dark);
    transform: translateY(-2px);
}

.eb-tjeneste-card-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: transparent;
    color: #FAF9F7 !important;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(250, 249, 247, 0.5);
    border-radius: var(--eb-radius-sm);
    transition: all var(--eb-transition-fast);
    text-align: center;
}

.eb-tjeneste-card-btn-outline:hover {
    background-color: rgba(250, 249, 247, 0.1);
    border-color: #FAF9F7;
    color: #FAF9F7 !important;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Prosjekter/Referanser Page - Dark Theme
   -------------------------------------------------------------------------- */
.eb-prosjekter-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Intro Section */
.eb-prosjekter-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.eb-prosjekter-intro h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #c9a961;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.eb-prosjekter-intro p {
    font-size: 1.05rem;
    color: #b8b8b8;
    line-height: 1.7;
}

/* Featured Project */
.eb-prosjekt-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    background: rgba(60, 60, 60, 0.4);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.eb-prosjekt-featured:hover {
    border-color: #c9a961;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.eb-prosjekt-featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

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

.eb-prosjekt-featured:hover .eb-prosjekt-featured-image img {
    transform: scale(1.05);
}

.eb-prosjekt-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    background: #c9a961;
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.eb-prosjekt-featured-content {
    padding: 2.5rem 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eb-prosjekt-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.eb-prosjekt-location {
    color: #c9a961;
    font-weight: 500;
}

.eb-prosjekt-year {
    color: #888;
}

.eb-prosjekt-featured-content h3 {
    font-size: 1.75rem;
    color: #f5f5f5;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
}

.eb-prosjekt-featured-content p {
    color: #b8b8b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.eb-prosjekt-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.eb-prosjekt-features li {
    position: relative;
    padding-left: 1.5rem;
    color: #b8b8b8;
    font-size: 0.9rem;
}

.eb-prosjekt-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c9a961;
    font-weight: bold;
}

.eb-prosjekt-btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: #c9a961;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: fit-content;
}

.eb-prosjekt-btn:hover {
    background: #d4b978;
    transform: translateY(-2px);
    color: #1a1a1a;
}

/* Projects Grid */
.eb-prosjekter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.eb-prosjekt-card {
    background: rgba(60, 60, 60, 0.4);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.eb-prosjekt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #c9a961;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.eb-prosjekt-card:hover::before {
    transform: scaleX(1);
}

.eb-prosjekt-card:hover {
    transform: translateY(-5px);
    border-color: #c9a961;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.eb-prosjekt-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

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

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

.eb-prosjekt-card-content {
    padding: 1.75rem;
}

.eb-prosjekt-card-content h3 {
    font-size: 1.25rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.eb-prosjekt-card:hover .eb-prosjekt-card-content h3 {
    color: #c9a961;
}

.eb-prosjekt-card-content p {
    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.eb-prosjekt-card .eb-prosjekt-features {
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
}

/* SEO Text Section */
.eb-prosjekter-seo {
    background: rgba(50, 50, 50, 0.4);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 4rem;
    border-left: 4px solid #c9a961;
}

.eb-prosjekter-seo h3 {
    font-size: 1.35rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
}

.eb-prosjekter-seo p {
    color: #b8b8b8;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.eb-prosjekter-seo p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.eb-prosjekter-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 12px;
}

.eb-prosjekter-cta h3 {
    font-size: 1.75rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
}

.eb-prosjekter-cta p {
    color: #b8b8b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.eb-prosjekter-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.eb-prosjekt-btn-primary {
    padding: 1rem 2rem;
    background: #c9a961;
    color: #1a1a1a;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.eb-prosjekt-btn-primary:hover {
    background: #d4b978;
    transform: translateY(-2px);
    color: #1a1a1a;
}

.eb-prosjekt-btn-outline {
    padding: 1rem 2rem;
    background: transparent;
    color: #f5f5f5;
    font-weight: 500;
    border: 2px solid #c9a961;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.eb-prosjekt-btn-outline:hover {
    background: rgba(201, 169, 97, 0.15);
    color: #f5f5f5;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .eb-prosjekt-featured {
        grid-template-columns: 1fr;
    }

    .eb-prosjekt-featured-image {
        min-height: 300px;
    }

    .eb-prosjekt-featured-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .eb-prosjekter-section {
        padding: 0 1.5rem 3rem;
    }

    .eb-prosjekter-grid {
        grid-template-columns: 1fr;
    }

    .eb-prosjekt-features {
        grid-template-columns: 1fr;
    }

    .eb-prosjekter-cta {
        padding: 3rem 1.5rem;
    }

    .eb-prosjekter-cta-buttons {
        flex-direction: column;
    }
}

/* --------------------------------------------------------------------------
   Prosjekt Templates - For manuell bruk i WordPress
   -------------------------------------------------------------------------- */
.eb-prosjekt-template {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.eb-prosjekt-template:last-of-type {
    margin-bottom: 2rem;
}

/* Prosjekt Header */
.eb-prosjekt-header {
    margin-bottom: 2rem;
}

.eb-prosjekt-header h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #f5f5f5;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.eb-prosjekt-header .eb-prosjekt-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Prosjekt Galleri */
.eb-prosjekt-galleri {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.eb-prosjekt-galleri-main {
    grid-row: 1 / 3;
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.eb-prosjekt-galleri-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.eb-prosjekt-galleri-main:hover img {
    transform: scale(1.03);
}

.eb-prosjekt-galleri-thumb {
    position: relative;
    overflow: hidden;
    min-height: 195px;
}

.eb-prosjekt-galleri-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.eb-prosjekt-galleri-thumb:hover img {
    transform: scale(1.05);
}

/* Alternativt galleri - 3 kolonner */
.eb-prosjekt-galleri-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.eb-prosjekt-galleri-3col .eb-galleri-item {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.eb-prosjekt-galleri-3col .eb-galleri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.eb-prosjekt-galleri-3col .eb-galleri-item:hover img {
    transform: scale(1.05);
}

/* Prosjekt Innhold */
.eb-prosjekt-innhold {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.eb-prosjekt-beskrivelse h4 {
    font-size: 1.25rem;
    color: #c9a961;
    margin-bottom: 1rem;
    font-weight: 600;
}

.eb-prosjekt-beskrivelse p {
    color: #b8b8b8;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.eb-prosjekt-sidebar {
    background: rgba(60, 60, 60, 0.4);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 8px;
    padding: 1.75rem;
    height: fit-content;
}

.eb-prosjekt-sidebar h4 {
    font-size: 1.1rem;
    color: #f5f5f5;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.3);
}

.eb-prosjekt-detaljer {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.eb-prosjekt-detaljer li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(80, 80, 80, 0.3);
    font-size: 0.9rem;
}

.eb-prosjekt-detaljer li:last-child {
    border-bottom: none;
}

.eb-prosjekt-detaljer .label {
    color: #888;
}

.eb-prosjekt-detaljer .value {
    color: #f5f5f5;
    font-weight: 500;
}

.eb-prosjekt-sidebar .eb-prosjekt-btn {
    width: 100%;
    text-align: center;
}

/* Prosjekt Divider */
.eb-prosjekt-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 169, 97, 0.4), transparent);
    margin: 4rem auto;
    max-width: 800px;
}

/* Responsive for templates */
@media (max-width: 968px) {
    .eb-prosjekt-galleri {
        grid-template-columns: 1fr 1fr;
    }

    .eb-prosjekt-galleri-main {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 300px;
    }

    .eb-prosjekt-innhold {
        grid-template-columns: 1fr;
    }

    .eb-prosjekt-sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .eb-prosjekt-template {
        padding: 0 1rem;
    }

    .eb-prosjekt-galleri {
        grid-template-columns: 1fr;
    }

    .eb-prosjekt-galleri-main {
        grid-column: auto;
        min-height: 250px;
    }

    .eb-prosjekt-galleri-thumb {
        min-height: 150px;
    }

    .eb-prosjekt-galleri-3col {
        grid-template-columns: 1fr;
    }

    .eb-prosjekt-galleri-3col .eb-galleri-item {
        height: 220px;
    }
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.eb-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--eb-space-3xl);
    align-items: center;
}

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

.eb-about-image {
    border-radius: var(--eb-radius-lg);
    overflow: hidden;
}

.eb-about-image img {
    width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Instagram Feed
   -------------------------------------------------------------------------- */
.eb-instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--eb-space-xs);
}

@media (max-width: 768px) {
    .eb-instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.eb-instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.eb-instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--eb-transition-normal);
}

.eb-instagram-item:hover img {
    transform: scale(1.1);
}

.eb-instagram-placeholder {
    text-align: center;
}

.eb-instagram-placeholder-item {
    background: linear-gradient(135deg, var(--eb-off-white) 0%, var(--eb-sand) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eb-instagram-placeholder-item .dashicons {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
    color: var(--eb-warm-gray);
    opacity: 0.5;
}

.eb-instagram-note {
    margin-top: var(--eb-space-xl);
    color: var(--eb-warm-gray);
}

.eb-instagram-note a {
    color: var(--eb-gold);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.eb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--eb-space-lg);
}

.eb-text-center { text-align: center; }
.eb-text-left { text-align: left; }
.eb-text-right { text-align: right; }

.eb-mt-0 { margin-top: 0; }
.eb-mt-1 { margin-top: var(--eb-space-sm); }
.eb-mt-2 { margin-top: var(--eb-space-md); }
.eb-mt-3 { margin-top: var(--eb-space-lg); }
.eb-mt-4 { margin-top: var(--eb-space-xl); }
.eb-mt-5 { margin-top: var(--eb-space-2xl); }

.eb-mb-0 { margin-bottom: 0; }
.eb-mb-1 { margin-bottom: var(--eb-space-sm); }
.eb-mb-2 { margin-bottom: var(--eb-space-md); }
.eb-mb-3 { margin-bottom: var(--eb-space-lg); }
.eb-mb-4 { margin-bottom: var(--eb-space-xl); }
.eb-mb-5 { margin-bottom: var(--eb-space-2xl); }

.eb-hidden { display: none; }
.eb-visible { display: block; }

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .eb-hero {
        min-height: 60vh;
    }
}

@media (max-width: 768px) {
    .eb-section {
        padding: var(--eb-space-3xl) 0;
    }

    .eb-hero {
        min-height: 50vh;
    }

    .eb-projects-grid {
        grid-template-columns: 1fr;
    }

    .eb-modulhus-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Elementor Overrides
   -------------------------------------------------------------------------- */
.elementor-kit-[ID] {
    --e-global-color-primary: var(--eb-charcoal);
    --e-global-color-secondary: var(--eb-warm-gray);
    --e-global-color-accent: var(--eb-gold);
    --e-global-color-text: var(--eb-charcoal);
}

.elementor-widget-heading .elementor-heading-title {
    color: var(--eb-charcoal-dark);
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}
