/*
Theme Name:   Hello Offer Engine
Description:  Child theme for Hello Elementor with a full Offer Management System. Page template and shortcode [offer_grid] output comparison cards in a listed view. Each card includes: brand logo, headline offer, description, key features, star rating, CTA button, and optional compliance/terms. Filter by vertical; sort by rating or manual order. Admin: Offer Engine menu (offers, verticals, table settings, docs) and 3-tier CTA (per-offer, per-vertical, global default). Custom Code: Offer Engine → Custom Code provides three injection points — Header (as high as possible in &lt;head&gt;), Body (immediately after &lt;body&gt;), and Footer (before &lt;/body&gt;) — for analytics, tag managers, chat widgets, or any custom HTML/scripts; each block has its own Save and optional validation. SVG support; custom header and footer; Customizer options.
Template:     hello-elementor
Version:      3.0.15
Author:       Charlie Sarmiento
*/

/*
 * BRAND COLOUR: #f14902
 * Used on links, h2 underlines, blockquotes, dropdown border, breadcrumb links.
 * To change it, find/replace #f14902 throughout this file.
 */

/* ==========================================================================
   TYPOGRAPHY & BASE
   ========================================================================== */

html {
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    background: #ffffff;
    color: #1a1a1a;
}

p {
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 1em 0;
    color: #444;
}

li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.5rem; }

a {
    color: #f14902;
    text-decoration: underline;
}

a:hover {
    color: #f14902;
}

article p a {
    text-decoration: none;
    border-bottom: 2px solid #f14902;
    transition: 0.12s ease;
}

article p a:hover {
    border-bottom: none;
}

blockquote p {
    font-style: italic;
    color: #f14902;
}

.entry-content h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f14902;
    display: inline-block;
    padding-bottom: 5px;
}

.entry-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 30px;
}

.entry-content p,
.entry-content li {
    line-height: 1.7;
    color: #444;
    font-size: 1.05rem;
}

hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.entry-content {
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
}

.entry-content > * {
    max-width: 100% !important;
}

.page-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

/*
 * Fixed header. Height set in two places — keep them in sync:
 *   1. height: 70px on #site-header
 *   2. padding-top: 70px on body
 */

header#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    z-index: 99999;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding-left: max(20px, calc((100% - 1200px) / 2 + 20px));
    padding-right: max(20px, calc((100% - 1200px) / 2 + 20px));
    box-sizing: border-box;
}

header#site-header * {
    box-sizing: border-box;
}

/* ── Branding — pinned left ── */

header#site-header .site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-right: auto; /* pushes nav to the far right */
    order: 1;
}

/*
 * .oe-branding-wrap — the <a> rendered by header.php that wraps
 * the logo image and site title text side by side.
 */
header#site-header .oe-branding-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Logo image — height matches header feel, width scales automatically */
header#site-header .oe-brand-logo-img {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* Site title text — reads from Settings → General → Site Title */
header#site-header .oe-brand-title {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
}

header#site-header .oe-branding-wrap:hover .oe-brand-title {
    color: #111827;
    text-decoration: none;
}

/* ── Navigation — pinned right ── */

header#site-header nav.site-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    order: 2;
}

header#site-header nav.site-navigation ul#menu-primary-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

header#site-header nav.site-navigation ul#menu-primary-menu > li > a {
    line-height: 60px;
    padding: 0 5px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #374151;
    white-space: nowrap;
}

/* ── Dropdown panel ── */

header#site-header nav.site-navigation ul#menu-primary-menu > li > ul.sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 60px;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #f14902;
    padding: 10px 0;
    transition: all 0.2s ease;
}

header#site-header nav.site-navigation ul#menu-primary-menu > li:hover > ul.sub-menu {
    visibility: visible;
    opacity: 1;
}

header#site-header nav.site-navigation ul.sub-menu li a {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

/* ── Body offset for fixed header ── */

body {
    padding-top: 60px !important;
}

/* ── Admin bar — shift header down 32px when logged in ── */

.admin-bar header#site-header {
    top: 32px;
}

/* ── Keep WP admin bar dropdowns above site header ── */

#wpadminbar {
    z-index: 999999;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumb,
