/*
 * GFP Theme — theme.css
 * Complete design system for GF Palette.
 * Also registered as Gutenberg editor stylesheet (add_editor_style in functions.php).
 *
 * Table of contents:
 *  1.  Fonts
 *  2.  Design tokens (CSS custom properties)
 *  3.  Base / reset
 *  4.  Accessibility
 *  5.  Typography
 *  6.  Layout
 *  7.  Buttons
 *  8.  Cards
 *  9.  Badges
 * 10.  Navbar / Header
 * 11.  Dropdown
 * 12.  Mobile offcanvas
 * 13.  Footer
 * 14.  Floating actions (WhatsApp / call)
 * 15.  Forms (base — Phase 7 will expand)
 * 16.  Section styles
 * 17.  Gutenberg block overrides
 * 18.  Block pattern styles
 * 19.  Utilities
 * 20.  Responsive
 */


/* ─── 1. Fonts ───────────────────────────────────────────────────────────────── */

@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-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: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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


/* ─── 2. Design Tokens ───────────────────────────────────────────────────────── */

:root {
    /* Brand — blue logo palette (logo extracted: deep navy #0d2461, vivid blue #2979ff) */
    --gfp-primary:          #1a3a8c;   /* mid-navy blue — CTAs, links, active states           */
    --gfp-primary-dark:     #0d2461;   /* deep navy from logo G/F — hover, dark emphasis        */
    --gfp-primary-bright:   #2979ff;   /* vivid blue from logo P — accent, important highlights */
    --gfp-primary-light:    #eef3ff;   /* light blue tint — badge backgrounds, subtle fills     */

    /* Neutrals */
    --gfp-dark:             #0d2461;   /* deep navy — footer, dark section backgrounds          */
    --gfp-gray-900:         #1e293b;
    --gfp-gray-800:         #2d3748;
    --gfp-gray-700:         #374151;
    --gfp-gray-500:         #6b7280;
    --gfp-gray-400:         #9ca3af;
    --gfp-gray-200:         #e5e7eb;
    --gfp-gray-100:         #f3f4f6;
    --gfp-gray-50:          #f9fafb;
    --gfp-white:            #ffffff;

    /* Semantic aliases */
    --gfp-text:             var(--gfp-gray-700);
    --gfp-text-heading:     var(--gfp-gray-900);
    --gfp-text-muted:       var(--gfp-gray-500);
    --gfp-bg-page:          var(--gfp-white);
    --gfp-bg-alt:           var(--gfp-gray-50);
    --gfp-border:           var(--gfp-gray-200);

    /* Typography */
    --gfp-font-heading:     'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --gfp-font-body:        'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --gfp-font-size-base:   1rem;
    --gfp-line-height:      1.7;

    /* Spacing */
    --gfp-space-1:          0.25rem;
    --gfp-space-2:          0.5rem;
    --gfp-space-3:          0.75rem;
    --gfp-space-4:          1rem;
    --gfp-space-6:          1.5rem;
    --gfp-space-8:          2rem;
    --gfp-space-12:         3rem;
    --gfp-space-16:         4rem;
    --gfp-space-24:         6rem;
    --gfp-section-y:        6rem;
    --gfp-section-y-sm:     4rem;

    /* Border radius */
    --gfp-radius-sm:        0.25rem;
    --gfp-radius:           0.5rem;
    --gfp-radius-lg:        1rem;
    --gfp-radius-pill:      50rem;

    /* Shadows */
    --gfp-shadow-sm:        0 1px 3px rgba(0, 0, 0, 0.08);
    --gfp-shadow:           0 4px 16px rgba(0, 0, 0, 0.09);
    --gfp-shadow-lg:        0 12px 40px rgba(0, 0, 0, 0.13);

    /* Transitions */
    --gfp-transition:       0.2s ease;
    --gfp-transition-slow:  0.35s ease;

    /* Header */
    --gfp-header-h:         70px;

    /* Z-index layers */
    --gfp-z-header:         1030;
    --gfp-z-dropdown:       1040;
    --gfp-z-float:          1050;

    /* WordPress block layout — content-size drives is-layout-constrained max-width */
    --wp--style--global--content-size: 1320px;
    --wp--style--global--wide-size:    1400px;
}


/* ─── 3. Base / Reset ────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--gfp-font-body);
    font-size: var(--gfp-font-size-base);
    font-weight: 400;
    line-height: var(--gfp-line-height);
    color: var(--gfp-text);
    background-color: var(--gfp-bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gfp-primary);
    text-decoration: none;
    transition: color var(--gfp-transition);
}

a:hover {
    color: var(--gfp-primary-dark);
}

ul,
ol {
    padding-left: 1.25rem;
}

/* Remove default list style when Bootstrap list-unstyled is used */
.list-unstyled {
    padding-left: 0;
    list-style: none;
}


/* ─── 4. Accessibility ───────────────────────────────────────────────────────── */

:focus-visible {
    outline: 3px solid var(--gfp-primary);
    outline-offset: 3px;
    border-radius: var(--gfp-radius-sm);
}

/* Skip to main content */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--gfp-primary);
    color: var(--gfp-white);
    border-radius: 0 0 var(--gfp-radius) var(--gfp-radius);
    z-index: 9999;
    font-size: 0.875rem;
    font-weight: 600;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ─── 5. Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--gfp-font-heading);
    font-weight: 700;
    color: var(--gfp-text-heading);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

