/* =============================================
   DIT GARDIN – Hovedstilark
   ============================================= */

/* --- CSS-variabler (farver) --- */
:root {
    --dark:   #27241C;
    --accent: #4a4540;
    --cta:    #A99C84;
    --white:  #ffffff;
    --light:  #FAF9F5;
    --text:   #4a4540;
    --black:  #27241C;
    --header-height: 97px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Red Hat Display', Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cta); text-decoration: none; transition: filter 0.5s; }
a:hover { filter: brightness(1.2); }
h1, h2, h3, h4 { color: var(--black); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul { list-style: none; }
::selection { background-color: var(--cta); color: var(--white); }
:focus { outline: none !important; }

/* --- Layout --- */
.container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 30px;
}
.section-inner {
    padding: 90px 0;
}
@media (max-width: 991px) {
    .section-inner { padding: 60px 0; }
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
    background-color: var(--black);
    color: var(--white);
    font-size: 13px;
    padding: 8px 30px;
}
.top-bar .inside {
    max-width: 1230px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar a {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-right: 15px;
    font-weight: 500;
}
.top-bar .right { display: flex; align-items: center; }
.top-bar a:last-child { padding-right: 0; }
.top-bar a i { font-size: 14px; line-height: 1; }
.top-bar .left a i { font-size: 16px; }
.top-bar a:hover { filter: brightness(1.2); }
@media (max-width: 768px) {
    .top-bar { display: none; }
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-height: var(--header-height);
}
.header-inner {
    max-width: 1230px;
    margin: 0 auto;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-logo a { display: block; }
.site-logo img { max-height: 77px; width: auto; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav ul { display: flex; list-style: none; gap: 0; }
.main-nav ul li a {
    display: block;
    padding: 10px 15px;
    color: var(--black);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}
.main-nav ul li:first-child a { padding-left: 0; }
.main-nav ul li:last-child a { padding-right: 0; }
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a { color: var(--cta); filter: none; }

/* Nav CTA knap */
.nav-cta {
    margin-left: 20px;
    padding: 0 22px;
    line-height: 2.6em;
    font-size: 14px;
    flex-shrink: 0;
}
@media (max-width: 1024px) {
    .nav-cta { display: none; }
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--black);
    transition: 0.3s;
}
@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px 30px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul li a { padding: 12px 0; border-bottom: 1px solid var(--light); }
    .main-nav ul li:first-child a { padding-left: 0; }
}

/* =============================================
   HERO-SEKTION
   ============================================= */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    background: var(--light);
}
.hero-text {
    background-color: var(--light);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.hero-text .eyebrow {
    color: var(--cta);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0;
}
.hero-text h3 {
    color: var(--black);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0;
}
.hero-text p { color: var(--text); font-size: 1rem; margin-bottom: 0; }
.hero-image {
    position: relative;
    overflow: hidden;
}
.slideshow {
    width: 100%;
    height: 100%;
    min-height: 500px;
    position: relative;
}
.slideshow-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.slideshow-slide.active { opacity: 1; }

@media (max-width: 768px) {
    .hero-section { grid-template-columns: 1fr; }
    .hero-image { min-height: 300px; }
    .slideshow { min-height: 300px; }
    .hero-text { padding: 40px 30px; }
    .hero-text h3 { font-size: 2rem; }
}

/* =============================================
   BTN / KNAPPER
   ============================================= */
.btn {
    display: inline-block;
    padding: 0 30px;
    line-height: 3.4em;
    background-color: var(--accent);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    border-radius: 3px;
    transition: filter 1s;
    cursor: pointer;
    text-decoration: none;
    filter: none !important;
}
.btn:hover { filter: brightness(1.2) !important; }
.btn.btn-cta { background-color: var(--accent); }
.btn.btn-white { background-color: var(--white); color: var(--black) !important; }

/* =============================================
   SERVICES / CTA-BOKSE
   ============================================= */
.services-section {
    background: var(--light);
}
.services-inner { padding: 60px 0 40px; }
@media (max-width: 991px) { .services-inner { padding: 40px 0 30px; } }

.services-heading {
    text-align: center;
    margin-bottom: 0;
}
.services-heading h3 { font-size: 1.8rem; }
.services-heading p { color: var(--text); font-size: 1.1rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}

.cta-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    min-height: 250px;
    display: block;
}
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    transition: background 0.5s;
    z-index: 1;
}
.cta-card:hover::before { background: rgba(0,0,0,0.55); }
.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.cta-card:hover .cta-bg { transform: translateX(-5px); }
.cta-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    color: var(--white);
}
.cta-content h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 5px; }
.cta-content span { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* =============================================
   OM OS / TEKST+BILLEDE
   ============================================= */
.about-section {
    background: var(--white);
    padding-top: 90px;
}
@media (max-width: 991px) {
    .about-section { padding-top: 60px; }
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}
.about-text {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background: var(--light);
}
.about-text .pretitle {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cta);
    letter-spacing: 0.08em;
}
.about-text h1 { font-size: 1.8rem; color: var(--black); }
.about-text h2 { font-size: 1.3rem; color: var(--accent); font-weight: 600; }
.about-text h3 { font-size: 1.15rem; }
.about-text h4 { font-size: 1rem; }
.about-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image { min-height: 300px; }
    .about-text { padding: 40px 30px; }
}

