/* ============================================================
   MASBR Corporate Theme — Main Stylesheet
   Light corporate aesthetic | Blue #06113E chrome | Gold #C5A572 accents
   ============================================================ */

:root {
    --masbr-primary: #06113E;
    --masbr-primary-dark: #030a24;
    --masbr-primary-light: #0c1f5f;
    --masbr-gold: #C5A572;
    --masbr-gold-dark: #a08656;
    --masbr-gold-light: #e0c590;
    --masbr-text: #1a1a2e;
    --masbr-text-muted: #5a5a6e;
    --masbr-text-subtle: #8a8aa0;
    --masbr-bg: #ffffff;
    --masbr-bg-alt: #f6f7fb;
    --masbr-bg-soft: #fafbfd;
    --masbr-border: #e5e7ef;
    --masbr-border-strong: #c7cad8;
    --masbr-shadow-sm: 0 2px 8px rgba(6, 17, 62, 0.06);
    --masbr-shadow-md: 0 8px 24px rgba(6, 17, 62, 0.08);
    --masbr-shadow-lg: 0 16px 40px rgba(6, 17, 62, 0.12);
    --masbr-max: 1200px;
    --masbr-max-wide: 1400px;
    --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--masbr-text);
    background: var(--masbr-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--masbr-primary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--masbr-gold-dark); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.2em; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--masbr-text);
    letter-spacing: -.015em;
    line-height: 1.25;
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
    font-family: var(--font-body);
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--masbr-gold-dark);
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: inline-block;
}
.lead { font-size: 1.15rem; color: var(--masbr-text-muted); max-width: 720px; line-height: 1.7; }
.gold { color: var(--masbr-gold-dark); font-weight: 600; }
.container { max-width: var(--masbr-max); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--masbr-max-wide); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 2px solid var(--masbr-primary);
    background: transparent;
    color: var(--masbr-primary);
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    border-radius: 2px;
}
.btn:hover { background: var(--masbr-primary); color: #fff; }
.btn-primary { background: var(--masbr-primary); color: #fff; }
.btn-primary:hover { background: var(--masbr-primary-dark); border-color: var(--masbr-primary-dark); color: #fff; }
.btn-gold { border-color: var(--masbr-gold); background: var(--masbr-gold); color: #fff; }
.btn-gold:hover { background: var(--masbr-gold-dark); border-color: var(--masbr-gold-dark); color: #fff; }
.btn-outline-white { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-white:hover { background: #fff; color: var(--masbr-primary); }
.btn + .btn { margin-left: 12px; }

/* ===== Header / Top Bar ===== */
.top-bar {
    background: var(--masbr-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: .82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
    max-width: var(--masbr-max-wide);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar a { color: rgba(255, 255, 255, 0.85); }
.top-bar a:hover { color: var(--masbr-gold-light); }
.top-bar-left span, .top-bar-right span { margin-right: 20px; display: inline-block; }
.top-bar-right span:last-child { margin-right: 0; }
@media (max-width: 720px) { .top-bar { display: none; } }

/* ===== Main Nav ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--masbr-primary);
    box-shadow: 0 2px 12px rgba(6, 17, 62, 0.15);
}
.nav-wrap {
    max-width: var(--masbr-max-wide);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-logo { display: block; line-height: 0; }
.site-logo img {
    height: 110px;
    width: auto;
    display: block;
    transition: height .25s ease;
}
@media (max-width: 760px) { .site-logo img { height: 64px; } }

.primary-menu {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}
.primary-menu a {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .02em;
    position: relative;
    transition: color .25s ease;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    color: var(--masbr-gold-light);
}
.primary-menu a::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--masbr-gold-light);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s ease;
}
.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after { transform: scaleX(1); }

.menu-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 10px 16px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 2px;
}

@media (max-width: 1100px) {
    .menu-toggle { display: block; }
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--masbr-primary-dark);
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--masbr-shadow-md);
    }
    .primary-menu.is-open { display: flex; }
    .primary-menu a { padding: 14px 24px; width: 100%; }
    .primary-menu a::after { display: none; }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-color: var(--masbr-primary-dark);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 80px 0;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 17, 62, 0.88) 0%, rgba(6, 17, 62, 0.55) 70%, rgba(6, 17, 62, 0.35) 100%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.hero .eyebrow { color: var(--masbr-gold-light); }
.hero h1 { color: #fff; margin-bottom: .4em; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25); }
.hero .lead { color: rgba(255, 255, 255, 0.92); font-size: 1.2rem; margin: 0 auto 2.4em; max-width: 720px; }
.hero-divider {
    width: 64px;
    height: 3px;
    background: var(--masbr-gold);
    margin: 0 auto 28px;
    border-radius: 2px;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-home { min-height: 620px; }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; background: var(--masbr-bg); }
.section-alt { background: var(--masbr-bg-alt); }
.section-primary {
    background: linear-gradient(135deg, var(--masbr-primary) 0%, var(--masbr-primary-dark) 100%);
    color: #fff;
}
.section-primary h2, .section-primary h3 { color: #fff; }
.section-primary .eyebrow { color: var(--masbr-gold-light); }
.section-primary .lead { color: rgba(255, 255, 255, 0.92); }
.section-primary p { color: rgba(255, 255, 255, 0.9); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head h2 { margin-bottom: .4em; }
.section-head .lead { margin: 0 auto; }

/* ===== Expertise Grid (Home) ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.expertise-card {
    padding: 44px 36px;
    background: #fff;
    border: 1px solid var(--masbr-border);
    border-radius: 4px;
    transition: all .35s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: var(--masbr-shadow-sm);
}
.expertise-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--masbr-gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s ease;
}
.expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--masbr-shadow-lg);
    border-color: var(--masbr-primary);
}
.expertise-card:hover::before { transform: scaleY(1); }
.expertise-card .num {
    font-family: var(--font-head);
    color: var(--masbr-gold-dark);
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 8px;
    display: block;
    letter-spacing: .05em;
}
.expertise-card h3 {
    margin-bottom: .5em;
    color: var(--masbr-primary);
    transition: color .3s ease;
}
.expertise-card:hover h3 { color: var(--masbr-primary-dark); }
.expertise-card p { color: var(--masbr-text-muted); margin-bottom: 1.6em; }
.expertise-card .card-link {
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--masbr-gold-dark);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.expertise-card .card-link::after {
    content: "→";
    transition: transform .3s ease;
    display: inline-block;
}
.expertise-card:hover .card-link::after { transform: translateX(4px); }

/* ===== Pillars ===== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}
.pillar {
    text-align: center;
    padding: 12px;
}
.pillar-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--masbr-gold);
    color: var(--masbr-gold-light);
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50%;
    margin-bottom: 22px;
}
.pillar h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: .7em;
}
.pillar p {
    color: rgba(255, 255, 255, 0.82);
    font-size: .97rem;
}

/* ===== Leadership Grid ===== */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 32px;
    margin-top: 40px;
}
.leader-card {
    padding: 48px 36px;
    background: #fff;
    border: 1px solid var(--masbr-border);
    border-radius: 4px;
    text-align: center;
    transition: all .3s ease;
    box-shadow: var(--masbr-shadow-sm);
}
.leader-card:hover {
    box-shadow: var(--masbr-shadow-md);
    transform: translateY(-4px);
}
.leader-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 3px solid var(--masbr-gold);
    box-shadow: var(--masbr-shadow-md);
    background: var(--masbr-primary);
}
.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.leader-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--masbr-primary), var(--masbr-primary-dark));
    border: 3px solid var(--masbr-gold);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--masbr-gold-light);
    box-shadow: var(--masbr-shadow-sm);
}
.leader-card h3 {
    margin-bottom: .25em;
    color: var(--masbr-primary);
}
.leader-role {
    color: var(--masbr-gold-dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.4em;
}
.leader-bio {
    color: var(--masbr-text-muted);
    font-size: .95rem;
    text-align: left;
    line-height: 1.7;
}
.leader-bio p:last-child { margin-bottom: 0; }

/* ===== Focus Areas / Feature List ===== */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.focus-item {
    padding: 36px 32px;
    background: #fff;
    border: 1px solid var(--masbr-border);
    border-top: 3px solid var(--masbr-gold);
    border-radius: 4px;
    transition: all .3s ease;
    box-shadow: var(--masbr-shadow-sm);
}
.focus-item:hover {
    box-shadow: var(--masbr-shadow-md);
    transform: translateY(-3px);
}
.focus-item h3 {
    font-size: 1.15rem;
    margin-bottom: .5em;
    color: var(--masbr-primary);
}
.focus-item p {
    color: var(--masbr-text-muted);
    font-size: .97rem;
    margin: 0;
}

/* ===== Approach List ===== */
.approach-list {
    display: grid;
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}
.approach-item {
    padding: 26px 30px;
    background: #fff;
    border: 1px solid var(--masbr-border);
    border-left: 4px solid var(--masbr-primary);
    border-radius: 4px;
    transition: all .25s ease;
    box-shadow: var(--masbr-shadow-sm);
}
.approach-item:hover {
    border-left-color: var(--masbr-gold);
    transform: translateX(4px);
}
.approach-item strong {
    display: block;
    color: var(--masbr-primary);
    margin-bottom: 6px;
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 600;
}
.approach-item p {
    color: var(--masbr-text-muted);
    margin: 0;
    font-size: .97rem;
}

/* ===== Two Column ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 72px;
    align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.two-col .eyebrow { margin-bottom: 10px; }

/* ===== CTA Band ===== */
.cta-band {
    padding: 90px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--masbr-primary) 0%, var(--masbr-primary-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    top: -50%; right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 165, 114, 0.15), transparent 70%);
    pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin-bottom: 2em; font-size: 1.1rem; }
.cta-band .container { position: relative; z-index: 2; }

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-info {
    padding: 44px;
    background: var(--masbr-primary);
    color: #fff;
    border-radius: 4px;
    box-shadow: var(--masbr-shadow-md);
}
.contact-info h3 {
    color: var(--masbr-gold-light);
    margin-top: 0;
    font-size: 1.4rem;
}
.contact-info .label {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--masbr-gold-light);
    display: block;
    margin: 22px 0 4px;
    font-weight: 600;
}
.contact-info address {
    font-style: normal;
    color: #fff;
    line-height: 1.8;
}
.contact-info a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 2px; }
.contact-info a:hover { color: var(--masbr-gold-light); border-bottom-color: var(--masbr-gold-light); }

