﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4A90E2;
    --primary-green: #52B788;
    --dark-blue: #2C5F8D;
    --dark-green: #40916C;
    --light-blue: #E8F4F8;
    --light-green: #E8F5E9;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --white: #FFFFFF;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo span {
    color: var(--primary-green);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    transition: width 0.3s ease;
    border-radius: 1px;
}

nav ul li a:hover {
    color: var(--primary-blue);
    transform: translateY(-1px);
}

nav ul li a:hover::before {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-green);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-medium);
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.mobile-nav.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 2rem;
}

.mobile-nav ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-blue);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.active ul li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.active ul li:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.active ul li:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.active ul li:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.active ul li:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.active ul li:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.active ul li:nth-child(6) { transition-delay: 0.3s; }

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul li a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 0;
    position: relative;
    padding-left: 1rem;
}

.mobile-nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    transition: height 0.3s ease;
    border-radius: 2px;
}

.mobile-nav ul li a:hover {
    color: var(--primary-blue);
    background-color: var(--light-blue);
    padding-left: 1.5rem;
}

.mobile-nav ul li a:hover::before {
    height: 60%;
}

.mobile-nav ul li a.active {
    color: var(--primary-blue);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 0.75rem;
    background: transparent;
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-right: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* Section Styles */
section {
    margin-bottom: 3.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

section:first-child {
    padding-top: 0;
}

section:last-child {
    margin-bottom: 0;
}

main > section:first-of-type {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

section h1 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid var(--primary-green);
    position: relative;
}

section h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

section h2 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-green);
    position: relative;
    padding-left: 1rem;
}

section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0.75rem;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    border-radius: 2px;
}

section h3 {
    font-size: 1.5rem;
    color: var(--dark-green);
    margin: 2rem 0 1.25rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary-green);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

section p {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: justify;
    text-justify: inter-word;
}

section p:first-of-type {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

section p:last-child {
    margin-bottom: 0;
}

/* Links in sections */
section a {
    color: var(--primary-blue);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    transition: width 0.3s ease;
    border-radius: 1px;
}

section a:hover {
    color: var(--primary-green);
}

section a:hover::after {
    width: 100%;
}

section a:active {
    color: var(--dark-green);
}

section ul, section ol {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
    color: var(--text-dark);
}

section ul li {
    margin-bottom: 0.75rem;
    line-height: 1.9;
    padding-left: 2rem;
    position: relative;
}

section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
    font-size: 0.85rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(82, 183, 136, 0.3);
}

section ol {
    counter-reset: item;
    padding-left: 0;
}

section ol li {
    margin-bottom: 0.75rem;
    line-height: 1.9;
    padding-left: 2.5rem;
    position: relative;
    counter-increment: item;
}

section ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--white);
    font-weight: bold;
    font-size: 0.85rem;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* Card Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card::after {
    content: "";
    display: table;
    clear: both;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    border-bottom: none;
    margin-top: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    min-height: 2.5em;
}

.card p {
    margin-bottom: 1rem;
}

.card .btn {
    margin-top: 1rem;
    clear: both;
    display: inline-block;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    float: left;
    margin: 0 1.5rem 1rem 0;
    shape-outside: margin-box;
    flex-shrink: 0;
}

.card h3 {
    min-height: 2.5em;
    line-height: 1.3;
}

.card-image-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

@media (max-width: 768px) {
    .card-image {
        width: 100%;
        height: 200px;
        float: none;
        margin: 0 0 1rem 0;
    }
    
    .card-image-right {
        float: none;
        margin: 0 0 1rem 0;
    }
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

img.inline-left {
    float: left;
    max-width: 300px;
    width: 40%;
    margin: 0 1.5rem 1rem 0;
    shape-outside: margin-box;
}

img.inline-right {
    float: right;
    max-width: 300px;
    width: 40%;
    margin: 0 0 1rem 1.5rem;
    shape-outside: margin-box;
}

img.full-width {
    width: 100%;
    margin: 1.5rem 0;
}

section::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    img.inline-left,
    img.inline-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
    }
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    border-bottom: none;
}

.footer-section ul {
    list-style: none;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.footer-section a:hover {
    color: var(--primary-green);
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    z-index: 2000;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--dark-blue);
}

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

.btn-secondary:hover {
    background-color: var(--dark-green);
}

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

.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-blue);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

.form-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    nav {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    main {
        padding: 2rem 1rem;
    }

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

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-buttons {
        justify-content: stretch;
    }

    .cookie-banner-buttons .btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section h1 {
        font-size: 2rem;
    }

    section {
        padding: 1rem;
    }

    section p {
        text-align: left;
        font-size: 1rem;
    }

    section ul li::before {
        width: 1.3rem;
        height: 1.3rem;
        font-size: 0.75rem;
    }

    section ol li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }

    .form-container {
        padding: 1.5rem;
    }
}

/* Additional utility classes for replacing inline styles */
.btn-inline {
    display: inline-block;
    width: auto;
    margin-top: 2rem;
}

.btn-contact {
    display: inline-block;
    width: auto;
    margin-top: 1rem;
}

.required-field {
    color: var(--primary-green);
}

.form-hint {
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
}

.policy-link {
    color: var(--primary-green);
}

.section-spacing {
    margin-top: 3rem;
}

.card-grid-spacing {
    margin-top: 2rem;
}

.content-image-spacing {
    margin-top: 2rem;
}

.contact-link {
    color: var(--primary-green);
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    margin-bottom: 1rem;
    color: var(--primary-green);
}

/* Push Notification (Manual, not browser API) */
.push-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 90%;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.push-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.push-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.push-notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.push-notification-success {
    border-left: 4px solid var(--primary-green);
}

.push-notification-success .push-notification-icon {
    background: var(--primary-green);
    color: var(--white);
}

.push-notification-error {
    border-left: 4px solid #e74c3c;
}

.push-notification-error .push-notification-icon {
    background: #e74c3c;
    color: white;
}

.push-notification-message {
    flex: 1;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.push-notification-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.push-notification-close:hover {
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .push-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100% - 20px);
    }
}

