/* RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.5;
    background: #FAF7EE;
    color: #2C3053;
    font-family: 'Open Sans', Arial, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
ul, ol {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: inline-block;
}
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
    box-sizing: border-box;
}

/* VINTAGE RETRO COLOR PALETTE */
:root {
    --color-primary: #2C3053;
    --color-secondary: #EBBB64;
    --color-accent: #FAF7EE;
    --color-retro-brown: #8e735b;
    --color-retro-red: #b65353;
    --color-retro-green: #496f5d;
    --color-retro-blue: #497eac;
    --color-retro-cream: #f9eedb;
    --color-retro-dark: #191820;
    --color-retro-orange: #ec947a;
    --shadow-card: 0 4px 16px rgba(44,48,83,0.09);
    --border-radius: 14px;
}

/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Merriweather:wght@700&display=swap');

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    background: var(--color-retro-cream);
    color: var(--color-primary);
}
h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 32px;
    text-shadow: 1px 1px 0 #EBBB64;
}
h2 {
    font-size: 1.9rem;
    margin-bottom: 28px;
    text-shadow: 1px 1px 0 #F9EEDB;
}
h3 {
    font-size: 1.25rem;
    margin-bottom: 18px;
}
h4 {
    font-size: 1.1rem;
}
p, li {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}
strong {
    color: var(--color-retro-red);
    font-weight: 600;
    font-family: 'Merriweather', serif;
}

/* RETRO PATTERN SECTION BG */
section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: repeating-linear-gradient(135deg, #EBBB64 0 12px, #FAF7EE 12px 24px);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 20px 0 rgba(44,48,83, 0.12);
}
section:nth-child(even) {
    background: repeating-linear-gradient(45deg, #f9eedb 0 12px, #ebbb64 12px 24px);
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
}
.text-section {
    width:100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* NAVIGATION */
header {
    background: var(--color-retro-blue);
    box-shadow: 0 3px 12px 0 rgba(44,48,83, 0.08);
}
header .container {
    padding-top: 10px;
    padding-bottom: 10px;
}
header .content-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
header img {
    max-height: 52px;
    margin-right: 24px;
}
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-left: 16px;
}
.main-nav a {
    font-family: 'Merriweather', serif;
    color: var(--color-accent);
    font-size: 1em;
    padding: 7px 16px;
    border-radius: 7px;
    position: relative;
    background: none;
    transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
    background: var(--color-retro-orange);
    color: var(--color-primary);
    text-decoration: underline;
}
.main-nav .cta-primary {
    background: var(--color-secondary);
    color: var(--color-retro-dark);
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 24px;
    padding: 8px 26px;
    box-shadow: 0 2px 9px 0 rgba(187, 125, 49, 0.20);
    border: 2px solid var(--color-retro-brown);
    transition: background 0.18s, color 0.18s, transform 0.18s;
}
.main-nav .cta-primary:hover,
.main-nav .cta-primary:focus {
    background: var(--color-retro-red);
    color: var(--color-accent);
    border-color: var(--color-secondary);
    transform: translateY(-2px) scale(1.03);
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
    background: var(--color-secondary);
    color: var(--color-retro-dark);
    font-size: 2rem;
    border-radius: 9px;
    padding: 6px 18px;
    cursor: pointer;
    display: none;
    transition: background 0.2s, color 0.2s;
    z-index: 1030;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    background: var(--color-retro-red);
    color: var(--color-accent);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-retro-brown);
    color: var(--color-accent);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transform: translateX(-105vw);
    transition: transform 0.36s cubic-bezier(.85,-0.08,.56,1.05);
    box-shadow: 5px 0 28px 0 rgba(44,48,83,.18);
    overflow-y: auto;
    padding: 0 0 0 0;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    margin: 20px 0 0 16px;
    font-size: 2rem;
    color: var(--color-secondary);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1210;
    transition: color 0.2s;
}
.mobile-menu-close:hover {
    color: var(--color-retro-orange);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    margin-left: 38px;
}
.mobile-nav a {
    color: var(--color-retro-cream);
    font-size: 1.23em;
    font-family: 'Merriweather', serif;
    border-radius: 12px;
    padding: 13px 20px;
    background: none;
    transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
    background: var(--color-secondary);
    color: var(--color-retro-dark);
}

