/**
 * Homepage Custom Styles
 * Improves visibility of navigation and hero text over background image
 */

/* Body background color */
body.home.page-template-default {
    background-color: #f5eee9;
}

/* Button background color */
.home .btn {
    background-color: #351312;
    border-color: #351312;
    color: #fff;
}

/* Override blue background color */
:root:root .home .u-bg-blue {
    background-color: #351312;
}

/* Dark gradient overlay on hero image for better text visibility */
.home .c-hero--overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.2) 35%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.35) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Semi-transparent background on text container */
.home .c-hero--overlay .c-hero__text {
    background: rgba(0, 0, 0, 0.5);
    padding: 24px 32px;
    border-radius: 8px;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .home .c-hero--overlay .c-hero__text {
        max-width: 48%;
    }
}

/* Header navigation - semi-transparent background for visibility */
.home .main-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
	background-color:transparent!important;
	
}

.home .main-header__nav a {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Contact button in navigation */
:root .home .main-header__nav ul li.contact a {
    color: #fff;
}

.home .btn-primary-light,
.home .main-header .button a,
.home .main-header__nav ul li.contact a {
    background-color: #351312;
}

/* CTA buttons - ensure good contrast */
.home .c-hero .btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* =============================================
   Raske fakta om Ragde - Stats Section
   ============================================= */

.home .c-module--grid:first-of-type {
    padding-top: 80px;
    padding-bottom: 80px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.03) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    box-shadow: inset 0 20px 40px -20px rgba(0, 0, 0, 0.08);
}

/* Section title */
.home .c-module--grid:first-of-type h2.c-grid__title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

/* Disable Owl Carousel - display as grid */
.home .c-module--grid:first-of-type .c-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .home .c-module--grid:first-of-type .c-horizontal-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home .c-module--grid:first-of-type .owl-stage-outer,
.home .c-module--grid:first-of-type .owl-stage {
    display: contents;
}

.home .c-module--grid:first-of-type .owl-item {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
}

.home .c-module--grid:first-of-type .owl-nav,
.home .c-module--grid:first-of-type .owl-dots {
    display: none;
}

/* Stats grid items - elegant minimal style */
.home .c-module--grid:first-of-type .c-grid__item {
    text-align: center;
    padding: 20px 16px;
    position: relative;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home .c-module--grid:first-of-type .c-grid__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* Subtle vertical divider between items */
.home .c-module--grid:first-of-type .c-grid__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .home .c-module--grid:first-of-type .c-grid__item::after {
        display: none;
    }
}

/* Stat label (pre-title) */
.home .c-module--grid:first-of-type .c-grid__item__pre-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 8px;
    font-weight: 400;
}

/* Stat number (title) */
.home .c-module--grid:first-of-type h3.c-grid__item__title {
    font-size: 1.75rem;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.12;
    margin: 0;
    font-family: National, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
}

@media (min-width: 992px) {
    .home .c-module--grid:first-of-type h3.c-grid__item__title {
        font-size: 2rem;
    }
}

/* =============================================
   Varierte prosjekter - Second Grid Section
   ============================================= */

.home .c-module--grid:nth-of-type(2) {
    padding-top: 80px;
    padding-bottom: 80px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    box-shadow: inset 0 20px 40px -20px rgba(0, 0, 0, 0.06);
}

/* Pre-title */
.home .c-module--grid:nth-of-type(2) .c-grid__pre-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    font-weight: 400;
    margin-bottom: 8px;
}

.home .c-module--grid:nth-of-type(2) .c-grid__pre-title h3 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

/* Section title */
.home .c-module--grid:nth-of-type(2) h2.c-grid__title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #333;
    margin-bottom: 24px;
}

/* Lead text */
.home .c-module--grid:nth-of-type(2) .c-grid__lead {
    max-width: 700px;
    margin: 0 auto 48px;
    color: #666;
    line-height: 1.7;
}

/* Grid items */
.home .c-module--grid:nth-of-type(2) .c-grid__item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home .c-module--grid:nth-of-type(2) .c-grid__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* Icons */
.home .c-module--grid:nth-of-type(2) .c-grid__item__image {
    margin-bottom: 20px;
}

.home .c-module--grid:nth-of-type(2) .c-grid__item__image img {
    height: 48px;
    width: auto;
    opacity: 0.8;
}

/* Item titles */
.home .c-module--grid:nth-of-type(2) h3.c-grid__item__title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Item text */
.home .c-module--grid:nth-of-type(2) .c-grid__item__text {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Rounded images */
.home img {
    border-radius: 8px;
}

/* Billboard images - custom border-radius */
.home .c-billboard__image img {
    border-radius: 0 8px 0 0;
}

.home .c-billboard--right .c-billboard__image img {
    border-radius: 0 0 8px 0;
}

.home .c-billboard {
    border-radius: 8px;
}

.home .c-billboard.u-bg-blue {
    border-radius: 0;
}

.home .c-billboard__content {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}

#kiellands .c-billboard__content {
    padding: 40px 110px 60px;
}

.home .u-bg-blue .c-billboard__content {
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
}

.home .u-bg-blue .c-billboard__content h2 {
    color: #25252e !important;
}

.home .u-bg-blue .c-billboard__content .label {
    color: #25252e !important;
    font-size: 18px;
}
