/* Monetworks website - corporate theme
   Navy + white, with the logo's orange as the single accent. */

:root {
    --navy-900: #0B1F3A;
    --navy-800: #12294A;
    --navy-700: #1C3A63;
    --accent: #F28C28;
    --accent-hover: #E07B16;
    --accent-text: #B45309;   /* Orange dark enough for text on white */
    --ink: #0F172A;
    --body: #334155;
    --muted: #64748B;
    --line: #E2E8F0;
    --surface: #F5F7FA;
    --white: #FFFFFF;
    --page: #FFFFFF;          /* page background */
    --card: #FFFFFF;          /* cards, panels, navbar */
    --link: #1C3A63;
    --chip-text: #12294A;
    --input-border: #CBD5E1;
    --frame-bar: #E9EDF3;
    --frame-dot: #CBD5E1;
    --cta-bg: #FFF4E8;
    --cta-border: #F8D9B5;
    --process-line: #0B1F3A;
    --danger: #B42318;
    --on-navy: #CBD5E1;
    --whatsapp: #1A8D4A;       /* WhatsApp green, darkened for white-text contrast */
    --whatsapp-dark: #146E3A;
    --whatsapp-light: #25D366;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(2, 8, 23, 0.35);
    --nav-height: 76px;
}

/* Dark theme: follows the system setting unless the visitor picked one
   (data-theme is set before first paint by the inline script in <head>) */
:root[data-theme="dark"] {
    --page: #0A1322;
    --card: #111C30;
    --surface: #0D1729;
    --ink: #E8EEF6;
    --body: #B4C0D0;
    --muted: #8D9BB0;
    --line: #22324B;
    --accent-text: #F5A353;
    --link: #F5A353;
    --chip-text: #D5DEEA;
    --input-border: #33465F;
    --frame-bar: #1A2840;
    --frame-dot: #34476A;
    --cta-bg: #1B1A1E;
    --cta-border: #4A3420;
    --process-line: #F28C28;
    --danger: #F87171;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --page: #0A1322;
        --card: #111C30;
        --surface: #0D1729;
        --ink: #E8EEF6;
        --body: #B4C0D0;
        --muted: #8D9BB0;
        --line: #22324B;
        --accent-text: #F5A353;
        --link: #F5A353;
        --chip-text: #D5DEEA;
        --input-border: #33465F;
        --frame-bar: #1A2840;
        --frame-dot: #34476A;
        --cta-bg: #1B1A1E;
        --cta-border: #4A3420;
        --process-line: #F28C28;
        --danger: #F87171;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    }
}

html {
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--body);
    background-color: var(--page);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--link);
}

a:hover {
    color: var(--accent-text);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--navy-900);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 1rem;
    color: var(--white);
}

/* Section scaffolding */
.section-padding {
    padding: 96px 0;
}

.bg-surface {
    background-color: var(--surface);
}

.bg-navy {
    background-color: var(--navy-900);
}

.section-header {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 0.75rem;
}

.eyebrow-light {
    color: var(--accent);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.075rem;
    color: var(--muted);
    margin-bottom: 0;
}

.lead-text {
    font-size: 1.125rem;
    color: var(--ink);
}

.text-on-navy {
    color: var(--on-navy);
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.4rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-accent {
    background-color: var(--accent);
    border: 1px solid var(--accent);
    color: var(--navy-900);
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--navy-900);
}

.btn-primary-navy {
    background-color: var(--navy-900);
    border: 1px solid var(--navy-900);
    color: var(--white);
}

.btn-primary-navy:hover,
.btn-primary-navy:focus {
    background-color: var(--navy-700);
    border-color: var(--navy-700);
    color: var(--white);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.45);
}

/* Navigation */
.navbar {
    background: var(--card);
    border-bottom: 1px solid transparent;
    min-height: var(--nav-height);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.navbar-brand .brand-logo {
    height: 44px;
    width: auto;
}

.navbar-toggler {
    border: 1px solid var(--line);
    color: var(--ink);
    min-width: 44px;
    min-height: 44px;
    padding: 0.4rem 0.7rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.navbar-nav .nav-link {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-text);
}

/* Theme toggle (sun/moon) */
.nav-tools {
    gap: 0.5rem;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    background: var(--surface);
    color: var(--accent-text);
}

.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* Dark mode: navy buttons and the footer need a lift off the dark page */
:root[data-theme="dark"] .btn-primary-navy {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--navy-900);
}

