/**
 * Focal Point CNC Solutions — Joomla 5.4 Template
 * template.css — Core structural layout
 *
 * Design source: focalpointcnc.com/request-consultation
 * Palette:
 *   Primary Navy:   #164386
 *   Accent Gold:    #dca005
 *   Soft Gold:      #D4A574
 *   Deep Charcoal:  #2C3E50
 *   Warm Gray:      #64748B
 *   Off-White:      #F8FAFC
 *   Pure White:     #FFFFFF
 *   Sage Green:     #10B981
 */

/* ==========================================================================
   0. DESIGN TOKENS / CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Brand colours — matching live site */
    --fp-navy:           #164386;
    --fp-navy-dark:      #001B4C;
    --fp-charcoal:       #2C3E50;
    --fp-gold:           #dca005;
    --fp-soft-gold:      #D4A574;
    --fp-copper-hover:   #A0632C;
    --fp-sage:           #10B981;
    --fp-warm-gray:      #64748B;
    --fp-off-white:      #F8FAFC;
    --fp-white:          #FFFFFF;
    --fp-border:         #E2E8F0;
    --fp-text-muted:     rgba(255,255,255,0.85);

    /* Cassiopeia CSS variable overrides */
    --cassiopeia-color-primary:  var(--fp-navy);
    --cassiopeia-color-link:     #224faa;
    --link-color:                #224faa;
    --link-color-rgb:            34, 79, 170;
    --cassiopeia-color-hover:    var(--fp-gold);
    --template-bg-light:         var(--fp-off-white);
    --template-text-dark:        #495057;
    --template-text-light:       var(--fp-white);
    --template-link-color:       var(--link-color);
    --template-special-color:    var(--fp-navy-dark);

    /* Typography */
    --fp-font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --fp-font-body:    'Barlow', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --fp-section-pad:  120px 0;
    --fp-container-max: 1300px;

    /* Transitions */
    --fp-transition:  all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. GLOBAL RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.fpsite {
    font-family: var(--fp-font-body);
    color: var(--fp-navy);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--fp-white);
}

body.fpsite a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
body.fpsite a:hover {
    color: var(--fp-gold);
    text-decoration: underline;
}

body.fpsite h1,
body.fpsite h2,
body.fpsite h3 {
    font-family: var(--fp-font-display);
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

body.fpsite h1 { font-size: clamp(40px, 5vw, 68px); }
body.fpsite h2 { font-size: clamp(28px, 4vw, 48px); }
body.fpsite h3 { font-size: clamp(20px, 2.5vw, 28px); }
body.fpsite h4 { font-size: 20px; font-family: var(--fp-font-body); font-weight: 700; }

body.fpsite img { max-width: 100%; height: auto; }

.skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--fp-gold);
    color: var(--fp-white);
    border-radius: 4px;
    font-weight: 700;
}

/* ==========================================================================
   2. HEADER / NAVIGATION
   Matches: header.header.container-header.full-width on focalpointcnc.com
   ========================================================================== */
