/* =========================================================
   Eagle Referral Network – Custom Styles (Consolidated)
   ========================================================= */

/* Tokens */
:root {
    --brand-red: #d33a34;
    --headline-weight: 800;
    --headline-track: 0.1em;
    --text-shadow-soft: 2px 2px 2px rgba(0,0,0,.2);
    --mobile-nav-extra: 260px;
    --hero-overlap-2: -0.15em;
    --hero-overlap-3: -0.05em;
}

/* Base */
html, body {
    height: 100%;
}

body {
    font-family: 'Raleway',sans-serif;
    margin: 0;
}

/* ===================== NAVBAR ===================== */
.nav-shell {
    position: relative;
    z-index: 10;
    padding: .35rem 3rem;
}

.brand-wrap {
    display: flex;
    align-items: center;
}

    .brand-wrap img {
        height: 150px;
        margin-top: -16px;
    }

.menu-wrap {
    background: var(--brand-red);
    border-radius: .65rem;
    margin-left: 1rem;
    padding: 1rem 6rem;
}

    .menu-wrap .navbar {
        min-height: 88px;
        align-items: center;
    }

.navbar {
    background: none;
}

.navbar-toggler {
    border-color: #fff;
}

    .navbar-toggler .navbar-toggler-icon {
        filter: invert(1);
    }

.nav-link {
    color: #fff;
    font-weight: 600;
}

    .nav-link:hover, .nav-link:focus {
        color: #ffe9e8;
    }

.star-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: .95;
    font-size: 1rem;
    padding-inline: .5rem;
    user-select: none;
    pointer-events: none;
}

/* Contact block */
.contact-block {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 1rem;
}

.contact-label {
    font-weight: 700;
    line-height: 1;
    margin-bottom: .35rem;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    border: 2px solid #fff;
    text-decoration: none;
    margin-left: .5rem;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

    .icon-btn:hover {
        color: #ffe9e8;
        border-color: #ffe9e8;
        transform: translateY(-1px);
    }

/* Collapse tweaks */
@media (max-width: 991.98px) {
    .contact-block {
        align-items: center;
        margin: 1rem 0 0 0;
    }

    .contact-label {
        margin-bottom: .5rem;
    }

    .star-sep {
        padding: .25rem 0;
    }

    .navbar-nav .nav-link {
        padding: .75rem 0;
        border-top: 1px solid rgba(255,255,255,.15);
    }

    .menu-wrap {
        padding: 1rem 1.25rem;
    }

    .brand-wrap img {
        height: 120px;
        margin-top: -8px;
    }

    .nav-shell {
        padding: .35rem 1rem;
    }
}

/* ===================== HERO / MASTHEAD ===================== */
.masthead {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: var(--text-shadow-soft);
    overflow: hidden;
}

    .masthead > * {
        position: relative;
        z-index: 2;
    }

/* Flags */
.flag-left, .flag-right {
    position: absolute !important;
    z-index: 1;
    width: 22%;
    max-width: 340px;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.flag-left {
    bottom: 0;
    left: 0;
}

.flag-right {
    bottom: 0;
    right: 0;
}

/* Blue fade strip behind hero lines */
.blue-fade-img {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left bottom;
    border-radius: .5rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
}

/* Hero headline stack */
.text, .text-2, .text-3 {
    text-align: center;
    font-weight: var(--headline-weight);
    letter-spacing: var(--headline-track);
    line-height: 1.2;
    margin: 0;
}

.text {
    font-size: clamp(1.5rem, 2.5vw + 1rem, 4.75rem);
    margin-top: .2em;
}

.text-2 {
    font-size: clamp(2.25rem, 4.5vw + 1rem, 6.25rem);
    margin-top: var(--hero-overlap-2);
}

.text-3 {
    font-size: clamp(2.25rem, 4.5vw + 1rem, 6.25rem);
    margin-top: var(--hero-overlap-3);
}

/* Constrained wrapper */
.l-constrained-3 {
    margin-inline: auto;
    max-width: 112rem;
    padding-inline: 1rem;
    z-index: 0;
}

/* Hero responsive tweaks */
@media (max-width: 992px) {
    .masthead {
        min-height: 70vh;
    }
}

@media (max-width: 768px) {
    .masthead {
        min-height: 55vh;
    }

    .flag-left, .flag-right {
        width: 30%;
        max-width: 200px;
        opacity: .9;
    }

    .text {
        font-size: clamp(1.125rem, 2.5vw + .75rem, 1.5rem);
    }

    .text-2 {
        font-size: clamp(1.5rem, 4vw + .75rem, 2rem);
        margin-top: -0.5em;
    }

    .text-3 {
        font-size: clamp(1.5rem, 4vw + .75rem, 2rem);
        margin-top: -0.45em;
    }
}

/* On mobile, let the hero text flow so the menu push-down works; keep flags pinned */
@media (max-width: 991.98px) {
    .masthead > .position-absolute.bottom-0.start-0.col-8 {
        position: static !important;
        width: 100%;
        max-width: 100%;
    }

    .masthead .flag-left, .masthead .flag-right {
        position: absolute !important;
        bottom: 0;
        left: auto;
        right: auto;
        float: none !important;
        height: auto !important;
        width: auto;
        max-width: 35%;
        max-height: 30vh;
        z-index: 1;
    }

    .masthead .flag-left {
        left: 0;
    }

    .masthead .flag-right {
        right: 0;
    }
}

/* ===================== FOUR SQUARES ===================== */
.square {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    overflow: hidden;
}

    .square img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease, box-shadow .6s ease;
    }

        .square img:hover {
            transform: scale(1.08);
            box-shadow: 0 10px 25px rgba(0,0,0,.4);
        }

.mission {
    background: #2c1a6c;
    animation: fadeIn 1s ease-in-out;
}

.referrals {
    background: #d62828;
    animation: fadeIn 1s ease-in-out;
}

h1 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw + .5rem, 3.25rem);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 600;
    font-size: clamp(1.25rem, 2.2vw + .5rem, 2rem);
    line-height: 1.35;
    margin-bottom: 1rem;
}

