/* =========================================================
   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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure,  
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.6;
    background: #F4F6FB;
    color: #26334D;
    font-family: 'Open Sans', Arial, sans-serif;
    min-height: 100vh;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: #79B647;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: #598a32;
}
ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}
strong, b {
    font-weight: 600;
}

/* =========================================================
   Fonts
   ========================================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #26334D;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
,
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
h2 {
    font-size: 1.7rem;
    margin-bottom: 16px;
}
h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

p, ul, ol {
    font-size: 1.06rem;
    color: #26334D;
}
p {
    margin-bottom: 18px;
    letter-spacing: 0.005em;
}

em {
    font-style: italic;
    color: #729bb8;
}

.text-section ul li, .text-section ol li {
    margin-bottom: 10px;
}

/* =========================================================
   Colors - Soft Pastel Palette (compliments brand)
   ========================================================= */
:root {
    --primary: #26334D;
    --secondary: #E5E7EB;
    --accent: #79B647;
    --pastel-pink: #FCE4EC;
    --pastel-lilac: #ECE7FA;
    --pastel-blue: #D6ECFB;
    --pastel-green: #E9FCE4;
    --pastel-yellow: #FFFCE4;
    --white: #fff;
    --shadow-pale: 0 2px 18px 0 rgba(38,51,77,0.10);
    --shadow-card: 0 4px 30px 0 rgba(38,51,77,.13);
    --border-radius: 18px;
}

/* =========================================================
   Layout Containers & Spacing (MANDATORY)
   ========================================================= */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-pale);
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: var(--pastel-blue);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--shadow-card);
    padding: 32px 24px;
    min-width: 260px;
    transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
    transform: translateY(-3px) scale(1.012);
    box-shadow: 0 6px 36px 0 rgba(38,51,77,0.20);
}
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--pastel-lilac);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}
.testimonial-card p {
    font-size: 1.1rem;
    color: #222947;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: var(--pastel-green);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-pale);
    padding: 20px;
}

/* ---------------------------------------------------------
   Global Spacing Rules
   --------------------------------------------------------- */
main > section {
    margin-bottom: 60px;
}
section:last-child {
    margin-bottom: 0;
}
.content-wrapper > * + * {
    margin-top: 0;
}

.text-section ul, .text-section ol {
    margin-bottom: 8px;
}
.text-section > *:not(:last-child) {
    margin-bottom: 18px;
}

/* =========================================================
   HEADER & NAVIGATION (Desktop & Mobile)
   ========================================================= */
header {
    background: linear-gradient(90deg, #FCE4EC 0%, #D6ECFB 100%);
    padding: 0 0 0 0;
    box-shadow: 0 1px 20px 0 rgba(38,51,77,0.03);
    position: relative;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.08em;
    font-weight: 500;
}
.main-nav a {
    color: var(--primary);
    padding: 6px 13px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    position: relative;
    z-index: 2;
}
.main-nav a.cta-primary {
    background: var(--pastel-green);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: var(--shadow-pale);
    border-radius: 22px;
    padding: 9px 24px;
    margin-left: 13px;
    border: none;
    transition: background 0.23s, color 0.23s;
}
.main-nav a.cta-primary:hover, .main-nav a.cta-primary:focus {
    background: var(--accent);
    color: #fff;
}
.main-nav a:hover, .main-nav a:focus {
    background: var(--pastel-blue);
    color: var(--primary);
}
.main-nav img {
    height: 38px;
    margin-right: 12px;
    border-radius: 8px;
}

/* =========================================================
   MOBILE MENU
   ========================================================= */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 20px;
    background: var(--pastel-lilac);
    border: none;
    border-radius: 8px;
    font-size: 2.05rem;
    color: var(--primary);
    padding: 6px 20px 7px 18px;
    cursor: pointer;
    z-index: 1801;
    box-shadow: var(--shadow-pale);
    transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: var(--pastel-blue);
}
.mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(90deg, #ECE7FA 0%, #D6ECFB 100%);
    transform: translateX(-110vw);
    transition: transform 0.33s cubic-bezier(.85,.04,.13,1.13);
    z-index: 1800;
    padding: 0 0 0 0;
    box-shadow: 0 5px 40px 0 rgba(38,51,77,0.10);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    align-self: flex-end;
    margin: 20px 24px 5px 0;
    background: var(--pastel-pink);
    border: none;
    border-radius: 10px;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    padding: 6px 20px 6px 14px;
    box-shadow: var(--shadow-pale);
    transition: background 0.18s;
    z-index: 1802;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    background: var(--pastel-blue);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    margin-top: 40px;
    align-items: flex-start;
    padding-left: 34px;
}
.mobile-nav a {
    display: block;
    color: var(--primary);
    background: none;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.28em;
    font-weight: 600;
    padding: 12px 0;
    border-radius: 8px;
    min-width: 180px;
    transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--accent);
    color: #fff;
}