h1, .h1 { font-size: 2.75rem; }
h2, .h2 { font-size: 2.25rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.375rem; font-weight: 600; }
h5, .h5 { font-size: 1.125rem; font-weight: 600; }
h6, .h6 { font-size: 1rem;     font-weight: 600; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gfp-text);
}

.text-muted {
    color: var(--gfp-text-muted) !important;
}

small,
.small {
    font-size: 0.875rem;
}

/* Section heading group (eyebrow + title pattern) */
.gfp-section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gfp-primary);
    margin-bottom: 0.5rem;
}

.gfp-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gfp-text-heading);
    margin-bottom: 1rem;
}

.gfp-section-subtitle {
    font-size: 1rem;
    color: var(--gfp-text-muted);
    max-width: 580px;
    line-height: 1.75;
}


/* ─── 6. Layout ──────────────────────────────────────────────────────────────── */

#main-content {
    min-height: calc(100vh - var(--gfp-header-h) - 400px);
}

/* Standard section wrapper */
.gfp-section {
    padding: var(--gfp-section-y) 0;
}

.gfp-section--alt {
    background-color: var(--gfp-bg-alt);
}

.gfp-section--dark {
    background-color: var(--gfp-dark);
    color: var(--gfp-white);
}

.gfp-section--dark h1,
.gfp-section--dark h2,
.gfp-section--dark h3,
.gfp-section--dark h4 {
    color: var(--gfp-white);
}

.gfp-section--dark p,
.gfp-section--dark li {
    color: rgba(255, 255, 255, 0.82);
}

/* Separator accent line */
.gfp-accent-line {
    display: block;
    width: 3rem;
    height: 3px;
    background-color: var(--gfp-primary);
    border-radius: var(--gfp-radius-pill);
    margin-bottom: 1.5rem;
}

.gfp-accent-line--center {
    margin-left: auto;
    margin-right: auto;
}

/* Global responsive container */
.gfp-container {
    width: min(100% - 48px, 1320px);
    margin-inline: auto;
}

@media (max-width: 768px) {
    .gfp-container {
        width: min(100% - 32px, 1320px);
    }
}

@media (max-width: 480px) {
    .gfp-container {
        width: min(100% - 24px, 1320px);
    }
}

/*
 * Align WordPress constrained-layout sections with gfp-container.
 * Without this override the WordPress default falls back to 620px max-width,
 * letting Gutenberg block content inside wp:group constrained sections touch
 * the viewport edges on large screens.
 */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: min(100% - 48px, 1320px) !important;
    margin-inline: auto !important;
}

@media (max-width: 768px) {
    .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: min(100% - 32px, 1320px) !important;
    }
}

@media (max-width: 480px) {
    .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: min(100% - 24px, 1320px) !important;
    }
}


/* ─── 7. Buttons ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--gfp-font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1;
    padding: 0.75rem 1.75rem;
    border-radius: var(--gfp-radius);
    border: 2px solid transparent;
    transition: background-color var(--gfp-transition),
                color var(--gfp-transition),
                border-color var(--gfp-transition),
                box-shadow var(--gfp-transition),
                transform var(--gfp-transition);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

/* Primary — red fill */
.btn-gfp-primary {
    background-color: var(--gfp-primary);
    border-color: var(--gfp-primary);
    color: var(--gfp-white);
}

.btn-gfp-primary:hover,
.btn-gfp-primary:focus-visible {
    background-color: var(--gfp-primary-dark);
    border-color: var(--gfp-primary-dark);
    color: var(--gfp-white);
}

/* Dark fill */
.btn-gfp-dark {
    background-color: var(--gfp-dark);
    border-color: var(--gfp-dark);
    color: var(--gfp-white);
}

.btn-gfp-dark:hover,
.btn-gfp-dark:focus-visible {
    background-color: var(--gfp-gray-800);
    border-color: var(--gfp-gray-800);
    color: var(--gfp-white);
}

/* Outline */
.btn-gfp-outline {
    background-color: transparent;
    border-color: var(--gfp-primary);
    color: var(--gfp-primary);
}

.btn-gfp-outline:hover,
.btn-gfp-outline:focus-visible {
    background-color: var(--gfp-primary);
    color: var(--gfp-white);
}

/* Ghost (for dark backgrounds) */
.btn-gfp-ghost {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--gfp-white);
}

.btn-gfp-ghost:hover,
.btn-gfp-ghost:focus-visible {
    background-color: var(--gfp-white);
    border-color: var(--gfp-white);
    color: var(--gfp-dark);
}

/* Sizing */
.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
    border-radius: var(--gfp-radius);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

/* WordPress Gutenberg button block override */
.wp-block-button .wp-block-button__link {
    background-color: var(--gfp-primary);
    border-color: var(--gfp-primary);
    color: var(--gfp-white);
    font-family: var(--gfp-font-heading);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--gfp-radius);
    border: 2px solid var(--gfp-primary);
    transition: background-color var(--gfp-transition), color var(--gfp-transition);
}

.wp-block-button .wp-block-button__link:hover {
    background-color: var(--gfp-primary-dark);
    border-color: var(--gfp-primary-dark);
    color: var(--gfp-white);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--gfp-white);
    border-color: rgba(255, 255, 255, 0.7);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--gfp-white);
    color: var(--gfp-dark);
    border-color: var(--gfp-white);
}