/* =============================================
   GALLERI
   ============================================= */
.gallery-section { background: var(--white); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 90px 0;
}
@media (max-width: 991px) { .gallery-grid { padding: 60px 0; } }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
    aspect-ratio: 3/4;
    overflow: hidden;
    display: block;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s;
}
.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }

/* =============================================
   KONTAKT-SEKTION
   ============================================= */
.contact-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}
.contact-section::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    background-color: var(--dark);
    opacity: 0.8;
}
.contact-inner {
    position: relative;
    z-index: 1;
    padding: 90px 0;
}
@media (max-width: 991px) { .contact-inner { padding: 60px 0; } }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-text h3 { color: var(--white); font-size: 1.8rem; margin-bottom: 10px; }
.contact-text h4 { color: var(--cta); font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }
.contact-text p { color: rgba(255,255,255,0.85); }
.contact-text a { color: var(--cta); }

/* Kontaktformular */
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--white);
    border: 1px solid #ddd;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 15px;
    border-radius: 2px;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--cta); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 480px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.contact-form .btn {
    background-color: var(--cta);
    color: var(--white) !important;
    width: 100%;
    display: block;
    text-align: center;
    border: none;
    cursor: pointer;
}

/* CF7 styling */
.wpcf7 .wpcf7-form-control-wrap input,
.wpcf7 .wpcf7-form-control-wrap textarea {
    width: 100%;
    background: var(--white);
    border: 1px solid #ddd;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 15px;
    border-radius: 2px;
}
.wpcf7 .wpcf7-form-control-wrap textarea { min-height: 120px; }
.wpcf7 input[type="submit"] {
    background-color: var(--cta) !important;
    color: var(--white) !important;
    border: 2px solid transparent !important;
    padding: 0 30px !important;
    line-height: 3.4em !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    font-family: inherit !important;
    width: 100% !important;
    cursor: pointer;
    transition: filter 1s;
    border-radius: 2px;
}
.wpcf7 input[type="submit"]:hover { filter: brightness(1.2); }
.wpcf7-response-output { margin-top: 10px !important; border-radius: 2px !important; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background-color: var(--black);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.6em;
}
.footer-widgets {
    padding: 60px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
.footer-widget h2 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.footer-widget p { margin-bottom: 0.6em; }
.footer-widget a { color: rgba(255,255,255,0.8); }
.footer-widget a:hover { filter: brightness(1.2); }

/* Social ikoner */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 2.2em;
    height: 2.2em;
    font-size: 20px;
    background-color: rgba(0,0,0,0.1);
    margin-right: 8px;
    transition: background-color 0.5s;
    color: var(--white) !important;
    filter: none !important;
}
.footer-social a:hover { background-color: rgba(0,0,0,0.25); }

