/*
Theme Name: JSP Academy
Theme URI: https://jspacademy.co.uk
Author: JSP Academy
Author URI: https://jspacademy.co.uk
Description: Custom one-page WordPress theme for JSP Academy. High-quality PE, sport coaching, mentoring and child development programmes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: jsp-academy
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --navy: #0d1b3e;
    --navy-mid: #1a2d5a;
    --gold: #f5a800;
    --gold-light: #ffc840;
    --white: #ffffff;
    --off-white: #f5f6f8;
    --text: #1a1a2e;
    --text-light: #5a6480;
    --nav-pad-x: clamp(0.7rem, 1.8vw, 1.4rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--nav-pad-x);
    height: 64px;
    background: rgba(13, 27, 62, 0.97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--gold);
    overflow: visible;
}

@supports not ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
    .site-nav {
        background: rgba(13, 27, 62, 0.995);
    }
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    flex-shrink: 0;
}

.nav-logo-picture {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 0;
    transform: translateY(18px);
}

.nav-logo-img {
    width: auto;
    max-width: min(52vw, 320px);
    max-height: 108px;
    object-fit: contain;
    opacity: 0.94;
    filter: saturate(0.95) brightness(1.02);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
}

.site-nav.is-scrolled .nav-logo-picture {
    transform: translateY(10px);
}

.site-nav.is-scrolled .nav-logo-img {
    max-height: 78px;
    max-width: min(44vw, 240px);
}

/* Safety: if any plugin/clone injects another nav-logo, hide extras */
.site-nav .nav-logo+.nav-logo {
    display: none !important;
}

/* Desktop logo alignment over hero heading (does not alter menu layout) */
@media (min-width: 1025px) {
    .site-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 clamp(0.9rem, 1.9vw, 2rem);
    }

    .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
        gap: clamp(0.75rem, 1.5vw, 1.8rem);
        z-index: 115;
    }

    .nav-cta {
        position: relative;
        z-index: 120;
    }

    .nav-logo {
        position: absolute;
        left: max(5%, env(safe-area-inset-left));
        top: 8px;
        transform: none;
        height: auto;
        z-index: 105;
    }

    .nav-logo-picture {
        transform: none;
    }

    .nav-logo-img {
        max-height: clamp(112px, 9.2vw, 168px);
        max-width: min(26vw, 300px);
    }

    .site-nav.is-scrolled .nav-logo {
        top: 4px;
    }

    .site-nav.is-scrolled .nav-logo-picture {
        transform: none;
    }

    .site-nav.is-scrolled .nav-logo-img {
        max-height: clamp(78px, 6.4vw, 110px);
        max-width: min(20vw, 220px);
    }
}

/* Small desktop: scale logo down sooner to avoid hero-title overlap */
@media (min-width: 1025px) and (max-width: 1279px) {
    .nav-logo {
        top: 4px;
    }

    .nav-logo-img {
        max-height: clamp(92px, 8.2vw, 124px);
        max-width: min(24vw, 240px);
    }

    .site-nav.is-scrolled .nav-logo-img {
        max-height: clamp(70px, 5.8vw, 92px);
        max-width: min(18vw, 180px);
    }
}

/* Mid desktop: smooth transition before full desktop logo sizing */
@media (min-width: 1280px) and (max-width: 1536px) {
    .nav-logo-img {
        max-height: clamp(104px, 8.8vw, 146px);
        max-width: min(25vw, 280px);
    }

    .site-nav.is-scrolled .nav-logo-img {
        max-height: clamp(74px, 5.9vw, 100px);
        max-width: min(19vw, 205px);
    }
}

/* Keep logo render stable across browsers (avoid blend-mode ghosting artifacts) */
.nav-logo-img {
    mix-blend-mode: normal;
    opacity: 0.96;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-cta {
    background: var(--gold);
    color: var(--navy);
    padding: 0.55rem 1.4rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
    text-decoration: none;
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding: 1.5rem 5%;
    flex-direction: column;
    gap: 1.2rem;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s;
}

.nav-mobile a:hover {
    color: var(--gold);
}

.nav-mobile .nav-mobile-cta.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.35rem;
    min-height: 44px;
    border-bottom: none;
    text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    min-height: 92vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 100px 5% 60px;
    background: var(--navy);
    background-size: cover !important;
    background-repeat: no-repeat;
    background-position: center 40%;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 12, 18, 0.45) 0%, rgba(10, 12, 18, 0.28) 55%, rgba(10, 12, 18, 0.08) 100%);
}

/* Placeholder gradient when no image */
.hero-overlay-only {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0a2a6e 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: 0;
    text-align: left;
}