/* ─── 8. Cards ───────────────────────────────────────────────────────────────── */

.gfp-card {
    background-color: var(--gfp-white);
    border: 1px solid var(--gfp-border);
    border-radius: var(--gfp-radius);
    padding: var(--gfp-space-6);
    transition: box-shadow var(--gfp-transition), transform var(--gfp-transition);
}

.gfp-card:hover {
    box-shadow: var(--gfp-shadow);
    transform: translateY(-3px);
}

.gfp-card__image {
    border-radius: var(--gfp-radius) var(--gfp-radius) 0 0;
    overflow: hidden;
    margin: calc(-1 * var(--gfp-space-6)) calc(-1 * var(--gfp-space-6)) var(--gfp-space-6);
}

.gfp-card__image img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.gfp-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gfp-text-heading);
    margin-bottom: 0.5rem;
}

.gfp-card__text {
    font-size: 0.9375rem;
    color: var(--gfp-text-muted);
    margin-bottom: var(--gfp-space-4);
}

/* Service cards (smaller) */
.gfp-service-card {
    background-color: var(--gfp-white);
    border: 1px solid var(--gfp-border);
    border-radius: var(--gfp-radius);
    overflow: hidden;
    transition: box-shadow var(--gfp-transition), transform var(--gfp-transition);
    text-align: center;
}

.gfp-service-card:hover {
    box-shadow: var(--gfp-shadow);
    transform: translateY(-4px);
}

.gfp-service-card__img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.gfp-service-card__body {
    padding: 1.25rem;
}

.gfp-service-card__title {
    font-family: var(--gfp-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gfp-text-heading);
    margin-bottom: 0.5rem;
}

.gfp-service-card__text {
    font-size: 0.875rem;
    color: var(--gfp-text-muted);
    margin-bottom: 1rem;
}

.gfp-service-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gfp-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.gfp-service-card__link:hover {
    color: var(--gfp-primary-dark);
    gap: 0.5rem;
}


/* ─── 9. Badges ──────────────────────────────────────────────────────────────── */

.gfp-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--gfp-radius-pill);
}

.gfp-badge--primary {
    background-color: var(--gfp-primary-light);
    color: var(--gfp-primary-dark);
}

.gfp-badge--dark {
    background-color: var(--gfp-dark);
    color: var(--gfp-white);
}


/* ─── 10. Navbar / Header ────────────────────────────────────────────────────── */

.gfp-header {
    position: sticky;
    top: 0;
    z-index: var(--gfp-z-header);
    background-color: var(--gfp-white);
    border-bottom: 1px solid var(--gfp-border);
    transition: box-shadow var(--gfp-transition);
}

.gfp-header.is-scrolled {
    box-shadow: var(--gfp-shadow-sm);
}

.gfp-navbar {
    height: auto;
    min-height: 72px;
    padding: 0;
}

.gfp-navbar > .gfp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding-block: 12px;
}

/* Brand anchor — uses class gfp-brand (not Bootstrap's navbar-brand) */
.gfp-navbar .gfp-brand {
    padding: 0;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

/* Logo image in header — constrained height, proportional width */
.gfp-header__logo {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Desktop nav links */
.gfp-nav .nav-link {
    font-family: var(--gfp-font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gfp-gray-700);
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--gfp-radius-sm);
    transition: color var(--gfp-transition), background-color var(--gfp-transition);
    position: relative;
}

.gfp-nav .nav-link:hover,
.gfp-nav .nav-link:focus-visible {
    color: var(--gfp-primary);
    background-color: var(--gfp-gray-50);
}

.gfp-nav .nav-link.active,
.gfp-nav .nav-item.current-menu-item > .nav-link {
    color: var(--gfp-primary);
}

/* Dropdown toggle arrow */
.gfp-nav .dropdown-toggle::after {
    border: none;
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 5px;
    vertical-align: middle;
    transition: transform var(--gfp-transition);
}

.gfp-nav .dropdown.show > .dropdown-toggle::after {
    transform: rotate(-135deg) translateY(-2px);
}

/* Navbar CTA button */
.gfp-navbar-cta {
    margin-left: 1rem;
}


/* ─── 11. Dropdown ───────────────────────────────────────────────────────────── */

.gfp-nav .dropdown-menu {
    background-color: var(--gfp-white);
    border: 1px solid var(--gfp-border);
    border-radius: var(--gfp-radius);
    box-shadow: var(--gfp-shadow);
    padding: 0.5rem;
    min-width: 220px;
    margin-top: 0.5rem;
}

.gfp-nav .dropdown-item {
    font-family: var(--gfp-font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gfp-gray-700);
    padding: 0.5rem 0.875rem;
    border-radius: var(--gfp-radius-sm);
    transition: background-color var(--gfp-transition), color var(--gfp-transition);
}

.gfp-nav .dropdown-item:hover,
.gfp-nav .dropdown-item:focus {
    background-color: var(--gfp-gray-50);
    color: var(--gfp-primary);
}

.gfp-nav .dropdown-item.active {
    background-color: var(--gfp-primary-light);
    color: var(--gfp-primary);
}


/* ─── 12. Mobile Offcanvas ───────────────────────────────────────────────────── */

.gfp-offcanvas {
    width: 300px !important;
}

.gfp-offcanvas .offcanvas-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--gfp-border);
    padding: 1.75rem 1.5rem 1.25rem;
    overflow: visible;
}

