/* ============================================================
   TITAN TELECOMMUNICATIONS — Dark Theme (Sycom-inspired)
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── Preloader ── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}
#preloader.out { opacity: 0; pointer-events: none; }

.preloader-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    height: 52px;
    width: auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 0.3s ease 0.05s forwards;
}

/* Circle: r=128, circumference ≈ 804.2 */
.preloader-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.preloader-arc {
    stroke-dasharray: 804.2;
    stroke-dashoffset: 804.2;
    animation: draw-arc 0.85s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

@keyframes draw-arc {
    to { stroke-dashoffset: 45; }
}

/* ── Custom Properties ── */
:root {
    --bg:        #000;
    --surface:   #0a0a0a;
    --surface-2: #111;
    --text:      #fff;
    --text-dim:  rgba(255,255,255,0.72);
    --text-muted:rgba(255,255,255,0.4);
    --accent:    #29ABE2;
    --accent-glow: rgba(41,171,226,0.25);
    --border:    rgba(255,255,255,0.1);
    --border-dim:rgba(255,255,255,0.06);
    --font:      'Inter', 'Helvetica Neue', sans-serif;
    --font-disp: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body { overflow-x: hidden; background: var(--bg); }

/* ── Typography ── */
.label {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.display {
    font-family: var(--font-disp);
    font-weight: 800;
    font-size: clamp(3rem, 11vw, 10rem);
    line-height: 0.88;
    text-transform: uppercase;
    letter-spacing: -0.015em;
}

h1 {
    font-family: var(--font-disp);
    font-weight: 800;
    font-size: clamp(3rem, 10vw, 8.5rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-disp);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.95;
    text-transform: uppercase;
}

h3 {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.05;
    text-transform: uppercase;
}

p { font-size: 0.95rem; line-height: 1.75; color: var(--text-dim); }

.accent-text { color: var(--accent); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; }

.section {
    padding: 6rem 2.5rem;
    border-top: 1px solid var(--border);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.split--equal { grid-template-columns: 1fr 1fr; }

/* ── Scroll animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(44px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

.stagger-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.stagger-child.visible { opacity: 1; transform: translateY(0); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 2.2rem;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(5px); }

.btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 2.5rem;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 72px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* ── Inline nav links (always visible on desktop) ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-link {
    position: relative;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.25s var(--ease), transform 0.25s var(--ease);
    transform-origin: center;
}
.nav-link:hover {
    color: var(--text);
    transform: scale(1.22);
}

/* Telus partner box */
.nav-link-telus {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--accent);
    border-radius: 3px;
    text-transform: none;
    transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
    transform-origin: center;
}
.telus-logo {
    height: 28px;
    width: auto;
    margin-bottom: 2px;
    transition: opacity 0.25s;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.nav-link-telus .telus-sub {
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
    transition: color 0.25s;
}
.nav-link-telus:hover {
    transform: scale(1.12);
    background: rgba(41,171,226,0.1);
    box-shadow: 0 0 0 1px var(--accent);
}
.nav-link-telus:hover .telus-logo { opacity: 1; }
.nav-link-telus:hover .telus-sub { color: var(--text-dim); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }   /* when inline links present, they own the auto-margin */

.nav-phone-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.nav-phone-link:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }

/* Construction Radar nav element */
.nav-cr-link {
    display: flex;
    align-items: center;
    align-self: stretch;
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(37,99,235,0.4);
    border-radius: 3px;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.nav-cr-link:hover {
    background: rgba(37,99,235,0.1);
    border-color: rgba(37,99,235,0.8);
    transform: scale(1.05);
}
.cr-logo-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.cr-logo-mark {
    flex-shrink: 0;
    display: block;
}
.cr-logo-mark .cr-sweep {
    transform-origin: 16px 16px;
    animation: cr-spin 2.4s linear infinite;
}
@keyframes cr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .cr-logo-mark .cr-sweep { animation: none; }
}
.cr-wordmark {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.55);
    line-height: 1;
    font-family: var(--font);
    white-space: nowrap;
}
.cr-wordmark strong {
    font-weight: 800;
    color: #60a5fa;
}

/* Hamburger (hidden on desktop — inline links shown instead) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: border-color 0.2s;
}
.hamburger:hover { border-color: rgba(255,255,255,0.3); }
.hamburger span {
    display: block;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.35s var(--ease), opacity 0.35s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Full-screen Menu Overlay ── */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: #000;
    display: flex;
    flex-direction: column;
    padding: 7rem 2.5rem 3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}
.menu-overlay.is-open { opacity: 1; pointer-events: all; }

.menu-links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; }