.fpsite-header {
    position: relative;
    width: 100%;
    background-color: var(--fp-navy);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.fpsite-header.is-sticky {
    position: sticky;
    top: 0;
}

.fpsite-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.fpsite-header-inner {
    width: 100%;
}

.container-nav {
    display: flex;
    align-items: center;
    max-width: var(--fp-container-max);
    margin: 0 auto;
    padding: 0 40px;
    min-height: 56px;
    gap: 32px;
}

/* Logo */
.fpsite-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.fpsite-logo-img {
    max-height: 40px;
    width: auto;
}
.fpsite-logo-text {
    font-family: var(--fp-font-body);
    font-weight: 800;
    font-size: 18px;
    color: var(--fp-white);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Main nav — matches .mod-menu.mod-list.nav on live site */
.fpsite-nav {
    flex: 1;
}

.fpsite-nav .mod-menu,
.fpsite-nav ul.nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.fpsite-nav .mod-menu .nav-item,
.fpsite-nav ul.nav .nav-item {
    position: relative;
}

.fpsite-nav .mod-menu .nav-item a,
.fpsite-nav ul.nav .nav-item a {
    display: block;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--fp-white) !important;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

.fpsite-nav .mod-menu .nav-item a:hover,
.fpsite-nav ul.nav .nav-item a:hover,
.fpsite-nav .mod-menu .nav-item.active > a,
.fpsite-nav ul.nav .nav-item.current > a {
    color: var(--fp-gold) !important;
    background: rgba(255,255,255,0.06);
}

/* Dropdown sub-menus */
.fpsite-nav .nav-item .nav-child {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--fp-white);
    border-top: 3px solid var(--fp-gold);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    z-index: 1010;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 0 0 4px 4px;
}
.fpsite-nav .nav-item:hover > .nav-child,
.fpsite-nav .nav-item:focus-within > .nav-child {
    display: block;
}
.fpsite-nav .nav-child li a {
    padding: 10px 20px !important;
    color: var(--fp-navy) !important;
    font-size: 14px !important;
    background: transparent;
}
.fpsite-nav .nav-child li a:hover {
    background: var(--fp-off-white) !important;
    color: var(--fp-gold) !important;
}

/* Mobile toggle button */
.fpsite-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.fpsite-menu-toggle .toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fp-white);
    border-radius: 2px;
    transition: var(--fp-transition);
}

/* Mobile nav panel */
.fpsite-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 90vw;
    height: 100vh;
    background: var(--fp-navy);
    z-index: 2000;
    padding: 24px 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.35s;
    visibility: hidden;
    pointer-events: none;
}
.fpsite-mobile-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}
.fpsite-mobile-nav .mod-menu,
.fpsite-mobile-nav ul.nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fpsite-mobile-nav .nav-item a {
    display: block;
    padding: 14px 0;
    color: var(--fp-white) !important;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}
.fpsite-mobile-nav .nav-item a:hover { color: var(--fp-gold) !important; }
.fpsite-mobile-nav .nav-child {
    list-style: none;
    padding-left: 16px;
    margin: 4px 0;
}
.fpsite-mobile-close {
    display: block;
    background: transparent;
    border: none;
    color: var(--fp-white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    margin-bottom: 16px;
    margin-left: auto;
}

.fpsite-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1900;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.fpsite-nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* ==========================================================================
   3. TOPBAR (above header)
   ========================================================================== */
.fpsite-topbar {
    background: var(--fp-navy-dark);
    color: var(--fp-white);
    font-size: 13px;
    padding: 6px 0;
    text-align: center;
}
.fpsite-topbar a { color: var(--fp-gold); }

/* ==========================================================================
   4. BANNER / HERO MODULE POSITION
   ========================================================================== */
.fpsite-banner {
    width: 100%;
    overflow: hidden;
}

/* ==========================================================================
   5. TOP MODULE STRIP
   ========================================================================== */
.fpsite-top-strip {
    background: var(--fp-off-white);
    padding: 60px 0;
    border-bottom: 1px solid var(--fp-border);
}
.fpsite-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

/* ==========================================================================
   6. MAIN WRAPPER & LAYOUT
   ========================================================================== */
.fpsite-wrapper {
    padding: 40px 0 60px;
}

/* Full-width landing pages remove padding from wrapper */
body.landing-page-fullwidth .fpsite-wrapper {
    padding: 0;
}
body.landing-page-fullwidth .item-page {
    padding: 0 !important;
    margin: 0 !important;
}

/* Landing override helper (same as live site) */
.landing-override {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.container {
    max-width: var(--fp-container-max);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

/* Sidebar layout */
.fpsite-main-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.fpsite-component {
    flex: 1;
    min-width: 0;
}
.fpsite-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Breadcrumbs */
.fpsite-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--fp-warm-gray);
}
.fpsite-breadcrumbs a { color: var(--link-color); }
.fpsite-breadcrumbs a:hover { color: var(--fp-gold); }

/* ==========================================================================
   7. ARTICLE / CONTENT AREA
   ========================================================================== */
.fpsite-component .item-page {
    max-width: 100%;
}

/* Article heading style */
.fpsite-component h1.page-header {
    font-family: var(--fp-font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    color: var(--fp-navy);
    margin-bottom: 28px;
    letter-spacing: -0.5px;
    border: none;
    padding: 0;
}

/* ==========================================================================
   8. SECTION STYLES — Live site classes (blue, yellow, white, whtbck)
   These match the existing Joomla article HTML used on focalpointcnc.com
   ========================================================================== */
.blue {
    padding: 80px 60px;
    color: var(--fp-white);
    background-color: var(--fp-navy);
}
.yellow {
    padding: 80px 60px;
    background-color: var(--fp-gold);
    color: var(--fp-charcoal);
}
.white,
.whtbck {
    padding: 80px 60px;
    color: var(--fp-navy);
    background-color: var(--fp-white);
}

.blue h1, .blue h2, .blue h3 { color: var(--fp-white); }
.blue a { color: var(--fp-gold); }
.blue a:hover { color: var(--fp-soft-gold); }
.yellow h1, .yellow h2, .yellow h3 { color: var(--fp-charcoal); }
.white h1, .white h2, .white h3,
.whtbck h1, .whtbck h2, .whtbck h3 { color: var(--fp-navy); }

/* Table styles in article content */
.fpsite-component table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.fpsite-component table thead tr {
    background-color: var(--fp-navy);
    color: var(--fp-white);
}
.fpsite-component table thead th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}
.fpsite-component table tbody tr:nth-child(even) {
    background: var(--fp-off-white);
}
.fpsite-component table tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--fp-border);
    font-size: 15px;
}

