/*
Theme Name: Weblabs Custom
Theme URI: https://weareweblabs.de
Author: Weblabs
Description: Custom Theme Migration from Payload – Stil Studie
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;500;600;700&family=Roboto:wght@400;600&display=swap');

:root {
    --theme-primary: #fdd5a1;
    --theme-secondary: #667eea;
    --theme-bg: #ffffff;
    --theme-text: #000000;
    --theme-muted: rgba(0,0,0,0.5);
    --theme-border: rgba(0,0,0,0.1);
    --theme-card-bg: #ffffff;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background-color: var(--theme-bg);
    color: var(--theme-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 0;
    line-height: 1.15;
}

p { margin-top: 0; line-height: 1.7; color: var(--theme-muted); }

/* ================= UTILITIES ================= */
.section-padding { padding: 80px 40px; }
.container { max-width: 1400px; margin: 0 auto; }
.text-center { text-align: center; }

.heading-xl { font-size: clamp(2rem, 8vw, 6rem); margin-bottom: 1rem; }
.heading-lg { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.heading-md { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 20px; line-height: 1.2; }
.heading-sm { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.3; }

.zigzag-divider {
    border: none; height: 15px; width: 100px; margin: 40px auto;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='15' viewBox='0 0 100 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12L7 3L14 12L21 3L28 12L35 3L42 12L49 3L56 12L63 3L70 12L77 3L84 12L91 3L98 12' stroke='%23fdd5a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; display: block;
}
.zigzag-left { margin: 40px 0; }

.btn-primary {
    display: inline-block; padding: 14px 40px; text-transform: uppercase; letter-spacing: 2px;
    font-weight: 600; font-size: 0.85rem; text-decoration: none; border: 2px solid #fff;
    color: #fff; transition: 0.3s; background: transparent;
}
.btn-primary:hover { background: #fff; color: #000; }

.btn-dark {
    display: inline-block; padding: 14px 40px; text-transform: uppercase; letter-spacing: 2px;
    font-weight: 600; font-size: 0.85rem; text-decoration: none; border: 2px solid #000;
    color: #000; transition: 0.3s; background: transparent;
}
.btn-dark:hover { background: #000; color: #fff; }

/* ================= HEADER ================= */
.site-header {
    position: absolute;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 30px 40px;
}

body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.header-nav a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: opacity 0.3s;
}
.header-nav a:hover { opacity: 0.7; }

.header-logo { flex: 0 0 auto; }
.header-logo img {
    height: 35px;
    display: block;
    filter: brightness(0) invert(1);
}

.header-nav-left, .header-nav-right { flex: 1; }
.header-nav-left { justify-content: flex-end; padding-right: 50px; }
.header-nav-right { justify-content: flex-start; padding-left: 50px; }

/* Dark header variant for inner pages */
.page-header-dark .site-header { position: relative; background: #000; padding: 20px 40px; }
.page-header-dark .header-nav a { color: #fff; }

/* ================= MOBILE MENU ================= */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu-close {
    position: absolute;
    top: 30px; right: 40px;
    background: none; border: none;
    color: #fff; font-size: 36px;
    cursor: pointer;
}
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}
.mobile-menu-nav a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 3px;
    transition: color 0.3s;
}
.mobile-menu-nav a:hover { color: var(--theme-primary); }

@media (max-width: 900px) {
    .header-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
}

/* ================= HERO SLIDER ================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 2;
}
.hero-content {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 3; text-align: center; color: white; width: 90%;
}
.hero-subtitle {
    font-size: 14px; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 20px;
    font-family: 'Roboto', sans-serif; font-weight: 400;
}
.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    margin: 0; letter-spacing: 2px; line-height: 1;
}
.hero-controls {
    position: absolute; bottom: 40px; right: 40px;
    z-index: 3; display: flex; gap: 8px;
}
.hero-controls button {
    background: transparent; border: 1px solid rgba(255,255,255,0.5); color: white;
    width: 40px; height: 40px; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.hero-controls button:hover { background: white; color: black; }
.hero-thumbnails {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; gap: 10px;
}
.hero-thumb {
    width: 70px; height: 45px; cursor: pointer; border: 2px solid transparent;
    background-size: cover; background-position: center; opacity: 0.5; transition: 0.3s;
}
.hero-thumb.active, .hero-thumb:hover { opacity: 1; border-color: white; }

@media (max-width: 768px) {
    .hero-slider { height: 60vh; }
    .hero-thumbnails { gap: 5px; bottom: 20px; }
    .hero-thumb { width: 50px; height: 35px; }
    .hero-controls { bottom: 20px; right: 20px; }
}

/* ================= SERVICES GRID ================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service-card {
    position: relative; aspect-ratio: 1; overflow: hidden;
    display: block; color: #000; text-decoration: none;
}
.service-card img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.9); transition: transform 0.5s;
}
.service-card:hover img { transform: scale(1.05); }
.service-card-content {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 70%; background: #fff; padding: 30px 25px; text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.service-link {
    font-size: 0.85rem; color: var(--theme-muted);
    text-transform: uppercase; letter-spacing: 1px;
}

.service-intro {
    display: flex; flex-direction: column;
    justify-content: center; padding: 25px;
}
.service-intro-link {
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 2px solid #000; padding-bottom: 5px;
    display: inline-block; text-decoration: none; color: #000;
}

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

/* ================= IMAGE TEXT BLOCKS ================= */
.image-text-block { display: flex; gap: 60px; align-items: center; }
.image-text-block.reverse { flex-direction: row-reverse; }
.image-text-content { flex: 1; padding: 20px; }
.image-text-image { flex: 1; }
.image-text-image img { width: 100%; height: 600px; object-fit: cover; display: block; }
.image-text-image.tall img { height: 450px; }

@media (max-width: 900px) {
    .image-text-block, .image-text-block.reverse { flex-direction: column; gap: 30px; }
    .image-text-image img { height: 400px; }
}

/* ================= PORTFOLIO SLIDER ================= */
.portfolio-header {
    display: flex; gap: 60px; align-items: flex-start; margin-bottom: 40px;
}
.portfolio-header-text { flex: 0 0 350px; }
.portfolio-slider {
    flex: 1; display: flex; gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 20px; scrollbar-width: none;
}
.portfolio-slider::-webkit-scrollbar { display: none; }
.portfolio-card {
    flex: 0 0 calc(33.333% - 14px); scroll-snap-align: start;
    position: relative; aspect-ratio: 3/4; overflow: hidden;
    display: block; text-decoration: none;
}
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; background: #fff; padding: 20px;
    text-align: center; transform: translateY(100%); transition: transform 0.3s ease;
}
.portfolio-card:hover .portfolio-card-overlay { transform: translateY(0); }

.slider-controls {
    display: flex; gap: 10px; margin-top: 10px;
}
.slider-controls button {
    background: transparent; border: 1px solid rgba(0,0,0,0.3); color: #000;
    width: 40px; height: 40px; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.slider-controls button:hover { background: #000; color: #fff; }

@media (max-width: 900px) {
    .portfolio-header { flex-direction: column; gap: 30px; }
    .portfolio-header-text { flex: 1; }
    .portfolio-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) { .portfolio-card { flex: 0 0 80%; } }

/* ================= CTA SECTION ================= */
.cta-section {
    padding: 100px 20px; text-align: center; color: #fff;
    background-size: cover; background-position: center; position: relative;
}
.cta-section::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.cta-content { position: relative; z-index: 2; }
.cta-icon { width: 80px; height: 80px; margin: 0 auto 30px; filter: brightness(0) invert(1); display: block; }

/* ================= FOOTER ================= */
.site-footer { border-top: 1px solid var(--theme-border); }

.footer-newsletter {
    padding: 50px 40px;
    border-bottom: 1px solid var(--theme-border);
}
.footer-newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.footer-newsletter h3 {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.3rem;
    margin: 0;
}
.footer-newsletter-arrow {
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}
.footer-newsletter-arrow:hover { color: var(--theme-primary); }

.footer-main { padding: 60px 40px; }
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}
.footer-contact p {
    margin: 0 0 5px;
    font-size: 14px;
    color: #666;
}
.footer-contact a {
    color: #666;
    text-decoration: none;
    transition: 0.3s;
}
.footer-contact a:hover { color: #000; }
.footer-logo-col { text-align: center; flex: 1; }
.footer-logo {
    height: 30px;
    opacity: 0.5;
    margin: 0 auto;
    display: block;
}
.footer-nav {
    display: flex;
    gap: 30px;
}
.footer-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}
.footer-nav a:hover { color: #000; }

.footer-bottom {
    padding: 20px 40px;
    border-top: 1px solid var(--theme-border);
    background: #f8f8f8;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p {
    font-size: 12px;
    color: #999;
    margin: 0;
}
.footer-brand {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-grid { flex-direction: column; text-align: center; align-items: center; }
    .footer-nav { flex-direction: column; gap: 15px; align-items: center; }
    .footer-newsletter-inner { flex-direction: column; gap: 20px; text-align: center; }
    .footer-bottom .container { flex-direction: column; gap: 10px; text-align: center; }
}

/* ================= PAGE HERO (Inner pages) ================= */
.page-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 40px 80px;
    max-width: 900px;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
    color: #fff;
}
.page-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ================= SERVICES PAGE ================= */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.partners-section { background: #f8f8f8; }
.partners-text { max-width: 700px; }
.partners-text p { line-height: 1.8; }

.services-bottom-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.services-bottom-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.services-bottom-content {
    position: relative;
    z-index: 2;
    padding: 80px 40px;
    max-width: 800px;
}
.services-bottom-content p { color: rgba(255,255,255,0.85); }

/* ================= PORTFOLIO/CASES PAGE ================= */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}
.case-card { text-decoration: none; color: #000; display: block; }
.case-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 20px;
}
.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.case-card:hover .case-card-image img { transform: scale(1.03); }
.case-card h3 { margin-bottom: 10px; }
.case-card p { font-size: 0.95rem; }

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

/* ================= OM OS / ABOUT PAGE ================= */
.about-intro {
    max-width: 800px;
    margin: 0 auto;
}
.about-intro p { font-size: 1.05rem; line-height: 1.9; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}
.team-member { text-align: center; }
.team-member-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 20px;
}
.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-member-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--theme-muted);
    margin-bottom: 8px;
}
.team-member h3 { margin-bottom: 10px; }
.team-member-contact {
    font-size: 0.9rem;
    color: var(--theme-muted);
}
.team-member-contact a {
    text-decoration: none;
    transition: 0.3s;
}
.team-member-contact a:hover { color: #000; }

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.value-item h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--theme-primary);
    padding-bottom: 10px;
    display: inline-block;
}
.value-item p { font-size: 0.9rem; }

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