p {
    font-size: clamp(.95rem, 1vw + .5rem, 1.15rem);
    line-height: 1.6;
    margin-bottom: 1rem;
}

strong {
    display: block;
    margin-top: 1rem;
}

.square h1 {
    font-size: clamp(2.5rem, 4.5vw + 1rem, 4.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.square h2 {
    font-size: clamp(1.75rem, 3.5vw + 1rem, 3rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ===================== BEYOND BUSINESS BAND ===================== */
/* ===== Beyond Business full-background band (taller height) ===== */
.beyond-band {
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center right;
    min-height: clamp(600px, 60vw, 950px); /* increased from 420–760px */
    overflow: hidden;
}

    .beyond-band::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(1200px 720px at 12% 80%, rgba(0,0,0,.55), transparent 70%), linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.12) 40%, transparent 70%);
        pointer-events: none;
        z-index: 0; /* vignette stays under content */
    }

    .beyond-band .container-xxl {
        /* let this band go edge-to-edge on desktop */
    }

.bb-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 0; /* so panel/copy can hug edges */
    min-height: inherit;
}

/* White translucent panel — top-left, 50% width & 50% height */
.bb-title-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(236,236,236,.55));
    color: #2c1a6c;
    border-radius: 0 .75rem .75rem 0;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

    .bb-title-panel h2 {
        margin: 0;
        font-weight: 800;
        line-height: 1.1;
        font-size: clamp(2.5rem, 6vw + .25rem, 6rem);
        text-align: left;
    }

/* Bottom copy — bottom-left, same width as panel, jumbo */
.bb-copy {
    position: absolute;
    left: 0;
    bottom: clamp(1rem, 3vw, 2rem);
    width: 50%;
    z-index: 3;
    font-size: clamp(5rem, 6vw + 2rem, 12rem); /* ~80px to ~192px */
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 3px 8px rgba(0,0,0,.6);
    padding-left: clamp(2rem, 4vw, 3.5rem);
    padding-right: clamp(2rem, 4vw, 3.5rem);
}

/* === Larger body copy for content sections === */
.square p,
.bb-copy,
.beyond-band p {
    font-size: clamp(1.75rem, 1.5vw + 1rem, 2.25rem); /* ~28px → 36px */
    line-height: 1.4;
}