:root[data-theme="dark"] .btn-primary-navy:hover,
:root[data-theme="dark"] .btn-primary-navy:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--navy-900);
}

:root[data-theme="dark"] .footer {
    border-top: 1px solid var(--line);
}

:root[data-theme="dark"] .contact-item i {
    background: var(--surface);
    border: 1px solid var(--line);
}

:root[data-theme="dark"] .browser-frame {
    border-color: var(--line);
}

/* Hero */
.hero-section {
    position: relative;
    background:
        radial-gradient(1200px 500px at 85% 10%, rgba(242, 140, 40, 0.14), transparent 60%),
        linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
    padding: calc(var(--nav-height) + 72px) 0 96px;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    color: var(--on-navy);
    font-size: 1.15rem;
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Browser-window frame around product screenshots */
.browser-frame {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.browser-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: var(--frame-bar);
    border-bottom: 1px solid var(--line);
}

.browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--frame-dot);
}

.browser-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-frame {
    transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
    transform-origin: left center;
}

.hero-note {
    color: var(--on-navy);
    font-size: 0.92rem;
    margin: 1.25rem 0 0;
}

.hero-note i {
    color: var(--accent);
    margin-right: 0.4rem;
}

/* About pillars */
.pillar-card {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.pillar-icon,
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 140, 40, 0.12);
    color: var(--accent-text);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pillar-card h3,
.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.pillar-card p,
.service-card p {
    margin-bottom: 0;
    font-size: 0.97rem;
}