.hero-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    margin-bottom: 1.5rem;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title em {
    color: var(--gold);
    font-style: normal;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 2.5rem;
    margin-left: 0;
    margin-right: 0;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 168, 0, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-stats {
    position: absolute;
    bottom: 40px;
    left: 5%;
    transform: none;
    display: flex;
    gap: 3rem;
    z-index: 2;
    justify-content: flex-start;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
section {
    padding: 90px 5%;
}

.section-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 1rem;
}

@supports (text-wrap: balance) {

    .section-title,
    .hero-title {
        text-wrap: balance;
    }
}

.section-title.light {
    color: var(--white);
}

.section-body {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.section-body.light {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
    background: var(--off-white);
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-header .section-body {
    margin: 0 auto;
}

.services-photo-wrap {
    max-width: 1100px;
    margin: 0 auto 3rem;
    border-radius: 10px;
    overflow: hidden;
    height: 340px;
    position: relative;
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
}

.services-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.services-photo-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(0deg, rgba(13, 27, 62, 0.6) 0%, transparent 100%);
    pointer-events: none;
}

.services-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-mid) 0%, #1e3a7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-photo-placeholder span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem 1.8rem;
    border-top: 4px solid var(--gold);
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 124px;
    height: 124px;
    background: #e7efff;
    border: 1px solid #c9d8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.service-icon img {
    width: 108px;
    height: 108px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .service-icon {
        width: 84px;
        height: 84px;
    }

    .service-icon img {
        width: 68px;
        height: 68px;
    }
}

.service-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.extras-strip {
    background: var(--navy);
    border-radius: 8px;
    padding: 1.2rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 2.5rem auto 0;
}

.extras-strip span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.extras-strip .dot {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

/* ============================================================
   WHY JSP
   ============================================================ */
#why {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.why-photo {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.why-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.why-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1a3a 0%, #1a3060 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(0deg, var(--navy) 0%, rgba(13, 27, 62, 0.3) 100%);
    pointer-events: none;
}

.why-content {
    padding: 60px 5% 90px;
}

.why-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 168, 0, 0.2);
    border-radius: 8px;
    padding: 1.4rem 1.2rem;
    transition: background 0.25s, border-color 0.25s;
}

.why-card:hover {
    background: rgba(245, 168, 0, 0.08);
    border-color: var(--gold);
}

.why-card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.7rem;
}

.why-card h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.1;
}

/* ============================================================
   PARTNER / SCHOOLS
   ============================================================ */
#partner {
    background: var(--white);
    padding: 0;
}

.partner-photo {
    width: 100%;
    height: 520px;
    position: relative;
    overflow: hidden;
}

.partner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.partner-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3266 100%);
}

.partner-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(0deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.partner-content {
    padding: 20px 5% 90px;
}

.partner-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-list {
    list-style: none;
    margin-top: 1.5rem;
}

.partner-list li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.partner-list li:last-child {
    border-bottom: none;
}

.check {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 900;
}

.trust-box {
    background: var(--navy);
    border-radius: 10px;
    padding: 2.5rem;
    color: var(--white);
}

.trust-box h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.trust-box p {
    font-size: 0.97rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.trust-badge {
    display: inline-block;
    background: rgba(245, 168, 0, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
    background: var(--off-white);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-header .section-body {
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem 1.8rem;
    border-left: 4px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.testimonial-quote {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--gold);
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.97rem;
    color: var(--navy);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================================
   MEET THE TEAM
   ============================================================ */
#team {
    background: var(--white);
}

.team-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-header .section-body {
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.2rem;
    border: 4px solid var(--gold);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.team-card--john .team-photo img {
    transform: translateY(0);
    object-position: center 24%;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--navy-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.team-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.team-bio {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
    background: linear-gradient(135deg, var(--navy) 0%, #0a1528 100%);
    text-align: center;
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 168, 0, 0.07) 0%, transparent 70%);
}

#contact .section-tag,
#contact .section-title,
#contact .section-body {
    position: relative;
    z-index: 1;
}

#contact .section-title {
    color: var(--white);
    margin-bottom: 0.8rem;
}

#contact .section-body {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 2rem;
    max-width: 480px;
}

.contact-cards {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(245, 168, 0, 0.25);
    border-radius: 10px;
    padding: 2rem 2.5rem;
    min-width: 220px;
    transition: background 0.25s, border-color 0.25s;
}

.contact-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    background: rgba(245, 168, 0, 0.1);
    border-color: var(--gold);
}

.contact-card-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.contact-card .icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    color: var(--gold);
    flex: 0 0 42px;
    overflow: hidden;
    line-height: 0;
}

.contact-card-whatsapp .icon {
    color: #25D366;
}

