/*
Theme Name: AGP Child
Theme URI: https://agpartnerships.com/
Description: Child theme for Astra, customized for AG Partnerships (Alegna Global Partnerships) — a Nigerian management consultancy. Provides brand styling (deep navy + Montserrat typography) and template overrides.
Author: AG Partnerships
Author URI: https://agpartnerships.com/
Template: astra
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agp-child
*/

/*
====================================================================
AGP CHILD THEME — STYLING ARCHITECTURE
====================================================================
- Header & footer: locked into header.php / footer.php
- Page content: built in Elementor (per-page basis)
- Brand utility classes (agp-*): available for use in Elementor's
  "CSS Classes" field on any section/widget for brand-consistent styling
- Gutenberg block overrides: still apply if a page uses the block editor
  instead of Elementor
====================================================================
*/

/* ==========================================================================
   Brand variables
   ========================================================================== */
:root {
    --agp-navy: #002750;
    --agp-white: #ffffff;
    --agp-light-bg: #f5f7fa;
    --agp-text: #1a1a1a;
}

/* ==========================================================================
   Global typography & base
   ========================================================================== */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--agp-text);
    background-color: var(--agp-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--agp-navy);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }

/* All-caps letter-spaced section headings — McKinsey/BCG feel */
.agp-eyebrow,
.agp-section-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--agp-navy);
}

/* ==========================================================================
   Links & buttons
   ========================================================================== */
