/* ============================================================
   TRISTAN HOLDINGS UK — main.css  |  Mobile-First v2.0
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
    /* ── Logo-extracted palette ─────────────────────────────── */
    --th-primary:       #1B5088;   /* Logo dark blue  */
    --th-primary-dark:  #0F3363;   /* Deeper variant  */
    --th-primary-deep:  #091F42;   /* Deepest — hero base  */
    --th-accent:        #5AAEE0;   /* Logo light blue */
    --th-accent-light:  #89CBEF;   /* Lighter blue    */

    /* ── Surface / text (light-theme) ───────────────────────── */
    --th-white:         #FFFFFF;
    --th-text:          #111827;   /* Body text       */
    --th-text-muted:    #64748B;   /* Secondary text  */
    --th-bg:            #F4F8FD;   /* Off-white tint  */
    --th-border:        #D8E6F4;   /* Card / section border */

    /* ── Dark-section helpers (hero, stats, cta) ────────────── */
    --th-muted:         rgba(255,255,255,0.65);
    --th-glass:         rgba(255,255,255,0.07);
    --th-glass-border:  rgba(255,255,255,0.13);

    /* ── Legacy aliases — every existing var(--th-gold) etc.   */
    /* ── in markup & CSS automatically inherits the new blues. */
    --th-navy-deep:     var(--th-primary-deep);
    --th-navy:          var(--th-primary-dark);
    --th-blue-rich:     var(--th-primary);
    --th-gold:          var(--th-accent);
    --th-gold-light:    var(--th-accent-light);
    --th-silver:        var(--th-border);

    /* ── Spacing / motion ───────────────────────────────────── */
    --section-y: 72px;
    --transition:      all 0.4s cubic-bezier(0.165,0.84,0.44,1);
    --transition-fast: all 0.2s ease;
    --radius-card:     20px;
    --radius-sm:       12px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--th-text);
    background-color: var(--th-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.18;
}

p { margin-bottom: 1.2rem; opacity: 0.9; }
p:last-child { margin-bottom: 0; }

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

a { color: inherit; transition: var(--transition-fast); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
/* On light backgrounds (default) these use the dark primary blue for contrast */
.text-gold   { color: var(--th-primary); }
.text-muted  { color: var(--th-text-muted); }
.text-center { text-align: center; }

/* Restore light-blue accent for dark-background sections */
.th-hero .text-gold,
.cta-section .text-gold  { color: var(--th-accent); }
.th-hero .text-muted,
.cta-section .text-muted { color: var(--th-muted); }

/* Inside dark photo overlay cards, text-gold stays light for readability */
.img-card .text-gold,
.feature-img-card .text-gold,
.compliance-img-item .text-gold,
.city-img-card .text-gold { color: var(--th-accent); }

.eyebrow {
    display: inline-block;
    color: var(--th-primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

/* Eyebrow on dark hero / CTA stays accent blue */
.th-hero .eyebrow,
.cta-section .eyebrow { color: var(--th-accent); }

.section-title { margin-bottom: 44px; }

.section-title h2 { font-size: clamp(1.75rem, 4.5vw, 2.8rem); }

/* ============================================================
   BUTTONS
   ============================================================ */
.th-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 26px;
    border-radius: 100px;
    background: var(--th-primary);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    min-height: 48px; /* Accessible touch target */
    font-family: 'Inter', sans-serif;
}

.th-btn:hover {
    transform: translateY(-3px);
    background: var(--th-primary-dark);
    box-shadow: 0 14px 30px rgba(27,80,136,0.40);
    color: #ffffff;
}

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

.th-btn-outline {
    background: transparent;
    border: 1.5px solid var(--th-primary);
    color: var(--th-primary);
}

.th-btn-outline:hover {
    background: var(--th-primary);
    color: #ffffff;
    border-color: var(--th-primary);
}

/* ---- Button overrides on dark / hero backgrounds ---- */
/* Primary button inverts to white so it reads on dark sections */
.th-hero .th-btn:not(.th-btn-outline),
.th-section-dark .th-btn:not(.th-btn-outline),
.cta-section .th-btn:not(.th-btn-outline) {
    background: #ffffff;
    color: var(--th-primary-deep);
}

.th-hero .th-btn:not(.th-btn-outline):hover,
.th-section-dark .th-btn:not(.th-btn-outline):hover,
.cta-section .th-btn:not(.th-btn-outline):hover {
    background: var(--th-accent-light);
    color: var(--th-primary-deep);
    box-shadow: 0 14px 30px rgba(255,255,255,0.18);
}

/* Outline button becomes white-bordered on dark sections */
.th-hero .th-btn-outline,
.th-section-dark .th-btn-outline,
.cta-section .th-btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.55);
    color: #ffffff;
}