/* ==========================================================================
   9. LANDING PAGE SECTIONS — from /request-consultation design
   ========================================================================== */

/* --- Hero / Banner Section --- */
.hero {
    position: relative;
    min-height: 95vh;
    background: linear-gradient(165deg, var(--fp-navy) 0%, var(--fp-charcoal) 100%);
    color: var(--fp-white);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='rgba(184,115,51,0.1)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)'/%3E%3C/svg%3E");
    opacity: 0.4;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184,115,51,0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    max-width: 750px;
    padding: 100px 0 80px;
}
.hero h1 .highlight {
    color: var(--fp-gold);
    font-style: italic;
}
.hero-subtitle {
    font-size: 21px;
    line-height: 1.7;
    color: var(--fp-text-muted);
    margin-bottom: 48px;
    font-weight: 400;
}
.cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- Eyebrow label --- */
.section-eyebrow,
.eyebrow {
    font-family: var(--fp-font-body);
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--fp-gold);
    margin-bottom: 20px;
    font-weight: 700;
    display: block;
}

/* --- Trust Bar --- */
.trust-bar {
    background: var(--fp-off-white);
    padding: 70px 0;
    border-bottom: 1px solid var(--fp-border);
}
.trust-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.trust-headline {
    font-family: var(--fp-font-display);
    font-size: 36px;
    color: var(--fp-navy);
    margin-bottom: 48px;
    font-weight: 400;
}
.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.6;
}
.trust-logo {
    font-family: var(--fp-font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--fp-warm-gray);
    letter-spacing: 1px;
}

/* --- Partnership / Split Layout --- */
.partnership-section {
    padding: var(--fp-section-pad);
    background: var(--fp-white);
}
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.content-block { max-width: 550px; }
.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.section-subtitle {
    font-size: 20px;
    color: var(--fp-warm-gray);
    margin-top: 20px;
    line-height: 1.7;
}
.large-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--fp-warm-gray);
    margin-bottom: 32px;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}
.feature-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--fp-border);
    font-size: 18px;
    color: var(--fp-navy);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.feature-list li:last-child { border-bottom: none; }
.check-icon {
    width: 24px;
    height: 24px;
    background: var(--fp-sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}
.image-block {
    background: ;
    border-radius: 8px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

/* --- Process Section --- */
.process-section {
    padding: var(--fp-section-pad);
    background: var(--fp-off-white);
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 60px;
}
.process-card {
    background: var(--fp-white);
    padding: 48px 40px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: var(--fp-transition);
    border-top: 4px solid transparent;
}
.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-top-color: var(--fp-gold);
}
.process-number {
    width: 60px;
    height: 60px;
    background: var(--fp-gold);
    color: var(--fp-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 28px;
}
.process-card h3 {
    font-family: var(--fp-font-display);
    font-size: 26px;
    font-weight: 400;
    color: var(--fp-navy);
    margin-bottom: 16px;
}
.process-card p {
    font-size: 17px;
    color: var(--fp-warm-gray);
    line-height: 1.7;
}

/* --- Expertise Section --- */
.expertise-section {
    padding: var(--fp-section-pad);
    background: var(--fp-navy);
    color: var(--fp-white);
}
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 60px;
}
.expertise-card {
    padding: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    border-left: 4px solid var(--fp-gold);
    transition: all 0.3s ease;
}
.expertise-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(8px);
}
.expertise-card h3 {
    font-family: var(--fp-font-display);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--fp-soft-gold);
}
.expertise-card p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--fp-text-muted);
}

