/* ACOSUR — palette from the public mockup. No glassmorphism.
   Rules that hide another theme's header or footer stay in the view
   <style>, so this file can ship in the shared frontend bundle. */

:root {
    --acosur-brand: #721fa4;
    --acosur-dark: #4b1a5e;
    --acosur-deep: #2e0f3b;
    --acosur-soft: #e7d3f3;
    --acosur-orange: #f27a23;
    --acosur-ink: #2a1833;
    --acosur-muted: #6b5a73;
    --acosur-paper: #f6f0f9;
    --acosur-line: #e4d9ea;
    --acosur-footer-text: #d7c6e2;
}

#acosur-header .navbar,
#acosur-header nav.acosur-proposal-nav {
    display: flex !important;
}

/* ---------- Header ---------- */

#acosur-header.acosur-header-main {
    background: #fff;
    color: var(--acosur-ink);
    font-family: Manrope, Arial, sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--acosur-line);
    min-height: 84px;
}

#acosur-header .acosur-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 84px;
    padding: 18px 4%;
}

#acosur-header .acosur-brand,
#acosur-header .wordmark,
#acosur-footer .wordmark,
#acosur-footer .acosur-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    font-weight: 800;
    letter-spacing: -0.07em;
    font-size: 29px;
    line-height: 1;
    white-space: nowrap;
    color: var(--acosur-dark);
    text-decoration: none;
}

#acosur-header .acosur-logo img,
#acosur-footer .acosur-logo img {
    height: 34px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

#acosur-header .mark,
#acosur-footer .mark {
    display: inline-grid;
    place-items: center;
    background: var(--acosur-brand);
    color: #fff;
    width: 34px;
    height: 34px;
    font-size: 24px;
    margin-right: 9px;
    letter-spacing: 0;
    transform: skewX(-7deg);
}

#acosur-header .brand-dot,
#acosur-footer .brand-dot {
    color: var(--acosur-orange);
}

#acosur-header .acosur-proposal-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
}

#acosur-header .acosur-nav-link {
    color: var(--acosur-ink);
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

#acosur-header .acosur-nav-link:hover {
    color: var(--acosur-brand);
}

#acosur-header .acosur-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    background: var(--acosur-brand);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    border: 0;
    padding: 16px 22px;
    min-height: 52px;
    white-space: nowrap;
    line-height: 1;
}

#acosur-header .acosur-nav-cta span {
    font-size: 22px;
    line-height: 1;
}

#acosur-header .acosur-nav-cta:hover {
    background: var(--acosur-dark);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Native Odoo controls. Icon slot is 36px. Text and CTA stay auto width. */

ul.acosur-header-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-height: 36px;
    margin: 0 0 0 12px;
    padding: 0;
    list-style: none;
}

ul.acosur-header-controls > li {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1;
}

ul.acosur-header-controls > li.d-none {
    display: none !important;
}

ul.acosur-header-controls > li.acosur-ctrl-icon {
    width: 36px;
    height: 36px;
    line-height: normal;
    position: relative;
}

ul.acosur-header-controls > li.divider {
    display: none !important;
    width: 0;
}

#acosur-header .acosur-header-text,
#acosur-header .acosur-header-social,
#acosur-header .acosur-header-cta,
#acosur-header .acosur-ctrl-lang {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--acosur-ink);
}

#acosur-header .acosur-lang-btn {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--acosur-dark);
    font-size: 12px;
    font-weight: 700;
}

#acosur-header .acosur-icon-btn,
#acosur-header ul.acosur-header-controls > li.acosur-ctrl-icon > .nav-link,
#acosur-header ul.acosur-header-controls > li.acosur-ctrl-icon > a.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0 !important;
    color: var(--acosur-dark);
    text-decoration: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 0;
    vertical-align: middle;
}

#acosur-header .acosur-icon-btn:hover,
#acosur-header ul.acosur-header-controls > li.acosur-ctrl-icon > .nav-link:hover {
    color: var(--acosur-brand);
}