.menu-link-item { border-top: 1px solid var(--border-dim); }
.menu-link-item:last-child { border-bottom: 1px solid var(--border-dim); }

.menu-link-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-disp);
    font-weight: 800;
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.2s;
}

.menu-link-item a .menu-num {
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    align-self: flex-end;
    padding-bottom: 0.4rem;
}

.menu-link-item a:hover { color: var(--accent); }

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.menu-footer-contact a { color: var(--text-dim); text-decoration: none; display: block; margin-bottom: 0.5rem; }
.menu-footer-contact a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100svh;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.15) 100%
    );
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    opacity: 0;
}

.hero-title {
    font-family: var(--font-disp);
    font-weight: 800;
    font-size: clamp(3.2rem, 11vw, 10rem);
    line-height: 0.87;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    opacity: 0;
}

.hero-desc {
    max-width: 460px;
    font-size: 0.93rem;
    line-height: 1.75;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    opacity: 0;
}

.hero-bar {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    gap: 0;
    opacity: 0;
}

/* Hero animations triggered by JS after preloader */
body.hero-ready .hero-eyebrow { animation: fadeSlideUp 0.9s var(--ease) 0.1s forwards; }
body.hero-ready .hero-title   { animation: fadeSlideUp 1s   var(--ease) 0.3s forwards; }
body.hero-ready .hero-desc    { animation: fadeSlideUp 0.9s var(--ease) 0.6s forwards; }
body.hero-ready .hero-bar     { animation: fadeIn      1s   ease        0.9s forwards; }

.hero-bar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 2.5rem 0.7rem 0;
    margin-right: 2.5rem;
    border-right: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
    white-space: nowrap;
}
.hero-bar-item:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-bar-item .bar-arrow { font-size: 0.7rem; transition: transform 0.2s; }
.hero-bar-item:hover { color: var(--accent); }
.hero-bar-item:hover .bar-arrow { transform: translateX(4px); }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   HOME — ABOUT SECTION
   ============================================================ */
.about-left h2 { line-height: 1.0; margin-bottom: 0.5rem; }

.about-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 3rem;
    background: var(--border);
}
.about-stat {
    background: var(--bg);
    padding: 2rem 2rem 2rem 0;
}
.about-stat:nth-child(even) { padding-left: 2rem; }
.stat-num {
    font-family: var(--font-disp);
    font-weight: 800;
    font-size: 3.5rem;
    color: var(--accent);
    line-height: 1;
    display: block;
}
.stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.4rem;
    display: block;
}

.about-right p { margin-bottom: 1.25rem; }
.about-right p:last-child { margin-bottom: 0; }

/* ============================================================
   HOME — SERVICES ACCORDION
   ============================================================ */
.services-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.services-accordion { border-top: 1px solid var(--border); }

.accordion-item { border-bottom: 1px solid var(--border); }

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 0;
    cursor: pointer;
    transition: color 0.2s;
    gap: 1rem;
}
.accordion-header:hover { color: var(--accent); }

.accordion-left { display: flex; align-items: center; gap: 1.5rem; }

.accordion-num {
    font-family: var(--font);
    font-size: 0.72rem;
    color: var(--text-muted);
    min-width: 28px;
}