a {
    color: var(--agp-navy);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover,
a:focus {
    opacity: 0.75;
}

.agp-btn,
.wp-block-button__link {
    background-color: var(--agp-navy);
    color: var(--agp-white);
    padding: 0.875rem 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.agp-btn:hover,
.wp-block-button__link:hover {
    opacity: 0.9;
    color: var(--agp-white);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.agp-bg-navy {
    background-color: var(--agp-navy);
    color: var(--agp-white);
}

.agp-bg-navy h1,
.agp-bg-navy h2,
.agp-bg-navy h3,
.agp-bg-navy h4,
.agp-bg-navy h5,
.agp-bg-navy h6,
.agp-bg-navy a {
    color: var(--agp-white);
}

.agp-bg-light {
    background-color: var(--agp-light-bg);
}

/* ==========================================================================
   Site header
   ========================================================================== */
body { margin: 0; }

.agp-header {
    background: var(--agp-navy);
    color: #fff;
}

.agp-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.agp-header__logo img {
    height: 50px;
    width: auto;
    display: block;
}

.agp-header__nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.agp-header__nav a {
    background-color: transparent;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 19.5px;
    text-transform: uppercase;
    text-decoration: none;
    /* Invisible navy underline by default — same color as the navy header bg.
       On hover or current-menu-item, the border-color shifts to white and the
       0.3s transition reveals it as a smooth white underline. */
    border-bottom: 3px solid #002750;
    padding-bottom: 4px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.agp-header__nav a:hover {
    border-bottom-color: #ffffff;
}

.agp-header__nav .current-menu-item a,
.agp-header__nav .current_page_item a {
    border-bottom-color: #ffffff;
}

/* Pipe divider before the 5th menu item (Insights). */
.agp-header__nav li:nth-child(5)::before {
    content: '|';
    opacity: 0.4;
    margin-right: 28px;
    color: #fff;
    font-weight: 300;
}

/* ==========================================================================
   Site footer
   ========================================================================== */
.agp-footer {
    background: var(--agp-navy);
    color: #fff;
    padding: 60px 40px 24px;
}

.agp-footer__top {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 30px;
}

.agp-footer__logo img {
    width: 280px;
    height: auto;
    display: block;
}

.agp-footer__contact {
    text-align: right;
    font-size: 14px;
    line-height: 1.8;
}

.agp-footer__contact p { margin: 0; }

.agp-footer__contact a {
    color: #fff;
    text-decoration: none;
}

.agp-footer__contact a:hover { opacity: 0.7; }

.agp-footer__social {
    display: inline-flex;
    align-items: center;
    color: #fff;
    transition: opacity 0.2s;
}

.agp-footer__social:hover { opacity: 0.7; }

.agp-footer__bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.65;
}

.agp-footer__bottom p { margin: 0; }

/* Hide any stray Astra footer credit if it ever leaks through. */
.ast-small-footer,
.ast-builder-footer-grid-row { display: none !important; }

/* Hide the WordPress page title only on the front page. Other pages keep their
   .entry-title intact. body.home is added by WP when is_front_page() is true. */
body.home .entry-header,
body.home .entry-title {
    display: none;
}

/* Defensive: full-bleed sections (.agp-hero, .agp-insights__separator) use
   100vw + negative margins to escape Astra's container. If the page has a
   vertical scrollbar, 100vw can exceed the visible width and cause horizontal
   scroll. Clip on the home page to be safe. */
body.home {
    overflow-x: hidden;
}

/* ==========================================================================
   Gutenberg block overrides for AGP styles
   --------------------------------------------------------------------------
   These overrides apply when using Gutenberg blocks. Most pages will use
   Elementor instead, so these only kick in if a page is built with the
   block editor. Kept in place because brand utility classes (.agp-*) can
   still be applied to Gutenberg blocks for consistent styling.

   The rules are scoped to AGP classes only — they reshape Gutenberg's
   defaults to match our design without leaking into other block usage.
   ========================================================================== */

/* --- Service block: wp:group with navy bg + 2-column inner layout (image | text) ---
   Padding and background are applied via the group block's own attributes
   (style.spacing.padding + backgroundColor "agp-navy" produces inline style +
   .has-background classes). The rules below shape the inner 2-column layout
   and the title/copy typography. */
.wp-block-group.agp-service-block .agp-service-block__columns {
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    margin-bottom: 0;
}

.wp-block-group.agp-service-block .agp-service-block__image {
    margin: 0;
    width: 100%;
}

.wp-block-group.agp-service-block .agp-service-block__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wp-block-group.agp-service-block .agp-service-block__title {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 24px;
}

.wp-block-group.agp-service-block .agp-service-block__copy {
    color: #fff;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 32px;
    opacity: 0.92;
}

/* image-right modifier: flip column order so image sits on the right via
   row-reverse. Source order in the markup stays image-then-text, so screen
   readers and the editor see consistent semantics. */
.wp-block-group.agp-service-block--image-right .agp-service-block__columns {
    flex-direction: row-reverse;
}

/* --- Buttons: outlined navy/white style.
   !important is necessary because Gutenberg's .wp-element-button rule on the
   anchor has high specificity and sets a default button background — without
   !important our transparent override loses the cascade. Scoped tightly to
   our two outline classes so non-AGP buttons elsewhere are unaffected. --- */
.wp-block-button.agp-btn-outline .wp-block-button__link,
.wp-block-button.agp-btn-outline.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 1px solid #fff !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.wp-block-button.agp-btn-outline .wp-block-button__link:hover,
.wp-block-button.agp-btn-outline.is-style-outline .wp-block-button__link:hover {
    background: #fff !important;
    color: var(--agp-navy) !important;
}

/* Navy outline variant (used on white-bg sections, e.g. "More on Public Policy") */
.wp-block-button.agp-btn-outline-navy .wp-block-button__link,
.wp-block-button.agp-btn-outline-navy.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 1px solid var(--agp-navy) !important;
    color: var(--agp-navy) !important;
    border-radius: 0 !important;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.wp-block-button.agp-btn-outline-navy .wp-block-button__link:hover,
.wp-block-button.agp-btn-outline-navy.is-style-outline .wp-block-button__link:hover {
    background: var(--agp-navy) !important;
    color: #fff !important;
}

/* --- Tri-divider as wp:image: kill default figure margins, lock width --- */
.wp-block-image.agp-tri-divider {
    margin: 30px auto !important;
    width: 80px;
    max-width: 80px;
    text-align: center;
}
.wp-block-image.agp-tri-divider img {
    width: 80px;
    height: auto;
    display: inline-block;
}

/* --- WHAT WE DO 6-column row: wp:columns is flexbox, not grid.
   Allow wrap so 6 columns become 3+3 or 2+2+2 at narrow widths. --- */
.wp-block-columns.agp-icon-grid {
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 0;
}
.wp-block-columns.agp-icon-grid .wp-block-column {
    text-align: center;
    flex-basis: calc((100% - 5 * 30px) / 6);
    flex-grow: 0;
    min-width: 120px;
}
.wp-block-columns.agp-icon-grid .agp-icon-svg {
    width: 50px;
    height: 50px;
    color: var(--agp-navy);
    display: block;
    margin: 0 auto 16px;
}
.wp-block-columns.agp-icon-grid .agp-icon-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}
.wp-block-columns.agp-icon-grid .agp-icon-label a {
    color: var(--agp-navy);
    text-decoration: none;
}
.wp-block-columns.agp-icon-grid .agp-icon-label a:hover { opacity: 0.7; }

/* --- Insights cards as wp:group: re-apply border + padding + hover lift --- */
.wp-block-group.agp-insight-card {
    border: 1px solid var(--agp-border);
    border-radius: 8px;
    padding: 30px;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
}
.wp-block-group.agp-insight-card:hover {
    box-shadow: 0 8px 24px rgba(0, 39, 80, 0.08);
    transform: translateY(-2px);
}
.wp-block-group.agp-insight-card h4 {
    color: var(--agp-navy);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 12px;
}

/* --- Insights category wrapper: add side padding so it sits inside the
   constrained group nicely. --- */
.wp-block-group.agp-insights {
    padding: 80px 40px;
    background: #fff;
}
.wp-block-group.agp-insights--management {
    padding-top: 0; /* tight spacing after the separator */
}
.wp-block-group.agp-insights .agp-insights__category {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Get In Touch: backgroundColor injects has-agp-light-bg-background-color
   automatically; just add padding and re-style title/intro to match. --- */
.wp-block-group.agp-get-in-touch {
    padding: 80px 40px;
}
.wp-block-group.agp-get-in-touch .wp-block-columns {
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

/* --- Intro group (constrained 800px) needs vertical breathing room. --- */
.wp-block-group.agp-intro {
    padding: 80px 40px;
    background: #fff;
}

/* --- WHAT WE DO group (constrained, full white bg) --- */
.wp-block-group.agp-what-we-do {
    padding: 80px 40px;
    background: #fff;
}

/* Gradient hero — used while no video is present. The .agp-hero base rule
   (declared further down) provides positioning; this layers a subtle radial
   highlight over a vertical navy gradient so the section has depth without
   imagery. */
.agp-hero--gradient {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(11, 60, 110, 0.35) 0%, transparent 60%),
        linear-gradient(180deg, #002750 0%, #001a36 100%);
}

/* ==========================================================================
   Homepage — Section 1: Video / Static Hero
   ========================================================================== */
.agp-hero {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: var(--agp-navy); /* fallback if gradient/poster fails */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Full-bleed: break out of Astra's .entry-content max-width so the hero
       spans the full viewport edge-to-edge. */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.agp-hero__video,
.agp-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.agp-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 39, 80, 0.55);
    z-index: 1;
}

.agp-hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    font-size: 22px;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.agp-hero__content p { margin: 0 0 8px; }

.agp-hero__content a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.2s;
}

.agp-hero__content a:hover { border-color: #fff; }

/* ==========================================================================
   Homepage — Section 2: Intro + Tri-Divider
   ========================================================================== */
.agp-intro {
    background: #fff;
    padding: 80px 40px;
}

.agp-intro__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.agp-intro__heading {
    color: var(--agp-navy);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
}

.agp-intro__lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--agp-text);
    margin: 0 0 32px;
}

.agp-tri-divider {
    display: block;
    width: 80px;
    height: auto;
    margin: 30px auto;
    /* SVG fill is already a faint #C8CDD3, so no opacity is needed. */
}

/* ==========================================================================
   Homepage — Section 3: What We Do (icon row)
   ========================================================================== */
.agp-what-we-do {
    background: #fff;
    padding: 80px 40px;
}

.agp-what-we-do__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.agp-section-heading {
    color: var(--agp-navy);
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 60px;
    text-align: center;
}

.agp-icon-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.agp-icon-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--agp-navy);
    text-decoration: none;
    transition: opacity 0.2s;
}