.contact-card .icon img {
    width: 100%;
    height: 100%;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.contact-card .label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.contact-card .value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    display: block;
}

.contact-card:hover .value,
.contact-card:focus-visible .value {
    color: var(--gold-light);
}

/* Contact form container */
.jsp-contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
    z-index: 1;
    text-align: left;
}

/* Native contact form */
.contact-native-form .cnf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-native-form .cnf-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.1rem;
}

.contact-native-form .cnf-consent-group {
    margin-top: 0.2rem;
}

.contact-native-form .cnf-consent-label {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.45;
    margin: 0;
}

.contact-native-form .cnf-consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--gold);
}

.contact-native-form .cnf-consent-label a {
    color: var(--gold-light);
    text-decoration: underline;
}

.contact-native-form label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.contact-native-form .cnf-required {
    color: var(--gold);
    margin-left: 2px;
}

.contact-native-form .cnf-optional {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8rem;
}

.contact-native-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.contact-native-form textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 168, 0, 0.35);
    color: var(--white);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    min-height: 3.125rem;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.contact-native-form input:focus,
.contact-native-form textarea:focus {
    border-color: var(--gold);
    outline: none;
    background: rgba(255, 255, 255, 0.12);
}

.contact-native-form input::placeholder,
.contact-native-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-native-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.contact-native-form .cnf-consent-label input[type="checkbox"] {
    -webkit-appearance: auto;
    appearance: auto;
    display: block;
    flex-shrink: 0;
    align-self: start;
    margin: 0.2rem 0 0;
}

.cnf-submit {
    background: var(--gold);
    color: var(--navy);
    border: none;
    cursor: pointer;
    padding: 0.9rem 2.5rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: background 0.2s, transform 0.15s;
    margin-top: 0.5rem;
}

.cnf-submit:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.cnf-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.cnf-response {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
}

.cnf-response:not(:empty) {
    display: block;
}

.cnf-response--success {
    background: rgba(80, 200, 120, 0.15);
    border: 1px solid rgba(80, 200, 120, 0.4);
    color: #7de8a0;
}

.cnf-response--error {
    background: rgba(220, 60, 60, 0.15);
    border: 1px solid rgba(220, 60, 60, 0.4);
    color: #f08080;
}

@media (max-width: 600px) {
    .contact-native-form .cnf-row {
        grid-template-columns: 1fr;
    }
}

/* WPForms / FormLayer overrides (if plugin active) */
.jsp-contact-form .wpforms-container,
.jsp-contact-form .flayer-form-wrap,
.jsp-contact-form .formlayer-form-wrapper {
    background: transparent;
}

.jsp-contact-form .formlayer-form,
.jsp-contact-form .formlayer-form-fields-wrapper {
    width: 100%;
}

.jsp-contact-form .formlayer-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.jsp-contact-form .formlayer-field-wrap.label-left,
.jsp-contact-form .formlayer-field-wrap.label-right {
    align-items: stretch;
    gap: 0.45rem;
}

.jsp-contact-form .formlayer-field-wrap.label-left .formlayer-label,
.jsp-contact-form .formlayer-field-wrap.label-right .formlayer-label {
    width: auto;
    min-width: 0;
    margin-bottom: 0;
    padding-top: 0;
}

.jsp-contact-form .formlayer-field-wrap.label-left .formlayer-help-text,
.jsp-contact-form .formlayer-field-wrap.label-right .formlayer-help-text {
    margin-left: 0;
}

.jsp-contact-form .formlayer-form label,
.jsp-contact-form .formlayer-form .formlayer-label {
    display: block;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0;
}

