/*
Theme Name:   TS Micro-Sites
Theme URI:    https://techsathya.in/micro-sites
Description:  Reusable, premium, accessible WordPress child theme for TS Micro-Sites, built on Hello Elementor. Engineered for home care, nursing clinics, and healthcare services with full Elementor Free compatibility, clean responsive typography, refined healthcare color tokens (ink, teal, ivory, amber), constrained logo scaling, accessible mobile navigation drawer, and decoupled client data architecture. Phase 2A-R1 original design reset for Ujjeevana Araike Kendra, Shivamogga.
Author:       Tech SathyA
Author URI:   https://techsathya.in
Template:     hello-elementor
Version:      1.4.0
Requires at least: 6.0
Tested up to: 7.1.4
Requires PHP: 7.4
Text Domain:  ts-micro-sites
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         healthcare, elementor, responsive-layout, custom-colors, custom-menu, featured-images, accessibility-ready
*/

/* -------------------------------------------------------------
   1. REFINED HEALTHCARE PALETTE & DESIGN SYSTEM TOKENS
   Phase 2A-R1 Architectural Reset
------------------------------------------------------------- */
:root {
    /* Primary Healthcare Tones (Accessible WCAG AAA Contrast) */
    --ts-ink-primary: #0F1F2C;         /* Deep Midnight Slate (>14:1 on white/ivory) */
    --ts-ink-secondary: #263B4D;       /* Rich Slate Body Text (>11:1 on ivory) */
    --ts-ink-muted: #536B7E;           /* Muted Caption Slate (>4.8:1 on white/ivory) */

    /* Clinical Vitality & Brand Accents */
    --ts-teal-primary: #0E7673;        /* Rich Clinical Teal (>4.8:1 on white) */
    --ts-teal-hover: #095351;          /* Deep Teal Hover (>7.5:1 on white, AAA) */
    --ts-teal-subtle: #E8F3EE;         /* Mint Surface Accent */
    --ts-teal-mist: #F2F7F5;           /* Soft Teal-Sage Wash */

    /* Reassurance & Highlights */
    --ts-amber-accent: #D97736;        /* Warm Amber / Coral Accent */
    --ts-amber-subtle: #FEF3EB;        /* Warm Amber Tint */
    --ts-whatsapp: #128C7E;
    --ts-whatsapp-hover: #0B695E;

    /* Healthcare Surfaces */
    --ts-bg-ivory: #FCFBF9;            /* Warm Ivory Page Background */
    --ts-bg-surface: #FFFFFF;          /* Pure White Container Surfaces */
    --ts-bg-mist: #F4F7F6;             /* Alternating Section Background */
    --ts-bg-dark: #0F1F2C;             /* Deep Midnight Footer & High-Contrast Areas */

    /* Subtle Architectural Borders */
    --ts-border-subtle: #DEE8E5;       /* Hairline Border */
    --ts-border-light: #EEF4F2;
    --ts-border-focus: #0E7673;

    /* Typography Stack */
    --ts-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ts-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Restrained Radii */
    --ts-radius-sm: 6px;
    --ts-radius-btn: 8px;              /* Consistent 8px Buttons */
    --ts-radius-card: 12px;            /* Standard Card Radius */
    --ts-radius-lg: 16px;
    --ts-radius-pill: 9999px;          /* Badges & Pills */

    /* Elevation Shadows */
    --ts-shadow-sm: 0 1px 3px rgba(15, 31, 44, 0.04);
    --ts-shadow-card: 0 4px 16px rgba(15, 31, 44, 0.05), 0 1px 2px rgba(15, 31, 44, 0.03);
    --ts-shadow-hover: 0 10px 28px rgba(15, 31, 44, 0.08), 0 2px 6px rgba(15, 31, 44, 0.04);

    --ts-container-width: 1220px;
    --ts-container-narrow: 880px;

    /* Section 3.2: Controlled Soft Multi-Colour Card Presentation */
    --ts-card-tint-blue: #F0F6FA;
    --ts-card-border-blue: #CCE2EE;
    --ts-card-tint-green: #F2F8F5;
    --ts-card-border-green: #CEE7DC;
    --ts-card-tint-amber: #FEF9F0;
    --ts-card-border-amber: #F7E5CA;
    --ts-card-tint-rose: #FDF4F2;
    --ts-card-border-rose: #F6D6D0;
    --ts-card-tint-neutral: #F8FAFC;
    --ts-card-border-neutral: #E2E8F0;

    /* Section 3.3: Shared Layout Spacing System */
    --ts-section-spacing: clamp(48px, 6vw, 80px);
    --ts-section-spacing-sm: clamp(32px, 4vw, 48px);
    --ts-grid-gap: clamp(20px, 3vw, 32px);
    --ts-card-padding: clamp(20px, 3vw, 32px);
}

