/* =========================
   DESIGN SYSTEM (PREMIUM)
========================= */

:root {
    --navy: #0B1F3A;
    --navy-light: #2f4f78;
    --silver: #c0c7d1;
    --silver-soft: #e2e6ec;
    --gold: #D4AF37;
    --gold-soft: #e6c76a;
    --text: #ffffff;
    --text-muted: #b0b8c5;
    --bg-dark: #09172b;
}

/* =========================
   RESET & BASE
========================= */

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

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--navy);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 15px;
}

p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* =========================
   HEADER (STICKY)
========================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;

    position: sticky;
    top: 0;
    z-index: 10000;
    isolation: isolate;

    background: rgba(11, 31, 58, 0.95);
    backdrop-filter: blur(8px);

    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: var(--gold);
    background: rgba(9, 23, 43, 0.6);
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] {
    background: rgba(212, 175, 55, 0.18);
    transform: rotate(90deg);
}

/* NAV */

nav a {
    color: var(--text);
    margin-left: 25px;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: 0.3s;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: 0.3s;
}

nav a:hover {
    color: var(--gold);
}

nav a:hover::after {
    width: 100%;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 80px 60px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

/* =========================
   HERO
========================= */

.hero {
    padding: 120px 60px;
    background: linear-gradient(135deg, #0B1F3A, #132f55);
}

.hero h1 {
    font-size: 52px;
    max-width: 750px;
    line-height: 1.2;
}

.hero span {
    color: var(--gold);
}

.hero p {
    max-width: 600px;
    margin-top: 20px;
}


.hero-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
}

.trust-pills span {
    font-size: 12px;
    color: var(--silver-soft);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.04);
}

.section-dark {
    background: var(--bg-dark);
}

.cta {
    text-align: center;
    padding: 80px 60px;
}

.value-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.value-item {
    padding: 24px;
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 12px;
    background: rgba(9,23,43,0.45);
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-block;
    background: var(--gold);
    color: black;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--gold-soft);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--gold);
    color: black;
}

/* =========================
   GRID SYSTEM
========================= */

.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* =========================
   CARDS (PREMIUM LOOK)
========================= */

.card {
    background: linear-gradient(145deg, #2f4f78, #c0c7d1);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(226,230,236,0.45);

    transition: all 0.3s ease;
}


.card h3 {
    color: #0b1f3a;
}

.card p {
    color: #1f3350;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link span {
    display: inline-block;
    margin-top: 8px;
    color: var(--navy);
    font-weight: 700;
}

.card-link:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

/* =========================
   STATS
========================= */

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 60px;
    background: linear-gradient(145deg, #243f62, #b9c2cd);
}

.stats h2 {
    color: var(--gold);
}

/* =========================
   FORMS
========================= */

input, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
    border: none;
    outline: none;
    background: #132f55;
    color: white;
}

textarea {
    height: 120px;
}

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
}

/* =========================
   CHATBOT
========================= */

.chatbot-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.chat-launcher {
    display: grid;
    place-items: center;
    border: none;
    width: 60px;
    height: 60px;
    margin-left: auto;
    border-radius: 50%;
    background: linear-gradient(145deg, #25d366, #128c7e);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
    cursor: pointer;
    font-size: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.chatbot-box {
    display: flex;
    flex-direction: column;
    width: min(370px, calc(100vw - 40px));
    height: min(560px, calc(100vh - 120px));
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: #efe7dd;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.48);
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.chatbot-box.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #075e54;
    color: #ffffff;
}

.chat-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold), var(--gold-soft));
    color: #10253e;
    font-weight: 800;
}

.chat-profile span {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.chat-profile small {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    line-height: 1.2;
    margin-top: 3px;
}

.chat-header button {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.chat-body {
    position: relative;
    flex: 1;
    padding: 18px 14px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.32) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.26) 0 1px, transparent 1px),
        #e6ddd4;
    background-size: 34px 34px;
}

.user-message,
.bot-message {
    position: relative;
    width: fit-content;
    max-width: 82%;
    padding: 9px 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    color: #111b21;
    font-size: 14px;
    line-height: 1.42;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.13);
    white-space: pre-wrap;
    word-break: break-word;
}