/* --- Testimonial Section --- */
.testimonial-section {
    padding: var(--fp-section-pad);
    background: var(--fp-white);
}
.testimonial-card {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 60px;
    background: var(--fp-off-white);
    border-radius: 8px;
    border-left: 6px solid var(--fp-gold);
}
.quote-mark {
    font-size: 80px;
    line-height: 1;
    color: var(--fp-gold);
    opacity: 0.3;
    font-family: Georgia, serif;
    margin-bottom: 20px;
}
.testimonial-text {
    font-size: 22px;
    line-height: 1.7;
    color: var(--fp-navy);
    margin-bottom: 32px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}
.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--fp-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
}
.author-info h4 { font-size: 18px; font-weight: 700; color: var(--fp-navy); margin-bottom: 4px; }
.author-info p { font-size: 15px; color: var(--fp-warm-gray); }

/* --- Final CTA Section --- */
.final-cta {
    padding: var(--fp-section-pad);
    background: var(--fp-off-white);
}
.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 60px auto 0;
    text-align: left;
    background: var(--fp-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.form-intro {
    text-align: center;
    margin-bottom: 40px;
}
.form-intro h3 {
    font-family: var(--fp-font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--fp-navy);
    margin-bottom: 12px;
}
.form-intro p { font-size: 16px; color: var(--fp-warm-gray); }
.form-group { margin-bottom: 28px; }
.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--fp-navy);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--fp-border);
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--fp-font-body);
    background: var(--fp-white);
    color: var(--fp-navy);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--fp-gold);
    box-shadow: 0 0 0 3px rgba(220,160,5,0.15);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ==========================================================================
   10. BUTTONS
   ========================================================================== */
.btn,
.btn-outline-light,
.fpsite-component .btn {
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--fp-transition);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--fp-font-body);
    letter-spacing: 0.3px;
    line-height: 1;
}

.btn-primary,
.fpsite-component a.btn-primary {
    background: var(--fp-gold);
    color: var(--fp-white);
    box-shadow: 0 4px 16px rgba(220,160,5,0.3);
}
.btn-primary:hover {
    background: var(--fp-copper-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220,160,5,0.4);
    color: var(--fp-white) !important;
    text-decoration: none !important;
}

/* Matches live site's btn-outline-light usage inside .blue sections */
.btn-outline-light,
.blue .btn-outline-light,
.blue a.btn,
.blue a.btn-outline-light {
    background: transparent;
    color: var(--fp-white) !important;
    border: 2px solid rgba(255,255,255,0.5);
    margin-right: 12px;
    margin-top: 8px;
}
.btn-outline-light:hover,
.blue a.btn:hover {
    border-color: var(--fp-white);
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    color: var(--fp-white) !important;
    text-decoration: none !important;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    margin-top: 12px;
    justify-content: center;
}

/* ==========================================================================
   11. BOTTOM MODULE STRIP
   ========================================================================== */
.fpsite-bottom-strip {
    background: var(--fp-navy);
    padding: 60px 0;
    color: var(--fp-white);
}
.fpsite-bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.fpsite-footer {
    background: var(--fp-navy);
    color: rgba(255,255,255,0.75);
    padding: 80px 0 40px;
}
.fpsite-footer-default {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}
.fpsite-footer-brand p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 6px;
}
.fpsite-footer-brand a { color: var(--fp-gold); text-decoration: none; }
.fpsite-footer-brand a:hover { color: var(--fp-soft-gold); }
.fpsite-footer-sitename {
    font-family: var(--fp-font-display);
    font-size: 22px;
    color: var(--fp-white);
    font-weight: 400;
    margin-bottom: 16px;
}
.fpsite-footer-nav ul { list-style: none; padding: 0; margin: 0; }
.fpsite-footer-nav li { margin-bottom: 12px; }
.fpsite-footer-nav a {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.fpsite-footer-nav a:hover { color: var(--fp-gold); }
.fpsite-footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}
.fpsite-footer-powered a { color: var(--fp-gold); }