/* -------------------------------------------------------------
   2. GLOBAL RESETS & ACCESSIBLE DEFAULTS
------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--ts-font-main);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ts-ink-secondary);
    background-color: var(--ts-bg-ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ts-ink-primary);
    font-family: var(--ts-font-heading);
    font-weight: 800;
    line-height: 1.25;
    margin-top: 0;
    letter-spacing: -0.015em;
}

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

a {
    color: var(--ts-teal-primary);
    text-decoration: underline;
    transition: color 0.15s ease, background 0.15s ease;
}
a:hover {
    color: var(--ts-teal-hover);
}

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

/* Accessible Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--ts-teal-primary);
    color: #FFFFFF !important;
    padding: 10px 18px;
    border-radius: var(--ts-radius-btn);
    font-weight: 700;
    z-index: 99999;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 16px;
    box-shadow: 0 0 0 3px rgba(14, 118, 115, 0.3);
}

/* Layout Container */
.ts-container {
    width: 100%;
    max-width: var(--ts-container-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* -------------------------------------------------------------
   3. HEADER, NAVIGATION & UTILITY TOPBAR
------------------------------------------------------------- */
.ts-site-header {
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(15, 31, 44, 0.05);
}

/* Utility Topbar with Overflow Protection */
.ts-topbar {
    background: #F4F7F6;
    border-bottom: 1px solid var(--ts-border-subtle);
    padding: 8px 0;
    font-size: 0.8125rem;
    color: var(--ts-ink-secondary);
}

.ts-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.ts-topbar-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ts-ink-muted);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.ts-topbar-location svg {
    color: var(--ts-teal-primary);
}

.ts-topbar-contacts {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.ts-topbar-phones {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ts-topbar-phones svg {
    color: var(--ts-teal-primary);
}
.ts-topbar-phones a {
    color: var(--ts-ink-primary);
    text-decoration: none;
}
.ts-topbar-phones a:hover {
    color: var(--ts-teal-primary);
    text-decoration: underline;
}
.ts-phone-sep {
    color: #94A3B8;
}

.ts-topbar-wa {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ts-topbar-wa svg {
    color: var(--ts-whatsapp);
}
.ts-topbar-wa a {
    color: var(--ts-whatsapp);
    font-weight: 700;
    text-decoration: none;
}
.ts-topbar-wa a:hover {
    text-decoration: underline;
}

/* Topbar Social Icons Group */
.ts-social-links-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ts-social-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--ts-border-subtle);
    color: var(--ts-ink-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.ts-social-icon-btn:hover {
    background: var(--ts-teal-subtle);
    color: var(--ts-teal-primary);
    border-color: var(--ts-teal-primary);
    transform: translateY(-1px);
}

.ts-topbar-hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 118, 115, 0.08);
    color: var(--ts-teal-primary);
    border: 1px solid rgba(14, 118, 115, 0.2);
    padding: 3px 10px;
    border-radius: var(--ts-radius-pill);
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.ts-topbar-hours .ts-icon {
    color: var(--ts-teal-primary);
    flex-shrink: 0;
}

/* Main Navigation Bar */
.ts-header-main {
    padding: 14px 0;
}

.ts-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* Brand Logo */
.ts-brand-wrap {
    flex-shrink: 0;
}
.ts-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}
.ts-logo-img {
    max-width: 180px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.ts-brand-symbol {
    width: 44px;
    height: 44px;
    background: var(--ts-teal-subtle);
    color: var(--ts-teal-primary);
    border-radius: var(--ts-radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ts-brand-text {
    display: flex;
    flex-direction: column;
}
.ts-brand-title {
    font-size: 1.1875rem;
    font-weight: 800;
    color: #0B1E36;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-decoration: none;
}
.ts-brand-link:hover .ts-brand-title {
    color: var(--ts-teal-primary);
}
.ts-brand-tagline {
    font-size: 0.75rem;
    color: var(--ts-ink-muted);
    font-weight: 500;
}

/* Desktop Primary Navigation */
.ts-desktop-nav {
    display: flex;
    align-items: center;
}
.ts-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 22px;
}
.ts-nav-menu li {
    margin: 0;
    padding: 0;
}
.ts-nav-menu a {
    color: var(--ts-ink-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none !important;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.ts-nav-menu a:hover,
.ts-nav-menu li.current-menu-item > a {
    color: var(--ts-teal-primary);
}
.ts-nav-menu li.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ts-teal-primary);
    border-radius: 2px;
}

/* Header Action CTA Button */
.ts-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ts-btn-header-cta {
    background: var(--ts-teal-primary) !important;
    color: #FFFFFF !important;
    height: 42px;
    padding: 0 18px;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--ts-radius-btn);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    border: 1px solid var(--ts-teal-hover);
    box-shadow: 0 2px 6px rgba(14, 118, 115, 0.2);
    transition: all 0.15s ease;
}
.ts-btn-header-cta:hover {
    background: var(--ts-teal-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 118, 115, 0.3);
}

/* Mobile Toggle Hamburger */
.ts-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--ts-border-subtle);
    padding: 8px 10px;
    border-radius: var(--ts-radius-sm);
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}
.ts-toggle-bar {
    width: 20px;
    height: 2px;
    background: var(--ts-ink-primary);
    border-radius: 2px;
}

/* -------------------------------------------------------------
   4. BUTTON SYSTEM
------------------------------------------------------------- */
.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    border-radius: var(--ts-radius-btn);
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.ts-btn-primary {
    background: var(--ts-teal-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--ts-teal-hover) !important;
    box-shadow: 0 2px 6px rgba(14, 118, 115, 0.2);
}
.ts-btn-primary:hover {
    background: var(--ts-teal-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 118, 115, 0.3);
}

.ts-btn-secondary {
    background: var(--ts-teal-subtle) !important;
    color: var(--ts-teal-primary) !important;
    border-color: #C5DDD1 !important;
}
.ts-btn-secondary:hover {
    background: #D9EADF !important;
    color: var(--ts-teal-hover) !important;
}

.ts-btn-whatsapp {
    background: var(--ts-whatsapp) !important;
    color: #FFFFFF !important;
    border-color: var(--ts-whatsapp-hover) !important;
}
.ts-btn-whatsapp:hover {
    background: var(--ts-whatsapp-hover) !important;
    transform: translateY(-1px);
}

.ts-btn-outline {
    background: transparent !important;
    color: var(--ts-teal-primary) !important;
    border-color: var(--ts-teal-primary) !important;
}
.ts-btn-outline:hover {
    background: var(--ts-teal-subtle) !important;
}

/* -------------------------------------------------------------
   4B. UNIFIED INNER PAGE HERO & BREADCRUMB SYSTEM
   Resolves Sections 4, 7.1, 9, 10.1, 11, 12.1
------------------------------------------------------------- */
.ts-page-hero {
    position: relative;
    overflow: hidden;
    background-color: #0F1F2C;
    color: #FFFFFF;
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 48px 0 52px;
}
.ts-page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.ts-page-hero-bg picture,
.ts-page-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.ts-page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 31, 44, 0.90) 0%, rgba(14, 118, 115, 0.78) 50%, rgba(15, 31, 44, 0.85) 100%);
    z-index: 2;
}
.ts-page-hero-text-only .ts-page-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
}
.ts-page-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Breadcrumbs System (Section 9) */
.ts-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
    line-height: 1.4;
}
.ts-breadcrumbs a {
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;
    transition: color 0.15s ease;
}
.ts-breadcrumbs a:hover {
    color: #14B8A6;
    text-decoration: underline;
}
.ts-bc-sep {
    margin: 0 6px;
    color: #14B8A6;
    font-weight: 700;
    user-select: none;
}
.ts-bc-current {
    color: #FFFFFF;
    font-weight: 700;
    max-width: 480px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hero Typography */
.ts-page-hero-title {
    color: #FFFFFF !important;
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}
.ts-page-hero-subtitle {
    color: rgba(255, 255, 255, 0.90);
    font-size: clamp(1rem, 1.8vw, 1.1875rem);
    line-height: 1.6;
    max-width: 780px;
    margin: 0 0 20px 0;
}
.ts-page-hero-cta {
    margin-top: 18px;
}
@media (max-width: 768px) {
    .ts-page-hero {
        min-height: 200px;
        padding: 36px 0 40px;
    }
    .ts-breadcrumbs {
        font-size: 0.8125rem;
        margin-bottom: 10px;
    }
    .ts-bc-current {
        max-width: 240px;
    }
}

/* -------------------------------------------------------------
   5. HOMEPAGE & EDITORIAL SPLIT HERO SECTION
------------------------------------------------------------- */
.ts-hero-split-section {
    padding: 60px 0 50px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--ts-bg-ivory) 100%);
    position: relative;
    border-bottom: 1px solid var(--ts-border-subtle);
}