.about-quote {
    padding: 80px 40px;
    background: #f8f8f8;
    text-align: center;
}
.about-quote blockquote {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}
.about-quote cite {
    display: block;
    margin-top: 20px;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--theme-muted);
    font-family: 'Roboto', sans-serif;
    text-transform: none;
}

.about-process {
    max-width: 800px;
    margin: 0 auto;
}
.about-process p { font-size: 1.05rem; line-height: 1.9; }

/* ================= NEWS PAGE ================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}
.news-card { text-decoration: none; color: #000; display: block; }
.news-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f0f0f0;
}
.news-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.news-card:hover .news-card-image img { transform: scale(1.03); }
.news-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.news-card p { font-size: 0.95rem; }

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

/* ================= KONTAKT PAGE ================= */
.contact-hero {
    padding: 160px 40px 80px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.contact-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 30px;
}
.contact-hero p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--theme-muted);
}

.contact-team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}
.contact-person { text-align: center; }
.contact-person-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 20px;
}
.contact-person-image img {
    width: 100%; height: 100%; object-fit: cover;
}
.contact-person-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--theme-muted);
    margin-bottom: 8px;
}
.contact-person h3 { margin-bottom: 10px; }
.contact-person-details {
    font-size: 0.9rem;
    color: var(--theme-muted);
}
.contact-person-details a { text-decoration: none; }
.contact-person-details a:hover { color: #000; }

@media (max-width: 768px) { .contact-team { grid-template-columns: 1fr; } }

/* ================= INDRETNING / MATERIAL PAGE ================= */
.material-intro {
    max-width: 800px;
    margin: 0 auto;
}
.material-intro p { font-size: 1.05rem; line-height: 1.9; }

.material-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.material-tag {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--theme-border);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--theme-muted);
}