.breadcrumbs,
#breadcrumbs,
nav.breadcrumb,
.woocommerce-breadcrumb,
span.breadcrumb,
.rank-math-breadcrumb,
.yoast-breadcrumb {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 0 4px !important;
    font-size: 13px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #333 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.breadcrumb a,
.breadcrumbs a,
#breadcrumbs a,
.rank-math-breadcrumb a,
.yoast-breadcrumb a {
    color: #f14902 !important;
    text-decoration: none !important;
}

.breadcrumb a:hover,
.breadcrumbs a:hover,
#breadcrumbs a:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

/* ── Hamburger toggle button ── */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    order: 3;
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animate bars to × when active */
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav panel ── */

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #ffffff;
    border-bottom: 3px solid #f14902;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-nav.is-open {
    display: block;
}

/* ── Mobile nav menu items ── */

.mobile-nav ul#menu-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav ul#menu-mobile-menu > li > a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav ul#menu-mobile-menu > li > a:hover {
    background: #f9fafb;
    color: #f14902;
}

/* ── Mobile sub-menu (dropdown children) ── */

.mobile-nav ul#menu-mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9fafb;
}

.mobile-nav ul#menu-mobile-menu .sub-menu li a {
    display: block;
    padding: 11px 24px 11px 40px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav ul#menu-mobile-menu .sub-menu li a:hover {
    background: #f3f4f6;
    color: #f14902;
}

/* ── Responsive breakpoint ── */

@media (max-width: 768px) {

    /* Hide desktop nav, show hamburger */
    header#site-header nav.site-navigation {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    header#site-header {
        padding-left: 20px !important;
        padding-right: 20px !important;
        min-height: 60px !important;
    }

    /* Shift mobile panel down when admin bar is visible */
    .admin-bar .mobile-nav {
        top: calc(60px + 46px);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

/*
 * Two-tone footer:
 *   Top  (.footer-navigation) — #2d3748, teal titles, inline links
 *   Bottom (.footer-legal)    — #1e2535, centered logo + legal text
 */

.secondary-footer {
    font-family: inherit;
    margin-top: 60px;
}

.secondary-footer a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: none;
}

.secondary-footer a:hover {
    text-decoration: underline;
}

/* ── Top: navigation columns ── */

.footer-navigation {
    background: #2d3748;
    padding: 50px 20px;
}

.footer-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #5ba4cf;
    line-height: 1.2;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
}

.footer-menu li {
    font-size: 14px;
    margin: 0;
    display: inline;
}

.footer-menu li + li::before {
    content: ' ';
    white-space: pre;
}

.footer-menu a {
    font-size: 14px;
    color: #cbd5e0;
    text-decoration: none;
    white-space: nowrap;
}

.footer-menu a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ── Bottom: logo + legal ── */

.footer-legal {
    background: #1e2535;
    padding: 50px 20px 16px;
}

.footer-legal-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo img {
    width: 75px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-legal-inner p {
    font-size: 14px;
    line-height: 1.7;
    color: #a0aec0;
    margin: 6px 0;
}

.footer-legal-notice {
    font-size: 13px !important;
    color: #718096 !important;
    max-width: 680px;
    margin: 10px auto !important;
}

.footer-legal-inner a {
    color: #a0aec0;
    text-decoration: none;
}

.footer-legal-inner a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── Footer responsive ── */

@media (max-width: 768px) {

    .footer-navigation {
        padding: 36px 16px;
    }

    .footer-nav-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-title {
        font-size: 18px;
    }

    .footer-legal {
        padding: 36px 16px 30px;
    }
}

@media (max-width: 480px) {

    .footer-nav-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-menu ul {
        justify-content: center;
    }

    .footer-title {
        font-size: 16px;
    }
}


/* ==========================================================================
   FOOTER BOTTOM BAR
   ========================================================================== */

/*
 * Slim horizontal menu bar pinned to the very bottom of the footer.
 * Background inherits the legal section colour (set via Customizer inline CSS).
 * Font size, link colour, and hover colour are also Customizer-controlled.
 */

.footer-bottom-bar {
    background: #1e2535;
    border: none;
    padding: 0 20px 20px;
}

.footer-bottom-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.footer-bottom-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
}

.footer-bottom-nav li {
    margin: 0;
    padding: 0;
}

.footer-bottom-nav a {
    text-decoration: none;
    opacity: 0.85;
    transition: color 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}

.footer-bottom-nav a:hover {
    opacity: 1;
    text-decoration: none;
}

@media (max-width: 480px) {
    .footer-bottom-bar {
        padding: 10px 16px;
    }

    .footer-bottom-nav {
        gap: 6px 14px;
    }
}
