/* ===== ROOT VARIABLES ===== */
:root {
    --primary-dark: #4a148c;
    --primary-medium: #7b1fa2;
    --primary-light: #ba68c8;
    --accent-gold: #ffd700;
    --accent-orange: #ff8c00;
    --dark-text: #1a1a1a;
    --light-bg: #faf8f3;
    --white: #ffffff;
    --border-color: #e8e0d0;
    --font-family-serif: 'Playfair Display', 'Garamond', serif;
    --font-family-sans: 'Open Sans', Verdana, sans-serif;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-serif);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--primary-dark);
}

h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    border-bottom: 4px double var(--accent-gold);
    padding-bottom: 0.7em;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
    color: var(--primary-medium);
}

p {
    margin-bottom: 1em;
    font-size: 1rem;
}

a {
    color: var(--primary-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

ul, ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    color: var(--white);
    text-align: center;
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0;
}

nav li {
    margin: 0;
}

nav a {
    color: var(--white);
    padding: 0.7rem 1.2rem;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
}

nav a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 50%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    color: var(--white);
    border-bottom: 4px solid var(--accent-gold);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn, .btn-submit, .btn-small {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.btn:hover, .btn-submit:hover, .btn-small:hover {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff7700 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 140, 0, 0.4);
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.05rem;
    padding: 1rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

main section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

main section:last-child {
    border-bottom: none;
}

section h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

section > p:first-of-type {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

/* ===== CARDS LAYOUT ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-left: 6px solid var(--accent-gold);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-gold);
}

.card h4 {
    color: var(--primary-medium);
    margin-top: 0;
}

.card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== ARTICLES/GUIDES ===== */
.articles, .guides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.article, .guide {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
    padding: 1.8rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.article:hover, .guide:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-top-color: var(--accent-gold);
}

.article h4, .guide h4 {
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 1rem;
}

.article p, .guide p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.testimonial {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(123, 31, 162, 0.1) 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.3;
}

.testimonial p {
    color: var(--dark-text);
    margin: 0 0 1rem 0;
}

.testimonial p em {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
}

.testimonial p:last-child {
    font-weight: 600;
    color: var(--primary-dark);
    text-align: right;
    font-style: italic;
}

/* ===== FORMS ===== */
form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 6px solid var(--primary-medium);
}

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

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
    cursor: pointer;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-family-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-medium);
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.1);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

footer a {
    color: var(--accent-gold);
    text-decoration: none;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-gold);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 2rem;
}

.disclaimer p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-banner a {
    color: var(--accent-gold);
}

.cookie-banner a:hover {
    color: var(--white);
}

#accept-cookies {
    white-space: nowrap;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    header {
        padding: 1rem 0;
    }

    header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    nav ul {
        gap: 0.2rem;
        padding: 0 1rem;
    }

    nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

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

    main {
        padding: 2rem 1.5rem;
    }

    .cards, .articles, .guides, .testimonials {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card, .article, .guide, .testimonial {
        padding: 1.5rem;
    }

    form {
        padding: 1.5rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-banner p {
        min-width: auto;
    }

    #accept-cookies {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    nav ul {
        gap: 0.2rem;
    }

    nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    main section {
        margin-bottom: 2rem;
    }

    form {
        padding: 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header, footer, .cookie-banner, form {
        display: none;
    }

    body {
        background: white;
    }

    main {
        max-width: 100%;
    }
}