/* Footer menu */
.footer-menu { columns: 2; column-gap: 20px; }
@media (max-width: 450px) { .footer-menu { columns: 1; } }
.footer-menu li a {
    display: block;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    line-height: 2em;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}
.footer-menu li a::before {
    font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free';
    font-weight: 900;
    content: "\f054";
    padding-right: 5px;
    color: var(--accent);
    opacity: 0.35;
    transition: opacity 0.5s, padding-right 0.5s;
}
.footer-menu li a:hover::before { opacity: 1; padding-right: 10px; }

/* Copyright bar */
.footer-bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* =============================================
   FIXED PILL (telefon-knap mobil)
   ============================================= */
.fixed-pill {
    display: none;
}
@media (max-width: 768px) {
    .fixed-pill {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
    }
    .fixed-pill a {
        background-color: var(--cta);
        color: var(--white) !important;
        padding: 12px 20px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        filter: none !important;
    }
}

/* =============================================
   UNDERSIDER – Fælles stilarter
   ============================================= */

/* --- Hero-banner på undersider --- */
.page-hero {
    position: relative;
    background-color: var(--dark);
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}
.page-hero-short { min-height: 260px; }
.page-hero-overlay {
    width: 100%;
    padding: 80px 30px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.75));
}
.page-hero-content {
    max-width: 1230px;
    margin: 0 auto;
}
.page-hero-content h1 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 1rem;
    max-width: 800px;
}
.page-hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    max-width: 600px;
}
.hero-contact-list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    list-style: none;
}
.hero-contact-list li a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    filter: none;
}
.hero-contact-list li a:hover { color: var(--cta); filter: none; }

/* --- Indholdssektion på undersider --- */
.subpage-content-section {
    padding: 70px 0;
    background: var(--white);
}
.subpage-intro {
    text-align: center;
    margin-bottom: 50px;
}
.subpage-intro h2 {
    font-size: 1.8rem;
    color: var(--black);
}
.divider {
    width: 60px;
    height: 3px;
    background: var(--cta);
    margin: 16px auto 0;
}
.subpage-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.subpage-text-single {
    max-width: 820px;
    margin: 0 auto;
}
.subpage-col h3 { margin-top: 1.5rem; }
.subpage-col h3:first-child { margin-top: 0; }

/* --- Feature-liste --- */
.feature-list {
    list-style: none;
    margin-bottom: 1rem;
}
.feature-list li {
    padding: 6px 0 6px 26px;
    position: relative;
    color: var(--text);
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cta);
    font-weight: 700;
}

/* --- Kontakt-info liste --- */
.contact-info-list {
    list-style: none;
    margin-top: 1rem;
}
.contact-info-list li {
    padding: 5px 0;
    color: var(--text);
}
.contact-info-list li a { color: var(--cta); }

/* --- Gallery 4-kolonne variant --- */
.gallery-grid-4col {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* --- Baggrundsbilleder per underside (body-klasse) --- */
.page-id-60 .page-hero { background-image: url('../images/gallery-1.jpg'); }
.page-id-62 .page-hero { background-image: url('../images/gallery-8.jpg'); }
.page-id-66 .page-hero { background-image: url('../images/gallery-3.jpg'); }
.page-id-68 .page-hero { background-image: url('../images/gallery-5.jpg'); }
.page-id-68 .contact-section { background-image: url('../images/about-bg.jpg'); }

/* --- Responsive undersider --- */
@media (max-width: 900px) {
    .subpage-text-grid { grid-template-columns: 1fr; gap: 30px; }
    .gallery-grid-4col { grid-template-columns: repeat(2, 1fr) !important; }
    .page-hero-content h1 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
    .page-hero { min-height: 280px; }
    .page-hero-overlay { padding: 60px 20px; }
    .hero-contact-list { gap: 12px; }
}