.ts-hero-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.ts-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ts-teal-subtle);
    color: var(--ts-teal-primary);
    padding: 6px 14px;
    border-radius: var(--ts-radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
    border: 1px solid #D5E8DF;
}

.ts-hero-title {
    font-size: 2.625rem;
    font-weight: 800;
    color: var(--ts-ink-primary);
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.ts-hero-subcopy {
    font-size: 1.0625rem;
    color: var(--ts-ink-secondary);
    line-height: 1.65;
    margin: 0 0 28px 0;
    max-width: 580px;
}

.ts-hero-cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* Trust Strip */
.ts-hero-trust-strip {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ts-border-subtle);
    flex-wrap: wrap;
}
.ts-trust-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ts-ink-primary);
}
.ts-trust-pill svg {
    color: var(--ts-teal-primary);
    flex-shrink: 0;
}

/* Visual Frame in Hero Right */
.ts-hero-visual-col,
.ts-hero-media-wrap {
    position: relative;
}
.ts-hero-visual-card,
.ts-hero-image-card {
    background: #FFFFFF;
    border: 1px solid var(--ts-border-subtle);
    border-radius: var(--ts-radius-lg);
    overflow: hidden;
    box-shadow: var(--ts-shadow-card);
    position: relative;
}
.ts-hero-image-wrap {
    height: 380px;
    position: relative;
    overflow: hidden;
    background: #E8F3EE;
}
.ts-hero-image-wrap img,
.ts-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ts-hero-floating-badge,
.ts-hero-floating-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--ts-border-subtle);
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 31, 44, 0.08);
}
.ts-floating-badge-title,
.ts-floating-card-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--ts-ink-primary);
    display: block;
    margin-bottom: 2px;
}
.ts-floating-badge-sub,
.ts-floating-card-desc {
    font-size: 0.75rem;
    color: var(--ts-ink-muted);
    margin: 0;
}