.th-hero .th-btn-outline:hover,
.th-section-dark .th-btn-outline:hover,
.cta-section .th-btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: none;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: var(--section-y) 0; position: relative; }

/* All content sections use white / off-white backgrounds */
.th-section-dark {
    background: var(--th-bg);    /* off-white alternate: #F4F8FD */
    color: var(--th-text);
}

.th-section-gradient {
    background: var(--th-white); /* pure white */
    color: var(--th-text);
}

.th-section-light {
    background: var(--th-bg);
    color: var(--th-text);
}

/* Grid utility */
.th-grid { display: grid; }

/* ============================================================
   CARDS
   ============================================================ */
.th-card {
    background: var(--th-white);
    border: 1px solid var(--th-border);
    border-radius: var(--radius-card);
    padding: 28px 22px;
    box-shadow: 0 2px 16px rgba(27,80,136,0.07);
    transition: var(--transition);
}

/* Cards on off-white sections get a stronger shadow for depth */
.th-section-dark .th-card {
    box-shadow: 0 4px 24px rgba(27,80,136,0.10);
}

/* ============================================================
   HERO — MOBILE FIRST (Redesigned v4)
   ============================================================ */
.th-hero {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--th-navy-deep);
    padding: 108px 0 50px;  /* mobile: 108 + hero-inner 20 = 128px > 92px header */
}

/* Animated mesh gradient background */
.hero-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(90, 174, 224, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(27, 80, 136, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(90, 174, 224, 0.08) 0%, transparent 60%),
        var(--th-navy-deep);
    animation: meshMove 14s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(-2%, 1%); }
    100% { transform: scale(1.05) translate(1%, -1%); }
}

/* Subtle grid overlay */
.hero-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 1;
    animation: orbFloat 10s ease-in-out infinite;
}

.hero-orb-1 {
    width: 300px; height: 300px;
    background: rgba(90, 174, 224, 0.20);
    top: -80px; right: -60px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 260px; height: 260px;
    background: rgba(27, 80, 136, 0.50);
    bottom: -60px; left: -40px;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 180px; height: 180px;
    background: rgba(90, 174, 224, 0.12);
    top: 40%; left: 30%;
    animation-delay: -7s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -35px) scale(1.06); }
    66% { transform: translate(-20px, 20px) scale(0.96); }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* New badge: left accent bar */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--th-gold);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    font-family: 'Inter', sans-serif;
    padding-left: 16px;
    border-left: 3px solid var(--th-gold);
}