.jsp-contact-form .formlayer-form input[type="text"],
.jsp-contact-form .formlayer-form input[type="email"],
.jsp-contact-form .formlayer-form input[type="number"],
.jsp-contact-form .formlayer-form input[type="tel"],
.jsp-contact-form .formlayer-form input[type="date"],
.jsp-contact-form .formlayer-form input[type="password"],
.jsp-contact-form .formlayer-form input[type="url"],
.jsp-contact-form .formlayer-form select,
.jsp-contact-form .formlayer-form textarea,
.jsp-contact-form .formlayer-form .formlayer-input:not([type="checkbox"]):not([type="radio"]) {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(245, 168, 0, 0.35) !important;
    color: var(--white) !important;
    border-radius: 4px !important;
    padding: 0.75rem 1rem !important;
    min-height: 3.125rem;
    line-height: 1.4;
    font-family: 'Barlow', sans-serif !important;
    font-size: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.jsp-contact-form .formlayer-form select,
.jsp-contact-form .formlayer-form input[type="date"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-left: 2.75rem !important;
    padding-right: 2.75rem !important;
}

.jsp-contact-form .formlayer-form textarea {
    min-height: 120px;
    line-height: 1.6;
    resize: vertical;
}

.jsp-contact-form .formlayer-select-wrap .dashicons,
.jsp-contact-form .formlayer-date-wrap .dashicons {
    left: 1rem;
    color: rgba(255, 255, 255, 0.55);
}

.jsp-contact-form .formlayer-form input:focus,
.jsp-contact-form .formlayer-form textarea:focus,
.jsp-contact-form .formlayer-form select:focus,
.jsp-contact-form .formlayer-form .formlayer-input:focus {
    border-color: var(--gold) !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    transform: none !important;
}

.jsp-contact-form .formlayer-option-label,
.jsp-contact-form .formlayer-terms-wrap,
.jsp-contact-form .formlayer-gdpr-wrap {
    align-items: flex-start !important;
}

.jsp-contact-form .formlayer-option-label input[type="radio"],
.jsp-contact-form .formlayer-option-label input[type="checkbox"],
.jsp-contact-form .formlayer-terms-wrap input[type="checkbox"],
.jsp-contact-form .formlayer-gdpr-wrap input[type="checkbox"] {
    margin: 0.2rem 0 0 !important;
}

.jsp-contact-form .formlayer-help-text,
.jsp-contact-form .formlayer-sub-label,
.jsp-contact-form .formlayer-option-label span,
.jsp-contact-form .formlayer-terms-label,
.jsp-contact-form .formlayer-gdpr-label,
.jsp-contact-form .formlayer-gdpr-wrap .formlayer-gdpr-info span,
.jsp-contact-form .formlayer-gdpr-desc {
    color: rgba(255, 255, 255, 0.72) !important;
}

.jsp-contact-form .wpforms-field input,
.jsp-contact-form .wpforms-field textarea,
.jsp-contact-form .wpforms-field select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(245, 168, 0, 0.35) !important;
    color: var(--white) !important;
    border-radius: 4px !important;
    padding: 0.75rem 1rem !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 1rem !important;
    transition: border-color 0.2s !important;
}

.jsp-contact-form .wpforms-field input:focus,
.jsp-contact-form .wpforms-field textarea:focus {
    border-color: var(--gold) !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.jsp-contact-form .wpforms-field input::placeholder,
.jsp-contact-form .wpforms-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.jsp-contact-form .wpforms-field label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.jsp-contact-form .wpforms-submit-container button {
    background: var(--gold) !important;
    color: var(--navy) !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.9rem 2.5rem !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 4px !important;
    transition: background 0.2s, transform 0.15s !important;
}

.jsp-contact-form .wpforms-submit-container button:hover {
    background: var(--gold-light) !important;
    transform: translateY(-2px) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #070f20;
    padding: 2rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 3px solid var(--gold);
    margin-top: auto;
}

.footer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--white);
}

.footer-logo span {
    color: var(--gold);
}

