/* =========================================================================
   FR-OVERRIDES.CSS
   FamoRenovo rebrand overrides.
   Loaded AFTER style.css to transform header, footer, typography and
   global colours while preserving all content-area styles.
   ========================================================================= */


/* -------------------------------------------------------------------------
   UPDATED CSS VARIABLES
   Override the theme's variables with the new brand palette.
   Everything that references these vars automatically updates.
   ------------------------------------------------------------------------- */

:root {
    /* Brand colours */
    --primary-color: #111d3a;
    --secondary-color: #b8993e;
    --accent-color: #d4b864;
    --famo-gold: #b8993e;

    /* Typography */
    --font-primary: 'Work Sans', 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Crimson Pro', Georgia, serif;

    /* New additions */
    --fr-navy: #111d3a;
    --fr-navy-mid: #1a2e5a;
    --fr-gold: #b8993e;
    --fr-gold-light: #d4b864;
    --fr-warm-white: #faf9f6;
    --fr-warm-gray: #f4f2ed;
    --fr-text-dark: #1c2437;
    --fr-text-body: #3d4556;
    --fr-text-muted: #6b7280;
    --fr-border: #e5e2db;
}


/* -------------------------------------------------------------------------
   GLOBAL TYPOGRAPHY REFINEMENTS
   ------------------------------------------------------------------------- */

body {
    font-family: var(--font-primary);
    color: var(--fr-text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--fr-text-dark);
    font-weight: 400;
}

a {
    color: var(--fr-gold);
}
a:hover {
    color: var(--fr-gold-light);
}


/* -------------------------------------------------------------------------
   LOGO WORDMARK
   <span class="fr-wm">FAMO<span>RENOVO</span></span>
   White/gold on dark, navy/gold on light.
   ------------------------------------------------------------------------- */

.fr-wm {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}
.fr-wm span {
    color: var(--fr-gold);
}


/* -------------------------------------------------------------------------
   HEADER - Navy fixed bar
   Replaces the old white sticky header.
   ------------------------------------------------------------------------- */

.site-header {
    background: rgba(17, 29, 58, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 153, 62, 0.12) !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: none !important;
    transition: box-shadow 0.3s;
}
.site-header.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18) !important;
}

.header-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px !important;
    height: 68px;
    gap: 0 !important;
}

/* Logo link */
.site-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    flex-shrink: 0;
}
.site-logo-link:hover {
    text-decoration: none !important;
}
.site-logo-link .fr-wm {
    font-size: 22px;
}

/* Hide the old branding block (custom logo / site title / description) */
.site-branding {
    display: none !important;
}

/* Navigation - horizontal on desktop */
.main-navigation {
    display: flex !important;
    align-items: center;
    border-top: none !important;
    width: auto !important;
    justify-content: flex-end !important;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    position: relative;
    border-bottom: none !important;
}

.main-navigation a {
    font-family: var(--font-primary);
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 14px !important;
    display: block;
    transition: color 0.2s;
    border-bottom: none !important;
}

.main-navigation a:hover {
    color: var(--fr-gold-light) !important;
    border-bottom: none !important;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--fr-gold-light) !important;
    border-bottom: none !important;
}

/* CTA item in nav - add class 'fr-nav-cta' to the menu item in WP menu editor */
.main-navigation ul > li.fr-nav-cta > a {
    border: 1.5px solid var(--fr-gold) !important;
    border-radius: 4px;
    color: var(--fr-gold) !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    transition: all 0.25s;
}
.main-navigation ul > li.fr-nav-cta > a:hover {
    background: var(--fr-gold) !important;
    color: var(--fr-navy) !important;
}

/* Mobile toggle button */
.menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 22px !important;
    cursor: pointer;
    padding: 6px !important;
    border-radius: 0 !important;
}

/* Push content below fixed header */
.site-content {
    padding-top: 68px;
}

