/* =============================================
   Modern layer — sits on top of style.css
   Targets staging.andurandcapital.com only
   ============================================= */

/* ---- 1. Web font ---- */
/* Loaded via <link> in each page's <head> for better performance (no @import delay) */

body, div, span, p, a, li, td, th, input, button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- 2. Body background ---- */
/* Replace repeating texture PNG with clean near-white */
body {
    background: #f7f8fa;
}

/* ---- 3. Global typography ---- */
p {
    line-height: 1.7;
    color: #3d3c3c;
}

a {
    transition: color 0.2s ease;
}

/* ---- 4. Header ---- */
#header {
    background: #fff;
    /* Replace bottom gradient PNG with box-shadow */
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 200;
}

/* Remove the gradient-line background image */
#header .wrapper {
    background: none;
    /* Switch from floats to flexbox */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    width: 1100px;
}

#header .logo {
    float: none;
    margin: 0;
    display: flex;
    align-items: center;
}

#header .logo img {
    height: 38px;
    width: auto;
}

/* ---- 5. Navigation ---- */
.mainnav {
    float: none;
    margin-top: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #214d74;
    display: flex;
    align-items: center;
    gap: 2px;
}

.mainnav li {
    float: none;
    margin-left: 0;
    padding: 6px 12px;
    /* Remove sprite background */
    background: none !important;
}

/* Underline animation on hover / active */
.mainnav li a {
    position: relative;
    padding-bottom: 2px;
    color: #214d74;
}

.mainnav li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #214d74;
    transition: width 0.2s ease;
}

.mainnav li:hover a::after,
.mainnav li.sel a::after {
    width: 100%;
}

.mainnav li.sel a {
    color: #1c4870;
}

/* "Investor Portal" — distinct CTA button */
.mainnav li:last-child {
    background: #214d74 !important;
    border-radius: 4px;
    margin-left: 10px;
    padding: 7px 16px;
    transition: background 0.2s ease;
}

.mainnav li:last-child a {
    color: #fff;
}

.mainnav li:last-child a::after {
    display: none;
}

.mainnav li:last-child:hover {
    background: #1a3d5e !important;
}

/* ---- 6. Hero slider ---- */
/* Note: #featured has z-index:-1, so any background set on #home_slider
   would paint over it. Leave the slider's own background alone. */

/* Anti-flicker rule is in an inline <style> in index.html's <head>
   so it applies before any external stylesheet resolves. */

/* Replace the fixed-size image overlay with a soft gradient shadow — desktop */
#featured li p {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.48) 35%, rgba(0,0,0,0.48) 65%, rgba(0,0,0,0) 100%);
    border-radius: 0;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    /* vertically centre in the 500px slider: top + padding push text to middle */
    top: 140px;
    padding: 30px 40px;
    width: 600px;
    height: auto;
    min-height: 120px;
}

/* Slide nav dots — push to bottom of slider, centred */
#slide_nav {
    top: auto;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
}

#slide_nav li {
    opacity: 0.55;
    transition: opacity 0.2s;
}

#slide_nav li#button_selected,
#slide_nav li:hover {
    opacity: 1;
}

/* ---- 7. Content blocks ---- */
/* Team header sits over the absolute-positioned slider — must stay transparent */
.team-header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    -moz-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.team-block {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.team-content {
    background: #fff;
}

/* Section title */
.team-block p.title {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.team-block p.title2 {
    font-weight: 400;
    color: #7a8899;
    font-size: 18px;
}

.team-block p.text {
    font-size: 16px;
    line-height: 1.75;
    color: #444;
}

/* Home page body text */
#home_featured p {
    font-size: 16px;
    line-height: 1.75;
    color: #444;
}

.box_title {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ---- 8. Press article list ---- */
/* Each article group gets a subtle separator and spacing */
.prquotes .art0 {
    padding-top: 28px;
    margin-top: 8px;
    border-top: 1px solid #eaedf0;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8899;
}

/* First article — no top border */
.prquotes .art0:first-child {
    border-top: none;
    padding-top: 8px;
}

.prquotes .art1 {
    font-size: 17px;
    font-weight: 500;
    color: #1c3d5e;
    line-height: 1.4;
}

.prquotes .art2 {
    color: #666;
    font-size: 14px;
}

.prquotes .art3 {
    color: #999;
    font-size: 13px;
    padding-bottom: 2px;
}

.prquotes .link {
    font-size: 14px;
}

.prquotes .link a {
    color: #214d74;
    border-bottom: 1px solid rgba(33, 77, 116, 0.3);
    padding-bottom: 1px;
    transition: border-color 0.2s, color 0.2s;
}

.prquotes .link a:hover {
    color: #1a3d5e;
    border-bottom-color: #1a3d5e;
}

/* Older article headers (use .title0/.title classes) */
.prquotes .title0 {
    padding-top: 28px;
    margin-top: 8px;
    border-top: 1px solid #eaedf0;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8899;
}

.prquotes .title {
    font-size: 16px;
    font-weight: 400;
    color: #1c3d5e;
    line-height: 1.4;
    padding-top: 4px;
}

/* ---- 9. Footer ---- */
#footer {
    background: #1a2e40;
    /* Replace gradient PNG top border */
    background-image: none;
    padding: 28px 0 24px;
    margin-top: 40px;
}

.footnav {
    color: #a8bfcf;
}

.footnav li {
    font-size: 13px;
    color: #a8bfcf;
}

.footnav li::before {
    color: #3d5a70;
}

.footnav li a {
    color: #a8bfcf;
    border-bottom: 1px solid rgba(168, 191, 207, 0.3);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.footnav li a:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.5);
}

.copyright {
    color: #6a8496;
    font-size: 11px;
    margin-top: 14px;
    line-height: 1.7;
}

/* ---- 10. Contact page ---- */
p.contact_text {
    font-size: 15px;
    line-height: 1.75;
    color: #1c4870;
    margin-top: 20px;
    font-weight: 400;
}

/* ---- 11. Clean up IE legacy hacks ---- */
/* Override the IE6/7 filter hack at top of style.css */
:root * {
    filter: none !important;
}

/* ---- 12. Mobile overrides ---- */
@media (max-width: 768px) {
    /* Fix hero text width — modern.css sets 600px outside a query, override it here */
    #featured li p {
        width: auto;
        top: 30px;
        padding: 18px 18px;
        font-size: 15px;
        line-height: 1.55;
        margin: 0 12px;
    }

    #header .wrapper {
        display: block;
        height: auto;
        width: 100%;
    }

    #header .logo {
        display: block;
        float: left;
        margin: 12px 0 10px 0;
    }

    .mainnav {
        display: none;  /* overridden to block by .open class via responsive.css JS */
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .mainnav li:last-child {
        margin-left: 0;
        border-radius: 0;
        background: #1a2e40 !important;
    }
}

/* ---- 13. Popup — cleaner look ---- */
.popup h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.popup h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1c4870;
    margin-top: 18px;
    margin-bottom: 4px;
}

.popup p {
    font-size: 14px;
    line-height: 1.65;
    color: #444;
}

/* Accept button */
.accept {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    background: #214d74;
    color: #fff !important;
    padding: 10px 28px;
    border-radius: 4px;
    transition: background 0.2s;
    cursor: pointer;
    /* Reset absolute position from style.css */
    position: absolute;
    top: 515px;
    left: 481px;
}

.accept:hover {
    background: #1a3d5e;
}