.package-section {
    border-top: 1px solid var(--theme-border);
}
.package-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.package-layout.reverse { flex-direction: row-reverse; }
.package-content { flex: 1; }
.package-image { flex: 1; }
.package-image img {
    width: 100%; height: 500px;
    object-fit: cover; display: block;
}
.package-content h2 { margin-bottom: 20px; }
.package-content p { line-height: 1.8; }
.package-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.package-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--theme-muted);
}
.package-list li::before {
    content: '✔';
    margin-right: 10px;
    color: var(--theme-primary);
}
.package-price {
    font-weight: 600;
    color: #000;
    margin-top: 20px;
    font-size: 1rem;
}
.package-price-list {
    list-style: none;
    padding: 0;
}
.package-price-list li {
    padding: 5px 0;
    font-size: 0.95rem;
    color: var(--theme-muted);
}

@media (max-width: 900px) {
    .package-layout, .package-layout.reverse { flex-direction: column; gap: 30px; }
    .package-image img { height: 350px; }
}

.material-bottom {
    background: #f8f8f8;
}
.material-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}
.material-bottom-grid h3 { margin-bottom: 15px; }
.material-bottom-grid p { font-size: 0.95rem; line-height: 1.8; }

@media (max-width: 768px) { .material-bottom-grid { grid-template-columns: 1fr; } }

/* ================= RESPONSIVE GLOBAL ================= */
@media (max-width: 768px) {
    .section-padding { padding: 50px 20px; }
    .contact-hero { padding: 120px 20px 50px; }
}
@media (max-width: 480px) {
    .section-padding { padding: 40px 15px; }
}