.th-hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 10px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* "A GROUP OF COMPANIES" tag under the hero h1 */
.hero-group-tag {
    display: inline-block;
    font-size: clamp(0.7rem, 1.6vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(90, 174, 224, 0.45);
    border-bottom: 1px solid rgba(90, 174, 224, 0.45);
    padding: 6px 14px;
    margin-bottom: 26px;
    font-family: 'Inter', sans-serif;
}

.th-hero .subheading {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

/* Gold text gradient effect */
.th-hero h1 .text-gold {
    background: linear-gradient(135deg, var(--th-gold) 0%, var(--th-gold-light) 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.th-hero .subheading {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.hero-btns .th-btn { width: 100%; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.trust-item i { color: var(--th-gold); font-size: 0.85rem; opacity: 0.8; }



/* ============================================================
   HERO — INNER LAYOUT
   ============================================================ */
.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 20px;
    padding-bottom: 10px;
    width: 100%;
}

/* ============================================================
   HERO — IMAGE SLIDER (replaces old visual cards)
   ============================================================ */

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-section {
    background: var(--th-bg);
    border-top: 2px solid var(--th-border);
    border-bottom: 2px solid var(--th-border);
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.stat-item {
    position: relative;
    text-align: center;
    padding: 20px 16px;
}

/* 2-column grid border pattern on mobile */
.stat-item:nth-child(-n+2)  { border-bottom: 1px solid var(--th-border); }
.stat-item:nth-child(odd)   { border-right: 1px solid var(--th-border); }

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 700;
    color: var(--th-primary);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--th-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   SPLIT LAYOUT — stacked on mobile, side-by-side on tablet+
   ============================================================ */
.split-layout {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.split-text .check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 26px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.split-image {
    position: relative;
    /* Padding creates room for the badge on mobile */
    padding-bottom: 22px;
    padding-right: 0;
}

.split-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 28px 56px rgba(27,80,136,0.20);
    aspect-ratio: 16/10;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    bottom: 0;
    right: 14px;
    background: var(--th-primary);
    color: #ffffff;
    padding: 18px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 16px 32px rgba(27,80,136,0.40);
    min-width: 110px;
}

.badge-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
}

.badge-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   DIVISIONS GRID
   ============================================================ */
.divisions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.division-card {
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    background: var(--th-white);
    border: 1px solid var(--th-border);
    border-radius: var(--radius-card);
    box-shadow: 0 2px 12px rgba(27,80,136,0.06);
}

.division-card:hover {
    transform: translateY(-6px);
    border-color: var(--th-accent);
    box-shadow: 0 24px 48px rgba(27,80,136,0.16);
}

.division-icon {
    width: 50px;
    height: 50px;
    background: rgba(27,80,136,0.08);
    border: 1px solid rgba(27,80,136,0.18);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--transition);
    flex-shrink: 0;
}

.division-icon i {
    font-size: 1.25rem;
    color: var(--th-primary);
    transition: color 0.25s;
}

.division-card:hover .division-icon {
    background: var(--th-primary);
    border-color: var(--th-primary);
}

.division-card:hover .division-icon i { color: var(--th-white); }

.division-card h3 {
    font-size: 0.97rem;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--th-text);
}

.division-card p {
    font-size: 0.85rem;
    flex-grow: 1;
    margin-bottom: 14px;
    color: var(--th-text-muted);
    opacity: 1;
}

.division-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--th-gold);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    transition: gap 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-family: 'Inter', sans-serif;
}

.division-link:hover { gap: 10px; color: var(--th-gold-light); }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feature-card {
    background: var(--th-white);
    border: 1px solid var(--th-border);
    border-radius: var(--radius-card);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(27,80,136,0.06);
}

.feature-card:hover {
    background: var(--th-bg);
    border-color: var(--th-accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(27,80,136,0.14);
}

.feature-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, rgba(27,80,136,0.12), rgba(90,174,224,0.06));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon i { font-size: 1.35rem; color: var(--th-primary); }

.feature-card h4 {
    font-size: 0.92rem;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--th-text);
}

.feature-card p { font-size: 0.83rem; margin-bottom: 0; color: var(--th-text-muted); }

/* ============================================================
   COMPLIANCE GRID
   ============================================================ */
.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.compliance-item {
    background: var(--th-white);
    border: 1px solid var(--th-border);
    border-radius: 16px;
    padding: 26px 18px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(27,80,136,0.05);
}