/* === Contact CTA full-width override === */
.contact-cta {
    width: 100%;
}

    .contact-cta .container,
    .contact-cta .container-xxl {
        max-width: 100% !important; /* break Bootstrap container limit */
        padding-left: 96px; /* ~1 inch on desktop */
        padding-right: 96px;
    }

    /* let the image fill its half fully */
    .contact-cta img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* === Contact CTA heading block spacing fix === */
    .contact-cta .contact-head {
        max-width: 100% !important; /* allow full container width */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 96px; /* match section padding */
        padding-right: 96px;
        margin-bottom: 2rem; /* spacing below heading */
    }


.contact-head {
    max-width: 1100px;
    margin: 0 auto 1.75rem auto;
}

.contact-hl {
    color: var(--brand-red);
    font-weight: 800;
    letter-spacing: .01em;
    font-size: clamp(2rem, 4.8vw + .5rem, 4rem); /* big red title */
    margin: 0 0 .5rem 0;
}

.contact-sub {
    font-size: clamp(1.125rem, 1.2vw + .65rem, 1.5rem);
    line-height: 1.6;
    margin: 0;
}

/* Left column */
.contact-photo {
    display: block;
    border-radius: .25rem;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.contact-fineprint {
    color: #777;
    font-size: .95rem;
    margin: 0;
}

/* Right column form — light blue fields like the mock */
.contact-form-slim {
    max-width: 900px;
}

.contact-input {
    background: #a9dbf3; /* light blue */
    border: none;
    color: #174254; /* darker blue text */
    padding: 0.9rem 1rem;
    border-radius: .2rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .03em;
}

    .contact-input::placeholder {
        color: #eef8fd;
        opacity: 1;
    }

.contact-textarea {
    resize: vertical;
    min-height: 12rem;
}

/* Social row w/ round pills */
.contact-social {
    color: #777;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.soc {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: .35rem;
    border-radius: 50%;
    font-weight: 800;
    background: #e9ecef;
    color: #5a6b7a;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease;
}

    .soc:hover {
        transform: translateY(-1px);
        filter: brightness(1.05);
    }

.soc-fb {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.soc-li {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Desktop: remove container padding so the panel truly hugs top-left */
@media (min-width: 992px) {
    .beyond-band .container-xxl {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
    }

    .bb-inner {
        padding-left: 0 !important;
        padding-top: 0 !important;
        column-gap: 0 !important;
    }
}

/* Mobile / Tablet behavior for Beyond Business */
@media (max-width: 991.98px) {
    .bb-inner {
        padding-left: clamp(1.25rem, 4vw, 3rem);
        padding-right: clamp(1.25rem, 4vw, 3rem);
    }

    .bb-title-panel {
        position: relative; /* remove absolute pinning */
        width: 100%; /* take full width */
        height: auto; /* shrink to content */
        border-radius: 0; /* square edges */
        margin-bottom: 1.5rem; /* space below before bb-copy */
    }

    .bb-copy {
        position: relative; /* no absolute pinning */
        width: 100%; /* full width */
        max-width: 100%; /* remove 50% limit */
        bottom: auto; /* reset bottom positioning */
        left: auto; /* reset left positioning */
        padding-inline: 1.5rem; /* equal side padding */
        font-size: clamp(1.25rem, 2.5vw + 1rem, 2.5rem); /* readable but smaller */
        text-align: left; /* keep it left aligned */
    }

/* Force headline block to act like a full-width Bootstrap column */
.contact-cta .contact-head {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--bs-gutter-x, 0.75rem);   /* matches Bootstrap row padding */
  padding-right: var(--bs-gutter-x, 0.75rem);
  margin-left: auto;
  margin-right: auto;
}

    .contact-cta .container,
    .contact-cta .container-xxl {
        padding-left: 32px;
        padding-right: 32px;
    }

    .contact-right {
        margin-top: 1rem;
    }
    .contact-hl {
        font-size: clamp(1.75rem, 5.5vw + .25rem, 3rem);
    }

    .contact-sub {
        font-size: clamp(1rem, 1.5vw + .6rem, 1.25rem);
    }
}
@media (max-width: 575.98px) {

    .contact-cta .contact-head {
        padding-left: 16px; /* match phone padding */
        padding-right: 16px;
    }

    .contact-cta .container,
    .contact-cta .container-xxl {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== UTILITIES ===================== */
.img-fluid {
    max-width: 100%;
    height: auto;
}