.site-footer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-operational-areas {
    font-size: 0.72rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55) !important;
    margin-top: -0.35rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.footer-cookie-settings {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
    font-family: inherit;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
    color: var(--gold);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>* {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.hero-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content>*:nth-child(2) {
    animation-delay: 0.25s;
}

.hero-content>*:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-content>*:nth-child(4) {
    animation-delay: 0.55s;
}

.hero-stats {
    opacity: 0;
    animation: fadeUp 0.7s 0.8s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .hero-content>*,
    .hero-stats {
        opacity: 1;
    }
}

@media (hover: none) and (pointer: coarse) {

    .service-card:hover,
    .contact-card:hover,
    .nav-cta:hover,
    .btn-primary:hover,
    .btn-outline:hover,
    .why-card:hover {
        transform: none;
        box-shadow: none;
        border-color: inherit;
        color: inherit;
    }

    .nav-mobile a,
    .btn-primary,
    .btn-outline,
    .contact-card a.value {
        min-height: 44px;
    }
}

@media (forced-colors: active) {

    .site-nav,
    .service-card,
    .testimonial-card,
    .contact-card,
    .trust-box,
    .why-card {
        border: 1px solid CanvasText;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .site-nav {
        justify-content: space-between;
        padding: 0 max(0.8rem, env(safe-area-inset-right)) 0 max(0.8rem, env(safe-area-inset-left));
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    #hero {
        background-size: cover !important;
    }

    .nav-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        height: 64px;
        z-index: 101;
    }

    .nav-toggle {
        gap: 4px;
        padding: 2px;
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-logo-picture {
        transform: none;
    }

    .nav-logo-img {
        max-height: clamp(54px, 9vw, 74px);
        max-width: min(55vw, 220px);
    }

    .site-nav.is-scrolled .nav-logo-picture {
        transform: none;
    }

    .site-nav.is-scrolled .nav-logo-img {
        max-height: clamp(50px, 8vw, 66px);
        max-width: min(52vw, 190px);
    }

    .why-inner,
    .partner-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section-body {
        max-width: 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        justify-items: center;
        width: min(100%, 560px);
    }

    .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
    }

    .stat-num {
        min-height: 1em;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .stat-label {
        min-height: 2.4em;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        text-align: center;
        line-height: 1.2;
        padding-inline: 0.2rem;
    }
}

/* Tablet portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 102;
    }

    section {
        padding: 72px 5%;
    }

    .hero-content {
        max-width: 680px;
    }

    .hero-title {
        font-size: clamp(3rem, 8vw, 4.6rem);
    }

    .hero-subtitle {
        font-size: 1.06rem;
        line-height: 1.65;
    }

    .hero-stats {
        position: static;
        margin-top: 2.2rem;
        gap: 2.4rem;
        justify-content: flex-start;
    }

    .services-grid,
    .testimonials-grid,
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card {
        min-width: 260px;
    }
}

/* Tablet landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 102;
        gap: 3px;
        padding: 2px;
    }

    .nav-toggle span {
        width: 18px;
        height: 2px;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .nav-mobile {
        padding: 0.9rem 4%;
        gap: 0.55rem;
    }

    .nav-mobile a {
        font-size: 0.95rem;
        letter-spacing: 0.035em;
        padding: 0.34rem 0;
    }

    .site-nav {
        height: 64px;
        justify-content: space-between;
    }

    #hero {
        min-height: 0;
        padding: 124px 5% 46px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 5.8vw, 4.4rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.8rem;
    }

    .hero-stats {
        position: static;
        margin-top: 1.4rem;
        gap: 1.8rem;
        justify-content: flex-start;
    }

    .services-photo-wrap {
        height: 240px;
    }

    .why-photo,
    .partner-photo {
        height: 350px;
    }

    .contact-cards {
        gap: 1rem;
    }
}

/* Mobile shared */
@media (max-width: 767px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 102;
    }

    .nav-mobile {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .nav-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        height: 64px;
        z-index: 101;
    }

    .nav-logo-picture {
        transform: none;
    }

    .nav-logo-img {
        max-height: clamp(54px, 9vw, 74px);
        max-width: min(55vw, 220px);
    }

    .site-nav.is-scrolled .nav-logo-picture {
        transform: none;
    }

    .site-nav.is-scrolled .nav-logo-img {
        max-height: clamp(50px, 8vw, 66px);
        max-width: min(52vw, 190px);
    }

    section {
        padding: 64px 5%;
    }

    .services-photo-wrap {
        height: 220px;
    }

    .why-photo {
        height: 280px;
    }

    .partner-photo {
        height: 360px;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .extras-strip {
        gap: 0.6rem;
        justify-content: center;
        text-align: center;
    }

    .extras-strip .dot {
        display: none;
    }

    .extras-strip span:not(.dot) {
        width: 100%;
        text-align: center;
    }
}

/* Mobile portrait */
@media (max-width: 767px) and (orientation: portrait) {
    #hero {
        min-height: 100svh;
        padding: 150px 5% 54px;
    }

    .hero-title {
        font-size: clamp(2.35rem, 11vw, 3.5rem);
        line-height: 0.98;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.62;
        margin-bottom: 1.7rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-stats {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: static;
        margin-top: 1.8rem;
        gap: 0.75rem;
        justify-content: flex-start;
        width: 100%;
    }

    .hero-stats .stat {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .hero-stats .stat-num,
    .hero-stats .stat-label {
        min-height: 0;
        justify-content: flex-start;
        text-align: left;
        padding-inline: 0;
    }

    .services-grid,
    .why-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        margin-bottom: 2.2rem;
    }

    .contact-card {
        min-width: 0;
        width: 100%;
        padding: 1.35rem 1.2rem;
    }

    .contact-card .value {
        word-break: break-word;
    }
}

/* Small phones portrait (iPhone SE / compact Android) */
@media (max-width: 360px) and (orientation: portrait) {
    .site-nav {
        height: 64px;
    }

    #hero {
        padding: 140px 5% 42px;
    }

    .hero-title {
        font-size: clamp(2rem, 11vw, 2.7rem);
    }

    .hero-subtitle {
        font-size: 0.94rem;
    }

    .stat-num {
        font-size: 1.9rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }
}

/* Mid-size phones portrait (iPhone 12/13/14/15 and similar Android) */
@media (min-width: 361px) and (max-width: 430px) and (orientation: portrait) {
    #hero {
        padding: 146px 5% 50px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.1rem);
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem 1.25rem;
    }
}

