/* ==========================================================================
   Gulf Legacy Publications — style.css

   A THIN custom layer on top of Bootstrap 5. Bootstrap owns the layout
   (container / row / col / d-flex / gap / spacing utilities); everything
   below is limited to what utilities can't express well:
     · self-hosted Montserrat
     · exact brand palette + typographic scale
     · a few components (brand buttons, cards, placeholders, footer colours)

   Mockups:  image_0 (navbar) · image_1 (hero + cards) · image_2 (protocol + footer)
   ========================================================================== */

/* ==========================================================================
   1. FONTS  —  self-hosted Montserrat (assets/font/*.ttf)
   ========================================================================== */
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. PALETTE + BOOTSTRAP THEME OVERRIDES
   ========================================================================== */
:root {
    /* Exact brand palette ------------------------------------------------- */
    --glp-heading: #00236f;
    /* h1 / h2 / section titles                    */
    --glp-subhead: #1a1b21;
    /* card titles, phase tags, protocol labels    */
    --glp-body: #444651;
    /* paragraph / body copy                       */
    --glp-competency-bg: #faf8ff;
    /* Core Competencies section background     */

    --glp-heading-hover: #001b54;
    --glp-footer-bg: #1e3a8a;
    /* dark solid blue footer band                 */
    --glp-line: #e9e6f2;
    /* soft card / divider borders                 */

    /* Re-point Bootstrap's own tokens at the brand ---------------------- */
    --bs-body-font-family: "Montserrat", "Segoe UI", -apple-system,
        BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-size: 1.0625rem;
    /* 17px — roomier base per spec        */
    --bs-body-line-height: 1.6;
    --bs-body-color: #444651;
    --bs-emphasis-color: #1a1b21;
    --bs-link-color: #00236f;
    --bs-link-hover-color: #001b54;
    --bs-heading-color: #00236f;
}

/* widen the container a touch on very large screens (per the layout brief) */
@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1400px;
    }
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(0, 35, 111, 0.15);
}

/* ==========================================================================
   3. TYPOGRAPHY SCALE
   ========================================================================== */
.glp-h1 {
    font-size: clamp(2.375rem, 1.6rem + 2.6vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--glp-heading);
}

.glp-h2 {
    font-size: clamp(1.9rem, 1.4rem + 1.7vw, 2.375rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    color: var(--glp-heading);
}

/* generic paragraph copy */
.glp-body {
    font-size: 1.0625rem;
    /* 17px */
    line-height: 1.7;
    color: var(--glp-body);
}

/* keep prose to a comfortable measure */
.glp-measure {
    max-width: 34rem;
}

/* small bordered eyebrow label: "METHODOLOGY SERVICES" */
.glp-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--glp-subhead);
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--glp-line);
    border-radius: 2px;
}

/* right-aligned protocol code, e.g. "PROTOCOL 004-MS" */
.glp-tag {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--glp-subhead);
}

/* ==========================================================================
   4. BRAND BUTTONS  (Bootstrap .btn + brand skin)
   ========================================================================== */
.glp-btn-primary,
.glp-btn-outline {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.9rem 1.6rem;
    border-radius: 3px;
    border: 1px solid transparent;
}

.glp-btn-primary {
    background-color: var(--glp-heading);
    border-color: var(--glp-heading);
    color: #fff;
}

.glp-btn-primary:hover,
.glp-btn-primary:focus-visible {
    background-color: var(--glp-heading-hover);
    border-color: var(--glp-heading-hover);
    color: #fff;
}

.glp-btn-outline {
    background-color: #fff;
    border-color: var(--glp-line);
    color: var(--glp-subhead);
}

.glp-btn-outline:hover,
.glp-btn-outline:focus-visible {
    border-color: var(--glp-heading);
    color: var(--glp-heading);
}

/* ==========================================================================
   5. NAVBAR                        (mockup: image_0.png)
   ========================================================================== */
.glp-navbar {
    background-color: #fff;
    border-bottom: 1px solid var(--glp-line);
}

.glp-brand,
.glp-brand:hover,
.glp-brand:focus {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--glp-heading);
}

.glp-navbar .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--glp-body);
}

.glp-navbar .nav-link:hover,
.glp-navbar .nav-link:focus,
.glp-navbar .nav-link.active {
    color: var(--glp-heading);
}

/* the vertical line break from image_0.png */
.glp-nav-divider {
    display: block;
    width: 1px;
    height: 22px;
    background-color: #cbd2e0;
}