/* Services */
.service-card {
    height: 100%;
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: rgba(242, 140, 40, 0.5);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Featured case study */
.case-feature {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

/* The whole image is always shown (never cropped); the panel's background
   matches the image's flat background so any extra height blends in. */
.case-media {
    height: 100%;
    display: flex;
    align-items: center;
    background: #EEF2F7; /* = background of images/work/platform.jpg */
}

.case-media img {
    display: block;
    width: 100%;
    height: auto;
}

.innovation-feature .case-media {
    background: #F1EEE7; /* = background of images/work/ubuntuscore.jpg */
}

.case-body {
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-tag,
.solution-sector {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 0.6rem;
}

.case-body h3 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 0.85rem;
    color: var(--accent-text);
}

.check-list-light li {
    color: var(--white);
}

.check-list-light li::before {
    color: var(--accent);
}

/* Solution cards */
.solution-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.solution-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.solution-media {
    aspect-ratio: 16 / 10;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.solution-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

.solution-body {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.solution-link {
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--link);
    text-decoration: none;
}

.solution-link i {
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.2s ease;
}

.solution-link:hover i {
    transform: translateX(3px);
}

.case-ref {
    margin: 1.25rem 0 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.case-ref i {
    color: var(--accent-text);
    margin-right: 0.35rem;
}

.solution-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.solution-body p {
    font-size: 0.97rem;
}

.solution-points {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
}

.solution-points li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

.solution-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Approach */
.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    counter-reset: none;
}

.process-step {
    position: relative;
    padding: 1.75rem 1.5rem;
    border-top: 3px solid var(--process-line);
    background: var(--surface);
    border-radius: 0 0 var(--radius) var(--radius);
}

.process-num {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-text);
    margin-bottom: 0.5rem;
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.process-step p {
    font-size: 0.93rem;
    margin-bottom: 0;
}

/* Technology */
.tech-group {
    height: 100%;
    padding: 1.75rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.tech-group h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tech-group h3 i {
    color: var(--accent-text);
}

.tech-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-chips li {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--chip-text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
}

/* Contact */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.contact-item i {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    color: var(--accent);
}

.contact-item h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

.contact-item p {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
}

.contact-item a {
    color: var(--ink);
    text-decoration: none;
    display: inline-block;
    padding: 10px 0;   /* bigger tap target on phones, */
    margin: -10px 0;   /* without changing the layout */
}

.contact-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.form-control {
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem;
    color: var(--ink);
    background-color: var(--card);
}

.form-control::placeholder {
    color: var(--muted);
}

.form-control:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px rgba(28, 58, 99, 0.15);
}

.form-note {
    color: var(--muted);
}

/* Honeypot: kept out of view and out of the tab order, but not display:none
   (some bots skip fields hidden that way) */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer */
.footer {
    background: var(--navy-900);
    color: var(--on-navy);
    padding: 64px 0 28px;
    font-size: 0.95rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1rem;
    background: var(--white);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.footer h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0;
}

.footer a {
    color: var(--on-navy);
    text-decoration: none;
}

/* Footer links get ~40px tall tap targets */
.footer ul a {
    display: inline-block;
    padding: 8px 0;
}

.footer p a {
    display: inline-block;
    padding: 8px 0;
    margin: -8px 0;
}

.footer a:hover {
    color: var(--accent);
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 2.5rem 0 1.25rem;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    margin: 0;
}

/* Call-to-action band */
.cta-band {
    padding: 0 0 96px;
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding: 2.5rem 3rem;
    border-radius: var(--radius);
    background: var(--cta-bg);
    border: 1px solid var(--cta-border);
}

.cta-inner h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    margin-bottom: 0.4rem;
}

.cta-inner p {
    margin: 0;
    max-width: 620px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* WhatsApp */
.btn-whatsapp {
    background: var(--whatsapp);
    border: 1px solid var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: var(--whatsapp-dark);
    border-color: var(--whatsapp-dark);
    color: var(--white);
}

.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.wa-float:hover,
.wa-float:focus {
    background: var(--whatsapp-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.contact-item .fa-whatsapp {
    color: var(--whatsapp-light);
}

.review-list {
    margin-top: 0.5rem;
}

/* Solution (product) pages */
.page-hero {
    position: relative;
    background:
        radial-gradient(1000px 420px at 85% 0%, rgba(242, 140, 40, 0.14), transparent 60%),
        linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
    padding: calc(var(--nav-height) + 56px) 0 72px;
    overflow: hidden;
}

.page-hero .container {
    position: relative;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.page-hero .lead {
    color: var(--on-navy);
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
}

.crumbs {
    font-size: 0.85rem;
    color: var(--on-navy);
    margin-bottom: 1rem;
}

.crumbs a {
    color: var(--on-navy);
    display: inline-block;
    padding: 10px 4px;   /* larger tap target, */
    margin: -10px -4px;  /* same layout */
}

.crumbs a:hover {
    color: var(--accent);
}

.fit-card {
    height: 100%;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
}

.fit-card h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.problem-list li::before {
    content: "\f00d";
    color: var(--danger);
}

.feature-card {
    height: 100%;
    padding: 1.75rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
}

.other-solutions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.other-solutions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.other-solutions a:hover {
    border-color: rgba(242, 140, 40, 0.5);
    color: var(--accent-text);
}

/* Privacy notice text */
.legal {
    max-width: 760px;
}

.legal h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.legal li {
    margin-bottom: 0.5rem;
}

/* Thandi chat assistant (js/thandi.js) */
/* One floating button: Thandi replaces the WhatsApp float (WhatsApp stays in
   the chat header, contact section and footer; the float returns if this
   script never loads) */
.has-thandi .wa-float {
    display: none;
}

.thandi-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1045;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: 56px;
    padding: 0 1.2rem 0 0.45rem;
    border: 0;
    border-radius: 999px;
    background: var(--navy-900);
    color: var(--white);
    font-weight: 600;
    font-size: 0.98rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
    transition: transform 0.2s ease;
}

.thandi-launcher:hover {
    transform: translateY(-2px);
}

:root[data-theme="dark"] .thandi-launcher {
    border: 1px solid var(--line);
}

.thandi-avatar {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--navy-900);
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.thandi-panel {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 1050;
    width: 380px;
    height: min(620px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(2, 8, 23, 0.3);
    overflow: hidden;
}

.thandi-panel[hidden] {
    display: none;
}

.thandi-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    background: var(--navy-900);
    color: var(--white);
}

.thandi-head .thandi-avatar {
    width: 38px;
    height: 38px;
}

.thandi-head-text {
    flex: 1;
    line-height: 1.2;
}

.thandi-head-text strong {
    display: block;
    font-size: 1rem;
}

.thandi-head-text span {
    font-size: 0.8rem;
    color: var(--on-navy);
}

.thandi-head-actions {
    display: flex;
    gap: 0.25rem;
}

.thandi-icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--on-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    text-decoration: none;
}

.thandi-icon-btn:hover,
.thandi-icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.thandi-notice {
    margin: 0;
    padding: 0.55rem 0.9rem;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--muted);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.thandi-log {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: var(--page);
}

.thandi-msg {
    max-width: 86%;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    font-size: 0.93rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.thandi-msg.is-bot {
    align-self: flex-start;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}

.thandi-msg.is-user {
    align-self: flex-end;
    background: var(--navy-900);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

:root[data-theme="dark"] .thandi-msg.is-user {
    background: var(--navy-700);
}

.thandi-typing {
    display: inline-flex;
    gap: 4px;
    padding: 0.75rem 0.9rem;
}

.thandi-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
    animation: thandi-dot 1.2s infinite ease-in-out;
}

.thandi-typing span:nth-child(2) { animation-delay: 0.15s; }
.thandi-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes thandi-dot {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

.thandi-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.thandi-chip {
    min-height: 36px;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--card);
    color: var(--accent-text);
    font-size: 0.86rem;
    font-weight: 600;
}

.thandi-chip:hover {
    background: var(--accent);
    color: var(--navy-900);
}

.thandi-input {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid var(--line);
    background: var(--card);
}

.thandi-input textarea {
    flex: 1;
    resize: none;
    max-height: 120px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: 0.93rem;
    line-height: 1.4;
}

.thandi-input textarea:focus {
    outline: none;
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px rgba(28, 58, 99, 0.15);
}

.thandi-send {
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--navy-900);
    font-size: 1rem;
}

.thandi-send:disabled {
    opacity: 0.5;
}

.thandi-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
}

.thandi-lead {
    align-self: stretch;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.thandi-lead-title {
    margin: 0;
    font-weight: 700;
    color: var(--ink);
}

.thandi-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
}

.thandi-field input,
.thandi-field select,
.thandi-field textarea {
    font: inherit;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--card);
    color: var(--ink);
    min-height: 40px;
}

.thandi-consent {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--ink);
    padding: 0.55rem 0.6rem;
    background: var(--surface);
    border-radius: 8px;
}

.thandi-consent input {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.thandi-lead-status {
    margin: 0;
    font-size: 0.82rem;
    color: var(--danger);
    min-height: 0;
}

.thandi-lead-status:empty {
    display: none;
}

.thandi-lead-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.thandi-lead-submit {
    padding: 0.6rem 1.1rem;
}

.thandi-lead-cancel {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.88rem;
    min-height: 40px;
    padding: 0 0.5rem;
}

@media (max-width: 575.98px) {
    /* compact round button on phones so it doesn't cover page buttons;
       the launcher keeps its aria-label */
    .thandi-launcher {
        right: 16px;
        bottom: 16px;
        width: 56px;
        padding: 0;
        justify-content: center;
    }
    .thandi-launcher-text {
        display: none;
    }
    .thandi-panel {
        inset: 0;
        width: auto;
        height: auto;
        border-radius: 0;
        border: 0;
    }
    .thandi-open .thandi-launcher {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thandi-typing span {
        animation: none;
    }
}

/* Scroll-in animation (set up in js/script.js) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .service-card:hover,
    .solution-card:hover {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 1199.98px) {
    .process-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 0.75rem 0 1rem;
    }
    .nav-cta {
        margin-top: 0.5rem;
    }
    .hero-frame {
        transform: none;
    }
    .case-media {
        aspect-ratio: 16 / 10;
    }
    .case-body {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 72px 0;
    }
    .process-list {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .cta-inner {
        padding: 2rem 1.5rem;
    }
    .wa-float {
        right: 16px;
        bottom: 16px;
    }
}
