* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- NAVBAR & LOGO FIX --- */
.navbar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    background-color: #3E5641;
    color: #ffffff;
    padding: 0 10%; 
    min-height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    padding-left: 100px; /* Creates space for the logo image */
    display: flex;
    align-items: center;
    height: 70px;
}

/* Injecting logo image via CSS to avoid changing HTML */
.logo::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px; /* Adjust vertical start position */
    width: 100px; /* Logo width */
    height: 100px; /* Logo height (larger than nav height to hang over) */
    background-image: url('logo.png'); /* Ensure your file is named logo.png */
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
    z-index: 1001;
    transition: transform 0.3s ease;
}

.logo:hover::before {
    transform: scale(1.1);
}

.opening-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 8px 12px;
    text-align: center;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 28px;
    list-style: none;
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    color: #ffffff;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('Tallinn.jpeg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px; 
    margin-bottom: 15px;
    position: relative;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Keeps it above background elements */
    margin-top: 20px; /* Adjusts for the logo hanging down */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background-color: rgba(0, 0, 0, 0.4); 
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block; 
    backdrop-filter: blur(5px); 
    margin-bottom: 20px !important;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 25px;
    background-color: rgba(0, 0, 0, 0.4); 
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block; 
    backdrop-filter: blur(5px); 
    margin-bottom: 30px !important;
}