.contact-form {
    padding: 44px;
    background: #fff;
    border: 1px solid var(--masbr-border);
    border-radius: 4px;
    box-shadow: var(--masbr-shadow-md);
}
.contact-form h3 {
    margin-top: 0;
    color: var(--masbr-primary);
    font-size: 1.4rem;
}
.form-row { margin-bottom: 18px; }
.form-row label {
    display: block;
    font-size: .78rem;
    letter-spacing: .06em;
    font-weight: 600;
    color: var(--masbr-text);
    margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--masbr-bg-soft);
    border: 1px solid var(--masbr-border);
    color: var(--masbr-text);
    font-family: var(--font-body);
    font-size: .95rem;
    border-radius: 3px;
    transition: border-color .25s ease, background .25s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--masbr-primary);
    background: #fff;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .88rem;
    color: var(--masbr-text-muted);
}
.form-consent input { width: auto; margin-top: 4px; }
.form-consent label {
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-size: .88rem !important;
    font-weight: 400 !important;
    color: var(--masbr-text-muted) !important;
}
.form-message {
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: 3px;
    font-size: .92rem;
    border-left: 4px solid;
}
.form-message.success { border-color: #2f7d4f; color: #1f5c38; background: #e6f4ec; }
.form-message.error { border-color: #c0392b; color: #8e2a1f; background: #fdecea; }
.honeypot { position: absolute; left: -9999px; }

.map-embed {
    margin-top: 56px;
    border: 1px solid var(--masbr-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--masbr-shadow-sm);
}
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ===== Footer ===== */
.site-footer {
    background: var(--masbr-primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 80px 0 0;
    margin-top: 0;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--masbr-gold), var(--masbr-gold-dark), var(--masbr-gold));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 48px;
    margin-bottom: 56px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
    font-family: var(--font-body);
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--masbr-gold-light);
    margin-bottom: 22px;
    font-weight: 700;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.82);
    font-size: .93rem;
    transition: color .25s ease;
}
.footer-col ul li a:hover { color: var(--masbr-gold-light); }
.footer-brand img {
    height: 100px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 16px;
    border-radius: 4px;
}
.footer-brand .tagline {
    font-family: var(--font-head);
    color: var(--masbr-gold-light);
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: .05em;
    margin-bottom: 14px;
    font-weight: 400;
}
.footer-brand p {
    color: rgba(255, 255, 255, 0.78);
    font-size: .93rem;
    line-height: 1.7;
}
.footer-col address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.85);
    font-size: .93rem;
    line-height: 1.85;
}
.footer-col address a { color: rgba(255, 255, 255, 0.9); border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.footer-col address a:hover { color: var(--masbr-gold-light); border-bottom-color: var(--masbr-gold-light); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 0;
    text-align: center;
    font-size: .84rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: .04em;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.8); margin: 0 10px; }
.footer-bottom a:hover { color: var(--masbr-gold-light); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