/* -------------------------------------------------------------
   5B. FLOATING QUICK CARE TRIAGE BAR (Direction B hybrid)
------------------------------------------------------------- */
.ts-triage-section {
    position: relative;
    z-index: 10;
    margin-top: -32px;
    margin-bottom: 48px;
}

.ts-triage-card {
    background: #FFFFFF;
    border: 1px solid var(--ts-border-subtle);
    border-radius: var(--ts-radius-lg);
    box-shadow: 0 12px 30px -10px rgba(15, 31, 44, 0.1), 0 4px 10px -4px rgba(15, 31, 44, 0.05);
    padding: 18px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}

.ts-triage-col {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 14px;
    border-right: 1px solid var(--ts-border-subtle);
}

.ts-triage-col:nth-child(4) {
    border-right: none;
}

.ts-triage-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--ts-teal-subtle);
    color: var(--ts-teal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ts-triage-text {
    display: flex;
    flex-direction: column;
}

.ts-triage-label {
    font-size: 0.71875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ts-ink-muted);
    margin-bottom: 2px;
}

.ts-triage-val {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ts-ink-primary);
    line-height: 1.3;
}

.ts-triage-action {
    display: flex;
    align-items: center;
}

.ts-btn-triage {
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 0.875rem;
}

/* -------------------------------------------------------------
   6. CARE SERVICES GRID (Varied 8-Card System)
------------------------------------------------------------- */
.ts-services-section {
    padding: 80px 0;
    background: var(--ts-bg-surface);
}