#acosur-header .acosur-icon-btn > .oi,
#acosur-header .acosur-icon-btn > .fa,
#acosur-header ul.acosur-header-controls > li.acosur-ctrl-icon > .nav-link .oi,
#acosur-header ul.acosur-header-controls > li.acosur-ctrl-icon > .nav-link .fa,
#acosur-header ul.acosur-header-controls > li.acosur-ctrl-icon > .acosur-icon-btn .oi,
#acosur-header ul.acosur-header-controls > li.acosur-ctrl-icon > .acosur-icon-btn .fa {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
}

#acosur-header ul.acosur-header-controls > li.acosur-ctrl-icon > .nav-link .fa-stack,
#acosur-header ul.acosur-header-controls > li.acosur-ctrl-icon > .acosur-icon-btn .fa-stack {
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
}

#acosur-header ul.acosur-header-controls .dropdown-menu .dropdown-item .fa,
#acosur-header ul.acosur-header-controls .dropdown-menu .dropdown-item .oi {
    display: inline-block;
    width: 1.28571429em;
    height: auto;
    margin: 0 0.35rem 0 0;
    font-size: inherit;
    line-height: inherit;
    text-align: center;
    vertical-align: middle;
    flex: 0 0 auto;
}

#acosur-header ul.acosur-header-controls > li.dropdown > .dropdown-menu.js_usermenu {
    line-height: 1.5;
    min-width: 12rem;
    padding: 0.5rem 0;
    border: 1px solid var(--acosur-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(75, 26, 94, 0.12);
    background: #fff;
}

#acosur-header ul.acosur-header-controls > li.dropdown > .dropdown-menu.js_usermenu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.5;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    color: var(--acosur-ink);
    font-size: 14px;
    font-weight: 600;
}

#acosur-header ul.acosur-header-controls > li.dropdown > .dropdown-menu.js_usermenu .dropdown-item:hover {
    background: var(--acosur-paper);
    color: var(--acosur-dark);
}

#acosur-header ul.acosur-header-controls .my_cart_quantity,
#acosur-header ul.acosur-header-controls .my_wish_quantity {
    position: absolute !important;
    top: -6px !important;
    right: -8px !important;
    z-index: 1;
    font-size: 10px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 3px;
    line-height: 1.1rem;
    background: var(--acosur-brand) !important;
    color: #fff !important;
}

#acosur-header .acosur-header-cta .btn_cta {
    background: var(--acosur-brand);
    border-color: var(--acosur-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 0;
    padding: 8px 14px;
    white-space: nowrap;
}

/* ---------- Mobile navbar ---------- */
/* Scoped: this file ships in web.assets_frontend. Nested <header>
   id=acosur-header is parsed as a sibling of o_header_mobile. */

body:has(#acosur-header) .o_header_mobile.navbar {
    background: #fff !important;
    border-bottom: 1px solid var(--acosur-line);
    font-family: Manrope, Arial, sans-serif;
}

body:has(#acosur-header) .o_header_mobile .nav-link {
    color: var(--acosur-ink) !important;
    font-family: Manrope, Arial, sans-serif;
    font-weight: 600;
    font-size: 15px;
}

body:has(#acosur-header) .o_header_mobile .nav-link:hover {
    color: var(--acosur-brand) !important;
}