/* ==========================================================================
   13. MODULE CHROME STYLES
   ========================================================================== */

/* fp_card chrome style */
.fp-module-card {
    background: var(--fp-white);
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 32px;
    margin-bottom: 24px;
}
.fp-module-card .module-title {
    font-family: var(--fp-font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--fp-navy);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--fp-gold);
}

/* ==========================================================================
   14. SCROLL-TRIGGERED ANIMATIONS
   ========================================================================== */
.fp-anim-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fp-anim-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hero entrance animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content  { animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.eyebrow       { animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero h1       { animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-subtitle { animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.cta-group     { animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }

/* Hover lift for expertise cards */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   15. JOOMLA CORE OVERRIDES
   ========================================================================== */

/* Pagination */
.fpsite-component .pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 24px 0;
}
.fpsite-component .pagination .page-item .page-link {
    border: 2px solid var(--fp-border);
    color: var(--fp-navy);
    border-radius: 4px;
    padding: 8px 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}
.fpsite-component .pagination .page-item.active .page-link,
.fpsite-component .pagination .page-item .page-link:hover {
    background: var(--fp-navy);
    border-color: var(--fp-navy);
    color: var(--fp-white);
}

/* Search form */
.fpsite-component .search-query {
    border: 2px solid var(--fp-border);
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 16px;
    font-family: var(--fp-font-body);
}
.fpsite-component .search-query:focus {
    border-color: var(--fp-gold);
    box-shadow: 0 0 0 3px rgba(220,160,5,0.15);
    outline: none;
}

/* Tags */
.fpsite-component .tags-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 12px 0;
}
.fpsite-component .tags-list .tag a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--fp-off-white);
    border: 1px solid var(--fp-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--fp-navy);
    text-decoration: none;
    transition: all 0.2s ease;
}
.fpsite-component .tags-list .tag a:hover {
    background: var(--fp-navy);
    color: var(--fp-white);
    border-color: var(--fp-navy);
}

/* ==========================================================================
   16. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
    .container-nav { padding: 0 24px; }
    .split-layout { grid-template-columns: 1fr; gap: 50px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .expertise-grid { grid-template-columns: 1fr; }
    .fpsite-footer-default { grid-template-columns: 1fr; gap: 32px; }
    .blue, .yellow, .white, .whtbck { padding: 60px 32px; }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .fpsite-menu-toggle { display: flex; }
    .fpsite-nav { display: none; }

    .container-nav { min-height: 52px; }
    .container { padding: 0 20px; }

    .hero { min-height: auto; }
    .hero-content { padding: 60px 0 50px; }
    .hero h1 { font-size: 38px; }
    body.fpsite h2 { font-size: 28px; }
    .cta-group { flex-direction: column; gap: 12px; }
    .btn { width: 100%; justify-content: center; }

    .process-grid { grid-template-columns: 1fr; }
    .trust-logos { gap: 30px; }
    .testimonial-card { padding: 36px 24px; }
    .contact-form { padding: 32px 20px; }
    .blue, .yellow, .white, .whtbck { padding: 40px 20px; }
    .fpsite-sidebar { width: 100%; }
    .fpsite-main-layout { flex-direction: column; }
    .fpsite-wrapper { padding: 24px 0 40px; }
    .fpsite-top-grid { grid-template-columns: 1fr; }
    .fpsite-bottom-grid { grid-template-columns: 1fr; }
    .fpsite-footer-default { gap: 24px; }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
    .hero h1 { font-size: 30px; }
    .hero-subtitle { font-size: 17px; }
    .process-card, .expertise-card { padding: 28px 20px; }
    .contact-form { padding: 24px 16px; }
}
