/* Velvet Meadow Akademia Minimalist Flexbox CSS */

/* --- CSS 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, strike, 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;
}
html {
    scroll-behavior: smooth;
    background: #F9F6EF;
}
body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    color: #20555A;
    background: #F9F6EF;
    min-height: 100vh;
    line-height: 1.66;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography System (Minimalist) --- */
h1, .h1 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.75rem;
    color: #20555A;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
h2, .h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #20555A;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}
h3, .h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #20555A;
}
h4, .h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}
p {
    margin-bottom: 14px;
    color: #20555A;
}
strong {
    font-weight: 600;
    color: #20555A;
}
a {
    color: #20555A;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
a:hover,
a:focus {
    color: #32597b;
    outline: none;
}
ul, ol {
    margin-left: 1.3em;
    margin-bottom: 16px;
    color: #20555A;
}
li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* --- Brand Colors --- */
:root {
    --primary: #20555A;
    --secondary: #9EB08D;
    --accent: #F9F6EF;
    --white: #ffffff;
    --gray: #f3f3f3;
    --shadow: 0 2px 12px rgba(32,85,90,0.05);
    --border-radius: 15px;
}

/* --- Layout Containers --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.content-wrapper {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

/* --- Sections & Spacing --- */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}

/* --- Card Flex Containers --- */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
    box-shadow: 0 6px 28px rgba(32,85,90,.12);
    transform: translateY(-4px);
}

/* Content Grid Patterns (FLEX ONLY) */
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
}
.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 28px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    min-width: 228px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
    box-shadow: 0 8px 36px rgba(32,85,90,0.12);
    transform: translateY(-3px);
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* --- Service Listing --- */
.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}
.service-list > div {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 240px;
    flex: 1 1 220px;
    margin-bottom: 0;
    transition: box-shadow 0.18s, transform 0.18s;
}
.service-list > div:hover {
    box-shadow: 0 8px 32px rgba(32,85,90,0.09);
    transform: translateY(-2px);
}

/* --- Blog Article List --- */
.blog-article-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.blog-article-list > div {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px 20px;
    flex: 1 1 260px;
    min-width: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.blog-article-list > div:hover {
    box-shadow: 0 6px 22px rgba(32,85,90,.11);
    transform: translateY(-3px);
}

/* --- Custom Box for Contact Info --- */
.contact-information-box {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px 26px;
    margin-bottom: 18px;
    flex-direction: column;
    gap: 7px;
}

/* --- Header & Navigation --- */
header {
    width: 100%;
    background: var(--accent);
    box-shadow: 0 2px 12px rgba(32,85,90,0.03);
    position: relative;
    z-index: 200;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
}
nav > a img {
    height: 36px;
}
nav ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
    margin: 0 14px 0 0;
}
nav li a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    color: #20555A;
    font-size: 1rem;
    letter-spacing: 0.01em;
    padding: 5px 10px;
    border-radius: 7px;
    transition: background 0.18s;
}
nav li a:hover,
nav li a:focus {
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
}
.btn-primary,
.btn-secondary,
.btn-tertiary {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    transition: background 0.19s, color 0.18s, box-shadow 0.18s, transform 0.14s;
    outline: none;
    display: inline-block;
    margin-top: 7px;
    margin-bottom: 7px;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
}
.btn-primary:hover, .btn-primary:focus {
    background: #2a6b72;
    color: #fff;
    box-shadow: 0 5px 24px rgba(32,85,90,0.10);
    transform: translateY(-2px);
}
.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}
.btn-secondary:hover, .btn-secondary:focus {
    background: #7a926e;
    color: #fff;
    box-shadow: 0 5px 20px rgba(158,176,141,0.11);
    transform: translateY(-2px);
}
.btn-tertiary {
    background: var(--accent);
    border: 1px solid var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
}
.btn-tertiary:hover, .btn-tertiary:focus {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    margin-left: 10px;
    z-index: 205;
    transition: color 0.18s;
}
.mobile-menu-toggle:hover {
    color: #2a6b72;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(249,246,239, 0.96);
    transform: translateX(100vw);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 0 0 rgba(32,85,90,.0);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
    padding: 0 0 30px 0;
}
.mobile-menu.open {
    transform: translateX(0);
    box-shadow: 0 0 32px 10px rgba(32,85,90,0.12);
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--primary);
    align-self: flex-end;
    margin: 20px 20px 0 0;
    cursor: pointer;
    z-index: 10002;
    transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
    color: #32597b;
}
.mobile-nav {
    width: 100%;
    padding: 40px 28px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mobile-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    padding: 13px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: background 0.19s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
    background: var(--secondary);
    color: var(--white);
}

