/* ===== Reset & Variables ===== */
:root {
    --primary-color: #7A4E2D;
    --secondary-color: #FAF8F5;
    --text-color: #2B2B2B;
    --tertiary-color: #6B625A;
    --accent-color: #C7AA86;
    --cta-color: #8B4A2F;
    --cta-hover-color: #6F3824;
    --light-gray: #E8DDCF;
    --border-color: #C7AA86;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--cta-hover-color);
    box-shadow: 0 4px 15px rgba(139, 74, 47, 0.28);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-large {
    padding: 20px 50px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(139, 74, 47, 0.24);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: flex;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid rgba(250, 248, 245, 0.75);
}

.cookie-btn:hover {
    opacity: 0.9;
}

/* ===== Header / Navigation ===== */
.header {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Lora, Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 300;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    font-family: Lora, Georgia, 'Times New Roman', serif;
    font-weight: 300;
    line-height: 1;
}


.logo em {
    font-style: normal;
    font-family: Lora, Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: 0;
    opacity: 0.82;
}


.logo-initial {
    font-size: 1.18em;
    line-height: 0.9;
}

.logo strong {
    font-weight: 700;
    letter-spacing: 0.035em;
}

.logo-image {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 620px;
    padding: 130px 0;
    display: flex;
    align-items: center;
    background-image: linear-gradient(90deg, rgba(43, 43, 43, 0.78), rgba(43, 43, 43, 0.42), rgba(43, 43, 43, 0.12)), url('../images/calounik2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-wrapper {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.hero-content {
    max-width: 680px;
}


.hero-logo-mark {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: clamp(225px, 24vw, 345px);
    height: auto;
    opacity: 0.18;
    filter: none;
    pointer-events: none;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.hero-content p {
    font-size: 18px;
    color: var(--light-gray);
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}


/* ===== Sections ===== */
section {
    padding: 80px 0;
    scroll-margin-top: 110px;
}

section h2 {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

section h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ===== About Section ===== */
.about {
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--tertiary-color);
    line-height: 1.8;
}

.about-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../images/calounik.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}





/* ===== Services Section ===== */
.services {
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.services::after,
.map-section::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(820px, 96vw, 1520px);
    aspect-ratio: 1;
    background-image: url('../images/logo2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
}

.services .container,
.map-section .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.service-card i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    text-align: center;
}

.service-card p {
    color: var(--tertiary-color);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== Map Section ===== */
.map-section {
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
    padding: 80px 0;
}

.map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--light-gray);
    box-shadow: var(--shadow);
}

.map-info-window,
.map-fallback a {
    font-family: 'Poppins', sans-serif;
}

.map-info-window a,
.map-fallback a {
    color: var(--primary-color);
    font-weight: 600;
}

.map-fallback {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: var(--tertiary-color);
}

.map-link {
    margin-top: 15px;
    text-align: center;
}

.map-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.map-link a:hover {
    text-decoration: underline;
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--secondary-color);
}

.contact-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.contact-info {
    padding: 40px;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    text-align: left;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--tertiary-color);
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}

.footer a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 90px;
    }

    section {
        scroll-margin-top: 90px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-wrapper > .btn {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--secondary-color);
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
    }

    .nav-menu a {
        display: block;
        padding: 10px 0;
    }

    .hero {
        min-height: 520px;
        padding: 80px 0;
        background-position: center right 35%;
    }


    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-logo-mark {
        right: 8px;
        bottom: 8px;
        width: clamp(160px, 45vw, 240px);
    }

    .services::after,
    .map-section::after {
        width: clamp(590px, 170vw, 940px);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .cookie-content {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-content p {
        font-size: 12px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    section h2 {
        font-size: 24px;
    }

    section h3 {
        font-size: 20px;
    }

    .service-card,
    .contact-info {
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 16px;
    }

    .map {
        height: 300px;
    }

    .nav-wrapper {
        padding: 15px 0;
    }

    .logo {
        font-size: 21px;
    }


    .logo-image {
        width: 44px;
        height: 44px;
    }
}