/* Large phones portrait (Plus/Max Android and iPhone Pro Max class) */
@media (min-width: 431px) and (max-width: 767px) and (orientation: portrait) {
    .hero-content {
        max-width: 95%;
    }

    .hero-btns {
        flex-direction: row;
    }

    .btn-primary,
    .btn-outline {
        width: auto;
        min-width: 190px;
    }
}

/* Mobile landscape */
@media (max-width: 767px) and (orientation: landscape) {
    .site-nav {
        height: 62px;
    }

    .nav-toggle {
        gap: 3px;
        padding: 2px;
    }

    .nav-toggle span {
        width: 18px;
        height: 2px;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .nav-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        height: 62px;
        z-index: 101;
    }

    .nav-logo-picture {
        transform: none;
    }

    .nav-logo-img {
        max-height: clamp(48px, 8vw, 66px);
        max-width: min(52vw, 210px);
    }

    .site-nav.is-scrolled .nav-logo-picture {
        transform: none;
    }

    .site-nav.is-scrolled .nav-logo-img {
        max-height: clamp(44px, 7vw, 58px);
        max-width: min(48vw, 180px);
    }

    .nav-mobile {
        top: 62px;
        max-height: calc(100vh - 62px);
        padding: 0.72rem 4%;
        gap: 0.45rem;
    }

    .nav-mobile a {
        font-size: 0.88rem;
        letter-spacing: 0.03em;
        padding: 0.24rem 0;
    }

    #hero {
        min-height: 0;
        padding: 112px 5% 32px;
    }

    .hero-content {
        max-width: 90%;
    }

    .hero-tag {
        margin-bottom: 0.9rem;
    }

    .hero-title {
        font-size: clamp(2.1rem, 6.8vw, 3rem);
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .hero-btns {
        gap: 0.6rem;
    }

    .btn-primary,
    .btn-outline {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        min-height: 42px;
    }

    .hero-stats {
        position: static;
        margin-top: 0.9rem;
        gap: 1.1rem 1.6rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .stat-num {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .services-photo-wrap,
    .why-photo,
    .partner-photo {
        height: 300px;
    }

    .services-grid,
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.35rem 1.2rem;
    }

    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-cards {
        gap: 0.8rem;
    }

    .contact-card {
        min-width: 200px;
        padding: 1.2rem 1rem;
    }
}

/* Very short landscape heights (phones in landscape browser UI-open states) */
@media (max-width: 915px) and (orientation: landscape) and (max-height: 500px) {
    .site-nav {
        height: 58px;
    }

    .nav-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        height: 58px;
        z-index: 101;
    }

    .nav-logo-picture {
        transform: none;
    }

    .nav-logo-img {
        max-height: clamp(44px, 7vw, 58px);
        max-width: min(48vw, 180px);
    }

    .site-nav.is-scrolled .nav-logo-picture {
        transform: none;
    }

    .site-nav.is-scrolled .nav-logo-img {
        max-height: clamp(40px, 6.5vw, 54px);
        max-width: min(45vw, 160px);
    }

    .nav-mobile {
        top: 58px;
        max-height: calc(100vh - 58px);
        padding: 0.6rem 3.8%;
        gap: 0.35rem;
    }

    .nav-mobile a {
        font-size: 0.82rem;
        letter-spacing: 0.028em;
        padding: 0.18rem 0;
    }

    #hero {
        padding: 104px 5% 24px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 5.4vw, 2.5rem);
        margin-bottom: 0.55rem;
    }

    .hero-subtitle {
        margin-bottom: 0.7rem;
        font-size: 0.9rem;
    }
}

/* Foldables / ultra-narrow devices portrait */
@media (max-width: 320px) and (orientation: portrait) {
    .site-nav {
        height: 60px;
    }

    .nav-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        height: 60px;
        z-index: 101;
    }

    .nav-logo-picture {
        transform: none;
    }

    .nav-logo-img {
        max-height: clamp(44px, 12vw, 58px);
        max-width: min(72vw, 180px);
    }

    .site-nav.is-scrolled .nav-logo-picture {
        transform: none;
    }

    .site-nav.is-scrolled .nav-logo-img {
        max-height: clamp(40px, 10.5vw, 52px);
        max-width: min(68vw, 160px);
    }

    #hero {
        padding: 132px 4.5% 38px;
    }

    .hero-tag {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        padding: 0.3rem 0.7rem;
    }

    .hero-title {
        font-size: clamp(1.85rem, 10.5vw, 2.3rem);
    }

    .hero-subtitle,
    .section-body,
    .team-bio,
    .service-card p,
    .testimonial-quote {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .btn-primary,
    .btn-outline {
        padding: 0.7rem 0.9rem;
        font-size: 0.84rem;
    }
}

