/* Shared site chrome — loaded on every page */

:root {
    /* Brand blue — matches logo */
    --primary-color: #0052cc;
    --primary-dark: #003d8f;
    --primary-deep: #0c1f3d;
    --secondary-color: #007CDB;
    --accent-color: #38bdf8;
    --accent-soft: #e8f4fd;
    --dark-color: #0f172a;
    --light-color: #ffffff;
    --text-color: #334155;
    --text-light: #64748b;
    --heading-color: #0c1f3d;
    --footer-bg: #0c1f3d;
    --surface-muted: #f1f6fb;
    --surface-elevated: #ffffff;
    --border-color: #e2e8f0;
    --border-accent: rgba(0, 82, 204, 0.14);
    --shadow-light: 0 2px 12px rgba(15, 23, 42, 0.06);
    --shadow-medium: 0 8px 24px rgba(0, 82, 204, 0.1);
    --shadow-heavy: 0 16px 40px rgba(0, 61, 143, 0.14);
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-border: rgba(0, 82, 204, 0.08);
    --input-bg: #ffffff;
    --transition-speed: 0.3s;
    --border-radius: 10px;
    --header-offset: 88px;
    --float-size: 48px;
    --float-right: 24px;
    --float-bottom: 24px;
    --float-gap: 12px;
    --font-display: 'Sora', 'Segoe UI', sans-serif;
    --font-family: 'Outfit', 'Segoe UI', sans-serif;
    color-scheme: light;
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #60a5fa;
    --primary-deep: #0b1220;
    --secondary-color: #38bdf8;
    --accent-color: #7dd3fc;
    --accent-soft: rgba(59, 130, 246, 0.16);
    --dark-color: #f1f5f9;
    --light-color: #0b1220;
    --text-color: #cbd5e1;
    --text-light: #94a3b8;
    --heading-color: #f1f5f9;
    --footer-bg: #060b14;
    --surface-muted: #111827;
    --surface-elevated: #1a2332;
    --border-color: #2a3648;
    --border-accent: rgba(56, 189, 248, 0.18);
    --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.28);
    --shadow-medium: 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-heavy: 0 16px 40px rgba(0, 0, 0, 0.45);
    --header-bg: rgba(11, 18, 32, 0.88);
    --header-border: rgba(148, 163, 184, 0.12);
    --input-bg: #151d2c;
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-color);
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 80% 50% at 100% -10%, rgba(0, 124, 219, 0.07), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 20%, rgba(0, 82, 204, 0.05), transparent 50%);
    background-attachment: fixed;
    transition: background-color 0.35s ease, color 0.35s ease;
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse 80% 50% at 100% -10%, rgba(56, 189, 248, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 30%, rgba(59, 130, 246, 0.07), transparent 50%);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 10px 18px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.skip-link:focus {
    top: 12px;
}

/* Top bar */
.top-bar {
    background: linear-gradient(90deg, var(--primary-deep) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6px 0;
    font-size: 0.85rem;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
}

.top-bar-contact i {
    font-size: 0.8rem;
}

.top-bar-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-bar-social a {
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, transform 0.25s ease;
    font-size: 0.85rem;
}

.top-bar-social a:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

/* Header & navigation */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--header-border), var(--shadow-light);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.header.is-scrolled {
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
}

[data-theme="dark"] .header.is-scrolled {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.headercontainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 24px;
}

.logocontainer {
    padding: 10px 0;
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.logocontainer:hover {
    transform: translateY(-1px);
}

.logocontainer img {
    display: block;
    height: 48px;
    width: auto;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.navbar a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar a:hover::after,
.navbar a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar a:hover {
    color: var(--primary-color);
    background-color: var(--accent-soft);
}

.navbar a.active {
    background: var(--accent-soft);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 8px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    background: var(--surface-elevated);
    color: var(--text-color);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.theme-toggle__moon,
.theme-toggle__sun {
    position: absolute;
    font-size: 1rem;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.theme-toggle__sun {
    opacity: 0;
    transform: rotate(-40deg) scale(0.7);
}

[data-theme="dark"] .theme-toggle__moon {
    opacity: 0;
    transform: rotate(40deg) scale(0.7);
}

[data-theme="dark"] .theme-toggle__sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: 9px 18px;
    background: var(--primary-color);
    color: #fff !important;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-cta:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

.header-cta::after {
    display: none !important;
}

.nav-enquire {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: all var(--transition-speed);
    border-radius: 3px;
}

.logocontainer a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .logocontainer a {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .navbar {
    background-color: var(--surface-elevated);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea {
    background: var(--input-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .breadcrumb a,
[data-theme="dark"] .breadcrumb .current {
    color: rgba(255, 255, 255, 0.9);
}

.headerline {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section titles — unified sitewide */
.section-title {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 0;
}

.company-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: none;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
    font-family: var(--font-family);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-light {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--light-color);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--light-color);
}

/* Text links — used sitewide */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
    border-bottom-color: currentColor;
}

.text-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.text-link:hover i {
    transform: translateX(3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating actions — shared column on the right */
.whatsapp-float,
.back-to-top {
    position: fixed;
    right: var(--float-right);
    width: var(--float-size);
    height: var(--float-size);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.whatsapp-float {
    bottom: calc(var(--float-bottom) + var(--float-size) + var(--float-gap));
    background: #1f9e52;
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0.95;
}

.whatsapp-float:hover {
    background: #188a46;
    opacity: 1;
}

.whatsapp-float i {
    color: #fff;
}

.back-to-top {
    bottom: var(--float-bottom);
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
    font-size: 1rem;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
}

@media (max-width: 992px) {
    .header-cta {
        display: none;
    }

    .navbar.active .nav-enquire {
        display: block;
        margin-top: 8px;
        padding: 14px;
        text-align: center;
        background: var(--primary-color);
        color: #fff !important;
        border-radius: var(--border-radius);
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .navbar.active .nav-enquire::after {
        display: none;
    }

    .navbar.active .nav-enquire:hover {
        background: var(--primary-dark);
        color: #fff !important;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 4px 0;
        font-size: 0.75rem;
    }

    .top-bar-container,
    .headercontainer {
        padding: 0 20px;
    }

    .top-bar-contact {
        gap: 15px;
    }

    .top-bar-contact span {
        font-size: 0.75rem;
    }

    .top-bar-social a {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--light-color);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-medium);
        display: none;
        margin-left: 0;
        gap: 4px;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .navbar.active + .header-cta,
    .headercontainer .header-cta.mobile-show {
        display: none;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .top-bar-contact span:last-child,
    .top-bar-contact .top-bar-link:last-child {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
    }
}

/* Focus rings — keyboard accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.navbar a:focus-visible,
.header-cta:focus-visible,
.btn:focus-visible,
.btn-cta-primary:focus-visible,
.btn-cta-secondary:focus-visible,
.top-bar-link:focus-visible,
.footer-links a:focus-visible,
.site-footer a:focus-visible,
.partner-link:focus-visible,
.hq-link:focus-visible,
.regional-card__cta:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    :root {
        --float-size: 46px;
        --float-right: 16px;
        --float-bottom: 16px;
        --float-gap: 10px;
    }
}
