/* =========================================================================
   CSS RESET & BASE
   ========================================================================= */
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;
    background: transparent;
}
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    font-size: 16px;
    background: #F6F5F9;
}
* {
    box-sizing: inherit;
}
body {
    font-family: 'Lato', Arial, sans-serif;
    color: #212328;
    background: linear-gradient(156deg, #F6F5F9 60%, #E1DBF6 100%);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.02em;
    position: relative;
}
img {
    max-width: 100%;
    display: block;
    height: auto;
}
ul, ol {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
button, .cta-btn {
    font-family: 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    outline: none;
}
button:focus, .cta-btn:focus {
    outline: 2px solid #BFA76C;
    outline-offset: 2px;
}

/* =========================================================================
   SOFT PASTEL COLOR VARIABLES & FONTS
   ========================================================================= */
:root {
    /* Brand core */
    --color-primary: #212328;
    --color-secondary: #BFA76C;
    --color-accent: #FFFFFF;
    /* Soft pastel palette */
    --pastel-blue: #cfe7fc;
    --pastel-pink: #ffe6eb;
    --pastel-lilac: #e1dbf6;
    --pastel-green: #d6f5ea;
    --pastel-beige: #f8efe3;
    --pastel-yellow: #fff9e3;
    --shadow: 0 6px 28px rgba(191, 167, 108, 0.09), 0 2px 8px rgba(121, 135, 171, 0.08);
    --radius: 18px;
    /* Fonts */
    --font-display: 'Montserrat', Arial, sans-serif;
    --font-body: 'Lato', Arial, sans-serif;
    /* Effects */
    --transition: 0.25s cubic-bezier(0.7,0.3,0.3,1);
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.01em;
    line-height: 1.15;
}
h1 {
    font-size: 2.25rem;
    margin-bottom: 24px;
    text-shadow: 0 2px 24px #e1dbf6 useful for dreamy effect;
}
h2 {
    font-size: 1.75rem;
    margin-bottom: 22px;
}
h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
h4, h5, h6 {
    font-size: 1.07rem;
    margin-bottom: 8px;
}
.subheadline {
    font-size: 1.13rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: #5A5770;
    margin-bottom: 20px;
}
p {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #33334F;
}
strong {
    color: var(--color-secondary);
    font-weight: 700;
}
blockquote {
    font-style: italic;
    background: var(--pastel-lilac);
    border-left: 4px solid var(--color-secondary);
    padding: 18px 24px;
    border-radius: var(--radius);
    margin: 0 0 10px 0;
}


/* =========================================================================
   CONTAINERS & SECTION SPACING
   ========================================================================= */
.container {
    width: 100%;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 22px;
    padding-right: 22px;
}
.section, section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}


/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
header {
    background: var(--pastel-lilac);
    box-shadow: 0 2px 16px rgba(191,167,108,0.055);
    position: sticky;
    top: 0;
    z-index: 80;
    font-size: 1rem;
    width: 100%;
}
header .container {
    display: flex;
    align-items: center;
    gap: 26px;
    justify-content: space-between;
    min-height: 74px;
    padding-top: 10px;
    padding-bottom: 10px;
}
header img[alt="Migno Galen Prestige"] {
    max-height: 44px;
    margin-right: 28px;
}
.main-nav {
    display: flex;
    gap: 26px;
    align-items: center;
}
.main-nav a {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #4E4B6A;
    padding: 6px 12px;
    border-radius: 10px;
    transition: background var(--transition), color var(--transition);
    font-weight: 500;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--color-primary);
    background: var(--pastel-blue);
}
.cta-btn {
    padding: 11px 28px;
    background: var(--color-secondary);
    color: var(--color-accent);
    border: none;
    border-radius: 26px;
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 8px rgba(191,167,108,0.09);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    margin-left: 12px;
    margin-right: 8px;
}
.cta-btn:hover, .cta-btn:focus {
    background: #dabf7a;
    color: var(--color-primary);
    transform: translateY(-2px) scale(1.033);
    box-shadow: 0 4px 16px rgba(191,167,108,0.21);
}