.agp-icon-item a:hover { opacity: 0.7; }

.agp-icon-item__icon {
    display: block;
    width: 50px;
    height: 50px;
    color: var(--agp-navy);
}

.agp-icon-item__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.agp-icon-item__label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--agp-navy);
}

/* ==========================================================================
   Homepage — Sections 4-6, 8-10: Service Blocks (navy, image + copy)
   ========================================================================== */
.agp-service-block {
    background: var(--agp-navy);
    color: #fff;
    padding: 80px 40px;
}

.agp-service-block__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Image-right variant: flip column order via grid for source-order independence. */
.agp-service-block.image-right .agp-service-block__content { order: 1; }
.agp-service-block.image-right .agp-service-block__image   { order: 2; }

.agp-service-block__image {
    /* Placeholder: subtle gradient using a slightly lighter navy. Swap with
       <img> tags or background-image when real photography is provided. */
    min-height: 320px;
    background: linear-gradient(135deg, #0a3a6e 0%, #002750 60%, #001a36 100%);
    border-radius: 4px;
}

.agp-service-block__content h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 24px;
}

.agp-service-block__content p {
    color: #fff;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 32px;
    opacity: 0.92;
}

/* ==========================================================================
   Buttons — outline variants
   ========================================================================== */
.agp-btn-outline,
.agp-btn-outline-navy {
    display: inline-block;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 1px solid currentColor;
    transition: background-color 0.2s, color 0.2s;
}

/* For navy backgrounds: white outline → invert on hover. */
.agp-btn-outline { color: #fff; }
.agp-btn-outline:hover {
    background: #fff;
    color: var(--agp-navy);
}

/* For white/light backgrounds: navy outline → invert on hover. Slightly more
   compact than the white .agp-btn-outline because it sits under shorter copy. */
.agp-btn-outline-navy {
    color: var(--agp-navy);
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 500;
}
.agp-btn-outline-navy:hover {
    background: var(--agp-navy);
    color: #fff;
}

/* ==========================================================================
   Homepage — Section 7: Insights
   ========================================================================== */
.agp-insights {
    background: #fff;
    padding: 80px 40px;
}

.agp-insights__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.agp-insights__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 50px;
}