.btn {
    margin-top: 0 !important;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.image-author {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
}

/* --- CARDS & CONTENT --- */
.content {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.content h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #3E5641;
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.card, .card1 {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.card { width: min(300px, 100%); }
.card1 {
    max-width: 800px;
    width: calc(100% - 40px);
    margin: 40px auto;
}

.booking-card {
    text-align: left;
}

.booking-card h2 {
    color: #3E5641;
    margin-bottom: 8px;
    text-align: center;
}

.booking-intro {
    color: #555;
    max-width: 620px;
    margin: 0 auto 26px;
    text-align: center;
}

.booking-form {
    display: grid;
    gap: 22px;
}

.booking-form fieldset {
    border: 1px solid #dbe5df;
    border-radius: 8px;
    padding: 20px;
}

.booking-form legend {
    color: #3E5641;
    font-weight: 700;
    padding: 0 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.booking-form label {
    color: #2d3e50;
    font-weight: 600;
}

.booking-form input,
.booking-form textarea {
    width: 100%;
    border: 1px solid #bac8c0;
    border-radius: 8px;
    color: #333;
    font: inherit;
    padding: 11px 12px;
    background: #fff;
}

.booking-form textarea {
    min-height: 130px;
    resize: vertical;
}

.booking-form input:focus,
.booking-form textarea:focus {
    border-color: #3E5641;
    box-shadow: 0 0 0 3px rgba(62, 86, 65, 0.14);
    outline: none;
}

.form-note {
    background: #f4f7f6;
    border-left: 4px solid #3E5641;
    color: #4a4a4a;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.booking-form .btn {
    justify-self: center;
    min-width: 240px;
}

.booking-calendar {
    max-width: 900px;
    width: calc(100% - 40px);
    margin: 40px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.result-card {
    text-align: center;
}

.result-card h2 {
    color: #3E5641;
    margin-bottom: 12px;
}

.result-card p {
    color: #555;
    margin-bottom: 24px;
}

.result-card .btn {
    display: inline-block;
    text-decoration: none;
}

.idea-intro {
    margin-bottom: 24px;
}

.idea-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 36px auto;
    padding: 0 20px;
}

.idea-card {
    background: #ffffff;
    border: 1px solid #dbe5df;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.idea-image,
.idea-image-slot {
    aspect-ratio: 4 / 3;
    width: 100%;
}

.idea-image {
    display: block;
    object-fit: cover;
}

.idea-image-slot {
    align-items: center;
    background: linear-gradient(135deg, #edf3ef, #dbe5df);
    border-bottom: 1px solid #dbe5df;
    color: #3E5641;
    display: flex;
    font-weight: 700;
    justify-content: center;
    min-height: 190px;
}

.idea-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    text-align: left;
}

.idea-tag {
    color: #3E5641;
    font-size: 0.85rem;
    font-weight: 700;
}

.idea-card h3 {
    color: #3E5641;
    font-size: 1.25rem;
    line-height: 1.3;
}

.idea-card p {
    color: #555;
}

.idea-card .idea-tag {
    color: #3E5641;
}

.idea-cta {
    max-width: 800px;
    margin: 54px auto 20px;
    padding: 0 20px;
    text-align: center;
}

.idea-cta h2 {
    color: #3E5641;
    margin-bottom: 12px;
}

.idea-cta p {
    color: #555;
    margin: 0 auto 24px;
    max-width: 660px;
}

.idea-cta .btn {
    display: inline-block;
    text-decoration: none;
}

#profile {
    width: 250px;
    height: 250px;
    border-radius: 50%; 
    object-fit: cover; 
    border: 5px solid #3E5641;
    display: block;
    margin: 20px auto;
}

footer {
    background-color: #3E5641;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

.comments-container {
    width: calc(100% - 40px);
}

.comments-container input,
.comments-container select,
.comments-container textarea {
    border: 1px solid #bac8c0;
    border-radius: 8px;
    font: inherit;
}

/* --- MOBILE --- */
@media screen and (max-width: 950px) {
    .idea-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 14px 16px 16px;
        gap: 12px;
    }

    .logo {
        height: 56px;
        padding-left: 64px;
        font-size: 1.45rem;
        justify-content: center;
    }

    .logo::before {
        left: 0;
        top: 50%;
        width: 58px;
        height: 58px;
        transform: translateY(-50%);
    }

    .logo:hover::before {
        transform: translateY(-50%) scale(1.05);
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 4px 18px;
        text-align: center;
    }

    .opening-badge {
        font-size: 0.9rem;
        white-space: normal;
        width: 100%;
    }

    .nav-links a {
        padding: 7px 2px;
    }

    .lang-switch-container {
        margin-left: 0;
    }

    .hero {
        height: auto;
        min-height: 360px;
        padding: 70px 16px 52px;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero h1 {
        font-size: 2.15rem;
        line-height: 1.15;
        padding: 10px 14px;
    }

    .hero p {
        font-size: 1rem;
        padding: 9px 12px;
    }

    .content {
        margin: 38px auto;
        padding: 0 18px;
    }

    .content h2 {
        font-size: 1.55rem;
    }

    .card-container {
        margin: 26px auto;
        padding: 0 16px;
        gap: 16px;
    }

    .card,
    .card1 {
        padding: 22px 18px;
        border-radius: 8px;
    }

    .card {
        width: 100%;
    }

    .card1 {
        width: calc(100% - 32px);
        margin: 26px auto;
    }

    .card-container .card1 {
        width: 100%;
    }

    #profile {
        width: 190px;
        height: 190px;
    }

    .form-grid,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .booking-card h2 {
        font-size: 1.55rem;
    }

    .booking-form {
        gap: 18px;
    }

    .booking-form fieldset {
        padding: 16px 14px;
    }

    .form-note {
        padding: 11px 12px;
    }

    .booking-form .btn {
        width: 100%;
        min-width: 0;
    }

    .booking-calendar {
        width: calc(100% - 32px);
        margin: 26px auto;
        padding: 12px;
    }

    .fc .fc-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }

    .fc .fc-toolbar-title {
        font-size: 1.15rem;
        text-align: center;
    }

    .fc .fc-button {
        padding: 6px 9px;
    }

    .comments-container {
        width: calc(100% - 32px);
    }

    .comments-container .btn {
        width: 100%;
    }

    .idea-grid {
        grid-template-columns: 1fr;
        margin: 26px auto;
        padding: 0 16px;
    }

    .idea-card-content {
        padding: 20px 18px;
    }

    .idea-image-slot {
        min-height: 170px;
    }

    .idea-cta {
        margin: 36px auto 10px;
        padding: 0 18px;
    }

    .card1 ol {
        max-width: 100%;
    }

    footer {
        margin-top: 50px;
    }
}

.lang-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.3s;
}

.lang-btn:hover {
    color: #ffcc00; 
}



.card1 ol {
    text-align: left; 
    max-width: 80%;
    margin: 0 auto;
    padding-left: 20px;
}

.card1 li {
    margin-bottom: 15px;
}
