/* ==========================================================================
   Continuous Connect — modern static site
   Brand: indigo #2E2E7F · azure #2BB6BD · green #40BF4F
   ========================================================================== */

:root {
  --indigo: #2E2E7F;
  --indigo-700: #26265f;
  --indigo-900: #191947;
  --azure: #2BB6BD;
  --azure-600: #1f9aa1;
  --green: #40BF4F;
  --ink: #1c1e2b;
  --body: #4a4d5e;
  --muted: #7a7d8c;
  --line: #e6e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --bg-cream: #f3f2ed;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(30, 34, 70, .06);
  --shadow: 0 18px 45px rgba(30, 34, 70, .10);
  --shadow-lg: 0 30px 70px rgba(30, 34, 70, .16);
  --maxw: 1160px;
  --grad: linear-gradient(120deg, var(--indigo) 0%, var(--indigo-700) 45%, var(--azure) 100%);
  --grad-azure: linear-gradient(120deg, var(--azure) 0%, var(--green) 100%);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
a { color: var(--indigo); text-decoration: none; transition: color .2s; }
a:hover { color: var(--azure-600); }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .5em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }
.section-cream { background: var(--bg-cream); }
.narrow { max-width: 820px; margin: 0 auto; }
.center { text-align: center; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--azure-600); margin-bottom: 16px;
}
.eyebrow.on-dark { color: #a9e9ee; }
.lead { font-size: 1.18rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  font-weight: 600; font-size: .98rem; padding: 14px 28px; border-radius: 999px;
  border: 2px solid transparent; transition: transform .18s, box-shadow .2s, background .2s, color .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px rgba(46,46,127,.28); }
.btn-primary:hover { background: var(--indigo-700); color: #fff; }
.btn-azure { background: var(--azure); color: #fff; box-shadow: 0 10px 24px rgba(43,182,189,.3); }
.btn-azure:hover { background: var(--azure-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-white { background: #fff; color: var(--indigo); }
.btn-white:hover { color: var(--indigo-700); }
.btn-outline-white { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.arrow { transition: transform .2s; }
.btn:hover .arrow, .txtlink:hover .arrow { transform: translateX(4px); }

.txtlink { font-weight: 600; display: inline-flex; align-items: center; gap: .4em; color: var(--azure-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { height: 34px; width: auto; }
.brand-logo { height: 40px; width: auto; display: block; }
.footer-logo { height: 42px; margin-bottom: 16px; }
@media (max-width: 720px) { .brand-logo { height: 32px; } }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: .93rem; padding: 9px 14px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-soft); color: var(--indigo); }
.nav-cta { margin-left: 10px; }
.nav-links .nav-cta a.btn-primary { color: #fff; }
.nav-links .nav-cta a.btn-primary:hover { color: #fff; background: var(--indigo-700); }
/* language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.lang-switch a.active { background: var(--indigo); color: #fff; }
.lang-switch a:hover { color: var(--indigo); }
.lang-switch a.active:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px circle at 82% 12%, rgba(64,191,79,.32), transparent 60%),
    radial-gradient(700px circle at 8% 92%, rgba(43,182,189,.35), transparent 55%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { padding: clamp(70px, 11vw, 140px) 0 clamp(70px, 11vw, 130px); max-width: 780px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-mini { padding: clamp(54px,8vw,90px) 0 clamp(50px,7vw,80px); }
.hero-mini .hero-inner { padding: 0; }

/* floating decorative shapes */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: 0; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s, border-color .22s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--body); margin-bottom: 1em; }

.icon-badge {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 20px; color: #fff; background: var(--grad-azure);
}
.icon-badge.indigo { background: var(--grad); }
.icon-badge svg { width: 28px; height: 28px; }

.value-card { text-align: left; }
.value-card .num { font-size: 2.4rem; font-weight: 700; color: var(--azure); letter-spacing: -.03em; display:block; margin-bottom:.2em;}

/* service split rows */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,64px); align-items: center; }
.split.rev .split-media { order: 2; }
.split + .split { margin-top: clamp(40px,6vw,80px); }
.split-media {
  border-radius: var(--radius-lg); min-height: 320px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); background: var(--grad);
}
.split-media.alt { background: var(--grad-azure); }
.split-media .glyph { position:absolute; inset:0; display:grid; place-items:center; color:rgba(255,255,255,.9); }
.split-media .glyph svg { width: 40%; height: 40%; opacity:.92; }
.tag { display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  color: var(--indigo); background: rgba(46,46,127,.08); padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;}

/* checklist */
.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--body); }
.check li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(64,191,79,.15);
}
.check li::after {
  content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px,6vw,72px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(500px circle at 85% 20%, rgba(64,191,79,.3), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-thumb { height: 172px; background: var(--grad); position: relative; display: grid; place-items: center; }
.post-thumb.c2 { background: linear-gradient(120deg,#2BB6BD,#2E2E7F); }
.post-thumb.c3 { background: linear-gradient(120deg,#40BF4F,#2BB6BD); }
.post-thumb.c4 { background: linear-gradient(120deg,#2E2E7F,#40BF4F); }
.post-thumb.c5 { background: linear-gradient(120deg,#1f9aa1,#2E2E7F); }
.post-thumb svg { width: 60px; height: 60px; color: rgba(255,255,255,.92); }
.post-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--muted); margin-bottom: 12px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.chip { background: rgba(43,182,189,.12); color: var(--azure-600); font-weight:600; padding: 3px 11px; border-radius: 999px; font-size:.74rem; }
.post-card h3 { font-size: 1.22rem; }
.post-body .txtlink { margin-top: auto; }

/* article */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 1.6em; font-size: 1.6rem; }
.article h3 { margin-top: 1.4em; color: var(--indigo); }
.article p, .article li { font-size: 1.05rem; }
.article .article-hero { border-radius: var(--radius); height: 260px; margin-bottom: 36px; display:grid; place-items:center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.info-row .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; color: var(--indigo); }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row b { color: var(--ink); display:block; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(43,182,189,.15); }
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--indigo); transition: background .2s, color .2s, transform .2s; }
.socials a:hover { background: var(--indigo); color: #fff; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.map-embed, .iframe-embed { width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.embed-frame { width:100%; min-height: 780px; border:0; border-radius: var(--radius); box-shadow: var(--shadow); background:#fff; }

.notice { background: #fff7e6; border: 1px solid #ffe1a6; color: #7a5b00; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-900); color: #c9cbe0; padding: 70px 0 30px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: .01em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid a { color: #c9cbe0; }
.footer-grid a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand svg { height: 32px; margin-bottom: 16px; }
.footer-brand p { color: #9a9dbd; font-size: .93rem; max-width: 260px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #8f92b3; }
.footer-bottom a { color: #8f92b3; }
.footer-bottom a:hover { color:#fff; }

/* ---------- AI chat bubble ---------- */
.cc-chat { position: fixed; right: 22px; bottom: 22px; z-index: 200; }
.cc-chat-btn {
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; box-shadow: 0 14px 30px rgba(46,46,127,.4);
  display: grid; place-items: center; transition: transform .2s, box-shadow .2s;
}
.cc-chat-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 38px rgba(46,46,127,.5); }
.cc-chat-btn svg { width: 28px; height: 28px; }
.cc-chat-btn .ic-close { display: none; }
.cc-chat.open .cc-chat-btn .ic-open { display: none; }
.cc-chat.open .cc-chat-btn .ic-close { display: block; }
.cc-chat-panel {
  position: absolute; right: 0; bottom: 78px; width: min(384px, calc(100vw - 44px)); height: min(620px, calc(100vh - 130px));
  background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none; transition: opacity .22s, transform .22s;
}
.cc-chat.open .cc-chat-panel { opacity: 1; transform: none; pointer-events: auto; }
.cc-chat-head { background: var(--grad); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cc-chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(64,191,79,.3); }
.cc-chat-head .close { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; opacity: .85; padding: 4px; }
.cc-chat-head .close:hover { opacity: 1; }

.cc-chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 12px; }
.cc-msg { max-width: 82%; padding: 11px 15px; border-radius: 15px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.cc-msg.bot { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.cc-msg.user { background: var(--indigo); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cc-msg.typing { color: var(--muted); font-style: italic; }
.cc-msg.err { background: #fff4f4; border: 1px solid #ffd4d4; color: #a12; align-self: stretch; max-width: 100%; }

.cc-gate { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.cc-gate-txt { margin: 0; font-size: .95rem; color: var(--ink); font-weight: 500; }
.cc-gate input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .95rem; }
.cc-gate input:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(43,182,189,.15); }
.cc-gate button { width: 100%; justify-content: center; }
.cc-gate-note { font-size: .74rem; color: var(--muted); text-align: center; }

.cc-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.cc-input input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; font-family: inherit; font-size: .95rem; }
.cc-input input:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(43,182,189,.15); }
.cc-input button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--indigo); color: #fff; display: grid; place-items: center; transition: background .2s; }
.cc-input button:hover { background: var(--indigo-700); }
.cc-input button:disabled { opacity: .5; cursor: default; }
.cc-input button svg { width: 18px; height: 18px; }
.cc-embed { flex: 1; width: 100%; border: 0; background: #fff; min-height: 380px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .split-media { min-height: 220px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 14px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease; z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 10px; border-radius: 10px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