/* Hamburger Icon for mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.1rem;
    color: var(--color-primary);
    margin-left: 12px;
    z-index: 110;
    transition: color var(--transition) background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    color: var(--color-secondary);
    background: var(--pastel-yellow);
    border-radius: 50%;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(239,242,248, 0.97);
    z-index: 2000;
    transform: translateX(103%);
    transition: transform 0.36s cubic-bezier(0.7,0.3,0.22,1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 32px;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    align-self: flex-end;
    margin-right: 32px;
    margin-bottom: 18px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--color-primary);
    transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    color: var(--color-secondary);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-left: 38px;
}
.mobile-nav a {
    font-size: 1.15rem;
    font-family: var(--font-display);
    padding: 10px 0;
    color: #24244A;
    transition: color var(--transition), background var(--transition);
    border-radius: 10px;
    width: 98vw;
    max-width: 440px;
    font-weight: 600;
}
.mobile-nav a:hover {
    background: var(--pastel-blue);
    color: var(--color-secondary);
}


/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    background: linear-gradient(140deg, var(--pastel-blue) 50%, var(--pastel-pink) 100%);
    padding-top: 54px;
    padding-bottom: 54px;
    border-radius: 0 0 44px 44px / 0 0 30px 30px;
    box-shadow: 0 8px 54px #e1dbf6;
    margin-bottom: 44px;
}
.hero .content-wrapper {
    gap: 16px;
    align-items: flex-start;
    text-align: left;
    max-width: 700px;
}
@media (max-width: 768px) {
    .hero .content-wrapper {
        align-items: center;
        text-align: center;
    }
}

/* =========================================================================
   FEATURES, CARDS, BENEFITS
   ========================================================================= */
