/*
Theme Name: RFL Theme
Author: Daniel Pescador
Description: Custom theme for the rebuild
Version: 1.0
*/

/* ─── Base resets ──────────────────────────────────────────────────────────── */

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── WordPress nav menu ───────────────────────────────────────────────────── */
/*
 * wp_nav_menu() generates its own markup (ul > li > a).
 * These rules style that output since Tailwind can't target it
 * without a custom Walker class.
 */

#primary-nav ul,
#mobile-panel-nav,
#mobile-panel-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Desktop nav */
#primary-nav > ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#primary-nav ul li a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a {
    color: #1B3461;
}

/* Dropdown sub-menus */
#primary-nav ul li {
    position: relative;
}

#primary-nav ul li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12);
    border-radius: 0.5rem;
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 100;
}

#primary-nav ul li:hover > .sub-menu {
    display: block;
}

#primary-nav ul li .sub-menu li a {
    display: block;
    padding: 0.5rem 1.25rem;
}

/* Mobile slide panel nav — white text on dark navy background */

/* ul IS #mobile-panel-nav — lay items in a column */
#mobile-panel-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Top-level items: <a> and <span> (label-only parents with no href) */
#mobile-panel-nav > li > a,
#mobile-panel-nav > li > span {
    display: block;
    padding: 1rem 0;
    font-size: 1.375rem !important; /* 22px — clearly above 20px */
    font-weight: 700 !important;
    color: #FFFEF4 !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 254, 244, 0.12);
    transition: opacity 0.2s;
}

#mobile-panel-nav > li > a:hover,
#mobile-panel-nav > li.current-menu-item > a {
    opacity: 0.65;
}

/* Sub-menu inside panel — indented, slightly smaller */
#mobile-panel-nav li .sub-menu {
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 254, 244, 0.2);
    margin: 0.25rem 0 0.5rem;
}

#mobile-panel-nav li .sub-menu li a,
#mobile-panel-nav li .sub-menu li span {
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 0;
    border-bottom: none;
    color: rgba(255, 254, 244, 0.75) !important;
}

/* Custom logo sizing */
.custom-logo-link img {
    height: 40px;
    width: auto;
}

/* ─── Footer widget areas ───────────────────────────────────────────────────── */

.footer-widget-title {
    color: #EEAB1F;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

#site-footer .footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 0 0.5rem 0;
}

#site-footer .footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

#site-footer .footer-col a:hover {
    color: #EEAB1F;
}

/* Nav menu lists rendered inside footer widget areas */
#site-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#site-footer .footer-col ul li a {
    font-size: 0.9rem;
}

/* ─── TinyMCE Highlight ─────────────────────────────────────────────────────── */

mark {
    background-color: #EEAB1F;
    color: inherit;
    padding: 0.1em 0.4em;
    border-radius: 3px;
}

/* ─── TinyMCE Quote Styles ──────────────────────────────────────────────────── */

.rfl-quote-text {
    display: block;
    font-style: italic;
}

.rfl-quote-person {
    display: block;
    font-weight: 700;
    color: #1E3256;
    margin-top: 1.25rem;
}

.rfl-quote-title {
    display: block;
    color: #EEAB1F;
    font-size: 0.9em;
    margin-top: 0.25rem;
}

/* Sub-menu (child pages) — indented under their parent */
#site-footer .footer-col ul .sub-menu {
    padding-left: 1rem;
    margin-top: 0.25rem;
    gap: 0.25rem;
}

#site-footer .footer-col ul .sub-menu li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}