body:has(#acosur-header) .o_header_mobile .o_header_mobile_buttons_wrap .nav-link,
body:has(#acosur-header) .o_header_mobile .o_header_mobile_buttons_wrap .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    color: var(--acosur-dark);
    border: 0;
    background: transparent;
}

body:has(#acosur-header) .o_header_mobile .o_header_mobile_buttons_wrap .fa,
body:has(#acosur-header) .o_header_mobile .o_header_mobile_buttons_wrap .oi,
body:has(#acosur-header) .o_header_mobile .o_header_mobile_buttons_wrap .navbar-toggler-icon {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

body:has(#acosur-header) .o_header_mobile .my_cart_quantity,
body:has(#acosur-header) .o_header_mobile .my_wish_quantity {
    background: var(--acosur-brand) !important;
    color: #fff !important;
}

body:has(#acosur-header) .acosur-mobile-cta-wrap {
    padding: 12px 16px;
}

body:has(#acosur-header) .acosur-mobile-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: var(--acosur-brand) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 12px 20px !important;
    border-radius: 0;
}

body:has(#acosur-header) .acosur-mobile-cta:hover {
    background: var(--acosur-dark) !important;
    color: #fff !important;
}

body:has(#acosur-header) .acosur-mobile-cta span {
    font-size: 18px;
}

/* ---------- Footer ---------- */

#acosur-footer.acosur-proposal-footer {
    background: #fff;
    color: var(--acosur-ink);
    font-family: Manrope, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    width: 100%;
}

#acosur-footer .acosur-foot-main,
#acosur-footer .acosur-foot-legal,
#acosur-footer .acosur-foot-links,
.o_footer_copyright.acosur-proposal-copy {
    width: min(1200px, 88%);
    margin-left: auto;
    margin-right: auto;
}

#acosur-footer .acosur-foot-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 0;
}

#acosur-footer .acosur-foot-main p {
    font-size: 13px;
    margin: 0;
    color: var(--acosur-muted);
}

#acosur-footer .acosur-foot-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
}

#acosur-footer .acosur-foot-meta a {
    color: var(--acosur-ink);
    text-decoration: none;
}

#acosur-footer .acosur-foot-meta a:hover {
    color: var(--acosur-brand);
}

#acosur-footer .acosur-back-top {
    padding: 12px 19px;
    border: 1px solid var(--acosur-line);
    color: var(--acosur-ink);
    text-decoration: none;
    font-weight: 700;
}

#acosur-footer .acosur-foot-legal {
    background: var(--acosur-deep);
    color: var(--acosur-footer-text);
    width: 100%;
    max-width: none;
    padding: 22px 6%;
    font-size: 13px;
}

#acosur-footer .acosur-foot-legal p {
    width: min(1200px, 88%);
    margin: 0 auto;
    color: #e2d2ec;
    line-height: 1.7;
}

#acosur-footer .acosur-foot-legal strong {
    color: #fff;
}

#acosur-footer .acosur-foot-legal a {
    color: #e2d2ec;
    text-decoration: underline;
}

#acosur-footer .acosur-foot-legal .nw {
    white-space: nowrap;
}

#acosur-footer .acosur-foot-links {
    border-top: 1px solid var(--acosur-line);
    padding: 22px 0;
}

#acosur-footer .acosur-foot-links h2 {
    margin: 0 0 12px;
    font-family: Manrope, Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--acosur-brand);
    line-height: 1.3;
}

#acosur-footer .acosur-foot-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

#acosur-footer .acosur-foot-links-row a {
    color: var(--acosur-ink);
    font-size: 14px;
    text-decoration: none;
}

#acosur-footer .acosur-foot-links-row a:hover {
    color: var(--acosur-brand);
    text-decoration: underline;
}

.o_footer_copyright.acosur-proposal-copy {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff;
    color: var(--acosur-muted);
    font-family: Manrope, Arial, sans-serif;
    font-size: 12px;
    border-top: 1px solid var(--acosur-line);
    padding: 16px 0;
    width: 100%;
    max-width: none;
}

.o_footer_copyright.acosur-proposal-copy p {
    width: min(1200px, 88%);
    margin: 0 auto;
}

.o_footer_copyright.acosur-proposal-copy ~ .o_footer_copyright {
    display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    #acosur-header .acosur-bar {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    #acosur-header .acosur-proposal-nav {
        order: 3;
        flex: 1 0 100%;
        margin-left: 0;
        flex-wrap: wrap;
        gap: 12px 18px;
    }
}

@media (max-width: 760px) {
    #acosur-footer .acosur-foot-main {
        flex-wrap: wrap;
        gap: 22px;
    }
}