.agp-insights__header .agp-section-heading {
    text-align: left;
    margin: 0 0 16px;
}

.agp-insights__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
    color: var(--agp-text);
    font-size: 16px;
    line-height: 1.7;
}

.agp-insights__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.agp-insight-card {
    border: 1px solid var(--agp-border);
    border-radius: 8px;
    padding: 30px;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.agp-insight-card:hover {
    box-shadow: 0 8px 24px rgba(0, 39, 80, 0.08);
    transform: translateY(-2px);
}

.agp-insight-card h3,
.agp-insight-card h4 {
    color: var(--agp-navy);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 12px;
}

.agp-insight-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--agp-text);
    margin: 0 0 20px;
    flex: 1;
}

.agp-insight-card__readmore {
    color: var(--agp-navy);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    align-self: flex-start;
}

.agp-insight-card__readmore:hover { text-decoration: underline; }

/* Excerpt copy inside insight cards (sibling of readmore link). */
.agp-insight-card__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
    margin: 12px 0;
    flex: 1;
}

/* Per-category title within Insights (e.g. PUBLIC POLICY, MANAGEMENT). */
.agp-insights__category-title {
    font-size: 18px;
    letter-spacing: 0.1em;
    color: var(--agp-navy);
    text-transform: uppercase;
    margin: 50px 0 30px;
    font-weight: 600;
}

.agp-insights__more {
    text-align: right;
    margin-top: 30px;
}

/* Full-bleed photo separator between PUBLIC POLICY and MANAGEMENT.
   Placeholder gradient — replace with <img> or background-image once a real
   photo (e.g. a meeting / boardroom shot) is sourced. */
.agp-insights__separator {
    width: 100vw;
    height: 350px;
    margin: 60px 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: linear-gradient(135deg, #2a3f5f 0%, #1a2c47 50%, #0d1b30 100%);
}

/* ==========================================================================
   Homepage — Section 11: Get In Touch
   ========================================================================== */
.agp-get-in-touch {
    background: var(--agp-light-bg);
    padding: 80px 40px;
}

.agp-get-in-touch__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.agp-get-in-touch__title {
    color: var(--agp-navy);
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 16px;
    /* Title case — explicitly NOT all caps per the design spec. */
    text-transform: none;
    letter-spacing: 0;
}

.agp-get-in-touch__intro {
    font-size: 16px;
    line-height: 1.7;
    color: var(--agp-text);
    margin: 0 0 32px;
}

.agp-contact-info {
    font-size: 14px;
    line-height: 1.8;
    color: var(--agp-text);
}

.agp-contact-info p { margin: 0; }

.agp-contact-info__name {
    font-weight: 600;
    color: var(--agp-navy);
    margin: 0 0 8px !important;
}

/* ==========================================================================
   Mobile (<= 900px)
   ========================================================================== */
@media (max-width: 900px) {
    .agp-hero__content {
        padding-top: 100px;
        font-size: 18px;
    }

    .agp-icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .agp-service-block,
    .agp-intro,
    .agp-what-we-do,
    .agp-insights,
    .agp-get-in-touch {
        padding: 50px 20px;
    }

    .agp-service-block__inner,
    .agp-get-in-touch__inner,
    .agp-insights__cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* On mobile, image-right and default both stack content above image (image last). */
    .agp-service-block.image-right .agp-service-block__content { order: 0; }
    .agp-service-block.image-right .agp-service-block__image   { order: 1; }

    .agp-insights__header {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===================================================================
   Layout — remove gap between navy header and page content (site-wide)
   -------------------------------------------------------------------
   Astra inserts default top padding on .site-content / .ast-container,
   and the .entry-header / .entry-title carry default margins. On every
   page (home, inner pages, Elementor pages), this creates a white gap
   directly under the navy header. These rules force everything that
   could introduce that gap to zero — applied globally, no body.* scope.
   =================================================================== */
.site-content,
.ast-container,
#content,
#primary,
#main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.entry-header {
    padding: 0 !important;
    margin: 0 !important;
}

.entry-content > *:first-child,
.entry-title {
    margin-top: 0 !important;
}

/* Elementor: kill default top spacing on the first section/container in any
   Elementor-built page so it butts directly against the header. */
.elementor-section:first-child,
.elementor-section-wrap > .elementor-section:first-child,
.elementor > section:first-child,
.elementor > .e-con:first-child,
.elementor-edit-mode .elementor-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Astra-specific containers Astra uses for the main content row. */
.ast-row .ast-col,
.ast-no-sidebar .entry-content,
.ast-narrow-container .site-content {
    padding-top: 0;
}