/* =========================================================
   HERO & CTA BUTTONS
   ========================================================= */
.cta-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    border: none;
    border-radius: 26px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.16rem;
    padding: 13px 34px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 16px 0 rgba(121,182,71,0.14);
    cursor: pointer;
    margin-top: 7px;
    margin-bottom: 11px;
    transition: background 0.20s, color 0.2s, transform 0.12s;
}
.cta-primary:hover, .cta-primary:focus {
    background: #527C16;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

/* =========================================================
   Cards, Lists, Tables (Section, Cards)
   ========================================================= */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 18px 0 18px 0;
    background: var(--pastel-lilac);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    font-size: 1.09em;
}
thead {
    background: var(--pastel-blue);
}
th, td {
    border: 0;
    padding: 16px 18px;
    text-align: left;
    font-family: 'Montserrat', Arial, sans-serif;
}
th {
    color: #334269;
    font-weight: 700;
}
tbody tr:nth-child(even) {
    background: #F4F6FB;
}

/* =========================================================
   Testimonial Cards
   ========================================================= */
.testimonial-card {
    background: var(--pastel-lilac);
    color: #11193B;
    font-weight: 400;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    font-size: 1.09em;
    transition: box-shadow 0.18s, transform 0.17s;
    position: relative;
}
.testimonial-card:hover {
    box-shadow: 0 6px 38px 0 rgba(38,51,77,0.13);
    transform: scale(1.018);
}
.testimonial-card strong {
    color: var(--primary);
    font-size: 1em;
    font-family: 'Montserrat', Arial, sans-serif;
    letter-spacing: 0.01em;
}

/* =========================================================
   Miscellaneous and Utility Classes
   ========================================================= */
.map-snippet {
    background: var(--pastel-lilac);
    border-radius: 12px;
    padding: 12px 24px;
    box-shadow: var(--shadow-pale);
    color: #334269;
    font-size: 1.04em;
    margin-top: 10px;
    margin-bottom: 10px;
}

