:root {
    --primary: #4facfe;
    --secondary: #00f2fe;
    /* Public shell: light page (avoids full black body) */
    --page-bg: #eef2f7;
    --body-text: #0f172a;
    --text-gray: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(15, 23, 42, 0.1);
    /* Legacy names — dynamic page CSS may still reference these */
    --bg-dark: var(--page-bg);
    --text-white: var(--body-text);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

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

body,
html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--page-bg);
    color: var(--body-text);
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}


.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 14px 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

@media (min-width: 1024px) {
    .glass-nav {
        padding: 16px 40px;
        gap: 24px;
    }
}

/* Public header brand: optional logo + name + subtitle (e.g. company + PVT LTD) */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 1;
    min-width: 0;
    max-width: min(100%, 56vw);
}

@media (min-width: 1024px) {
    .nav-brand {
        max-width: min(100%, 420px);
    }
}

/* Logos are usually uploaded at 512×515; any aspect fits via max bounds + object-fit */
.nav-brand__logo {
    max-height: clamp(40px, 11vw, 54px);
    width: auto;
    height: auto;
    max-width: min(56px, 20vw);
    object-fit: contain;
    object-position: center;
    border-radius:0;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.06);
}

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

.nav-brand__name {
    font-size: clamp(15px, 3.6vw, 22px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.nav-brand--rich .nav-brand__name {
    color: var(--body-text);
}

.nav-brand__sub {
    font-size: clamp(9px, 2.2vw, 11px);
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 3px;
    line-height: 1.2;
}

.nav-brand--gradient .nav-brand__name {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 380px) {
    .nav-brand {
        gap: 8px;
        max-width: min(100%, 50vw);
    }

    .nav-brand__logo {
        max-height: clamp(36px, 10vw, 44px);
        max-width: min(46px, 22vw);
    }
}

/* Hamburger */
.nav-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-left: auto;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid var(--glass-border);
    border-radius:0;
    cursor: pointer;
    color: var(--body-text);
    flex-shrink: 0;
}

.nav-menu-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius:0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

body.nav-drawer-open .nav-menu-toggle .nav-menu-bar:nth-child(2) {
    opacity: 0;
}

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

/* One row: horizontal scroll when many pages (all service centers stay visible as links) */
.nav-links--desktop {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(8px, 1vw, 16px);
    flex: 1;
    justify-content: flex-start;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 4px 2px 8px;
}

@media (min-width: 1400px) {
    .nav-links--desktop {
        justify-content: center;
    }
}

.nav-links--desktop .nav-page-link,
.nav-drawer__link {
    color: var(--body-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.nav-links--desktop .nav-page-link {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 
   CMS Modular Styles: CTA logic migrated to cms_cta.css 
*/

/* Drawer overlay */
.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 198;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.nav-drawer-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Side menu */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 380px);
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 200;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid var(--glass-border);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
}

.nav-drawer.is-open {
    transform: translateX(0);
}

.nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.nav-drawer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.nav-drawer__brand-logo {
    max-height: 44px;
    width: auto;
    height: auto;
    max-width: 44px;
    object-fit: contain;
    object-position: center;
    border-radius:0;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.06);
}

.nav-drawer__brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nav-drawer__title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-drawer__head--rich .nav-drawer__title {
    background: none;
    -webkit-text-fill-color: var(--body-text);
    color: var(--body-text);
}

.nav-drawer__subtitle {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 2px;
}

.nav-drawer__close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius:0;
    background: rgba(15, 23, 42, 0.06);
    color: var(--body-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.nav-drawer__links {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    overflow-y: auto;
    flex: 1;
}

.nav-drawer__link {
    padding: 14px 22px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-drawer__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px calc(20px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
}

/* Nav drawer CTA logic migrated */

/* Mobile + tablet: hamburger, hide desktop nav & CTA row */
@media (max-width: 1023px) {
    .nav-menu-toggle {
        display: flex;
    }

    .nav-links--desktop {
        display: none !important;
    }

/* Migrated to cms_cta.css */
}

@media (min-width: 1024px) {
    .nav-menu-toggle {
        display: none !important;
    }

    .nav-drawer,
    .nav-drawer-overlay {
        display: none !important;
    }

    body.nav-drawer-open {
        overflow: auto !important;
    }
}



.section {
    min-height: 100vh;
    padding: 150px 50px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--body-text);
}

.gradient-text {
    background: linear-gradient(to right, var(--secondary), var(--primary), var(--secondary));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    to {
        background-position: 200% center;
    }
}

p.subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-gray);
    max-width: 800px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Service Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius:0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: left;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 242, 254, 0.1);
}

/* Hidden Control Panel */
#control-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius:0;
    padding: 40px;
    z-index: 1000;
    display: none;
    opacity: 0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#control-panel.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.panel-input,
.panel-select {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius:0;
    color: var(--body-text);
    margin-top: 10px;
    margin-bottom: 20px;
}

.panel-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border: none;
    border-radius:0;
    color: black;
    font-weight: 700;
    cursor: pointer;
}

/* [cms_contact_form] shortcode */
/* CMS components moved to dedicated files: cms_contact_form.css, cms_cta.css */

/* 
   CMS Components: Contact Form and CTA buttons have been moved 
   to their own modular files: cms_contact_form.css and cms_cta.css.
*/

@media (max-width: 1023px) {
    .section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* —— Page templates (admin: Default | Full width | Canvas) —— */
body.cms-tpl-full-width main.dynamic-container.section,
body.cms-tpl-canvas main.dynamic-container.section {
    max-width: none;
    width: 100% !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-items: stretch;
}

body.cms-tpl-full-width main.dynamic-container.section {
    padding-left: clamp(16px, 4vw, 48px);
    padding-right: clamp(16px, 4vw, 48px);
    padding-bottom: 80px;
}

body.cms-tpl-canvas main.dynamic-container.section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

body.cms-tpl-full-width main.dynamic-container.section .ref-wrap,
body.cms-tpl-canvas main.dynamic-container.section .ref-wrap {
    max-width: none;
}

body.cms-tpl-canvas .glass-nav,
body.cms-tpl-canvas .nav-menu-toggle,
body.cms-tpl-canvas .nav-drawer-overlay,
body.cms-tpl-canvas .nav-drawer {
    display: none !important;
}

body.cms-tpl-canvas {
    background: transparent !important;
}

body.cms-tpl-canvas.has-sticky-cta,
body.cms-tpl-canvas.has-sticky-cta.has-sticky-layout-full,
body.cms-tpl-canvas.has-sticky-cta.has-sticky-desktop {
    padding-bottom: 0 !important;
}