/*
 Theme Name:   Astra Child – Etena
 Theme URI:    https://etenafinance.com.au
 Description:  Child theme for Astra – Etena Finance
 Author:       OmniGrowth
 Author URI:   https://andreasjasonvillamor.online
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* Etena brand tokens */
:root {
	--etena-green: #04312d;
	--etena-gold:  #b4862d;
	--etena-font-heading: 'Tenor Sans', serif;
	--etena-font-body:    'Mulish', sans-serif;
}

/* Custom CSS below */

/* ─── Shared Etena header, mobile menu and footer (used by header.php / footer.php) ─── */
.ef-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 80px; height: 80px; display: flex; align-items: center; justify-content: space-between; background-color: rgba(4,49,45,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color 0.35s, box-shadow 0.35s; }
.ef-header.scrolled { background-color: rgba(4,49,45,0.98); box-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.ef-header-logo img { height: 58px; width: auto; display: block; object-fit: contain; }
.ef-header-nav { display: flex; align-items: center; gap: 36px; }
.ef-header-nav a { font-family: 'Mulish', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.5px; color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.ef-header-nav a:hover { color: #d4a84b; }
.ef-nav-dropdown { position: relative; }
.ef-nav-dropdown > a { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.ef-nav-dropdown > a svg { transition: transform 0.25s; }
.ef-nav-dropdown:hover > a svg { transform: rotate(180deg); }
.ef-nav-dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background-color: #04312d; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 10px 0; min-width: 240px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; pointer-events: none; box-shadow: 0 12px 32px rgba(0,0,0,0.3); margin-top: 16px; }
.ef-nav-dropdown-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.ef-nav-dropdown:hover .ef-nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: all; }
.ef-nav-dropdown-menu a { display: block; padding: 10px 20px; font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s, background-color 0.2s; white-space: nowrap; }
.ef-nav-dropdown-menu a:hover { color: #d4a84b; background-color: rgba(255,255,255,0.05); }
.ef-nav-dropdown-menu .ef-nav-divider { height: 1px; background-color: rgba(255,255,255,0.08); margin: 6px 0; }
.ef-header-cta { display: inline-flex; align-items: center; gap: 8px; background-color: #b4862d; color: #fff; font-family: 'Mulish', sans-serif; font-size: 13px; font-weight: 500; padding: 11px 24px; border-radius: 4px; text-decoration: none; transition: background-color 0.25s, transform 0.2s; letter-spacing: 0.3px; white-space: nowrap; }
.ef-header-cta:hover { background-color: #c99740; transform: translateY(-1px); color: #fff; text-decoration: none; }
.ef-header-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.ef-header-hamburger span { display: block; width: 22px; height: 1.5px; background-color: #fff; transition: all 0.3s; }
.ef-header-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ef-header-hamburger.open span:nth-child(2) { opacity: 0; }
.ef-header-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.ef-mobile-nav { display: none; position: fixed; top: 80px; left: 0; right: 0; bottom: 0; background-color: rgba(4,25,22,0.98); z-index: 999; flex-direction: column; padding: 32px; overflow-y: auto; gap: 8px; }
.ef-mobile-nav.open { display: flex; }
.ef-mobile-nav a { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.85); text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); transition: color 0.2s; }
.ef-mobile-nav a:hover { color: #d4a84b; }
.ef-mobile-nav .ef-mobile-section-label { font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #b4862d; margin: 16px 0 4px; }
.ef-mobile-nav .ef-mobile-cta { margin-top: 24px; background-color: #b4862d; color: #fff; text-align: center; border-radius: 4px; padding: 14px; border-bottom: none; font-weight: 500; }
@media (max-width: 1024px) { .ef-header { padding: 0 40px; } }
@media (max-width: 900px) { .ef-header-nav, .ef-header-cta { display: none; } .ef-header-hamburger { display: flex; } .ef-header { padding: 0 24px; } }
.ef-footer { background-color: #04312d; font-family: 'Mulish', sans-serif; }
.ef-footer-main { background-color: #04312d; padding: 70px 0 48px; }
.ef-footer-inner { max-width: 1300px; margin: 0 auto; padding: 0 80px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
.ef-footer-brand { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ef-footer-brand img { max-height: 60px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.ef-footer-tagline { font-size: 13px; font-weight: 300; line-height: 1.75; color: rgba(255,255,255,0.5); max-width: 280px; }
.ef-footer-social { display: flex; gap: 12px; }
.ef-footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); text-decoration: none; transition: border-color 0.25s, color 0.25s; }
.ef-footer-social a:hover { border-color: #b4862d; color: #d4a84b; }
.ef-footer-col-title { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #b4862d; margin-bottom: 20px; }
.ef-footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.ef-footer-col-links a { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.ef-footer-col-links a:hover { color: #d4a84b; }
.ef-footer-contact-item { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.ef-footer-contact-label { font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.ef-footer-contact-value { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.65); text-decoration: none; }
.ef-footer-contact-value:hover { color: #d4a84b; }
.ef-footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 0 80px; }
.ef-footer-bottom { max-width: 1300px; margin: 0 auto; padding: 24px 80px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ef-footer-compliance { font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.3); line-height: 1.7; max-width: 700px; }
.ef-footer-copy { font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.25); white-space: nowrap; }
@media (max-width: 1024px) { .ef-footer-inner { padding: 0 40px; grid-template-columns: 1fr 1fr; gap: 40px; } .ef-footer-bottom, .ef-footer-divider { padding-left: 40px; padding-right: 40px; margin-left: 0; margin-right: 0; } }
@media (max-width: 600px) { .ef-footer-inner { grid-template-columns: 1fr; padding: 0 24px; } .ef-footer-bottom { padding: 20px 24px; flex-direction: column; } .ef-footer-divider { margin: 0 24px; } }

/* Astra's scroll-to-top button comes from wp_footer(), but Astra's CSS is not loaded on Etena pages */
#ast-scroll-top { display: none !important; }

/* Logged-in admin bar: keep the fixed header below it */
body.admin-bar .ef-header { top: 32px; }
body.admin-bar .ef-mobile-nav { top: 112px; }
@media screen and (max-width: 782px) { body.admin-bar .ef-header { top: 46px; } body.admin-bar .ef-mobile-nav { top: 126px; } }

/* ─── Cookie banner + preferences (CookieAdmin) in Etena style ─── */
/* CookieAdmin sets its colours inline via JavaScript, so colour rules need !important. */
.cookieadmin_law_container { width: 380px; max-width: calc(100% - 32px); left: 24px; bottom: 24px; font-family: 'Mulish', sans-serif; }
.cookieadmin_consent_inside { background-color: #04312d !important; border: 1px solid rgba(180,134,45,0.35) !important; color: rgba(255,255,255,0.7) !important; border-radius: 8px; padding: 24px; box-shadow: 0 16px 48px rgba(0,0,0,0.35); }
#cookieadmin_notice_title { font-family: 'Tenor Sans', serif; font-size: 19px; font-weight: 400; line-height: 1.3; color: #fff !important; padding: 0; margin: 0 0 10px; }
.cookieadmin_notice_con { padding: 0; }
#cookieadmin_notice { font-size: 13px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.7) !important; margin: 0 0 18px; }
#cookieadmin_notice b { font-weight: 600; color: #fff; }
.cookieadmin_consent_btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cookieadmin_law_container button.cookieadmin_btn,
.cookieadmin_cookie_modal button.cookieadmin_btn { font-family: 'Mulish', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.3px; line-height: 1.2; padding: 11px 16px; margin: 0; width: auto; border-radius: 4px; flex: 1 1 auto; cursor: pointer; transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
button.cookieadmin_accept_btn { background-color: #b4862d !important; border: 1px solid #b4862d !important; color: #fff !important; }
button.cookieadmin_accept_btn:hover { background-color: #c99740 !important; border-color: #c99740 !important; opacity: 1; }
button.cookieadmin_reject_btn,
button.cookieadmin_save_btn { background-color: transparent !important; border: 1px solid rgba(255,255,255,0.35) !important; color: #fff !important; }
button.cookieadmin_reject_btn:hover,
button.cookieadmin_save_btn:hover { border-color: rgba(255,255,255,0.7) !important; opacity: 1; }
.cookieadmin_law_container button.cookieadmin_customize_btn { order: 3; flex: 1 1 100%; padding: 4px 0 0; background-color: transparent !important; border: none !important; color: #d4a84b !important; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.cookieadmin_law_container button.cookieadmin_customize_btn:hover { color: #e8c06a !important; opacity: 1; }
.cookieadmin-poweredby { opacity: 0.4; }
.cookieadmin_law_container .cookieadmin-poweredby { margin-top: 14px; }
.cookieadmin-poweredby a { color: #fff !important; }
.cookieadmin-poweredby svg { filter: brightness(0) invert(1); }

.cookieadmin_modal_overlay { background-color: rgba(2,24,22,0.7); }
.cookieadmin_cookie_modal { background-color: #04312d !important; border: 1px solid rgba(180,134,45,0.35) !important; color: rgba(255,255,255,0.75); border-radius: 8px; box-shadow: 0 24px 64px rgba(0,0,0,0.45); font-family: 'Mulish', sans-serif; }
.cookieadmin_mod_head { align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cookieadmin_preference_title { font-family: 'Tenor Sans', serif; font-size: 22px; font-weight: 400; color: #fff !important; margin: 0; }
.cookieadmin_close_pref { color: rgba(255,255,255,0.6); font-size: 16px; }
.cookieadmin_close_pref:hover { color: #d4a84b; }
.cookieadmin_details_wrapper { color: rgba(255,255,255,0.75) !important; padding: 0 24px; }
.cookieadmin_preference { font-size: 13px; font-weight: 300; line-height: 1.7; padding: 16px 0; }
.cookieadmin_preference b { font-weight: 600; color: #fff; }
.cookieadmin_types { padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.cookieadmin_header { align-items: center; }
.cookieadmin_cookie_modal label { font-size: 14px; padding: 0; margin-right: 8px; }
.cookieadmin_header .stitle { color: #fff; font-weight: 600; }
.cookieadmin_show_pref_cookies { color: #d4a84b; font-size: 12px; margin-right: 6px; }
.cookieadmin_desc { font-size: 13px; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,0.6); padding: 6px 0 0 22px; }
.cookieadmin-modal-cookies-list { font-size: 12px; color: rgba(255,255,255,0.5); }
.cookieadmin_cookie_modal .cookieadmin_act,
.cookieadmin_cookie_modal .cookieadmin_remark { color: #d4a84b !important; font-size: 12px; font-weight: 500; }
.cookieadmin_cookie_modal .cookieadmin_slider { background-color: rgba(255,255,255,0.25) !important; }
.cookieadmin_cookie_modal input:checked + .cookieadmin_slider { background-color: #b4862d !important; }
.cookieadmin_modal_footer { display: flex; gap: 8px; padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.cookieadmin_modal_footer_links { width: 100%; margin: 8px 0 0; }

button.cookieadmin_re_consent { background-color: #04312d !important; border: 1px solid rgba(180,134,45,0.5) !important; width: 44px; height: 44px; left: 20px; bottom: 20px; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.cookieadmin_reconsent_img { width: 24px; height: 24px; filter: brightness(0) invert(1); opacity: 0.85; }

@media (max-width: 600px) {
	.cookieadmin_law_container { left: 16px; bottom: 16px; }
	.cookieadmin_consent_inside { padding: 20px; }
	#cookieadmin_notice_title { font-size: 17px; }
	#cookieadmin_notice { font-size: 12.5px; margin-bottom: 14px; }
	.cookieadmin_mod_head, .cookieadmin_modal_footer { padding: 16px; }
	.cookieadmin_details_wrapper { padding: 0 16px; }
	.cookieadmin_desc { padding-left: 0; }
}
