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

:root {
    --dark-gray: #2c2c2c;
    --medium-gray: #3a3a3a;
    --light-gray: #4a4a4a;
    --yellow-accent: #ffc107;
    --yellow-dark: #e0a800;
    --text-light: #e0e0e0;
    --text-dark: #1a1a1a;
    --white: #ffffff;
    --border-color: #555;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-gray);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--medium-gray);
    border-bottom: 3px solid var(--yellow-accent);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--yellow-accent);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0.3rem;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--yellow-accent);
    outline: none;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
    position: relative;
}

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

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

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

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

.burger:focus {
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--light-gray) 100%);
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--yellow-accent);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--yellow-accent);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow-accent);
}

.content-section h3 {
    color: var(--yellow-accent);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
}

/* Policy Pages Styling */
.policy-section {
    background-color: var(--medium-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--yellow-accent);
}

.policy-section h2 {
    margin-top: 0;
    padding-top: 0;
}

.policy-section h3 {
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 1.3rem;
}

.policy-section p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
}

.policy-section ul,
.policy-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.policy-section li {
    margin-bottom: 0.8rem;
}

.policy-highlight {
    background-color: var(--light-gray);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    border-left: 3px solid var(--yellow-accent);
}

.policy-highlight p {
    margin-bottom: 0.5rem;
}

.policy-highlight p:last-child {
    margin-bottom: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--medium-gray);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background-color: var(--yellow-accent);
    color: var(--text-dark);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: var(--light-gray);
}

/* Checklists */
.checklist {
    background-color: var(--medium-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--yellow-accent);
}

.checklist h4 {
    color: var(--yellow-accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.checklist ul {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--yellow-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Common Mistakes Section */
.mistakes-section {
    background-color: var(--medium-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #ff6b6b;
}

.mistakes-section h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.mistakes-section ul {
    list-style: none;
    padding-left: 0;
}

.mistakes-section li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.mistakes-section li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Content with Images */
.content-with-image {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.content-with-image.reverse {
    flex-direction: row-reverse;
}

.content-with-image .text-content {
    flex: 1;
    min-width: 300px;
}

.content-with-image .image-content {
    flex: 1;
    min-width: 300px;
}

.content-with-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.content-with-image .image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #999;
    text-align: center;
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--medium-gray);
    border-top: 3px solid var(--yellow-accent);
    padding: 2rem 1rem;
    margin-top: 3rem;
    text-align: center;
}

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

.footer-section h3 {
    color: var(--yellow-accent);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--yellow-accent);
    outline: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    color: #999;
    font-size: 0.9rem;
}

/* Contact Info */
.contact-info {
    background-color: var(--medium-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: var(--yellow-accent);
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--dark-gray);
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease, outline 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
    border-color: var(--yellow-accent);
}

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

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

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

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.submit-btn {
    background-color: var(--yellow-accent);
    color: var(--text-dark);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover,
.submit-btn:focus {
    background-color: var(--yellow-dark);
    outline: none;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--medium-gray);
    border-top: 3px solid var(--yellow-accent);
    padding: 1.5rem;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    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;
    flex-wrap: wrap;
    gap: 1rem;
}

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

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

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background-color: var(--yellow-accent);
    color: var(--text-dark);
}

.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
    background-color: var(--yellow-dark);
    outline: none;
}

.cookie-btn.reject {
    background-color: var(--light-gray);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
    background-color: var(--border-color);
    outline: none;
}

.cookie-btn.preferences {
    background-color: transparent;
    color: var(--yellow-accent);
    border: 1px solid var(--yellow-accent);
}

.cookie-btn.preferences:hover,
.cookie-btn.preferences:focus {
    background-color: var(--yellow-accent);
    color: var(--text-dark);
    outline: none;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--medium-gray);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--yellow-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    display: none;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.toast.show {
    display: block;
}

.toast.success {
    border-left-color: #4caf50;
}

.toast.error {
    border-left-color: #ff6b6b;
}

.toast-message {
    margin: 0;
    font-size: 0.95rem;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.hide {
    animation: slideOut 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 0.4rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.5rem 0.2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--medium-gray);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 2rem;
        padding-top: 80px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        gap: 0;
        z-index: 999;
        overflow-y: auto;
        margin: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        display: block;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 1rem;
        display: block;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        text-align: left;
        margin: 0;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-menu a:hover,
    .nav-menu a:focus {
        background-color: var(--light-gray);
        color: var(--yellow-accent);
    }

    .burger {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    /* Overlay when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

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

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

    .content-section h2 {
        font-size: 1.5rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }

    .content-with-image {
        flex-direction: column;
    }

    .content-with-image.reverse {
        flex-direction: column;
    }

    .content-with-image .text-content,
    .content-with-image .image-content {
        min-width: 100%;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--yellow-accent);
    color: var(--text-dark);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
}

/* Smooth Transitions */
a, button, input, textarea {
    transition: all 0.3s ease;
}