@media (max-width: 991px) {
  nav ul {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- Footer --- */
footer {
    background: #f6f4ec;
    padding: 28px 0 18px 0;
    font-size: 0.98rem;
    box-shadow: 0 -2px 14px rgba(32,85,90,0.06);
}
.footer-nav {
    display: flex;
    justify-content: flex-start;
    gap: 35px;
    margin-bottom: 17px;
}
.footer-nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav li a {
    color: var(--primary);
    font-size: 0.97rem;
    padding: 7px 10px;
    border-radius: 5px;
    transition: background 0.19s;
}
.footer-nav li a:hover,
.footer-nav li a:focus {
    background: var(--secondary);
    color: var(--white);
}
.footer-info {
    display: flex;
    flex-direction: row;
    gap: 19px;
    align-items: center;
}
.footer-info img {
    height: 35px;
    width: auto;
}
.footer-info div {
    color: #20555A;
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 8px;
    }
    .content-grid, .blog-article-list, .service-list, .card-container {
        flex-direction: column;
        gap: 20px;
    }
    .footer-info {
        flex-direction: column;
        gap: 13px;
        align-items: flex-start;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 8px;
    }
}

/* --- Responsive Flex Direction Patterns --- */
@media (max-width: 768px) {
    .text-image-section {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }
    nav {
        flex-direction: row;
        gap: 8px;
    }
    .service-list > div,
    .blog-article-list > div,
    .testimonial-card,
    .card {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

/* --- Spacing for Clear Separation --- */
section {
    margin-bottom: 60px;
    padding: 40px 0;
    width: 100%;
}
@media (max-width: 768px) {
  section {
    padding: 28px 0;
    margin-bottom: 38px;
  }
}

/* --- Visual Hierarchy and Minimalism --- */
section, .card, .testimonial-card, .service-list > div, .blog-article-list > div, .contact-information-box {
    margin-bottom: 20px;
}

/* --- Subtle Shadows and Minimal Borders --- */
.card, .testimonial-card, .service-list > div, .blog-article-list > div, .contact-information-box {
    border: 1px solid #ede7da;
    box-shadow: var(--shadow);
}

/* --- Microinteractions & Transitions --- */
section, .card, .btn-primary, .btn-secondary, .btn-tertiary, .testimonial-card, .service-list > div, .blog-article-list > div, .mobile-menu {
    transition: box-shadow 0.2s, background 0.18s, color 0.17s, border 0.18s, transform 0.17s;
}

/* --- Star Rating (Readability) --- */
.star-rating {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.15rem;
    color: #FFB900;
    letter-spacing: 2px;
    margin-top: 5px;
    margin-bottom: 2px;
}

.testimonial-card p, .testimonial-card div {
    color: #20555A;
}

/* --- Modals and Cookie Banner --- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    box-shadow: 0 -3px 32px rgba(32,85,90,0.12);
    border-top: 1px solid #ede7da;
    padding: 20px 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    z-index: 21000;
    font-size: 1rem;
    justify-content: space-between;
    max-width: 100vw;
    animation: cookieBannerSlideIn 0.4s;
}
@keyframes cookieBannerSlideIn {
    from { transform: translateY(32px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.cookie-banner button {
    min-width: 42px;
    min-height: 38px;
    margin: 0 2px;
    font-size: 1rem;
}
.cookie-banner .cookie-settings-btn {
    border: 1px solid var(--secondary);
    background: var(--accent);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 22px;
    font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
    background: #e6e4de;
    color: var(--primary);
    border-color: #9EB08D;
}

.cookie-modal {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(32,85,90,0.13);
    z-index: 22000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cookie-modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 48px rgba(32,85,90,0.15);
    padding: 34px 28px 22px 28px;
    min-width: 300px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    font-size: 1.06em;
}
.cookie-modal-content h4 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
}
.cookie-modal-content ul {
    list-style: circle inside;
    margin-bottom: 12px;
}
.cookie-modal-content .cookie-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}
.cookie-modal-content label {
    cursor: pointer;
    font-size: 1em;
    color: #20555A;
}
.cookie-modal-close {
    position: absolute;
    top: 16px; right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1;
    transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
    color: #7a926e;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 13px;
        font-size: 0.98rem;
        padding: 18px 8px;
    }
    .cookie-modal-content {
        padding: 22px 8px 12px 8px;
    }
}

/* --- Misc & Utility --- */
.text-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

/* --- Accessibility Focus Styles --- */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, .btn-tertiary:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 1px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 9px;
  background: #f8f7f2;
}
::-webkit-scrollbar-thumb {
  background: #e4edea;
  border-radius: 5px;
}

/* --- Hide scroll on mobile menu unless open --- */
body.menu-open {
    overflow: hidden;
}

/* --- Hide Cookie Modal by default --- */
.cookie-banner, .cookie-modal {
    display: none;
}
.cookie-banner.active, .cookie-modal.active {
    display: flex;
}

/* --- Forms (for buttons etc) --- */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}
input, textarea {
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid #e8e4d9;
    background: #fff;
    color: #20555A;
    margin-bottom: 17px;
}
input:focus, textarea:focus {
    outline: 2px solid var(--secondary);
}

/* --- No absolute for content cards! No grid, no column! Confirmed. --- */
