@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --nordic-blue: #2E5266;
    --natural-oak: #D4A574;
    --cloud-white: #F8F9FA;
    --charcoal-ash: #3A3A3A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--charcoal-ash);
    background-color: var(--cloud-white);
    line-height: 1.6;
    min-width: 320px;
    font-size: 16px;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    body {
        hyphens: auto;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    color: var(--nordic-blue);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--nordic-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--natural-oak);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    background-color: var(--cloud-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 70px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    position: relative;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 0.75rem;
    }
}

.logo {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--nordic-blue);
}

@media (max-width: 768px) {
    .logo {
        font-size: 1rem;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    font-weight: 500;
    padding: 0.5rem 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--nordic-blue);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--cloud-white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        align-items: flex-start;
    }
}

section {
    margin: 2rem 0;
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    section {
        margin: 1.5rem 0;
        padding: 1.5rem 1rem;
    }
}

.hero {
    margin-top: 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        background-attachment: scroll;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 82, 102, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem 1rem;
    }
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--nordic-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--natural-oak);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background-color: transparent;
    color: var(--nordic-blue);
    border: 2px solid var(--nordic-blue);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--nordic-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
}

.card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .card img {
        height: 200px;
    }
}

.card-content {
    padding: 1.5rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 1.5rem 1rem;
    }

    .legal-page ul, .legal-page ol {
        margin-left: 1.5rem;
    }
}

.legal-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page ul, .legal-page ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    form {
        padding: 1.5rem 1rem;
        margin: 1.5rem auto;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--nordic-blue);
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

@media (max-width: 768px) {
    form input[type="text"],
    form input[type="email"],
    form textarea {
        font-size: 16px;
    }
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    outline: none;
    border-color: var(--nordic-blue);
}

form textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

footer {
    background-color: var(--charcoal-ash);
    color: white;
    padding: 3rem 1rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-column h3 {
    color: var(--natural-oak);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-column p,
.footer-column a {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-column a:hover {
    color: var(--natural-oak);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .privacy-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom .privacy-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.privacy-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--nordic-blue);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
}

@media (max-width: 768px) {
    .privacy-popup {
        padding: 1rem;
    }
}

.privacy-popup.active {
    display: block;
}

.privacy-popup-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.privacy-popup-text {
    flex: 1;
    min-width: 250px;
}

.privacy-popup-buttons {
    display: flex;
    gap: 1rem;
}

.privacy-popup-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.privacy-popup-buttons .btn-accept {
    background-color: var(--natural-oak);
    color: var(--charcoal-ash);
}

.privacy-popup-buttons .btn-decline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.privacy-popup-buttons .btn-accept:hover {
    background-color: #c49564;
}

.privacy-popup-buttons .btn-decline:hover {
    background-color: white;
    color: var(--nordic-blue);
}

@media (max-width: 768px) {
    .privacy-popup-content {
        flex-direction: column;
        text-align: center;
    }

    .privacy-popup-text {
        min-width: auto;
        margin-bottom: 1rem;
    }

    .privacy-popup-buttons {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .privacy-popup-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    section {
        padding: 1rem 0.75rem;
    }

    .card-content {
        padding: 1rem;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.25rem;
    }

    .hero-content {
        padding: 1rem 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