/* HERO CTA BUTTONS */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Merriweather', serif;
    background: var(--color-secondary);
    color: var(--color-retro-dark);
    font-size: 1.1em;
    font-weight: 700;
    padding: 13px 30px;
    margin-top: 8px;
    border-radius: 40px;
    box-shadow: 0 6px 20px 0 rgba(44,48,83,.14);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: background 0.19s, color 0.16s, transform 0.15s, box-shadow 0.2s;
}
.cta-primary:hover,
.cta-primary:focus {
    background: var(--color-retro-red);
    color: var(--color-accent);
    border-color: var(--color-retro-red);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 15px 40px 0 rgba(44,48,83,.19);
}

/* FEATURE & CARD STYLES (Retro) */
.card-container,
.content-grid,
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
}
.card,
.content-wrapper > ul,
.features-list > div {
    background: var(--color-accent);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 2px solid var(--color-retro-brown);
    padding: 30px 22px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}
.card {
    transition: box-shadow 0.21s, transform 0.13s;
    cursor: pointer;
}
.card:hover {
    box-shadow: 0 6px 32px 0 rgba(44,48,83,0.21);
    transform: translateY(-3px) scale(1.03) rotate(-1deg);
}

.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--color-accent);
    border-radius: 14px;
    border: 2px solid var(--color-retro-blue);
    margin-bottom: 20px;
    box-shadow: 0 2px 12px 0 rgba(44,48,83, 0.10);
    color: #191820;
    min-width: 240px;
    max-width: 540px;
    position: relative;
}
.testimonial-card p {
    font-size: 1.15rem;
    font-family: 'Merriweather', serif;
    color: var(--color-primary);
    margin: 0 0 7px 0;
}
.testimonial-card span {
    font-size: 0.98rem;
    color: var(--color-retro-brown);
    font-family: 'Open Sans', Arial, sans-serif;
}
.testimonial-card div {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Lists with Icons */
ul li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
}
ul li img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.features-list > div {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 15px;
    font-size: 1.1rem;
}
.features-list > div img {
    width: 32px;
    height: 32px;
}

/* Cards & Feature Items */
.card-content, .feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}
.feature-item img {
    width: 32px;
    height: 32px;
}