.accordion-title {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: clamp(1.1rem, 2.5vw, 1.75rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.accordion-plus {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease), border-color 0.2s, background 0.2s;
    color: var(--text);
}
.accordion-item.is-open .accordion-plus {
    transform: rotate(45deg);
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.55s var(--ease);
}
.accordion-item.is-open .accordion-body { max-height: 300px; }

.accordion-body-inner {
    padding: 0 0 2rem calc(28px + 1.5rem);
    max-width: 640px;
}
.accordion-body-inner p { font-size: 0.9rem; color: var(--text-dim); }

/* ============================================================
   HOME — SERVICES STATIC LIST
   ============================================================ */
.services-list-static { border-top: 1px solid var(--border); }

.service-static-item {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.service-static-left { display: flex; align-items: baseline; gap: 1.5rem; }

.service-static-title {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    transition: color 0.2s;
}

.service-static-item:hover .service-static-title { color: var(--accent); }

.service-static-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.service-static-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.service-static-item:hover .service-static-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: rotate(-45deg);
}

@media (max-width: 900px) {
    .service-static-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .service-static-left { grid-column: 1; grid-row: 1; }
    .service-static-link { grid-column: 2; grid-row: 1; align-self: start; margin-top: 0.25rem; }
    .service-static-desc { grid-column: 1 / -1; grid-row: 2; padding-top: 0.25rem; }
}

@media (max-width: 600px) {
    .service-static-item { gap: 1rem; }
    .service-static-left { gap: 1rem; }
}

/* ============================================================
   HOME — TESTIMONIALS
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border-dim);
    padding: 2.5rem;
    border-radius: 2px;
    transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--border); }

.testimonial-stars {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.15em;
}

.testimonial-quote {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   BRANDS / PARTNERS SCROLL STRIP
   ============================================================ */
.brands-section {
    padding: 4rem 0 4.5rem;
    border-top: 1px solid var(--border);
    overflow: hidden;
}
.brands-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 2rem;
}
.brands-track-wrap {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.brands-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: brands-scroll 28s linear infinite;
}
.brands-track:hover { animation-play-state: paused; }
@keyframes brands-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.45;
    transition: opacity 0.3s;
    padding: 0.5rem 1.25rem;
    cursor: default;
    user-select: none;
}
.brand-item:hover { opacity: 0.9; }
.brand-item img {
    height: 48px;
    width: auto;
    max-width: 160px;
    filter: brightness(0) invert(1);
    display: block;
}

/* ============================================================
   HOME — CTA SECTION
   ============================================================ */
.cta-section {
    padding: 9rem 2.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(41,171,226,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 { font-size: clamp(2.2rem, 6vw, 5.5rem); margin-bottom: 1.5rem; }
.cta-section p { margin-bottom: 3rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 5rem 2.5rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.footer-logo-img {
    height: 72px;
    width: auto;
    display: block;
    margin-bottom: 0.25rem;
}
.footer-brand p {
    font-size: 0.85rem;
    margin-top: 1.25rem;
    max-width: 240px;
    color: var(--text-muted);
    line-height: 1.65;
}

.footer-col-title {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
}

.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a {
    font-size: 0.88rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-address {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 2;
}
.footer-address a { color: var(--accent); text-decoration: none; }
.footer-address a:hover { text-decoration: underline; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

.footer-socials { display: flex; gap: 1.25rem; }
.footer-socials a {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-socials a:hover { color: var(--text); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    padding: 13rem 2.5rem 5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 75% 30%, rgba(41,171,226,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.page-hero h1 { position: relative; z-index: 1; }
.page-hero .label { position: relative; z-index: 1; }
.page-hero .hero-desc-inner {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.75;
}

/* Split hero (careers page) */
.page-hero--split { padding-bottom: 0; overflow: hidden; }

.page-hero-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.page-hero-text { position: relative; z-index: 1; padding-bottom: 3rem; }

.page-hero-img-wrap {
    position: relative;
    z-index: 1;
    height: 480px;
    overflow: hidden;
    border-radius: 4px;
    align-self: center;
}

.page-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    filter: brightness(0.75) saturate(0.85);
}

@media (max-width: 760px) {
    .page-hero-split-inner { grid-template-columns: 1fr; }
    .page-hero-img-wrap { min-height: 260px; border-radius: 2px; margin-bottom: 3rem; }
    .page-hero-text { padding-bottom: 0; }
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-block {
    padding: 5rem 2.5rem;
    border-top: 1px solid var(--border);
}

.service-block:first-of-type { border-top-color: transparent; }

.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4/3;
    background: var(--surface-2);
}

.service-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.65) saturate(0.8);
    transition: transform 0.7s var(--ease), filter 0.5s;
}
.service-image:hover img {
    transform: scale(1.04);
    filter: brightness(0.8) saturate(1);
}

.service-image-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border-dim);
}

.service-num {
    font-family: var(--font-disp);
    font-size: 5rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    margin-bottom: 1rem;
}

.service-content h3 { margin-bottom: 1.5rem; }
.service-content p  { margin-bottom: 1rem; }
.service-content p:last-of-type { margin-bottom: 2rem; }

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-dim);
    font-size: 0.88rem;
    color: var(--text-dim);
}

.service-feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 5px;
}

