/* =========================================================================
   SAIMS TELE COMMAND CENTRE — PREMIUM STYLESHEET
   A warm, editorial take: deep emerald-teal, champagne gold, a serif display
   face, and photography doing the talking instead of clinical iconography.
   ========================================================================= */

:root {
    --ink: #10241F;
    --ivory: #FBF8F2;
    --surface: #FFFFFF;
    --teal-900: #0E2A24;
    --teal-800: #12352D;
    --teal-700: #17453B;
    --teal-100: #E7EEE9;
    --gold: #C9A24B;
    --gold-dark: #A9822E;
    --gold-soft: #EFE2C0;
    --slate-700: #3B4741;
    --slate-500: #6B7871;
    --slate-400: #93A199;
    --line: #E4E1D6;
    --line-dark: rgba(251, 248, 242, 0.14);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --shell-width: 1180px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-md: 0 20px 50px -20px rgba(16, 36, 31, 0.28);
    --shadow-lg: 0 30px 80px -24px rgba(16, 36, 31, 0.4);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body { margin: 0; font-family: var(--font-body); color: var(--slate-700); background: var(--ivory); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 0.5em; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h2 em, h1 em { font-style: italic; color: var(--gold-dark); font-weight: 500; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.75em 1.25em; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.shell { width: 100%; max-width: var(--shell-width); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--teal-100); }
.section-dark { background: var(--teal-900); color: rgba(251, 248, 242, 0.78); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head.centered { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-lead { color: var(--slate-500); font-size: 1.08rem; max-width: 58ch; }
.section-lead.center { margin-left: auto; margin-right: auto; }
.section-lead-on-dark { color: rgba(251, 248, 242, 0.68); }

.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .icon { width: 15px; height: 15px; }
.eyebrow.center { justify-content: center; }
.eyebrow-light { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease); white-space: nowrap; }
.btn-primary { background: var(--gold); color: var(--teal-900); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light { color: #fff; border: 1.5px solid var(--line-dark); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 242, 0.78); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.navbar.is-scrolled { border-color: var(--line); box-shadow: 0 4px 24px -12px rgba(16,36,31,0.18); }
.navbar-row { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; color: var(--gold-dark); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-display); }
.brand-text strong { font-size: 1rem; color: var(--ink); font-weight: 600; }
.brand-text em { font-style: normal; font-family: var(--font-body); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--slate-700); position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width 0.25s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.navbar-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,42,36,0.35) 0%, rgba(14,42,36,0.55) 55%, rgba(14,42,36,0.94) 100%); }
.hero-content { position: relative; z-index: 1; color: #fff; padding-bottom: 72px; padding-top: 140px; }
.hero-content h1 { color: #fff; max-width: 15ch; }
.hero-lead { color: rgba(251, 248, 242, 0.8); font-size: 1.12rem; max-width: 54ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 30px 0 48px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.hero-stat dt { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); margin: 0; }
.hero-stat dd { margin: 2px 0 0; font-size: 0.8rem; color: rgba(251,248,242,0.65); max-width: 16ch; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; height: 620px; object-fit: cover; }
.photo-badge { position: absolute; left: 20px; bottom: 20px; background: rgba(251,248,242,0.92); backdrop-filter: blur(6px); color: var(--teal-800); padding: 10px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.photo-badge .icon { width: 16px; height: 16px; color: var(--gold-dark); }

.vision-quote { margin: 24px 0 32px; padding: 24px 26px; background: var(--surface); border-radius: var(--radius-md); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ink); border: 1px solid var(--line); position: relative; }
.vision-quote .icon { width: 26px; height: 26px; color: var(--gold); margin-bottom: 10px; }

.about-flow { display: flex; flex-direction: column; gap: 22px; }
.flow-item { display: flex; gap: 18px; align-items: flex-start; }
.flow-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex-shrink: 0; box-shadow: 0 0 0 4px var(--gold-soft); }
.flow-item h3 { margin-bottom: 4px; font-size: 1rem; }
.flow-item p { margin: 0; color: var(--slate-500); font-size: 0.94rem; }

/* Ecosystem */
.stream-tabs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.stream-tab { display: flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--surface); color: var(--slate-500); font-weight: 700; font-size: 0.9rem; border: 1px solid var(--line); transition: all 0.25s var(--ease); }
.stream-tab-number { font-family: var(--font-display); font-style: italic; color: var(--gold-dark); }
.stream-tab:hover { border-color: var(--gold); color: var(--ink); }
.stream-tab.is-active { background: var(--teal-900); color: #fff; border-color: var(--teal-900); }
.stream-tab.is-active .stream-tab-number { color: var(--gold); }

.stream-subtitle { text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--teal-700); margin-bottom: 32px; }
.stream-panel { animation: fade-in 0.4s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.service-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--teal-100); color: var(--teal-700); margin-bottom: 18px; }
.service-icon .icon { width: 24px; height: 24px; }
.service-card p { font-size: 0.92rem; color: var(--slate-500); margin: 0; }