/* iPad Mini / Air portrait profile */
@media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {
    .hero-title {
        font-size: clamp(3.1rem, 7.5vw, 4.3rem);
    }

    .hero-subtitle {
        max-width: 620px;
    }

    .service-card,
    .testimonial-card,
    .contact-card {
        padding: 1.75rem 1.4rem;
    }
}

/* iPad Pro / large tablet landscape profile */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
    #hero {
        min-height: 82vh;
        padding: 102px 5% 46px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-title {
        font-size: clamp(3.6rem, 5.2vw, 4.8rem);
    }

    .hero-stats {
        bottom: 24px;
        gap: 2.2rem;
    }

    .services-grid,
    .testimonials-grid,
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Small-to-mid desktop (1025-1366px): ensure hero-stats layout correct */
@media (min-width: 1025px) and (max-width: 1366px) {
    .hero-stats {
        flex-wrap: nowrap;
        gap: 2rem;
        align-items: flex-start;
    }

    .stat {
        flex: 0 1 auto;
        text-align: left;
    }
}

/* Large desktop / ultrawide hero scaling */
@media (min-width: 1367px) and (max-width: 1919px) {
    #hero {
        min-height: clamp(700px, 76vh, 880px);
        padding: 166px 5% 60px;
        background-position: center 38%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.2rem;
        bottom: 60px;
        left: calc(8% + 320px);
    }

    .partner-photo {
        height: clamp(580px, 66vh, 820px);
        background-position: center 35% !important;
    }
}

@media (min-width: 1920px) and (max-width: 2559px) {
    #hero {
        min-height: clamp(620px, 68vh, 780px);
        padding: 186px 5% 62px;
        background-position: center 35%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.2rem;
        bottom: 70px;
        left: calc(9% + 320px);
    }

    .partner-photo {
        height: clamp(640px, 70vh, 880px);
        background-position: center 30% !important;
    }
}

@media (min-width: 2560px) {
    #hero {
        min-height: clamp(560px, 62vh, 720px);
        padding: 202px 5% 64px;
        background-position: center 32%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.2rem;
        bottom: 80px;
        left: calc(10% + 320px);
    }

    .partner-photo {
        height: clamp(700px, 72vh, 940px);
        background-position: center 26% !important;
    }
}

/* Firefox-specific layout polish */
@supports (-moz-appearance: none) {

    .hero-title,
    .section-title,
    .team-name,
    .service-card h3,
    .why-card h4,
    .trust-box h3 {
        letter-spacing: 0.01em;
    }

    .contact-card .value,
    .partner-list li,
    .footer-links a {
        overflow-wrap: anywhere;
    }
}

/* Dynamic viewport on modern mobile browsers (iOS Safari + Android Chrome) */
@supports (height: 100dvh) {
    @media (max-width: 767px) and (orientation: portrait) {
        #hero {
            min-height: 100dvh;
        }
    }
}

/* iPad / tablets with dynamic safe area (Safari on iPadOS) */
@supports (padding: max(0px)) {
    .site-nav {
        padding-left: max(var(--nav-pad-x), env(safe-area-inset-left));
        padding-right: max(var(--nav-pad-x), env(safe-area-inset-right));
    }

    .site-footer {
        padding-left: max(5%, env(safe-area-inset-left));
        padding-right: max(5%, env(safe-area-inset-right));
    }

    @media (max-width: 767px) {

        #hero,
        section {
            padding-left: max(5%, env(safe-area-inset-left));
            padding-right: max(5%, env(safe-area-inset-right));
        }
    }
}


/* ─── Contact Method Popup ───────────────────────────────────────────── */
.contact-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.contact-popup[hidden] {
    display: none;
}