/* Adjust :target offset for new header height */
:target {
    scroll-margin-top: 88px;
}


/* -------------------------------------------------------------------------
   FOOTER - Navy with gold accents
   -------------------------------------------------------------------------*/

.site-footer {
    background: var(--fr-navy) !important;
    color: rgba(255, 255, 255, 0.7);
    padding: 0 !important;
}

.footer-top {
    padding: 56px 0 40px;
}

.footer-top-inner {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.footer-brand {
    flex-shrink: 0;
    min-width: 180px;
}

.footer-logo-link {
    text-decoration: none !important;
}
.footer-logo-link:hover {
    text-decoration: none !important;
}

.footer-tagline {
    font-family: var(--font-primary);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 6px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    flex: 1;
}

.footer-column {
    min-width: 0;
}

.footer-widget h3 {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 16px !important;
}

.footer-widget p {
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px !important;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 14.5px;
    transition: color 0.2s;
}
.footer-widget a:hover {
    color: var(--fr-gold-light) !important;
}

.footer-widget i {
    color: var(--fr-gold);
    margin-right: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(184, 153, 62, 0.12) !important;
    padding: 20px 0 !important;
    text-align: center;
}

.footer-bottom p {
    font-size: 12.5px !important;
    color: rgba(255, 255, 255, 0.25) !important;
    margin: 0 !important;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35) !important;
}
.footer-bottom a:hover {
    color: var(--fr-gold-light) !important;
}

.footer-navigation {
    display: inline;
}
.footer-menu {
    display: inline-flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-menu li {
    display: inline;
}
.footer-menu a {
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 12.5px;
}
.footer-menu a:hover {
    color: var(--fr-gold-light) !important;
}

/* Hide footer content grid (replaced by footer-top layout) */
.footer-content.container {
    display: none !important;
}


/* -------------------------------------------------------------------------
   CONTENT AREA REFINEMENTS
   Keep existing layouts, just update colours and fonts.
   ------------------------------------------------------------------------- */

.article-header h1 {
    font-weight: 400;
}

.content-section {
    background: #fff;
}

.content-section:nth-child(even) {
    background: var(--fr-warm-gray);
}

.content-section .container .content-container {
    max-width: 800px;
}


/* -------------------------------------------------------------------------
   LOGGED-IN / VISIBILITY HELPERS
   Keep existing logged-in-only behaviour.
   ------------------------------------------------------------------------- */

.logged-in-only {
    display: none;
}
body.logged-in .logged-in-only {
    display: block;
}


/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */

@media (max-width: 968px) {
    /* Show hamburger */
    .menu-toggle {
        display: block !important;
    }

    /* Collapse nav */
    .main-navigation {
        display: none !important;
    }
    .main-navigation.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--fr-navy) !important;
        border-top: 1px solid rgba(184, 153, 62, 0.15);
        padding: 16px 28px 24px;
        gap: 4px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3) !important;
        width: 100% !important;
    }
    .main-navigation.active ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .main-navigation.active li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
    .main-navigation.active a {
        padding: 12px 0 !important;
    }
    .main-navigation.active ul > li.fr-nav-cta > a {
        margin-top: 8px;
        text-align: center;
    }

    /* Footer stacks */
    .footer-top-inner {
        flex-direction: column;
        gap: 32px;
    }
    .footer-brand {
        text-align: center;
        width: 100%;
    }
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px !important;
        padding: 0 20px !important;
    }
    .site-content {
        padding-top: 60px;
    }
    .site-logo-link .fr-wm {
        font-size: 19px;
    }
    .main-navigation.active {
        top: 60px;
    }
    :target {
        scroll-margin-top: 76px;
    }
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 56px !important;
        padding: 0 16px !important;
    }
    .site-content {
        padding-top: 56px;
    }
    .site-logo-link .fr-wm {
        font-size: 17px;
    }
    .main-navigation.active {
        top: 56px;
    }
}