/* Who We Connect */
.connect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.connect-card { padding: 32px 24px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); text-align: center; }
.connect-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.connect-icon { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); margin-bottom: 20px; }
.connect-icon .icon { width: 24px; height: 24px; }
.connect-card p { font-size: 0.92rem; color: var(--slate-500); margin: 0; }

/* How it Works */
.how-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.how-photo { border-radius: var(--radius-lg); margin-top: 32px; box-shadow: var(--shadow-lg); width: 100%; height: 320px; object-fit: cover; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line-dark); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-step { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--gold); }
.timeline-body h3 { color: #fff; margin-bottom: 6px; font-size: 1.12rem; }
.timeline-body p { color: rgba(251,248,242,0.66); margin: 0; max-width: 54ch; }

/* Testimonials */
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.testimonial-quote-mark { color: var(--gold); width: 30px; height: 30px; }
.testimonial-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 500; line-height: 1.5; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial-card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-card figcaption span { display: flex; flex-direction: column; font-size: 0.85rem; }
.testimonial-card figcaption strong { color: var(--ink); }
.testimonial-card figcaption em { font-style: normal; color: var(--slate-400); }

/* Governance */
.governance-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.governance-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.governance-list li { display: flex; gap: 16px; align-items: flex-start; }
.governance-check { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--gold-dark); border: 1px solid var(--line); }
.governance-check .icon { width: 19px; height: 19px; }
.governance-list h3 { font-size: 0.96rem; margin-bottom: 4px; }
.governance-list p { font-size: 0.87rem; color: var(--slate-500); margin: 0; }

/* FAQ */
.faq-shell { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 4px; text-align: left; font-family: var(--font-display); font-size: 1.06rem; color: var(--ink); }
.faq-icon { width: 20px; height: 20px; color: var(--gold-dark); flex-shrink: 0; transition: transform 0.3s var(--ease); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-answer p { padding: 0 4px 24px; margin: 0; color: var(--slate-500); max-width: 68ch; }

/* CTA */
.cta-section { background: var(--teal-900); color: rgba(251,248,242,0.85); }
.cta-section h2 { color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 52px; align-items: center; }
.contact-card { background: rgba(251,248,242,0.06); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 36px; backdrop-filter: blur(6px); }
.contact-card ul { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact-card li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.92rem; color: rgba(251,248,242,0.8); }
.contact-card .icon { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-card a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--teal-900); color: rgba(251,248,242,0.65); padding: 64px 0 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-brand p { margin: 0; font-size: 0.88rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 0.88rem; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; }
.footer-contact a, .footer-contact p { display: flex; align-items: center; gap: 8px; margin: 0; }
.footer-contact .icon { width: 15px; height: 15px; color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 30px; font-size: 0.78rem; color: rgba(251,248,242,0.4); }
.footer-note { max-width: 48ch; }

.back-to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--teal-900); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); z-index: 90; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top .icon { width: 20px; height: 20px; transform: rotate(180deg); }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.icon { width: 20px; height: 20px; }

/* Responsive */
@media (max-width: 1024px) {
    .about-grid, .governance-grid, .cta-grid, .how-grid { grid-template-columns: 1fr; }
    .about-photo img { height: 420px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .connect-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-track { grid-template-columns: 1fr; }
    .governance-list { grid-template-columns: 1fr; }
    .hero { min-height: unset; padding-top: 40px; }
}
@media (max-width: 860px) {
    .nav-links { position: absolute; top: 80px; left: 0; right: 0; background: var(--ivory); flex-direction: column; align-items: flex-start; padding: 12px 24px 24px; gap: 4px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
    .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav-links a { padding: 10px 0; width: 100%; }
    .nav-toggle { display: flex; }
    .navbar-actions .btn-sm { display: none; }
}
@media (max-width: 640px) {
    .service-grid, .connect-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 26px; }
    .footer-row { flex-direction: column; }
    .footer-bottom { flex-direction: column; }
}