.contact-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 15, 35, 0.75);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.contact-popup-panel {
    position: relative;
    background: var(--white, #fff);
    border-radius: 12px;
    padding: 2rem 1.75rem 1.75rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: contact-popup-in 0.22s ease;
}

@keyframes contact-popup-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-light, #666);
    line-height: 1;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.contact-popup-close:hover,
.contact-popup-close:focus-visible {
    color: var(--navy, #0a1628);
    background: var(--off-white, #f5f5f5);
    outline: none;
}

.contact-popup-title {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy, #0a1628);
    text-align: center;
}

.contact-popup-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-popup-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s, transform 0.15s;
}

.contact-popup-option:hover,
.contact-popup-option:focus-visible {
    opacity: 0.88;
    transform: translateX(3px);
    outline: 2px solid var(--gold, #d4a017);
    outline-offset: 2px;
}

.contact-popup-phone {
    background: var(--navy, #0a1628);
    color: var(--white, #fff);
}

.contact-popup-whatsapp {
    background: #25d366;
    color: #fff;
}

.contact-popup-email {
    background: var(--gold, #d4a017);
    color: var(--navy, #0a1628);
}

.contact-popup-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 42px;
    justify-content: center;
}

.contact-popup-icon svg {
    display: block;
}

.contact-popup-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.contact-popup-label {
    font-size: 1.15rem;
    font-weight: 700;
}

.contact-popup-detail {
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.8;
    margin-left: auto;
}

/* ============================================================
   GENERIC PAGE TEMPLATE (AUTO PLACEHOLDERS)
   ============================================================ */
.jsp-page {
    padding: 120px 5% 90px;
    background: linear-gradient(135deg, #0a152e 0%, #12224a 100%);
    min-height: 70vh;
    width: 100%;
    flex: 1 0 auto;
}

.jsp-page-article {
    max-width: 1100px;
    margin: 0 auto;
}

.jsp-page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: 10px;
    padding: 2.2rem 2rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--gold);
}

.jsp-page-kicker {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.55rem;
}

.jsp-page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 0.7rem;
}

.jsp-page-intro {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    margin: 0;
}

.jsp-page-content,
.jsp-page-placeholder {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.jsp-page-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.jsp-page-media-placeholder {
    min-height: 180px;
    border-radius: 8px;
    border: 1px solid rgba(245, 168, 0, 0.45);
    background: linear-gradient(145deg, #0d1b3e 0%, #1a2d5a 55%, #0f234f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.jsp-page-media-placeholder span {
    font-family: 'Barlow Condensed', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
}

.jsp-page-content {
    color: var(--text);
    line-height: 1.7;
}

.jsp-page-content>*+* {
    margin-top: 1rem;
}

.jsp-page-content h2,
.jsp-page-content h3 {
    color: var(--navy);
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.jsp-page-blocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.jsp-page-block {
    border: 1px solid rgba(13, 27, 62, 0.12);
    border-top: 4px solid var(--gold);
    border-radius: 8px;
    padding: 1.15rem;
    background: #fff;
}

.jsp-page-block h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 0.5rem;
}

.jsp-page-block p,
.jsp-page-block li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.jsp-page-block ul {
    padding-left: 1.1rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .jsp-page {
        padding: 104px 5% 70px;
    }

    .jsp-page-media-grid {
        grid-template-columns: 1fr;
    }

    .jsp-page-blocks {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .jsp-page {
        padding: 90px 5% 56px;
    }

    .jsp-page-hero,
    .jsp-page-content,
    .jsp-page-placeholder {
        padding: 1.35rem;
    }

    .jsp-page-blocks {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(7, 14, 32, 0.52);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-inner {
    width: min(100%, 700px);
    background: var(--white);
    border: 3px solid var(--gold);
    border-radius: 14px;
    padding: 1.4rem 1.3rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.cookie-banner-logo-wrap {
    display: flex;
    justify-content: center;
}

.cookie-banner-logo {
    width: min(42vw, 170px);
    height: auto;
    max-height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.cookie-banner-title {
    color: var(--navy);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 0.45rem;
}

.cookie-banner-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
    text-align: center;
}

.cookie-banner-text a {
    color: var(--navy);
    text-decoration: underline;
}

.cookie-banner-prefs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-pref {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--navy);
    font-size: 0.95rem;
    background: #f2f5fc;
    border: 1px solid #d6dff5;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}

.cookie-pref input {
    accent-color: var(--gold);
}

.cookie-pref-required {
    opacity: 0.8;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.cookie-btn {
    border-radius: 4px;
    border: 1px solid transparent;
    padding: 0.6rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.cookie-btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.cookie-btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: rgba(13, 27, 62, 0.35);
}

.cookie-btn-muted {
    background: rgba(13, 27, 62, 0.08);
    color: var(--navy);
    border-color: rgba(13, 27, 62, 0.2);
}

.cookie-btn:hover {
    filter: brightness(1.06);
}

@media (max-width: 1024px) {
    .cookie-banner-inner {
        gap: 0.8rem;
    }

    .cookie-banner-actions {
        justify-content: center;
    }
}

body.cookie-consent-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .cookie-banner-inner {
        padding: 1.15rem 1rem 1rem;
    }

    .cookie-banner-logo {
        width: min(58vw, 140px);
    }

    .cookie-banner-title {
        font-size: 1.35rem;
    }

    .cookie-btn {
        width: 100%;
    }
}