.compliance-item:hover {
    border-color: var(--th-accent);
    background: var(--th-bg);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(27,80,136,0.12);
}

.compliance-item i {
    font-size: 1.9rem;
    color: var(--th-primary);
    margin-bottom: 12px;
    display: block;
}

.compliance-item h5 {
    font-size: 0.88rem;
    margin-bottom: 7px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--th-text);
}

.compliance-item p { font-size: 0.8rem; margin-bottom: 0; color: var(--th-text-muted); }

/* ============================================================
   UK PRESENCE
   ============================================================ */
.presence-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.presence-cities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Featured city card (London HQ) */
.city-card-featured {
    grid-column: span 2;
    min-height: 220px !important;
    border-radius: var(--radius-card) !important;
}

.city-hq-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: var(--th-primary);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Map visual */
.presence-map-visual {
    background: rgba(9,31,66,0.85);
    border: 1px solid rgba(90,174,224,0.20);
    border-radius: var(--radius-card);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 20px;
    overflow: hidden;
}

.uk-map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.uk-map-svg {
    width: 100%;
    max-width: 190px;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(90,174,224,0.28));
}

.uk-shape {
    fill: rgba(27,80,136,0.45);
    stroke: rgba(90,174,224,0.45);
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.presence-line {
    stroke: rgba(90,174,224,0.20);
    stroke-width: 0.8;
    stroke-dasharray: 4 3;
}

.pin-dot {
    fill: var(--th-accent);
    filter: drop-shadow(0 0 3px rgba(90,174,224,0.9));
}

.pin-hq { fill: var(--th-accent-light); }

.pin-ring { fill: rgba(90,174,224,0.20); }

.pin-label {
    fill: rgba(255,255,255,0.5);
    font-size: 7px;
    font-family: 'Inter', sans-serif;
}

.pin-label-hq {
    fill: var(--th-gold);
    font-size: 7.5px;
}

.map-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
}

.map-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.map-stat strong {
    font-size: 1.05rem;
    color: var(--th-gold);
    font-weight: 800;
    line-height: 1;
}

.map-stat span {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.1);
}

.map-uk { text-align: center; padding: 28px; }

/* ============================================================
   IMAGE CARDS — Replacing icon-based cards with real images
   ============================================================ */

/* Sector image cards */
.img-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.img-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,11,20,0.96) 0%, rgba(2,11,20,0.5) 40%, rgba(2,11,20,0.2) 100%);
    z-index: 1;
    transition: var(--transition);
}

.img-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.img-card:hover::before {
    background: linear-gradient(to top, rgba(2,11,20,0.98) 0%, rgba(2,11,20,0.55) 50%, rgba(27,80,136,0.18) 100%);
}

.img-card-content {
    position: relative;
    z-index: 2;
    padding: 28px;
}

.img-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.img-card-content p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 18px;
    line-height: 1.6;
}

.img-card-content a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--th-gold);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    transition: gap 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-family: 'Inter', sans-serif;
}

.img-card-content a:hover { gap: 10px; color: var(--th-gold-light); }

/* Feature image cards */
.feature-img-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.feature-img-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,11,20,0.95) 0%, rgba(2,11,20,0.4) 50%, transparent 100%);
    z-index: 1;
    transition: var(--transition);
}

.feature-img-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-img-card:hover::before {
    background: linear-gradient(to top, rgba(2,11,20,0.98) 0%, rgba(2,11,20,0.5) 60%, rgba(27,80,136,0.15) 100%);
}

.feature-img-content {
    position: relative;
    z-index: 2;
    padding: 32px;
}

.feature-img-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.feature-img-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Compliance image items */
.compliance-img-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.compliance-img-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,11,20,0.96) 0%, rgba(2,11,20,0.5) 50%, rgba(2,11,20,0.3) 100%);
    z-index: 1;
}

.compliance-img-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.compliance-img-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    text-align: center;
}