/* Brand link inside offcanvas — needs own flex context (gfp-navbar scope doesn't apply here) */
.gfp-offcanvas .gfp-brand {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    padding: 0;
    text-decoration: none;
    overflow: visible;
}

/* Offcanvas logo — dedicated class, no inheritance from gfp-header__logo.
   Uses a clean property reset so no sticky-header or responsive rules can interfere. */
.gfp-offcanvas__logo {
    display: block;
    height: 34px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    position: static;
    transform: none;
    margin: 12px 0 0 0;
    padding: 0;
}

/* Close button — full opacity for clear visibility; larger tap target */
.gfp-offcanvas .btn-close {
    opacity: 1;
    padding: 0.5rem;
    flex-shrink: 0;
}

.gfp-offcanvas .btn-close:hover {
    opacity: 0.7;
}

.gfp-offcanvas .offcanvas-body {
    padding: 1.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.gfp-mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.gfp-mobile-nav .nav-item {
    border-bottom: 1px solid var(--gfp-gray-100);
}

.gfp-mobile-nav .nav-link {
    font-family: var(--gfp-font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gfp-gray-800);
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gfp-mobile-nav .nav-link:hover {
    color: var(--gfp-primary);
}

/* Mobile services accordion */
.gfp-mobile-sub {
    list-style: none;
    padding: 0 0 0.75rem 0.75rem;
    margin: 0;
    background-color: var(--gfp-gray-50);
    border-radius: 0 0 var(--gfp-radius-sm) var(--gfp-radius-sm);
}

.gfp-mobile-sub a {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gfp-gray-700);
    padding: 0.5rem 0.5rem;
}

.gfp-mobile-sub a:hover {
    color: var(--gfp-primary);
}

/* Mobile call button */
.gfp-mobile-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background-color: var(--gfp-dark);
    color: var(--gfp-white) !important;
    font-family: var(--gfp-font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--gfp-radius);
    margin-bottom: 0.75rem;
    transition: background-color var(--gfp-transition);
}

.gfp-mobile-call:hover {
    background-color: var(--gfp-primary);
    color: var(--gfp-white) !important;
}


/* ─── 13. Footer ─────────────────────────────────────────────────────────────── */

.gfp-footer {
    background-color: var(--gfp-dark);
    color: rgba(255, 255, 255, 0.75);
}

.gfp-footer__main {
    padding: 5rem 0 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gfp-footer__col-title {
    font-family: var(--gfp-font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gfp-white);
    margin-bottom: 1.25rem;
}

.gfp-footer__logo {
    filter: brightness(0) invert(1);
    height: 38px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gfp-footer__tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.gfp-footer__exp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gfp-primary);
    margin-top: 0.5rem;
}

/* Footer nav */
.gfp-footer__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gfp-footer__nav li {
    margin-bottom: 0.6rem;
}

.gfp-footer__nav a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--gfp-transition);
}

.gfp-footer__nav a:hover {
    color: var(--gfp-white);
}

/* Footer contact */
.gfp-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.875rem;
    line-height: 1.5;
}

.gfp-footer__contact-item a {
    color: rgba(255, 255, 255, 0.7);
}

.gfp-footer__contact-item a:hover {
    color: var(--gfp-white);
}

.gfp-footer__contact-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    opacity: 0.7;
}

/* Footer social */
.gfp-footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--gfp-radius-pill);
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color var(--gfp-transition), color var(--gfp-transition);
}

.gfp-footer__social-link:hover {
    background-color: #1877F2;
    color: var(--gfp-white) !important;
}

/* Footer bottom bar */
.gfp-footer__bottom {
    padding: 1.25rem 0;
    background-color: rgba(0, 0, 0, 0.25);
}

.gfp-footer__copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.gfp-footer__copyright span {
    color: rgba(255, 255, 255, 0.6);
}


/* ─── 14. Floating Actions ───────────────────────────────────────────────────── */

.gfp-float-actions {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: var(--gfp-z-float);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.gfp-float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: var(--gfp-shadow);
    transition: transform var(--gfp-transition), box-shadow var(--gfp-transition);
    text-decoration: none;
    position: relative;
}

.gfp-float-btn:hover,
.gfp-float-btn:focus-visible {
    transform: scale(1.1);
    box-shadow: var(--gfp-shadow-lg);
}

.gfp-float-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* WhatsApp */
.gfp-float-btn--whatsapp {
    background-color: #25D366;
    color: var(--gfp-white);
}

.gfp-float-btn--whatsapp:hover {
    background-color: #1da850;
    color: var(--gfp-white);
}