/* Services — Why section */
.why-section {
    padding: 5rem 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.advantage-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
}

.advantage-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-dim);
}
.advantage-item:first-child { border-top: 1px solid var(--border-dim); }

.advantage-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    margin-top: 2px;
}

.advantage-text h4 {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}
.advantage-text p { font-size: 0.86rem; }

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.careers-stats {
    display: flex;
    gap: 4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.careers-stat-num {
    font-family: var(--font-disp);
    font-weight: 800;
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    display: block;
}
.careers-stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.4rem;
    display: block;
}

.jobs-list { border-top: 1px solid var(--border); }

.job-card {
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    transition: background 0.2s;
}

.job-title {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}
.job-card:hover .job-title { color: var(--accent); }

.job-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem; }

.job-tag {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 1px;
}

.job-desc { font-size: 0.88rem; color: var(--text-muted); max-width: 520px; }

.apply-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: gap 0.2s;
    flex-shrink: 0;
}
.apply-link:hover { gap: 0.85rem; }

/* How to apply */
.steps-section {
    padding: 6rem 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.steps-list { margin-top: 3rem; }

.step-item {
    display: flex;
    gap: 2.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-dim);
    align-items: flex-start;
}
.step-item:first-child { border-top: 1px solid var(--border-dim); }

.step-num {
    font-family: var(--font-disp);
    font-weight: 800;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
    min-width: 48px;
}

.step-body h4 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.step-body p { font-size: 0.88rem; }
.step-body a { color: var(--accent); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-list { margin-top: 3rem; }

.contact-info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-dim);
    align-items: start;
}
.contact-info-row:first-child { border-top: 1px solid var(--border-dim); }

.contact-info-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-top: 2px;
}

.contact-info-value {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.7;
}
.contact-info-value a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-info-value a:hover { color: var(--accent); }

/* Contact form */
.contact-form-section { padding: 6rem 2.5rem; border-top: 1px solid var(--border); }

.contact-form { display: flex; flex-direction: column; gap: 2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.form-group { display: flex; flex-direction: column; gap: 0.6rem; }

.form-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-input,
.form-textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    transition: border-color 0.3s;
    appearance: none;
    -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255,255,255,0.18); }
.form-input:focus,
.form-textarea:focus { border-bottom-color: var(--accent); }

.form-textarea { resize: none; min-height: 130px; }

/* Newsletter */
.newsletter-inline {
    display: flex;
    gap: 0;
    max-width: 400px;
}
.newsletter-inline input {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border);
    border-right: none;
    padding: 0.7rem 1rem;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}