.compliance-img-content i {
    font-size: 2rem;
    color: var(--th-gold);
    margin-bottom: 14px;
    display: block;
}

.compliance-img-content h5 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.compliance-img-content p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

/* City image cards */
.city-img-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-color: #0c2240; /* fallback — shows if image fails to load */
    transition: var(--transition);
}

.city-img-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,11,20,0.95) 0%, rgba(2,11,20,0.4) 55%, transparent 100%);
    z-index: 1;
    transition: var(--transition);
}

.city-img-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.3);
}

.city-img-card:hover::before {
    background: linear-gradient(to top, rgba(2,11,20,0.98) 0%, rgba(2,11,20,0.55) 55%, rgba(27,80,136,0.12) 100%);
}

.city-img-content {
    position: relative;
    z-index: 2;
    padding: 14px 16px;
}

.city-img-content strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.city-img-content span {
    display: block;
    font-size: 0.74rem;
    color: rgba(255,255,255,0.58);
    margin-top: 2px;
}

/* Hero image slider */
.hero-slider {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.35);
    aspect-ratio: 16/10;
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-slider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-slider-dots span.active {
    background: var(--th-gold);
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   HERO — CREDENTIALS PANEL (replaces stock-photo slider)
   ============================================================ */
.hero-credentials {
    position: relative;
    z-index: 2;
    background: rgba(9, 31, 66, 0.70);
    border: 1px solid rgba(90, 174, 224, 0.22);
    border-radius: 22px;
    padding: 26px 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    width: 100%;
}

/* Gold top-edge accent line */
.hero-credentials::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--th-gold), transparent);
    border-radius: 2px;
}

/* Top-right gold glow orb */
.hero-credentials::after {
    content: '';
    position: absolute;
    top: -70px; right: -70px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(201,162,77,0.10) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Header row ── */
.cred-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(90,174,224,0.13);
    margin-bottom: 18px;
}

.cred-crown {
    width: 40px; height: 40px; min-width: 40px;
    background: linear-gradient(135deg, var(--th-gold) 0%, var(--th-gold-light) 100%);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    color: var(--th-navy-deep);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.cred-header-text { flex: 1; min-width: 0; }

.cred-title {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--th-gold);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.cred-sub {
    display: block;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.45);
    font-family: 'Inter', sans-serif;
    margin-top: 2px;
}

.cred-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #4ade80;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.cred-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.cred-live-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(74,222,128,0.28);
    animation: credLivePulse 1.8s ease-in-out infinite;
}

@keyframes credLivePulse {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.6); opacity: 0; }
}

/* ── Stats row ── */
.cred-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(90,174,224,0.13);
    margin-bottom: 18px;
}

.cred-stat {
    text-align: center;
    padding: 8px 6px;
    position: relative;
}

.cred-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 12%; height: 76%;
    width: 1px;
    background: rgba(90,174,224,0.18);
}

.cred-stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--th-gold);
    line-height: 1;
    margin-bottom: 4px;
}

.cred-stat span {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: rgba(255,255,255,0.40);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* ── Credentials list ── */
.cred-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cred-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.81rem;
    color: rgba(255,255,255,0.72);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.cred-list li i {
    width: 28px; height: 28px; min-width: 28px;
    background: rgba(27,80,136,0.55);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--th-accent);
    font-size: 0.72rem;
    flex-shrink: 0;
}

/* ── Contact block ── */
.cred-contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px 0;
    border-top: 1px solid rgba(90,174,224,0.13);
    border-bottom: 1px solid rgba(90,174,224,0.13);
    margin-bottom: 18px;
}

.cred-contact a,
.cred-contact span {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.60);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.3;
}

.cred-contact a:hover { color: var(--th-gold); }

.cred-contact i {
    width: 20px;
    text-align: center;
    color: var(--th-gold);
    font-size: 0.72rem;
    flex-shrink: 0;
}