/* Call — wider pill on mobile to show label */
.gfp-float-btn--call {
    background-color: var(--gfp-primary);
    color: var(--gfp-white);
    width: auto;
    padding: 0 1.25rem;
    border-radius: var(--gfp-radius-pill);
    gap: 0.5rem;
    font-family: var(--gfp-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.gfp-float-btn--call:hover {
    background-color: var(--gfp-primary-dark);
    color: var(--gfp-white);
}

.gfp-float-btn--call .gfp-float-label {
    display: none;
}

/* On desktop hide the call label to keep buttons compact */
@media (min-width: 992px) {
    .gfp-float-btn--call {
        width: 52px;
        padding: 0;
        border-radius: 50%;
    }
}

/* Hide floating actions while the mobile offcanvas menu is open.
   JS adds/removes gfp-menu-open on <body> via Bootstrap offcanvas events. */
body.gfp-menu-open .gfp-float-actions {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}


/* ─── 15. Forms (base) ───────────────────────────────────────────────────────── */

.gfp-form .form-label {
    font-family: var(--gfp-font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gfp-text-heading);
    margin-bottom: 0.375rem;
}

.gfp-form .form-control,
.gfp-form .form-select {
    border: 1.5px solid var(--gfp-border);
    border-radius: var(--gfp-radius);
    padding: 0.75rem 1rem;
    font-family: var(--gfp-font-body);
    font-size: 0.9375rem;
    color: var(--gfp-text);
    background-color: var(--gfp-white);
    transition: border-color var(--gfp-transition), box-shadow var(--gfp-transition);
}

.gfp-form .form-control:focus,
.gfp-form .form-select:focus {
    border-color: var(--gfp-primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 140, 0.14);
    outline: none;
}

.gfp-form textarea.form-control {
    resize: vertical;
    min-height: 140px;
}


/* ─── 16. Section Styles ─────────────────────────────────────────────────────── */

/* Hero (pattern-driven — styles set by wp:cover block + theme.css) */
.gfp-hero-banner .wp-block-cover {
    min-height: 580px;
}

.gfp-hero-banner .wp-block-cover__inner-container {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* Advantages grid icons */
.gfp-advantage-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    display: block;
}

/* NIMP15 highlight section */
.gfp-nimp15-section {
    background-color: var(--gfp-gray-50);
    border-left: 4px solid var(--gfp-primary);
}

/* CTA banner */
.gfp-cta-banner .wp-block-cover {
    min-height: 320px;
}


/* ─── 16b. Homepage Section Components ──────────────────────────────────────── */

/* Hero inner container — cap width for readability, safe horizontal spacing */
.gfp-hero-banner .wp-block-cover__inner-container {
    width: min(100% - 48px, 760px);
    margin-inline: auto;
    padding: 0;
}

/* Service card — Gutenberg wp:group variant.
   Container styles already in section 8; these rules target Gutenberg inner blocks. */
.gfp-service-card .wp-block-image {
    margin: 0;
    overflow: hidden;
    border-radius: var(--gfp-radius) var(--gfp-radius) 0 0;
    line-height: 0;
}

.gfp-service-card .wp-block-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--gfp-radius) var(--gfp-radius) 0 0;
    display: block;
}

.gfp-service-card .wp-block-heading,
.gfp-service-card > .wp-block-paragraph {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Advantage cards */
.gfp-advantage-card {
    background-color: var(--gfp-white);
    border: 1px solid var(--gfp-border);
    border-radius: var(--gfp-radius);
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: box-shadow var(--gfp-transition), transform var(--gfp-transition);
}

.gfp-advantage-card:hover {
    box-shadow: var(--gfp-shadow);
    transform: translateY(-3px);
}

.gfp-advantage-card .wp-block-heading {
    border-bottom: 2px solid var(--gfp-primary);
    padding-bottom: 0.5rem;
}

/* Experience badge */
.gfp-experience-badge > .wp-block-paragraph {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: var(--gfp-primary-light);
    border-radius: var(--gfp-radius-pill);
    padding: 0.25rem 0.875rem;
    font-size: 0.875rem;
}

/* Dark panels (Recyclage / Réparation / Achat section) */
.gfp-dark-panel {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--gfp-radius);
    padding: 1.5rem;
    height: 100%;
}

.gfp-dark-panel .wp-block-image {
    margin: 0 0 1.25rem;
    overflow: hidden;
    border-radius: var(--gfp-radius-sm);
    line-height: 0;
}

.gfp-dark-panel .wp-block-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--gfp-radius-sm);
    display: block;
}

/* Contact summary items */
.gfp-contact-item {
    background-color: var(--gfp-white);
    border: 1px solid var(--gfp-border);
    border-top: 3px solid var(--gfp-primary);
    border-radius: var(--gfp-radius);
    padding: 1.75rem 1.5rem;
    height: 100%;
}

/* ─── 17. Gutenberg Block Overrides ─────────────────────────────────────────── */

/* Headings inside editor */
.wp-block-heading {
    font-family: var(--gfp-font-heading);
    color: var(--gfp-text-heading);
}

/* Paragraph */
.wp-block-paragraph {
    font-family: var(--gfp-font-body);
    color: var(--gfp-text);
    line-height: var(--gfp-line-height);
}

/* Cover block overlay */
.wp-block-cover {
    position: relative;
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
}

/* Columns spacing */
.wp-block-columns {
    gap: 2rem;
}

/* Images */
.wp-block-image img {
    border-radius: var(--gfp-radius);
}

/* Latest posts */
.wp-block-latest-posts {
    padding: 0;
    list-style: none;
}

.wp-block-latest-posts.is-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.wp-block-latest-posts__post-title {
    font-family: var(--gfp-font-heading);
    font-weight: 700;
    color: var(--gfp-text-heading);
}