.ts-section-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px auto;
}
.ts-section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ts-teal-primary);
    margin-bottom: 10px;
}
.ts-section-heading {
    font-size: 2.125rem;
    font-weight: 800;
    color: var(--ts-ink-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.015em;
}
.ts-section-desc {
    font-size: 1rem;
    color: var(--ts-ink-muted);
    line-height: 1.6;
    margin: 0;
}

.ts-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 24px;
}

.ts-service-card {
    background: #FFFFFF;
    border: 1px solid var(--ts-border-subtle);
    border-radius: var(--ts-radius-card);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ts-shadow-card);
    transition: all 0.2s ease;
    position: relative;
    border-top: 4px solid var(--ts-border-subtle);
}
.ts-service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ts-shadow-hover);
    border-color: var(--ts-border-subtle);
}

/* Coordinated Soft Multi-Colour Card System for 8 Services */
.ts-card-acc-1 { background-color: var(--ts-card-tint-green); border-color: var(--ts-card-border-green); border-top-color: #0E7673; }
.ts-card-acc-1 .ts-service-icon-box { background: #E8F3EE; color: #0E7673; }

.ts-card-acc-2 { background-color: var(--ts-card-tint-blue); border-color: var(--ts-card-border-blue); border-top-color: #2563EB; }
.ts-card-acc-2 .ts-service-icon-box { background: #EFF6FF; color: #2563EB; }

.ts-card-acc-3 { background-color: var(--ts-card-tint-rose); border-color: var(--ts-card-border-rose); border-top-color: #E11D48; }
.ts-card-acc-3 .ts-service-icon-box { background: #FFF1F2; color: #E11D48; }

.ts-card-acc-4 { background-color: var(--ts-card-tint-blue); border-color: var(--ts-card-border-blue); border-top-color: #4F46E5; }
.ts-card-acc-4 .ts-service-icon-box { background: #EEF2FF; color: #4F46E5; }

.ts-card-acc-5 { background-color: var(--ts-card-tint-green); border-color: var(--ts-card-border-green); border-top-color: #059669; }
.ts-card-acc-5 .ts-service-icon-box { background: #ECFDF5; color: #059669; }

.ts-card-acc-6 { background-color: var(--ts-card-tint-amber); border-color: var(--ts-card-border-amber); border-top-color: #D97736; }
.ts-card-acc-6 .ts-service-icon-box { background: #FFFBEB; color: #D97736; }

.ts-card-acc-7 { background-color: var(--ts-card-tint-blue); border-color: var(--ts-card-border-blue); border-top-color: #0891B2; }
.ts-card-acc-7 .ts-service-icon-box { background: #ECFEFF; color: #0891B2; }

.ts-card-acc-8 { background-color: var(--ts-card-tint-rose); border-color: var(--ts-card-border-rose); border-top-color: #7C3AED; }
.ts-card-acc-8 .ts-service-icon-box { background: #F5F3FF; color: #7C3AED; }

/* Reusable Soft Multi-Colour Card Utility Classes */
.ts-card-tint-blue { background-color: var(--ts-card-tint-blue) !important; border-color: var(--ts-card-border-blue) !important; }
.ts-card-tint-green { background-color: var(--ts-card-tint-green) !important; border-color: var(--ts-card-border-green) !important; }
.ts-card-tint-amber { background-color: var(--ts-card-tint-amber) !important; border-color: var(--ts-card-border-amber) !important; }
.ts-card-tint-rose { background-color: var(--ts-card-tint-rose) !important; border-color: var(--ts-card-border-rose) !important; }
.ts-card-tint-neutral { background-color: var(--ts-card-tint-neutral) !important; border-color: var(--ts-card-border-neutral) !important; }

.ts-service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.ts-service-title {
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--ts-ink-primary);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ts-service-excerpt {
    font-size: 0.875rem;
    color: var(--ts-ink-secondary);
    line-height: 1.55;
    margin: 0 0 20px 0;
    flex: 1;
}

.ts-service-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ts-teal-primary);
    text-decoration: none !important;
    margin-top: auto;
}
.ts-service-cta:hover {
    color: var(--ts-teal-hover);
    text-decoration: underline !important;
}

/* -------------------------------------------------------------
   7. 4-STEP PROCESS TIMELINE
------------------------------------------------------------- */
.ts-process-section {
    padding: 80px 0;
    background: var(--ts-bg-mist);
    border-top: 1px solid var(--ts-border-subtle);
    border-bottom: 1px solid var(--ts-border-subtle);
}

.ts-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.ts-process-step {
    background: #FFFFFF;
    border: 1px solid var(--ts-border-subtle);
    border-radius: var(--ts-radius-card);
    padding: 28px 22px;
    position: relative;
    box-shadow: var(--ts-shadow-sm);
}

.ts-step-number {
    width: 36px;
    height: 36px;
    background: var(--ts-teal-primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.ts-step-title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--ts-ink-primary);
    margin: 0 0 8px 0;
}

.ts-step-desc {
    font-size: 0.875rem;
    color: var(--ts-ink-secondary);
    line-height: 1.5;
    margin: 0;
}

/* -------------------------------------------------------------
   8. CONTEXTUAL ENQUIRY SECTION (50/50 Two-Column Layout)
------------------------------------------------------------- */
.ts-enquiry-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.ts-enquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.ts-enquiry-reassurance {
    padding-right: 12px;
}

.ts-reassurance-card {
    background: var(--ts-bg-mist);
    border: 1px solid var(--ts-border-subtle);
    border-radius: var(--ts-radius-card);
    padding: 24px;
    margin-top: 24px;
}
.ts-reassurance-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.ts-reassurance-item:last-child {
    margin-bottom: 0;
}
.ts-reassurance-item svg {
    color: var(--ts-teal-primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.ts-reassurance-item strong {
    display: block;
    color: var(--ts-ink-primary);
    font-size: 0.9375rem;
}
.ts-reassurance-item span {
    font-size: 0.8125rem;
    color: var(--ts-ink-secondary);
}

.ts-enquiry-form-card {
    background: #FFFFFF;
    border: 1px solid var(--ts-border-subtle);
    border-radius: var(--ts-radius-card);
    padding: 36px 32px;
    box-shadow: var(--ts-shadow-card);
}

/* ========================================================
   SECTION 5: UNIVERSAL FORM DESIGN SYSTEM
   Consistent across Home, Contact, Services, FAQs, and Modals
======================================================== */
.ts-form-row,
.ts-form-group {
    margin-bottom: 20px;
    position: relative;
}
.ts-form-row label,
.ts-form-group label,
.ts-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ts-ink-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.ts-required-star,
.ts-required {
    color: #E11D48;
    margin-left: 2px;
}
.ts-form-row input[type="text"],
.ts-form-row input[type="tel"],
.ts-form-row input[type="email"],
.ts-form-row input[type="number"],
.ts-form-row select,
.ts-form-row textarea,
.ts-form-group input[type="text"],
.ts-form-group input[type="tel"],
.ts-form-group input[type="email"],
.ts-form-group input[type="number"],
.ts-form-group select,
.ts-form-group textarea,
.ts-input,
.ts-select,
.ts-textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1.5px solid #CBD5E1;
    border-radius: var(--ts-radius-btn, 8px);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--ts-ink-primary);
    background-color: #FFFFFF;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}
.ts-form-row textarea,
.ts-form-group textarea,
.ts-textarea {
    min-height: 100px;
    line-height: 1.6;
    resize: vertical;
}
.ts-form-row input:focus,
.ts-form-row select:focus,
.ts-form-row textarea:focus,
.ts-form-group input:focus,
.ts-form-group select:focus,
.ts-form-group textarea:focus,
.ts-input:focus,
.ts-select:focus,
.ts-textarea:focus {
    border-color: var(--ts-teal-primary) !important;
    box-shadow: 0 0 0 3px rgba(14, 118, 115, 0.18) !important;
    outline: none !important;
}
.ts-form-row input:disabled,
.ts-form-group input:disabled {
    background-color: #F1F5F9;
    color: #94A3B8;
    cursor: not-allowed;
}

/* Checkbox & Consent */
.ts-checkbox-row,
.ts-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.8125rem;
    color: var(--ts-ink-secondary);
    line-height: 1.5;
}
.ts-checkbox-row input[type="checkbox"],
.ts-form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ts-teal-primary);
    flex-shrink: 0;
    cursor: pointer;
}

/* Validation & Feedback Notices */
.ts-form-notice {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ts-form-notice-success,
.ts-notice-success {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}
.ts-form-notice-error,
.ts-notice-error {
    background-color: #FFF1F2;
    border: 1px solid #FECDD3;
    color: #9F1239;
}
.ts-field-error {
    color: #E11D48;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}
.ts-form-privacy {
    font-size: 0.75rem;
    color: var(--ts-ink-muted);
    line-height: 1.45;
    margin-top: 12px;
}

/* -------------------------------------------------------------
   9. ACCORDION FAQ SECTION
------------------------------------------------------------- */
.ts-faq-section {
    padding: 70px 0;
    background: var(--ts-bg-ivory);
    border-top: 1px solid var(--ts-border-subtle);
}

.ts-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ts-faq-item {
    background: #FFFFFF;
    border: 1px solid var(--ts-border-subtle);
    border-radius: var(--ts-radius-card);
    padding: 20px 24px;
    box-shadow: var(--ts-shadow-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}
.ts-faq-item:hover {
    border-color: #CBD5E1;
}
.ts-faq-item summary {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ts-ink-primary);
    list-style: none;
    position: relative;
    padding-right: 30px;
    cursor: pointer;
}
.ts-faq-item summary::-webkit-details-marker {
    display: none;
}
.ts-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ts-teal-primary);
}
.ts-faq-item[open] summary::after {
    content: '−';
}
.ts-faq-content {
    margin-top: 12px;
    font-size: 0.9375rem;
    color: var(--ts-ink-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--ts-border-light);
    padding-top: 12px;
}

/* -------------------------------------------------------------
   10. SITE FOOTER
------------------------------------------------------------- */
.ts-site-footer {
    background: var(--ts-bg-dark);
    color: #94A3B8;
    padding: 70px 0 30px;
    font-size: 0.875rem;
    border-top: 3px solid var(--ts-teal-primary);
}
.ts-site-footer a {
    color: #CBD5E1;
    text-decoration: none;
}
.ts-site-footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.ts-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    margin-bottom: 50px;
}

.ts-footer-logo-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ts-footer-logo-title .ts-footer-icon {
    color: #14B8A6;
    flex-shrink: 0;
}
.ts-footer-logo-title h4 {
    color: #FFFFFF !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    margin: 0 !important;
}
.ts-footer-tagline {
    color: #94A3B8;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.ts-footer-heading {
    color: #FFFFFF;
    font-size: 1.0625rem;
    font-weight: 800;
    margin: 0 0 18px 0;
    letter-spacing: -0.01em;
}

.ts-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ts-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.ts-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #CBD5E1;
    font-size: 0.875rem;
}
.ts-contact-item svg {
    color: var(--ts-teal-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.ts-footer-disclaimer-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ts-radius-sm);
    padding: 18px 22px;
    margin-bottom: 40px;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #94A3B8;
}
.ts-disclaimer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F87171;
    font-weight: 700;
    margin-bottom: 6px;
}

.ts-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    font-size: 0.8125rem;
}
.ts-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.ts-footer-attribution a {
    color: #E2E8F0;
    font-weight: 700;
}

/* Floating Emergency Contact Buttons */
.ts-floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.ts-float-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--ts-radius-pill);
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}
.ts-float-btn:hover {
    transform: translateY(-2px);
}
.ts-float-whatsapp { background: var(--ts-whatsapp); }
.ts-float-phone { background: var(--ts-teal-primary); }
.ts-back-to-top {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid var(--ts-teal-primary);
    color: var(--ts-teal-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 31, 44, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.ts-back-to-top.is-visible {
    opacity: 0.95;
    visibility: visible;
    transform: translateY(0);
}
.ts-back-to-top:hover {
    transform: translateY(-3px);
    background: var(--ts-teal-primary);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(14, 118, 115, 0.35);
    opacity: 1;
}
.ts-back-to-top:focus-visible {
    outline: 3px solid var(--ts-teal-hover);
    outline-offset: 3px;
    opacity: 1;
    visibility: visible;
}
.ts-back-to-top svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* Mobile Drawer Overlay */
.ts-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    visibility: hidden;
    transition: visibility 0.25s ease;
}
.ts-mobile-drawer.is-open {
    visibility: visible;
}
.ts-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 31, 44, 0.6);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ts-mobile-drawer.is-open .ts-drawer-backdrop {
    opacity: 1;
}
.ts-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85%;
    background: #FFFFFF;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
}
.ts-mobile-drawer.is-open .ts-drawer-content {
    transform: translateX(0);
}
.ts-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--ts-border-subtle);
    padding-bottom: 16px;
}
.ts-drawer-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ts-ink-primary);
    display: block;
}
.ts-drawer-sub {
    font-size: 0.75rem;
    color: var(--ts-ink-muted);
}
.ts-drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ts-ink-primary);
    cursor: pointer;
    padding: 4px;
}
.ts-drawer-menu {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ts-drawer-menu a {
    color: var(--ts-ink-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}
.ts-drawer-portal-item a {
    color: var(--ts-teal-primary);
    font-weight: 700;
}
.ts-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}
.ts-btn-whatsapp-drawer {
    background: var(--ts-whatsapp) !important;
    color: #FFFFFF !important;
}
.ts-btn-enquire-drawer {
    background: var(--ts-teal-primary) !important;
    color: #FFFFFF !important;
}

/* -------------------------------------------------------------
   11. RESPONSIVE BREAKPOINTS (1440, 1366, 1024, 768, 390, 360)
------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ts-hero-split-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .ts-hero-title {
        font-size: 2.25rem;
    }
    .ts-triage-section {
        margin-top: 10px;
        margin-bottom: 36px;
    }
    .ts-triage-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 20px;
    }
    .ts-triage-col {
        border-right: none;
        padding-right: 0;
    }
    .ts-triage-action {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .ts-btn-triage {
        width: 100%;
        justify-content: center;
    }
    .ts-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ts-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .ts-desktop-nav,
    .ts-header-actions .ts-btn-header-cta {
        display: none;
    }
    .ts-mobile-toggle {
        display: flex;
    }
    .ts-topbar-location {
        display: none;
    }
    .ts-enquiry-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ts-hero-title {
        font-size: 1.875rem;
    }
    .ts-hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    .ts-hero-cta-group .ts-btn {
        width: 100%;
    }
    .ts-triage-section {
        margin-top: 0;
        margin-bottom: 28px;
    }
    .ts-triage-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }
    .ts-triage-col {
        border-bottom: 1px solid var(--ts-border-subtle);
        padding-bottom: 12px;
    }
    .ts-triage-col:nth-child(4) {
        border-bottom: none;
        padding-bottom: 0;
    }
    .ts-process-grid {
        grid-template-columns: 1fr;
    }
    .ts-footer-grid {
        grid-template-columns: 1fr;
    }
    .ts-topbar-phones {
        font-size: 0.75rem;
    }
    .ts-topbar-phones span {
        display: none;
    }
    .ts-topbar-wa {
        display: none;
    }
    .ts-topbar-social-wrap {
        display: none;
    }
    .ts-enquiry-form-card {
        padding: 24px 18px;
    }
    /* Floating action mobile safeguards (avoid viewport overflow & text collision) */
    .ts-floating-actions {
        bottom: 16px;
        right: 14px;
        gap: 8px;
    }
    .ts-float-btn {
        width: 46px;
        height: 46px;
        border-radius: 50% !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        box-shadow: 0 4px 14px rgba(15, 31, 44, 0.25);
    }
    .ts-float-btn svg {
        width: 22px;
        height: 22px;
        margin: 0 !important;
    }
    .ts-float-label {
        display: none !important;
    }
    .ts-hero-image-wrap {
        height: 260px;
    }
    .ts-hero-floating-badge,
    .ts-hero-floating-card {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 10px 14px;
    }
    .ts-floating-badge-title,
    .ts-floating-card-title {
        font-size: 0.8125rem;
    }
    .ts-floating-badge-sub,
    .ts-floating-card-desc {
        font-size: 0.6875rem;
    }
}

@media (max-width: 360px) {
    .ts-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .ts-hero-title {
        font-size: 1.625rem;
    }
    .ts-topbar-hours {
        display: none;
    }
}