.footer-brand img {
    max-width: 58px;
    margin: 22px 0 4px 0;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
    background: linear-gradient(90deg, #D6ECFB 0%, #E9FCE4 100%);
    padding: 28px 0 17px 0;
    box-shadow: 0 -2px 15px 0 rgba(38,51,77,0.07);
    margin-top: 50px;
}
.footer-nav {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.footer-nav a {
    color: var(--primary);
    padding: 6px 8px;
    border-radius: 8px;
    background: none;
    transition: background 0.18s, color 0.18s;
    font-size: 0.97em;
}
.footer-nav a:hover, .footer-nav a:focus {
    background: var(--pastel-yellow);
    color: #527C16;
}
.footer-brand {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-direction: row;
}
.footer-brand p {
    color: #334269;
    font-size: 0.96em;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* =========================================================
   Cookie Consent Banner & Modal
   ========================================================= */
.cookie-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: linear-gradient(90deg, #ECE7FA 0%, #E9FCE4 100%);
    color: #26334D;
    box-shadow: 0 -2px 15px 0 rgba(38,51,77,0.10);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 28px;
    z-index: 3900;
    font-size: 1.07em;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    animation: cookieFadeIn 0.7s cubic-bezier(.48,.8,.21,1.12);
}
@keyframes cookieFadeIn {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner p {
    margin-bottom: 0;
    flex: 1 1 0;
}
.cookie-banner .cookie-actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}
.cookie-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 1em;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    padding: 10px 21px;
    cursor: pointer;
    transition: background 0.17s, color 0.18s, transform 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
    background: #527C16;
    color: #fff;
    transform: scale(1.044);
}
.cookie-btn.secondary {
    background: var(--pastel-blue);
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
    background: var(--pastel-pink);
    color: #527C16;
}

/* Cookie Modal */
.cookie-modal-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 3905;
    width: 100vw;
    height: 100vh;
    background: rgba(38,51,77,0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: cookieModalIn 0.23s;
}
@keyframes cookieModalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.cookie-modal {
    background: var(--white);
    border-radius: 24px;
    max-width: 410px;
    width: 92vw;
    padding: 38px 32px 26px 32px;
    box-shadow: 0 6px 38px 0 rgba(38,51,77,0.18);
    z-index: 3910;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: cookieModalDropIn 0.44s cubic-bezier(.70,.04,.13,1.18);
}
@keyframes cookieModalDropIn {
    from { transform: translateY(56px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
    font-size: 1.3em;
    margin-bottom: 8px;
}
.cookie-modal .cookie-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}
.cookie-modal .cookie-category {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05em;
    padding: 8px 0;
}
.cookie-modal .category-label {
    font-weight: 600;
}
.cookie-modal .toggle {
    width: 38px;
    height: 22px;
    border-radius: 11px;
    background: var(--pastel-blue);
    border: 1px solid #bfc9e1;
    position: relative;
    transition: background 0.16s;
    cursor: pointer;
}
.cookie-modal .toggle[aria-checked="true"] {
    background: var(--accent);
    border: 1px solid var(--accent);
}
.cookie-modal .toggle-thumb {
    position: absolute;
    left: 2px;
    top: 2px;
    background: #fff;
    width: 18px;
    height: 18px;
    border-radius: 9px;
    border: 1px solid #e8e9ec;
    transition: left 0.19s, background 0.15s;
}
.cookie-modal .toggle[aria-checked="true"] .toggle-thumb {
    left: 18px;
    background: #fff;
}
.cookie-modal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 12px;
}

/* =========================================================
   Responsive Design (Mobile First)
   ========================================================= */
@media (max-width: 1023px) {
    .container { max-width: 98vw; padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 900px) {
    .main-nav {
        gap: 9px;
        font-size: 0.96em;
    }
}

@media (max-width: 800px) {
    .container {
        max-width: 97vw;
        padding-left: 2vw;
        padding-right: 2vw;
    }
    .footer-brand { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 768px) {
    body {
        font-size: 98.7%;
    }
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: inline-block;
    }
    .container {
        max-width: 100vw;
        padding-left: 8px;
        padding-right: 8px;
    }
    .section {
        padding: 25px 7px;
    }
    .content-grid,
    .card-container {
        flex-direction: column;
        gap: 16px;
    }
    .footer-nav { flex-direction: column; gap: 11px; align-items: flex-start; }
    .content-wrapper { gap: 19px; }
    .text-image-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.265rem; }
    .footer-brand { flex-direction: column; gap: 9px; }
}

@media (max-width: 490px) {
    h1 { font-size: 1.57rem; }
    h2 { font-size: 1.08rem; }
    .footer-brand img { max-width: 40px; }
    .card, .feature-item, .testimonial-card {
        padding: 18px 9px;
    }
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 13px 7px;
        font-size: 0.97em;
    }
    .cookie-btn { font-size: 0.94em; padding: 8px 11px; }
    .cookie-modal {
        padding: 18px 7px;
    }
}

/* =========================================================
   Subtle Animations & Microinteractions
   ========================================================= */
a, .cta-primary, .card, .feature-item, .testimonial-card, th, td, .cookie-btn {
    transition: box-shadow 0.18s, background 0.18s, color 0.18s, transform 0.15s;
}

.card:active, .testimonial-card:active {
    transform: scale(0.985);
}

/* =========================================================
   Soft Pastel Backgrounds (for dreamy look)
   ========================================================= */
body {
    background: linear-gradient(120deg, #FCE4EC 0%, #E9FCE4 100%);
}
.section {
    background: linear-gradient(90deg, #E9FCE4 0%, #F4F6FB 50%, #D6ECFB 100%);
}

/* ===================================
   Hide default number spin for inputs (for forms, if any form is added later) 
   =================================== */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* ============ Utility For Visually Hidden (cookie toggle accessibility) ============= */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* END */