.wp-block-latest-posts__featured-image img {
    border-radius: var(--gfp-radius) var(--gfp-radius) 0 0;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}


/* ─── 18. Block Pattern Styles ───────────────────────────────────────────────── */

/* Patterns use gfp-section padding unless overridden */
.gfp-pattern-section {
    padding: var(--gfp-section-y) 0;
}

/* Services grid wrapper */
.gfp-services-grid .wp-block-columns {
    row-gap: 1.5rem;
}

/* Contact info block icons */
.gfp-contact-block__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--gfp-primary);
    margin-top: 3px;
}

/* Blog cards section */
.gfp-blog-cards-section .wp-block-latest-posts__featured-image {
    margin-bottom: 1rem;
}


/* ─── 19. Utilities ──────────────────────────────────────────────────────────── */

.gfp-text-primary   { color: var(--gfp-primary) !important; }
.gfp-text-heading   { color: var(--gfp-text-heading) !important; }
.gfp-text-muted     { color: var(--gfp-text-muted) !important; }
.gfp-text-white     { color: var(--gfp-white) !important; }

.gfp-bg-primary     { background-color: var(--gfp-primary) !important; }
.gfp-bg-dark        { background-color: var(--gfp-dark) !important; }
.gfp-bg-alt         { background-color: var(--gfp-bg-alt) !important; }
.gfp-bg-white       { background-color: var(--gfp-white) !important; }

.gfp-border-primary { border-color: var(--gfp-primary) !important; }

.gfp-fw-semibold    { font-weight: 600 !important; }
.gfp-fw-bold        { font-weight: 700 !important; }

.gfp-font-heading   { font-family: var(--gfp-font-heading) !important; }

.gfp-rounded        { border-radius: var(--gfp-radius) !important; }
.gfp-rounded-lg     { border-radius: var(--gfp-radius-lg) !important; }


/* ─── 20. Homepage V2 ───────────────────────────────────────────────────────── */

/* ── Hero ── */
.gfp-home-v2-hero {
    padding: 5rem 0 4.5rem;
    background-color: var(--gfp-white);
}

.gfp-home-v2-eyebrow {
    display: inline-block;
    font-family: var(--gfp-font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gfp-primary);
    border-left: 3px solid var(--gfp-primary);
    padding-left: 0.75rem;
    line-height: 1.4;
}

.gfp-home-v2-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--gfp-font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gfp-gray-500);
    line-height: 1.4;
}

.gfp-home-v2-hero__img img {
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* ── Trust strip ── */
.gfp-home-v2-trust-strip {
    background-color: var(--gfp-dark);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.gfp-home-v2-trust-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0;
}

.gfp-home-v2-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--gfp-font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    padding: 0.625rem 1.5rem;
    flex: 1;
    justify-content: center;
}

.gfp-home-v2-trust-item + .gfp-home-v2-trust-item {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.gfp-home-v2-trust-item svg {
    flex-shrink: 0;
    color: var(--gfp-primary);
}

/* ── Services showcase ── */
.gfp-home-v2-services {
    padding: 5rem 0;
}

.gfp-home-v2-featured-card {
    border-radius: 12px;
    overflow: hidden;
}

.gfp-home-v2-featured-card .wp-block-cover__inner-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    min-height: 100%;
}

.gfp-home-v2-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--gfp-font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.gfp-home-v2-card-cta:hover {
    color: var(--gfp-white);
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.gfp-home-v2-service-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.875rem;
    margin-top: 1.25rem;
}

.gfp-home-v2-service-tile {
    background: var(--gfp-white);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 0.875rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gfp-home-v2-service-tile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--gfp-primary);
    text-decoration: none;
}

.gfp-home-v2-service-tile-icon {
    width: 40px;
    height: 40px;
    background-color: #eef3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gfp-primary);
    flex-shrink: 0;
}

.gfp-home-v2-service-tile-label {
    font-family: var(--gfp-font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gfp-gray-900);
    line-height: 1.3;
}

/* ── Company intro ── */
.gfp-home-v2-intro {
    padding: 5rem 0;
    background-color: var(--gfp-white);
}