/* navbar CTA — title case + tighter than the hero CTAs */
.glp-navbar .glp-btn-primary {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 1.35rem;
}

/* ==========================================================================
   6. SECTIONS — backgrounds only (layout/spacing = Bootstrap utilities)
   ========================================================================== */
.glp-hero,
.glp-protocol {
    background-color: #fff;
}

.glp-competencies {
    background-color: var(--glp-competency-bg);
}

/* ==========================================================================
   7. CORE COMPETENCIES CARDS       (mockup: image_1.png — bottom)
   Padding comes from Bootstrap (p-4 / p-xl-5); only skin + type here.
   ========================================================================== */
.glp-card {
    background-color: #fff;
    border: 1px solid var(--glp-line);
    border-radius: 4px;
}

.glp-card-icon {
    color: var(--glp-heading);
}

.glp-card-icon svg {
    width: 30px;
    height: 30px;
}

.glp-phase {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--glp-subhead);
    padding-top: 0.35rem;
}

.glp-card-title {
    font-size: 1.25rem;
    /* 20px */
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--glp-subhead);
    margin-bottom: 0.85rem;
}

.glp-card .glp-body {
    font-size: 1rem;
    /* 16px — keeps the 3-up grid balanced */
    line-height: 1.72;
}

/* ==========================================================================
   8. SUBMISSION PROTOCOL STEPS     (mockup: image_2.png — top)
   ========================================================================== */
.glp-step-marker {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 0.35rem;
    border: 2px solid #c9cbd6;
    border-radius: 2px;
}

.glp-step.is-active .glp-step-marker {
    background-color: var(--glp-heading);
    border-color: var(--glp-heading);
}

.glp-step-title {
    font-size: 1.0625rem;
    /* 17px */
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--glp-subhead);
    margin-bottom: 0.5rem;
}

.glp-step .glp-body {
    font-size: 1rem;
    line-height: 1.65;
}

/* ==========================================================================
   9. IMAGE PLACEHOLDERS
   Mimic the framed photos in image_1 / image_2. The mono variant reproduces
   the grayscale treatment of the journals photo.
   ========================================================================== */
.glp-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    /* border: 1px solid var(--glp-line);
    background: repeating-linear-gradient(135deg,
            #dcdde6 0 2px,
            #e7e8ef 2px 4px); */
}

.glp-placeholder::after {
    content: "";
    position: absolute;
    width: 48px;
    height: 40px;
    /* border: 2px solid #a7b0bf; */
    border-radius: 4px;
    /* background: radial-gradient(circle at 50% 58%, #a7b0bf 0 6px, transparent 7px),
        linear-gradient(#a7b0bf, #a7b0bf) 50% -6px / 16px 6px no-repeat; */
    opacity: 0.5;
}

.glp-placeholder__label {
    position: absolute;
    bottom: 16px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8a929f;
}

.glp-placeholder--hero {
    aspect-ratio: 4 / 3;
}

.glp-placeholder--mono {
    aspect-ratio: 11 / 10;

}

/* ==========================================================================
   10. FOOTER                       (mockup: image_2.png — bottom)
   Grid = Bootstrap; this block only paints the band + text colours.
   ========================================================================== */
.glp-footer {
    background-color: var(--glp-footer-bg);
}

.glp-footer-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.glp-footer-copy {
    max-width: 22rem;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
}

.glp-footer-head {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a9bce0;
    margin-bottom: 1.1rem;
}

.glp-footer a {
    font-size: 0.95rem;
    color: #c9d4e8;
    text-decoration: none;
}

.glp-footer a:hover,
.glp-footer a:focus {
    color: #fff;
}

/* ==========================================================================
   11. LEGAL PAGES  (privacy-policy.php / terms.php share the includes)
   Small readable defaults so those pages work with the new header/footer.
   ========================================================================== */
.gp-legal {
    padding: 4rem 0 5.5rem;
}

.gp-legal .gp-legal-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.gp-legal h1 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--glp-heading);
}

.gp-legal h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--glp-subhead);
    margin: 2rem 0 0.6rem;
}

.gp-legal p,
.gp-legal li {
    color: var(--glp-body);
}

.gp-legal ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.6rem 0;
}

.gp-legal .gp-legal-updated {
    color: #8a929f;
    font-size: 0.85rem;
    margin: 0.4rem 0 1.6rem;
}

.gp-legal a {
    color: var(--glp-heading);
    text-decoration: underline;
}