.bot-message {
    margin-right: auto;
    border-top-left-radius: 3px;
    background: #ffffff;
}

.user-message {
    margin-left: auto;
    border-top-right-radius: 3px;
    background: #dcf8c6;
}

.bot-message.is-thinking {
    color: #5f6b72;
    font-style: italic;
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    background: #f0f2f5;
}

.chat-input input {
    width: 100%;
    margin-top: 0;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: #111b21;
    padding: 12px 15px;
    font-size: 14px;
}

.chat-input input::placeholder {
    color: #667781;
}

.chat-input input:disabled {
    opacity: 0.65;
}

.chat-input button {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #128c7e;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.chat-input button:hover {
    background: #075e54;
}

/* =========================
   ANIMATIONS
========================= */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   CONTACT WIDGET
========================= */

.contact-widget {
    position: fixed;
    right: 25px;
    bottom: 100px;
    z-index: 1090;
    display: grid;
    justify-items: end;
    gap: 12px;
}

.contact-options {
    display: grid;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.contact-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-widget .option,
.main-btn {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
    cursor: pointer;
}

.contact-widget .option {
    font-size: 22px;
}

.contact-widget .whatsapp {
    background: #25d366;
}

.contact-widget .call {
    background: #128c7e;
}

.contact-widget .email {
    background: #d44638;
}

.main-btn {
    background: var(--gold);
    color: #09172b;
    font-size: 22px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px) {

    header {
        padding: 15px 20px;
        position: sticky;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    header nav {
        position: fixed;
        top: 69px;
        left: 0;
        right: 0;
        z-index: 10001;
        display: flex;
        flex-direction: column;
        gap: 2px;
        max-height: calc(100dvh - 69px);
        padding: 12px 16px 16px;
        overflow-y: auto;
        background: rgba(9, 23, 43, 0.98);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transform: translate3d(0, -16px, 0);
        pointer-events: none;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    }

    header nav a {
        margin-left: 0;
        padding: 10px 8px;
        border-radius: 6px;
        font-size: 15px;
    }

    header nav a:hover {
        background: rgba(212, 175, 55, 0.1);
    }

    header nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }

    body.mobile-nav-open {
        overflow-x: hidden;
    }

    .section {
        padding: 50px 20px;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-buttons {
        display: grid;
        gap: 12px;
    }

    .trust-pills span {
        width: 100%;
        text-align: center;
    }

    .btn,
    .btn-outline {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
        padding: 38px 20px;
    }

    .chatbot-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .chatbot-box {
        width: 100%;
        max-height: 68vh;
    }

    .chat-launcher {
        margin-left: auto;
        display: block;
    }

    .contact-widget {
        right: 16px;
        bottom: 84px;
    }
}
.cavi-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  z-index: 9999;
}

.cavi-panel{
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.cavi-panel.open{ display:flex; }

.cavi-header{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.cavi-title{ display:flex; align-items:center; gap:10px; }
.cavi-dot{
  width:10px; height:10px; border-radius:999px;
  background: #19c37d;
  box-shadow: 0 0 0 4px rgba(25,195,125,.15);
}
.cavi-name{ font-weight: 700; }
.cavi-sub{ font-size: 12px; opacity: .7; }

.cavi-actions{ display:flex; gap:8px; }
.cavi-icon-btn{
  border: 1px solid rgba(0,0,0,.10);
  background: transparent;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.cavi-chat{
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.cavi-msg{
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.cavi-user{
  align-self: flex-end;
  background: rgba(0,0,0,.06);
}

.cavi-bot{
  align-self: flex-start;
  background: rgba(255,255,255,1);
}

.cavi-suggestions{
  display:flex;
  gap:8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.cavi-chip{
  border: 1px solid rgba(0,0,0,.10);
  background: transparent;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}

.cavi-inputbar{
  display:flex;
  gap:8px;
  padding: 10px 12px;
}

.cavi-input{
  flex:1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  outline: none;
}

.cavi-send{
  padding: 10px 14px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.cavi-footer{
  padding: 8px 12px 12px 12px;
  font-size: 11px;
  opacity: .7;
}

@media (max-width: 480px){
  .cavi-panel{
    right: 10px;
    bottom: 76px;
    width: calc(100vw - 20px);
    height: min(70vh, 560px);
  }
}