/* ── CTA button ── */
.cred-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--th-gold) 0%, var(--th-gold-light) 100%);
    color: var(--th-navy-deep) !important;
    text-decoration: none !important;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(201,162,77,0.28);
}

.cred-cta:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,162,77,0.38);
}

.cred-cta span { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
    color: #ffffff; /* Dark overlay — all text stays white */
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(27,80,136,0.20) 0%, transparent 65%),
        rgba(2,11,20,0.88);
}

.cta-content { position: relative; z-index: 2; }

.cta-section h2 {
    font-size: clamp(1.8rem, 5.5vw, 3.2rem);
    margin-bottom: 14px;
}

.cta-section .subheading {
    font-size: clamp(0.88rem, 2.2vw, 1.05rem);
    max-width: 560px;
    margin: 0 auto 36px;
    color: var(--th-muted);
    line-height: 1.8;
}

.cta-section .hero-btns {
    flex-direction: column;
    align-items: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--th-white);
    border-top: 2px solid var(--th-border);
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--th-border);
}

.footer-brand { max-width: 100%; }

/* Footer logo image — mobile-first: 80px → 110px (768px+) → 150px (992px+) */
.footer-logo-img {
    height: 80px;
    width: auto;
    max-width: 100%;
    display: block;
    margin-bottom: 12px;
    object-fit: contain;
}

.footer-logo-svg {
    height: 80px;
    max-width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.footer-logo-svg svg {
    height: 80px;
    width: auto;
    max-width: 100%;
}

@media (min-width: 768px) {
    .footer-logo-img                { height: 110px; }
    .footer-logo-svg,
    .footer-logo-svg svg            { height: 110px; }
}

@media (min-width: 992px) {
    .footer-logo-img                { height: 150px; }
    .footer-logo-svg,
    .footer-logo-svg svg            { height: 150px; }
}

.footer-brand .logo-main { font-size: 1.15rem; }

.footer-brand p {
    color: var(--th-text-muted);
    font-size: 0.875rem;
    line-height: 1.8;
    margin: 12px 0 18px;
}

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }

.social-link {
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--th-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--th-text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.875rem;
}

.social-link:hover {
    background: var(--th-primary);
    border-color: var(--th-primary);
    color: var(--th-white);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--th-primary);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }

.footer-links a {
    color: var(--th-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-links a::before {
    content: '›';
    color: var(--th-accent);
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
}

.footer-links a:hover { color: var(--th-primary); padding-left: 4px; }
.footer-links a:hover::before { opacity: 1; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 13px;
}

.footer-contact-item i {
    color: var(--th-primary);
    width: 16px;
    margin-top: 3px;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.footer-contact-item span,
.footer-contact-item a {
    color: var(--th-text-muted);
    font-size: 0.875rem;
    line-height: 1.55;
    text-decoration: none;
}

.footer-contact-item a:hover { color: var(--th-primary); }

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 22px 0;
    color: var(--th-text-muted);
    font-size: 0.76rem;
    font-family: 'Inter', sans-serif;
}

.footer-bottom a { color: var(--th-text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--th-primary); }

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-name-email-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.th-form label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    color: #4a5568;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
    font-family: 'Inter', sans-serif;
}

.th-form input,
.th-form select,
.th-form textarea {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    min-height: 48px;
    appearance: auto;
}

.th-form input:focus,
.th-form select:focus,
.th-form textarea:focus {
    border-color: var(--th-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(27,80,136,0.13);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: var(--th-primary);
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 980;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(27,80,136,0.35);
    font-size: 0.85rem;
}

#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-4px); }

/* ============================================================
   ANIMATED BACKGROUND DECORATORS — light content sections
   ============================================================ */

/* Ensure containers always render above animated blobs */
section > .container { position: relative; z-index: 1; }

/* Large animated blobs via pseudo-elements on every content section */
section:not(.th-hero):not(.stats-section):not(.cta-section)::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(90,174,224,0.10) 0%, transparent 68%);
    border-radius: 50%;
    top: -280px; right: -220px;
    animation: secBlobTR 24s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

section:not(.th-hero):not(.stats-section):not(.cta-section)::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(27,80,136,0.07) 0%, transparent 68%);
    border-radius: 50%;
    bottom: -230px; left: -180px;
    animation: secBlobBL 30s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes secBlobTR {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(-100px, 120px) scale(1.45); }
}