.gfp-home-v2-intro__img img {
    border-radius: 12px;
    width: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.gfp-home-v2-exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: #eef3ff;
    color: #0d2461;
    font-family: var(--gfp-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    line-height: 1.4;
}

/* ── NIMP15 ── */
.gfp-home-v2-nimp15 {
    padding: 5rem 0;
}

.gfp-home-v2-nimp15__img img {
    border-radius: 12px;
    width: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.92;
}

.gfp-home-v2-iso-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(41, 121, 255, 0.45);
    color: #7eb3ff;
    font-family: var(--gfp-font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    line-height: 1.4;
}

/* ── Circular economy ── */
.gfp-home-v2-circular {
    padding: 5rem 0;
}

.gfp-home-v2-circular__img img {
    border-radius: 12px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.gfp-home-v2-circular-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gfp-home-v2-circular-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--gfp-white);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.125rem 1.25rem;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gfp-home-v2-circular-link:hover {
    border-color: var(--gfp-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateX(3px);
    text-decoration: none;
}

.gfp-home-v2-circular-link-title {
    font-family: var(--gfp-font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gfp-gray-900);
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.gfp-home-v2-circular-link-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.45;
}

.gfp-home-v2-circular-link-arrow {
    color: var(--gfp-primary);
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.gfp-home-v2-circular-link:hover .gfp-home-v2-circular-link-arrow {
    transform: translateX(3px);
}

/* ── Consulting ── */
.gfp-home-v2-consulting {
    padding: 5rem 0;
    background-color: var(--gfp-white);
    text-align: center;
}

.gfp-home-v2-consulting-icon {
    width: 72px;
    height: 72px;
    background-color: #eef3ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    color: var(--gfp-primary);
}

/* ── Final CTA ── */
.gfp-home-v2-cta {
    padding: 5.5rem 0;
    text-align: center;
}

/* ── Contact preview ── */
.gfp-home-v2-contact {
    padding: 3.5rem 0;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.gfp-home-v2-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gfp-home-v2-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.gfp-home-v2-contact-icon {
    width: 46px;
    height: 46px;
    background-color: var(--gfp-white);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gfp-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.gfp-home-v2-contact-label {
    font-family: var(--gfp-font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gfp-primary);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.gfp-home-v2-contact-value {
    font-family: var(--gfp-font-heading);
    font-weight: 700;
    color: var(--gfp-gray-900);
    font-size: 0.9375rem;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.gfp-home-v2-contact-value a {
    color: inherit;
    text-decoration: none;
}

.gfp-home-v2-contact-value a:hover {
    color: var(--gfp-primary);
}

.gfp-home-v2-contact-sub {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* ── V2 responsive ── */
@media (max-width: 991.98px) {
    .gfp-home-v2-hero { padding: 3.5rem 0 3rem; }
    .gfp-home-v2-intro,
    .gfp-home-v2-nimp15,
    .gfp-home-v2-circular { padding: 4rem 0; }
    .gfp-home-v2-services { padding: 4rem 0; }
    .gfp-home-v2-consulting { padding: 4rem 0; }
    .gfp-home-v2-cta { padding: 4rem 0; }

    .gfp-home-v2-trust-items { justify-content: center; }
    .gfp-home-v2-trust-item { flex: 0 1 auto; padding: 0.5rem 1rem; font-size: 0.8125rem; }
    .gfp-home-v2-trust-item + .gfp-home-v2-trust-item { border-left: none; }

    .gfp-home-v2-service-tiles { grid-template-columns: repeat(3, 1fr); }
    .gfp-home-v2-featured-card.wp-block-cover { min-height: 300px !important; }

    .gfp-home-v2-contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 767.98px) {
    .gfp-home-v2-hero { padding: 3rem 0 2.5rem; }
    .gfp-home-v2-service-tiles { grid-template-columns: repeat(2, 1fr); }
    .gfp-home-v2-trust-items { gap: 0.25rem; }
    .gfp-home-v2-featured-card.wp-block-cover { min-height: 260px !important; }
}

@media (max-width: 575.98px) {
    .gfp-home-v2-hero { padding: 2.5rem 0 2rem; }
    .gfp-home-v2-service-tiles { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .gfp-home-v2-trust-item { font-size: 0.75rem; padding: 0.375rem 0.75rem; }
    .gfp-home-v2-contact-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ─── 21. Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    h1, .h1 { font-size: 2.25rem; }
    h2, .h2 { font-size: 1.875rem; }
    h3, .h3 { font-size: 1.5rem; }

    .gfp-header__logo {
        height: 38px;
    }

    .gfp-section {
        padding: var(--gfp-section-y-sm) 0;
    }

    .gfp-hero-banner .wp-block-cover {
        min-height: 460px;
    }

    .wp-block-latest-posts.is-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gfp-float-btn--call .gfp-float-label {
        display: inline;
    }

    .gfp-float-actions {
        bottom: 2rem;
        right: 1.25rem;
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    h1, .h1 { font-size: 1.875rem; }
    h2, .h2 { font-size: 1.625rem; }

    .gfp-hero-banner .wp-block-cover {
        min-height: 380px;
    }

    .wp-block-latest-posts.is-grid {
        grid-template-columns: 1fr;
    }

    .gfp-footer__main {
        padding: 3.5rem 0 2.5rem;
    }
}

@media (max-width: 575.98px) {
    h1, .h1 { font-size: 1.625rem; }

    .gfp-header__logo {
        height: 30px;
    }

    .gfp-float-actions {
        bottom: 2rem;
        right: 1rem;
    }

    .gfp-float-btn--call {
        font-size: 0.8125rem;
        padding: 0 1rem;
    }
}


/* =============================================================================
   INTERIOR PAGE HERO
   ============================================================================= */

.gfp-page-hero {
    background: linear-gradient(135deg, #0d2461 0%, #1a3a8c 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.gfp-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(41, 121, 255, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.gfp-page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.gfp-page-hero__eyebrow {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7eaaff;
    margin-bottom: 0.875rem;
}

.gfp-page-hero__title {
    font-size: clamp(1.875rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.gfp-page-hero__desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: 1.75rem;
    max-width: 600px;
}

.gfp-page-hero__breadcrumb {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.gfp-page-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.gfp-page-hero__breadcrumb a:hover {
    color: #ffffff;
}


/* =============================================================================
   SERVICE PAGE — CONTENT SECTIONS
   ============================================================================= */

.gfp-svc-image {
    border-radius: 0.75rem;
    overflow: hidden;
}

.gfp-svc-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
}

/* Gutenberg image blocks inside service columns */
.gfp-pattern-section .wp-block-image img {
    border-radius: 0.625rem;
    width: 100%;
    height: auto;
}

/* Balance ultra-wide banner photos against their text column on Palette/Caisse
   pages — without this, the native 1900x545 aspect renders too thin. */
.gfp-svc-image img[src*="palette-banner.png"],
.gfp-svc-image img[src*="caisse-banner.png"] {
    aspect-ratio: 4 / 3;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ensure list items in dark sections are spaced */
.gfp-pattern-section .wp-block-list li {
    margin-bottom: 0.25rem;
}


/* =============================================================================
   BLOG ARCHIVE & HOME
   ============================================================================= */

.gfp-blog-main {
    padding: 5rem 0;
}

.gfp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.gfp-blog-card {
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gfp-blog-card:hover {
    box-shadow: 0 8px 32px rgba(26, 58, 140, 0.12);
    transform: translateY(-3px);
}

.gfp-blog-card__img-link {
    display: block;
    overflow: hidden;
}

.gfp-blog-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gfp-blog-card:hover .gfp-blog-card__img {
    transform: scale(1.04);
}

.gfp-blog-card__img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #eef3ff, #dde8ff);
}

.gfp-blog-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gfp-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gfp-blog-card__cat {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a3a8c;
    text-decoration: none;
    background: #eef3ff;
    padding: 0.2rem 0.625rem;
    border-radius: 2rem;
}

.gfp-blog-card__cat:hover {
    background: #dde8ff;
}

.gfp-blog-card__date {
    font-size: 0.8125rem;
    color: #6b7280;
}

.gfp-blog-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.gfp-blog-card__title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.gfp-blog-card__title a:hover {
    color: #1a3a8c;
}

.gfp-blog-card__excerpt {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}

.gfp-blog-card__excerpt p {
    margin: 0;
}

.gfp-blog-card__link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a3a8c;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.gfp-blog-card__link:hover {
    color: #0d2461;
}

.gfp-blog-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.gfp-blog-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.gfp-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e0e7f3;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.gfp-blog-pagination .page-numbers.current,
.gfp-blog-pagination .page-numbers:hover {
    background: #1a3a8c;
    color: #ffffff;
    border-color: #1a3a8c;
}

/* Empty state */
.gfp-blog-empty {
    text-align: center;
    padding: 5rem 0;
    max-width: 520px;
    margin: 0 auto;
}

.gfp-blog-empty__icon {
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.gfp-blog-empty__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.gfp-blog-empty__msg {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
}


/* =============================================================================
   CONTACT PAGE
   ============================================================================= */

.gfp-contact-section {
    padding: 5rem 0;
}

.gfp-contact-form-wrap__title,
.gfp-contact-info__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
}

/* Contact info card */
.gfp-contact-info__card {
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 0.875rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.gfp-contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e8edf4;
}

.gfp-contact-info__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gfp-contact-info__item:first-child {
    padding-top: 0;
}

.gfp-contact-info__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    background: #eef3ff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a8c;
    margin-top: 0.1rem;
}

.gfp-contact-info__item strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.gfp-contact-info__item a {
    color: #1a3a8c;
    text-decoration: none;
}

.gfp-contact-info__item a:hover {
    text-decoration: underline;
}

.gfp-contact-info__social {
    padding: 0.5rem 0;
}

.gfp-contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a3a8c;
    text-decoration: none;
    transition: color 0.2s;
}

.gfp-contact-social-link:hover {
    color: #0d2461;
}


/* =============================================================================
   CONTACT FORM
   ============================================================================= */

.gfp-contact-form .row {
    --bs-gutter-y: 0;
}

.gfp-form-group {
    margin-bottom: 0;
}

.gfp-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.gfp-form-required {
    color: #dc2626;
    margin-left: 0.125rem;
}

.gfp-form-input,
.gfp-form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
    border: 1.5px solid #d1d9e6;
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.gfp-form-input:focus,
.gfp-form-select:focus {
    border-color: #1a3a8c;
    box-shadow: 0 0 0 3px rgba(26, 58, 140, 0.12);
}

.gfp-form-input::placeholder {
    color: #9ca3af;
}

.gfp-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.gfp-form-textarea {
    resize: vertical;
    min-height: 140px;
}

.gfp-form-submit-row {
    margin-top: 1.5rem;
}

.gfp-form-alert {
    padding: 1rem 1.25rem;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.gfp-form-alert--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.gfp-form-alert--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}


/* =============================================================================
   RESPONSIVE — INTERIOR PAGES & BLOG
   ============================================================================= */

@media (max-width: 991.98px) {
    .gfp-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gfp-page-hero {
        padding: 4rem 0 3rem;
    }

    .gfp-contact-section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .gfp-blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gfp-blog-main {
        padding: 3rem 0;
    }

    .gfp-page-hero {
        padding: 3rem 0 2.5rem;
    }

    .gfp-page-hero__title {
        font-size: 1.75rem;
    }

    .gfp-contact-section {
        padding: 3rem 0;
    }

    /* Stack 2-col service content on mobile */
    .gfp-pattern-section .wp-block-columns {
        flex-direction: column;
    }

    .gfp-pattern-section .wp-block-column {
        flex-basis: 100% !important;
    }
}