.newsletter-inline input::placeholder { color: var(--text-muted); }
.newsletter-inline input:focus { border-color: var(--accent); }
.newsletter-inline button {
    padding: 0.7rem 1.2rem;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.2s;
    white-space: nowrap;
}
.newsletter-inline button:hover { background: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Nav: switch to hamburger on narrower screens */
@media (max-width: 980px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 960px) {
    .split { grid-template-columns: 1fr; gap: 3rem; }
    .split--equal { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-bar-item { border-right: none; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--border); width: 100%; }
    .hero-bar { flex-direction: column; }
    .job-card { grid-template-columns: 1fr; }
    .contact-info-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

@media (max-width: 640px) {
    .nav { padding: 1rem 1.25rem; }
    .nav-phone-link { display: none; }
    .nav-cr-link .cr-wordmark { display: none; }  /* show icon only on mobile */
    .nav-logo-img { height: 48px; }      /* smaller logo so hamburger fits */
    .hero { padding: 1.5rem; }
    .section { padding: 4rem 1.5rem; }
    .page-hero { padding: 10rem 1.5rem 3rem; }
    .footer { padding: 4rem 1.5rem 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .cta-section { padding: 6rem 1.5rem; }
    .about-stat-grid { grid-template-columns: 1fr 1fr; }
    .service-block { padding: 3rem 1.5rem; }
    .steps-section { padding: 4rem 1.5rem; }
    .contact-form-section { padding: 4rem 1.5rem; }
    .menu-overlay { padding: 6rem 1.5rem 2rem; }
    .menu-link-item a { font-size: clamp(2rem, 10vw, 3.5rem); }
}

/* ============================================================
   CHATBOT
   ============================================================ */
#titan-chat-root { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 9000; }

/* Toggle button */
#titan-chat-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.25s var(--ease);
    position: relative;
    color: #000;
    user-select: none;
}
#titan-chat-btn:hover { transform: scale(1.08); }

.chat-notif {
    position: absolute; top: -4px; right: -4px;
    width: 18px; height: 18px;
    background: #e53e3e; color: #fff;
    font-size: 0.65rem; font-weight: 700;
    border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    border: 2px solid #000;
}

/* Chat window */
#titan-chat-window {
    position: absolute;
    bottom: 68px; right: 0;
    width: 360px;
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    max-height: 520px;
}
#titan-chat-window.is-open {
    opacity: 1; pointer-events: all; transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.1rem;
    background: #111;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.chat-header-left { display: flex; align-items: center; gap: 0.75rem; }
.chat-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent); color: #000;
    font-family: var(--font-disp); font-weight: 800; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.chat-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.chat-status { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; margin-top: 1px; }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #38a169; flex-shrink: 0; }
.chat-close-btn { color: var(--text-muted); padding: 0.25rem; transition: color 0.2s; line-height: 0; }
.chat-close-btn:hover { color: var(--text); }

/* Messages */
.chat-messages {
    flex: 1; overflow-y: auto; padding: 1rem;
    display: flex; flex-direction: column; gap: 0.6rem;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-msg { display: flex; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg--bot  { justify-content: flex-start; }

.chat-bubble {
    max-width: 82%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    font-size: 0.83rem;
    line-height: 1.6;
    word-break: break-word;
}
.chat-msg--bot  .chat-bubble { background: #1a1a1a; color: var(--text-dim); border-bottom-left-radius: 3px; border: 1px solid var(--border-dim); }
.chat-msg--user .chat-bubble { background: var(--accent); color: #000; font-weight: 500; border-bottom-right-radius: 3px; }

/* Typing indicator */
.chat-typing .chat-bubble {
    display: flex; align-items: center; gap: 5px;
    padding: 0.7rem 1rem;
}
.chat-typing .chat-bubble span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted);
    animation: chat-bounce 1.2s infinite ease-in-out;
}
.chat-typing .chat-bubble span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .chat-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40%            { transform: translateY(-6px); opacity: 1; }
}

/* Chips */
.chat-chips {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    padding: 0 0 0.25rem 0;
}
.chat-chip {
    font-size: 0.72rem; font-weight: 500;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    font-family: var(--font);
}
.chat-chip:hover { background: var(--accent); border-color: var(--accent); color: #000; }

/* Input */
.chat-input-wrap {
    display: flex; align-items: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    gap: 0.6rem;
    flex-shrink: 0;
    background: #111;
}
.chat-input {
    flex: 1;
    background: transparent;
    border: none; outline: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    caret-color: var(--accent);
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-send-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: #000;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}
.chat-send-btn:hover { background: #fff; transform: scale(1.08); }

@media (max-width: 420px) {
    #titan-chat-window { width: calc(100vw - 2rem); right: -0.5rem; }
    #titan-chat-root   { bottom: 1.25rem; right: 1.25rem; }
}