/* FOOTER STYLE */
footer {
    background: var(--color-primary);
    color: var(--color-accent);
    padding: 40px 0 0 0;
    border-top: 6px solid var(--color-secondary);
}
footer .container {
    padding-top: 0;
    padding-bottom: 0;
}
footer .content-wrapper {
    flex-direction: row;
    gap: 38px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-nav a {
    color: var(--color-secondary);
    font-size: 1em;
    font-family: 'Open Sans', Arial, sans-serif;
    transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
    color: var(--color-retro-orange);
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.99em;
    color: var(--color-accent);
}
.contact-info p {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--color-accent);
}
.contact-info a {
    color: var(--color-secondary);
}
.social-media {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 15px;
}
.social-media a {
    display: flex;
    background: var(--color-accent);
    border-radius: 50%;
    padding: 6px;
    transition: background 0.17s;
}
.social-media a:hover {
    background: var(--color-retro-red);
}
.social-media img {
    height: 24px;
    width: 24px;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-retro-cream);
    color: var(--color-primary);
    border-top: 3px solid var(--color-secondary);
    box-shadow: 0 -4px 32px 0 rgba(44,48,83,0.19);
    padding: 18px 30px;
    font-size: 1rem;
    gap: 20px;
    animation: bannerSlideUp 0.45s cubic-bezier(.51,2,.23,1.01);
}
@keyframes bannerSlideUp {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.cookie-btn {
    font-family: 'Merriweather', serif;
    font-size: 1em;
    font-weight: 700;
    border-radius: 22px;
    padding: 9px 20px;
    border: 2px solid var(--color-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.16s, border 0.15s;
}
.cookie-btn.accept {
    background: var(--color-secondary);
    color: var(--color-retro-dark);
}
.cookie-btn.accept:hover {
    background: var(--color-retro-green);
    color: #fff;
    border-color: var(--color-retro-green);
}
.cookie-btn.reject {
    background: #fff;
    color: var(--color-primary);
}
.cookie-btn.reject:hover {
    background: var(--color-retro-red);
    color: #fff;
    border-color: var(--color-retro-red);
}
.cookie-btn.settings {
    background: #FAF7EE;
    color: var(--color-primary);
    border-color: var(--color-retro-blue);
}
.cookie-btn.settings:hover {
    background: var(--color-retro-orange);
    color: #fff;
    border-color: var(--color-retro-orange);
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
    position: fixed;
    left: 0; top:0;
    width: 100vw;
    height: 100vh;
    z-index: 2500;
    background: rgba(44,48,83, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModalBg 0.23s cubic-bezier(.51,2,.23,1.01);
}
@keyframes fadeInModalBg {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cookie-modal {
    min-width: 330px;
    max-width: 98vw;
    background: var(--color-retro-cream);
    color: var(--color-primary);
    border-radius: 18px;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 10px 44px 0 rgba(44,48,83,0.16);
    padding: 36px 28px 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: popUpCookie 0.38s cubic-bezier(.56,1.92,.29,1);
}
@keyframes popUpCookie {
    0%{ transform:scale(.8) translateY(50px); opacity:0; }
    100%{ transform:scale(1) translateY(0); opacity:1; }
}
.cookie-modal h2 {
    font-size: 1.24rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 14px;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cookie-category input[type=checkbox] {
    accent-color: var(--color-retro-green);
    width: 20px; height: 20px;
}
.cookie-category.essential input[type=checkbox] {
    accent-color: var(--color-retro-blue);
}
.cookie-category label {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
}
.cookie-modal-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 18px;
}
.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-retro-red);
    cursor: pointer;
    position: absolute;
    top: 10px; right: 20px;
    z-index: 101;
    transition: color 0.13s;
}
.cookie-modal-close:hover { color: var(--color-retro-blue); }

/* RESPONSIVE & FLEXBOX BREAKPOINTS */
@media (max-width: 1200px) {
    .container { max-width: 980px; }
    .content-wrapper { gap: 20px; }
    footer .content-wrapper { flex-wrap: wrap; gap: 28px; }
}
@media (max-width: 960px) {
    .container { max-width: 760px; }
    .card, .content-wrapper > ul {
        padding: 20px 12px;
    }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.45rem; }
    section { padding: 24px 9px; }
    .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 11px; }
    .content-grid, .card-container, .features-list {
        flex-direction: column;
        align-items: stretch;
        gap: 19px;
    }
    .text-image-section { flex-direction: column; gap: 16px; align-items: stretch; }
    .testimonial-card { max-width: 96vw; min-width: 0; }
    .content-wrapper { gap: 15px; }
    header .container { padding-top: 5px; padding-bottom: 5px; }
    .social-media { margin-bottom: 18px; }
    .contact-info { gap: 5px; font-size: 0.98em; }
    .footer-nav { font-size: 0.97em; }
}
@media (max-width: 720px) {
    .container { max-width: 99vw; }
    footer .content-wrapper { flex-direction: column; gap: 18px; }
}
@media (max-width: 600px) {
    .container { padding: 0 3px; }
    header img, footer img { max-height: 42px; }
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.08rem; }
    .testimonial-card { padding: 13px; }
    .card, .content-wrapper > ul { padding: 12px 6px; }
    .cookie-banner { padding: 12px 8px; flex-direction: column; font-size: 0.96em; gap: 12px; align-items: stretch; }
    .cookie-modal { min-width: 90vw; padding: 22px 6px; }
}
@media (max-width: 480px) {
    .main-nav, .footer-nav { font-size: 0.94em; }
    .cta-primary { padding: 10px 14px; font-size: 1em; }
    .testimonial-card { font-size: 0.97em; }
    .mobile-menu nav { margin-left: 8px; }
}

/* FLEXBOX-ENFORCED FOR LAYOUTS */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: var(--border-radius);
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.card {
    margin-bottom: 20px;
    position: relative;
}
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 14px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* HIDE NAV ON MOBILE, SHOW BURGER */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}
@media (min-width: 1025px) {
    .mobile-menu {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ANIMATIONS & MICRO-INTERACTIONS */
button, .cta-primary, .cookie-btn {
    transition: background 0.17s, color 0.16s, transform 0.15s, box-shadow 0.18s;
}
.card, .testimonial-card {
    transition: box-shadow 0.21s, transform 0.13s;
}
.card:hover, .testimonial-card:hover {
    box-shadow: 0 6px 24px 0 rgba(44,48,83,0.16);
    transform: translateY(-3px) scale(1.01);
}

/* NO ABSOLUTE FOR CONTENT CARDS - only for decoration */

/* Z-INDEX HARMONY: ensure overlays are above content and nav! */

/* ALT: OPTIONAL RETRO/NOISE OVERLAY FOR BG DECORATION (uses opacity!) */
.body-retro-noise {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: url('assets/noise.png');
    opacity: 0.07;
    z-index: 1;
}

/* END OF CSS */
