/* 
 * dBS / Delis Baumarktservice - Design System
 */

:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --secondary: #f6993f;
    --secondary-hover: #ed8936;
    --dark: #1a202c;
    --light: #f7fafc;
    --white: #ffffff;
    --grey-300: #e2e8f0;
    --grey-600: #718096;
    --text: #2d3748;
    --transition: all 0.3s ease;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light);
}

.bg-dark {
    background-color: var(--dark);
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 1rem auto;
}

.section-title.left {
    text-align: left;
}

.section-title.left::after {
    margin: 1rem 0;
}

.section-title.white {
    color: var(--white);
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Header & Nav */
header {
    background-color: var(--white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.dbs-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.delis-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-600);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary);
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Hero */
#hero {
    height: 100vh;
    background: url('assets/dbs_hero_placeholder.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--secondary);
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns .btn {
    margin-right: 1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--secondary);
    transition: var(--transition);
}

.logo-container {
    background: var(--white);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.dbs-about-logo {
    max-width: 80% !important;
    height: auto !important;
    /* This filter approximates shifting a dark blue to #1a365d if the source is slightly different */
    /* Alternatively, it ensures the logo is punchy and matches the brand feel */
    filter: contrast(1.1) brightness(0.95);
    mix-blend-mode: multiply; /* Removes white background if present */
}

/* References Carousel */
.ref-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.ref-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.ref-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
}

.ref-item {
    flex: 0 0 calc((100% - 4rem) / 3); /* 3 items visible, minus gaps */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.slider-btn:disabled {
    background: var(--grey-300);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Mobile adjustments for carousel */
@media (max-width: 992px) {
    .ref-item {
        flex: 0 0 calc((100% - 2rem) / 2); /* 2 items visible */
    }
}

@media (max-width: 600px) {
    .ref-item {
        flex: 0 0 100%; /* 1 item visible */
    }
    .ref-slider-container {
        padding: 0;
    }
    .slider-btn {
        width: 35px;
        height: 35px;
    }
}

.ref-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ref-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(26, 54, 93, 0.9));
    color: var(--white);
    transition: var(--transition);
}

.ref-item:hover .ref-overlay {
    bottom: 0;
}

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

/* Partner Logos */
.partner-logos {
    overflow: hidden;
    padding: 4rem 0 2rem;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.partner-logos::before,
.partner-logos::after {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    content: "";
    z-index: 2;
}

.partner-logos::before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.partner-logos::after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.logo-track {
    display: inline-flex;
    align-items: center;
    gap: 4rem;
    /* Spacing between logos */
    animation: scroll 20s linear infinite;
}

.logo-track img {
    height: 60px;
    /* Adjust based on actual logo size */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    /* Professional look, remove if color preferred */
    transition: var(--transition);
}

.logo-track img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 2rem));
    }

    /* Moves exactly halfway so loop is seamless */
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-details i {
    color: var(--secondary);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    border: 1px solid var(--grey-300);
    background: var(--light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    background: #0f172a;
    color: var(--grey-600);
    border-top: 1px solid #1e293b;
}

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

/* Mobile Responsive */
@media (max-width: 968px) {

    .about-grid,
    .contact-wrapper,
    .ref-carousel {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
        margin-bottom: 3rem;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 2rem;
    }

    .hero-btns .btn {
        margin-right: 0 !important;
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        display: block;
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: var(--primary);
        margin: 5px;
        transition: var(--transition);
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--white);
    color: var(--text);
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--grey-300);
    border-radius: 10px;
    z-index: 2000;
    transition: var(--transition);
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    background: var(--primary);
    color: var(--white);
    flex-shrink: 0;
}

.cookie-banner.hidden {
    display: none;
}

.burger {
    display: none;
}