.features, .feature-grid, .benefits ul {
    width: 100%;
}
.features .content-wrapper, .feature-grid, .benefits ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: stretch;
}
.feature-grid > li, .benefits ul > li {
    background: var(--pastel-beige);
    border-radius: var(--radius);
    padding: 32px 22px 28px;
    box-shadow: var(--shadow);
    min-width: 225px;
    flex: 1 1 calc(45%);
    max-width: 48%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    transition: box-shadow var(--transition), background var(--transition), transform var(--transition);
}
.feature-grid > li:hover {
    background: var(--pastel-yellow);
    box-shadow: 0 5px 30px #cfe7fc78;
    transform: translateY(-4px) scale(1.015);
}
.feature-grid img, .benefits ul img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}
.features h2 {
    align-self: flex-start;
    margin-bottom: 12px;
}
@media (max-width: 900px) {
    .feature-grid > li, .benefits ul > li {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}

/* =========================================================================
   CARD CONTAINERS (Blog, Content, etc.)
   ========================================================================= */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 44px;
}
.card {
    background: var(--pastel-beige);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    position: relative;
    padding: 28px 22px;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.card:hover {
    box-shadow: 0 7px 36px #BFA76C22;
    transform: translateY(-3px) scale(1.015);
}

.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;
}
@media (max-width: 768px) {
    .text-image-section {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
        text-align: center;
    }
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonials, .testimonial-card {
    width: 100%;
}
.testimonial-card {
    background: var(--pastel-lilac);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 22px #bfa76c13;
    color: #23242b;
    font-size: 1.05rem;
    word-break: break-word;
    transition: box-shadow var(--transition), background var(--transition);
}
.testimonial-card blockquote {
    border-left: 0;
    border-radius: 12px;
    background: #fff9e3;
    color: #58455d;
    font-size: 1.07rem;
    box-shadow: 0 2px 10px #cfe7fc18;
}
.testimonial-card p {
    color: #32201d;
    margin: 0 0 0 0;
    font-weight: 600;
}
.testimonial-card strong {
    color: var(--color-secondary);
}

/* =========================================================================
   SERVICES & ABOUT
   ========================================================================= */
.services ul, .team ul {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
}
.services ul li, .team ul li {
    padding: 20px 16px;
    background: var(--pastel-pink);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px #bfa76c10;
    font-size: 1rem;
    color: #2F2F46;
}
.benefits ul li {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* =========================================================================
   CTA SECTIONS
   ========================================================================= */
.cta {
    background: linear-gradient(90deg, var(--pastel-yellow) 88%, var(--pastel-green));
    border-radius: var(--radius);
    box-shadow: 0 6px 26px #cfe7fc13;
    text-align: center;
}
.cta .cta-btn {
    margin-top: 18px;
}

/* =========================================================================
   CONTACT, FOOTER, POLICY
   ========================================================================= */
.contact-details ul,
.policy .content-wrapper ol {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-left: 0;
}
.contact-details ul li,
.policy .content-wrapper li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2e2c42;
    font-size: 1.02rem;
}
.contact-details ul img {
    width: 26px;
    height: 26px;
}
.policy .content-wrapper {
    align-items: flex-start;
    text-align: left;
}
.policy h1 {
    margin-bottom: 12px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
    background: #FBFAFE;
    color: #352E43;
    font-size: 0.98rem;
    border-top: 2px solid #ede5f7;
    margin-top: 62px;
    padding: 27px 0 16px;
    box-shadow: 0 0 24px #e1dbf665;
}
footer .container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}
.footer-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.footer-nav a {
    color: #6a649a;
    padding: 5px 9px;
    border-radius: 8px;
    font-family: var(--font-display);
    transition: background var(--transition), color var(--transition);
    font-weight: 500;
}
.footer-nav a:hover {
    background: var(--pastel-lilac);
    color: var(--color-secondary);
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.contact-info span {
    display: flex;
    align-items: center;
    gap: 9px;
}
.contact-info img {
    width: 18px;
    height: 18px;
}
.copyright {
    color: #9886bd;
    font-size: 0.93rem;
    margin-top: 10px;
}

/* =========================================================================
   COOKIE BANNER & COOKIE MODAL
   ========================================================================= */
.cookie-consent-banner {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    width: 100vw;
    background: linear-gradient(90deg, var(--pastel-lilac) 80%, var(--pastel-yellow));
    color: #23242b;
    box-shadow: 0 -2px 24px #e1dbf688;
    z-index: 2100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 20px 18px;
    font-size: 1rem;
    animation: fadein-cookie 0.5s;
}
@keyframes fadein-cookie {
  from { opacity: 0; transform: translateY(80px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner .cookie-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}
.cookie-consent-banner .cookie-btn {
    padding: 7px 20px;
    border-radius: 19px;
    border: none;
    background: var(--pastel-blue);
    color: var(--color-primary);
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 1rem;
    margin: 0;
    box-shadow: 0 1px 4px #bfa76c22;
    transition: background var(--transition), color var(--transition);
}
.cookie-consent-banner .cookie-btn.accept {
    background: var(--color-secondary);
    color: var(--color-accent);
}
.cookie-consent-banner .cookie-btn.reject {
    background: var(--pastel-pink);
    color: #A1444B;
}
.cookie-consent-banner .cookie-btn.settings {
    background: var(--pastel-lilac);
    color: var(--color-secondary);
}
.cookie-consent-banner .cookie-btn:hover {
    filter: brightness(0.96) saturate(1.4);
    transform: translateY(-2px) scale(1.036);
    box-shadow: 0 4px 18px #BFA76C22;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    z-index: 2200;
    background: rgba(30,36,64,0.28);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: cookie-modal-fadein 0.32s;
}
@keyframes cookie-modal-fadein {
    from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
    background: var(--pastel-beige);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 38px 30px 26px 30px;
    width: 97vw;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cookie-modal h2 {
    color: var(--color-primary);
    margin-bottom: 8px;
}
.cookie-modal .cookie-category {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
}
.cookie-modal .cookie-toggle {
    margin-left: auto;
    background: var(--pastel-blue);
    border: 1px solid #cfe7fc;
    border-radius: 16px;
    width: 40px;
    height: 22px;
    position: relative;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.cookie-modal .cookie-toggle.enabled {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}
.cookie-modal .cookie-toggle:before {
    content: '';
    position: absolute;
    left: 4px; top: 3px;
    background: var(--color-accent);
    border-radius: 50%;
    width: 15px;
    height: 15px;
    transition: left var(--transition);
}
.cookie-modal .cookie-toggle.enabled:before {
    left: 21px;
}
.cookie-modal .cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}
.cookie-modal .cookie-modal-actions .cookie-btn {
    padding: 7px 26px;
}
.cookie-modal .close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
}

/* =========================================================================
   MEDIA QUERIES (RESPONSIVE FLEX, MOBILE MENU, BANNER)
   ========================================================================= */
@media (max-width: 1024px) {
    .container {
        max-width: 98vw;
        padding-left: 6vw;
        padding-right: 6vw;
    }
    .features .content-wrapper, .feature-grid,
    .benefits ul, .footer-nav, .card-container {
        gap: 16px;
    }
}
@media (max-width: 900px) {
    .feature-grid > li, .benefits ul > li {
        max-width: 100%;
        flex-basis: 100%;
    }
}
@media (max-width: 768px) {
    html { font-size: 15px; }
    .section, section {
        padding: 24px 6px;
    }
    .hero {
        padding: 34px 4vw 38px 4vw;
        border-radius: 0 0 26px 26px/0 0 19px 19px;
        margin-bottom: 22px;
    }
    header .container {
        gap: 12px;
        padding-top: 3px;
        padding-bottom: 3px;
        min-height: 58px;
    }
    .main-nav {
        display: none;
    }
    .cta-btn {
        padding: 11px 20px;
        font-size: 1rem;
        margin-left: 0;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .footer-nav {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    .footer-nav a {
        font-size: 1rem;
        padding: 5px 10px;
    }
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .feature-grid,
    .benefits ul,
    .card-container,
    .content-grid {
        flex-direction: column;
        gap: 18px;
        justify-content: flex-start;
    }
}
@media (max-width: 540px) {
    html { font-size: 14px; }
    .testimonial-card {
        padding: 14px 6px;
    }
    .feature-grid > li, .benefits ul > li, .card {
        padding: 20px 10px;
    }
    .container {
        padding-left: 6px;
        padding-right: 6px;
    }
    .cookie-consent-banner {
        flex-direction: column;
        gap: 18px;
        padding: 14px 5px 16px 5px;
        font-size: 0.95rem;
    }
}

/* =========================================================================
   MICRO-INTERACTIONS & EFFECTS
   ========================================================================= */
.card, .feature-grid>li, .testimonial-card, .cta, .services ul li, .benefits ul li, .cookie-modal, .cta-btn, .cookie-consent-banner, .main-nav a, .footer-nav a, .cookie-btn {
    transition: box-shadow var(--transition), background var(--transition), transform var(--transition), color var(--transition);
}
.card:active, .feature-grid>li:active, .testimonial-card:active, .cta-btn:active, .cookie-btn:active {
    transform: scale(0.98);
}
::-webkit-scrollbar {
    width: 8px;
    background: #F6F5F9;
}
::-webkit-scrollbar-thumb {
    background: #E1DBF6;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D0C3E6;
}

/* =========================================================================
   UTILITY CLASSES
   ========================================================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

/* Hide .main-nav on mobile, .mobile-menu-toggle on desktop */
@media (min-width: 769px) {
    .mobile-menu,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* =========================================================================
   END
   ========================================================================= */