@keyframes secBlobBL {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(120px, -100px) scale(1.35); }
}

/* ---- Section decorator — injected by JS into every content section ---- */
.section-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Animated rings */
.section-decor .sd-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid;
    animation: sdRingPulse 6s ease-in-out infinite;
}

.section-decor .sd-ring:nth-child(1) {
    width: 180px; height: 180px;
    border-color: rgba(90,174,224,0.14);
    top: 8%; right: 6%;
    animation-duration: 7s; animation-delay: 0s;
}

.section-decor .sd-ring:nth-child(2) {
    width: 110px; height: 110px;
    border-color: rgba(27,80,136,0.10);
    bottom: 12%; left: 4%;
    animation-duration: 9s; animation-delay: 2.5s;
}

@keyframes sdRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.12); opacity: 1; }
}

/* Floating dots */
.section-decor .sd-dot {
    position: absolute;
    border-radius: 50%;
    animation: sdDotFloat 9s ease-in-out infinite;
}

.section-decor .sd-dot:nth-child(3) {
    width: 10px; height: 10px;
    background: var(--th-accent);
    opacity: 0.22;
    top: 18%; left: 8%;
    animation-delay: 0s;
}

.section-decor .sd-dot:nth-child(4) {
    width: 7px; height: 7px;
    background: var(--th-primary);
    opacity: 0.16;
    bottom: 22%; right: 12%;
    animation-delay: 3s;
}

.section-decor .sd-dot:nth-child(5) {
    width: 13px; height: 13px;
    background: var(--th-accent-light);
    opacity: 0.18;
    top: 52%; left: 44%;
    animation-delay: 6s;
}

.section-decor .sd-dot:nth-child(6) {
    width: 8px; height: 8px;
    background: var(--th-primary);
    opacity: 0.12;
    top: 30%; right: 28%;
    animation-delay: 4.5s;
}

@keyframes sdDotFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-22px) scale(1.5); }
}

/* Sweeping accent line */
.section-decor .sd-line {
    position: absolute;
    height: 1px;
    width: 280px;
    background: linear-gradient(90deg, transparent, rgba(90,174,224,0.12), transparent);
    animation: sdLineSweep 12s ease-in-out infinite alternate;
}

.section-decor .sd-line:nth-child(7) {
    top: 38%; left: -60px;
    animation-delay: 0s;
}

@keyframes sdLineSweep {
    0%   { transform: translateX(0) scaleX(1); opacity: 0.6; }
    100% { transform: translateX(260px) scaleX(1.6); opacity: 1; }
}

/* Corner diamond */
.section-decor .sd-diamond {
    position: absolute;
    width: 14px; height: 14px;
    border: 1.5px solid rgba(27,80,136,0.16);
    transform: rotate(45deg);
    animation: sdDiamondSpin 18s linear infinite;
}

.section-decor .sd-diamond:nth-child(8) {
    top: 14%; left: 20%;
    animation-delay: 0s;
}

.section-decor .sd-diamond:nth-child(9) {
    bottom: 18%; right: 22%;
    animation-delay: 9s;
    width: 10px; height: 10px;
}

@keyframes sdDiamondSpin {
    from { transform: rotate(45deg) scale(1); }
    to   { transform: rotate(405deg) scale(1.3); }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--th-bg); }
::-webkit-scrollbar-thumb { background: var(--th-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--th-primary); }

/* ============================================================
   AOS + FOCUS + MOTION
   ============================================================ */
[data-aos] { pointer-events: none; }
.aos-animate { pointer-events: auto; }

