/* =============================================================================
   RAMLabs Theme — theme.css
   Consolidated from all static HTML pages. Do not add inline <style> to templates.
   ============================================================================= */

/* ── Design Tokens ─────────────────────────────────────────────────────────── */

:root {
    --primary-blue:    #15428B;
    --secondary-green: #2E7D32;
    --accent-color:    #D4A72C;   /* gold — canonical across all pages */
    --light-gray:      #f8f9fa;
    --dark-gray:       #546E7A;
    --light-blue:      #E3F2FD;
    --light-green:     #E8F5E9;
    --font-heading:    'Montserrat', sans-serif;
    --font-body:       'Lato', sans-serif;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */

body {
    font-family: var(--font-body);
    color: #1f2d3d;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6, .fw-bold {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */

.navbar-frosted {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ── Inner Page Header (all pages except homepage) ──────────────────────────── */

.page-header {
    background: linear-gradient(135deg, var(--light-blue), var(--light-green));
    padding: 6rem 0;
}

.page-header h1 {
    color: var(--primary-blue);
}

/* ── Eyebrow Labels ─────────────────────────────────────────────────────────── */

.eyebrow {
    color: var(--secondary-green);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* ── Section Title underline ────────────────────────────────────────────────── */
/* Default: centred (inner pages) */

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-green));
    border-radius: 2px;
}

/* Left-aligned variant — homepage headings */
.section-title--left::after {
    left: 0;
    transform: none;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(21, 66, 139, 0.2);
}

.btn-primary:hover {
    background-color: #0d2a57;
    border-color: #0d2a57;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(21, 66, 139, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #1c1c1c;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(212, 167, 44, 0.22);
}

.btn-accent:hover {
    background-color: #b88800;
    border-color: #b88800;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(184, 136, 0, 0.3);
}

/* ── Logo Wall ──────────────────────────────────────────────────────────────── */

.logo-wall .client-logo {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease-in-out;
    opacity: 0.72;
}

.logo-wall .client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.footer {
    background-color: #212529;
    color: #ffffff;
}

/* =============================================================================
   HOMEPAGE — front-page.php
   ============================================================================= */

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(227, 242, 253, 0.95), rgba(227, 242, 253, 0) 42%),
        radial-gradient(circle at bottom right, rgba(232, 245, 233, 0.95), rgba(232, 245, 233, 0) 38%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #f6faf6 100%);
    padding: 7rem 0 5rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background-color: rgba(21, 66, 139, 0.08);
    border: 1px solid rgba(21, 66, 139, 0.12);
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 1.02;
    color: #0f2742;
    margin-top: 1.25rem;
}

.hero-copy {
    max-width: 680px;
    color: #536273;
    font-size: 1.08rem;
}

.hero-panel {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(16, 39, 66, 0.12);
}

.hero-panel img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.metric-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 24px rgba(16, 39, 66, 0.05);
}

.metric-card small {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dark-gray);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

/* ── Shared content cards (homepage) ────────────────────────────────────────── */

.feature-card,
.service-card,
.value-card,
.cta-card {
    height: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 10px 28px rgba(16, 39, 66, 0.06);
}

/* homepage project cards — simple, no border animation */
.project-card {
    height: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 10px 28px rgba(16, 39, 66, 0.06);
}

.feature-icon,
.service-icon,
.value-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-icon {
    color: var(--primary-blue);
    background-color: rgba(21, 66, 139, 0.1);
}

.service-icon {
    color: var(--secondary-green);
    background-color: rgba(46, 125, 50, 0.1);
}

.value-icon {
    color: #8b6a00;
    background-color: rgba(212, 167, 44, 0.16);
}

.services-section,
.impact-section {
    background: linear-gradient(135deg, #f6fbff, #f3f8f3);
}

/* Gallery cards (used on homepage Why Work section) */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(16, 39, 66, 0.12);
}

.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.1rem;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(16, 39, 66, 0) 0%, rgba(16, 39, 66, 0.86) 100%);
}

.contact-panel {
    background-color: #102742;
    color: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 16px 36px rgba(16, 39, 66, 0.18);
}

.contact-panel a {
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 5.5rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero-panel img {
        min-height: 320px;
    }
}

/* =============================================================================
   SERVICES PAGE — page-services.php
   ============================================================================= */

.service-card-detailed {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.service-card-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--secondary-green));
    transition: all 0.3s ease;
}

.service-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-card-detailed:hover::before {
    width: 100%;
    opacity: 0.1;
}

.section-icon {
    font-size: 2.5rem;
    color: var(--secondary-green);
}

/* =============================================================================
   PROJECTS PAGE — page-projects.php
   ============================================================================= */

/* Use .project-listing-card to avoid conflict with homepage .project-card */
.project-listing-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--secondary-green));
    transition: all 0.3s ease;
}

.project-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.project-listing-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

/* =============================================================================
   INSIGHTS PAGE — page-insights.php
   ============================================================================= */

.insight-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.insight-card .card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 200px;
    object-fit: cover;
}

.category-tag {
    display: inline-block;
    background-color: #e3f2fd;
    color: #0d47a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* =============================================================================
   TEAM PAGE — page-team.php
   ============================================================================= */

.team-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--secondary-green));
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.team-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--light-gray);
    transition: transform 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

/* =============================================================================
   GALLERY PAGE — page-gallery.php
   ============================================================================= */

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   JOBS PAGE — page-jobs.php
   ============================================================================= */

.info-card,
.track-card,
.opening-card {
    height: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 10px 28px rgba(16, 39, 66, 0.06);
}

.track-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.featured-card {
    background: linear-gradient(135deg, #102742, var(--primary-blue));
    color: #ffffff;
}

.featured-card p {
    color: rgba(255, 255, 255, 0.88);
}

.icon-tile {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    background-color: rgba(21, 66, 139, 0.1);
    color: var(--primary-blue);
}

/* =============================================================================
   CONTACT PAGE — page-contact.php
   ============================================================================= */

.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(21, 66, 139, 0.25);
}

/* Contact Form 7 / Fluent Forms — force same styling as native .form-control */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-textarea,
.ff-el-form-control {
    display: block;
    width: 100%;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ced4da;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-textarea:focus,
.ff-el-form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(21, 66, 139, 0.25);
    outline: none;
}

.wpcf7-submit {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(21, 66, 139, 0.2);
    cursor: pointer;
}

.wpcf7-submit:hover {
    background-color: #0d2a57;
    border-color: #0d2a57;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(21, 66, 139, 0.3);
}