:focus-visible {
    outline: 2px solid var(--th-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

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

/* ============================================================
   RESPONSIVE — 480px+  (Small phones landscape / large phones)
   ============================================================ */
@media (min-width: 480px) {
    .container { padding: 0 22px; }

    .hero-btns { flex-direction: row; flex-wrap: wrap; }
    .hero-btns .th-btn { width: auto; flex: 1; min-width: 160px; }

    .divisions-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

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

    .contact-name-email-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ============================================================
   RESPONSIVE — 640px+  (Large phones / small tablets)
   ============================================================ */
@media (min-width: 640px) {
    .container { padding: 0 28px; }

    .hero-btns .th-btn { flex: initial; width: auto; }

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

    .section-title { margin-bottom: 56px; }

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

/* ============================================================
   RESPONSIVE — 768px+  (Tablets)
   ============================================================ */
@media (min-width: 768px) {
    :root { --section-y: 96px; }

    .container { padding: 0 32px; }

    /* Hero */
    .hero-inner { padding-top: 40px; padding-bottom: 20px; }
    .th-hero .subheading { max-width: 560px; }
    .hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; }

    /* Stats — switch to 4-column row */
    .stats-section { padding: 0; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }

    /* Remove 2-col mobile borders */
    .stat-item:nth-child(-n+2) { border-bottom: none; }
    .stat-item:nth-child(odd)  { border-right: none; }

    /* Add right dividers between items for 4-col row */
    .stat-item { padding: 26px 20px; }
    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0; top: 18%; height: 64%;
        width: 1px;
        background: var(--th-border);
    }

    /* Split layout — side by side */
    .split-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: center;
    }

    .split-image { padding-bottom: 0; padding-right: 30px; }
    .image-badge {
        bottom: -26px;
        right: 4px;
        padding: 22px 28px;
    }
    .badge-number { font-size: 2.2rem; }

    /* Grids */
    .divisions-grid   { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .features-grid    { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .compliance-grid  { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .presence-layout  { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
    .presence-map-visual { min-height: 420px; }
    .uk-map-svg { max-width: 230px; }

    /* Contact */
    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 56px;
        align-items: start;
    }

    /* Footer */
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
    .footer-bottom-links { justify-content: flex-end; }

    /* CTA */
    .cta-section { padding: 140px 0; }
}

/* ============================================================
   RESPONSIVE — 1024px+  (Desktop)
   ============================================================ */
@media (min-width: 1024px) {
    :root { --section-y: 112px; }

    .container { padding: 0 40px; }

    .th-card { padding: 36px 32px; }

    .section-title { margin-bottom: 72px; }

    /* Hero — desktop two-column layout */
    .th-hero {
        padding: 120px 0 50px;  /* 120 + hero-inner 36 = 156px > 146px header offset */
        border-radius: 0 0 48px 48px;
    }

    .hero-inner {
        flex-direction: row;
        align-items: center;
        gap: 56px;
        padding-top: 36px;
        padding-bottom: 10px;
        min-height: auto;
    }

    .hero-content { flex: 0 0 52%; }

    .hero-slider {
        display: block;
        flex: 1;
        aspect-ratio: 4/3;
        border-radius: 24px;
    }

    .split-layout { gap: 80px; }
    .split-image { padding-right: 0; }
    .image-badge { bottom: -30px; right: -28px; padding: 26px 34px; }
    .badge-number { font-size: 2.5rem; }

    .divisions-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }

    .features-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }

    .compliance-grid { gap: 20px; }

    .presence-map-visual { min-height: 480px; }
    .uk-map-svg { max-width: 255px; }

    .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; }
}

/* ============================================================
   RESPONSIVE — 1280px+  (Large Desktop)
   ============================================================ */
@media (min-width: 1280px) {
    .th-hero .subheading { max-width: 540px; }
    .th-hero h1 { font-size: 3.8rem; }
}
