/* =========================================================
   Digital Service Center — Main Stylesheet
   ========================================================= */

:root {
  --primary: #0b5cc4;
  --primary-dark: #073b82;
  --teal: #08a7a6;
  --orange: #ff7a00;
  --ink: #132238;
  --muted: #5e6d80;
  --bg: #f4f9ff;
  --white: #fff;
  --border: #dce7f5;
  --whatsapp: #16a866;
  --shadow: 0 14px 40px rgba(10, 58, 112, .12);
  --shadow-sm: 0 8px 24px rgba(10, 58, 112, .09);
  --radius: 20px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid rgba(11, 92, 196, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1160px, calc(100% - 32px)); margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 12px; padding: 13px 18px;
  font-weight: 800; font-size: 15px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--teal)); color: #fff; box-shadow: 0 10px 24px rgba(11, 92, 196, .24); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(11, 92, 196, .32); }
.btn-outline { border-color: #cbdaf0; background: #fff; color: var(--primary-dark); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px rgba(22, 168, 102, .24); }
.btn-whatsapp:hover { box-shadow: 0 14px 30px rgba(22, 168, 102, .32); }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 231, 245, .9);
}
.header-wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 16px; line-height: 1.1; color: var(--primary-dark); letter-spacing: .01em; }
.brand-text span { font-size: 12px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: 14.5px; }
.nav a { position: relative; padding: 4px 0; color: #26374f; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--primary); transition: width .2s ease; }
.nav a:hover { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--primary); }

/* ---------- Services dropdown ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 6px; }
.caret { font-size: 11px; line-height: 1; transition: transform .2s ease; }
.nav-dropdown:hover .caret, .nav-dropdown:focus-within .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 250px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease; z-index: 70;
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dropdown-menu a { padding: 11px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: #26374f; }
.dropdown-menu a:hover { background: #eef5ff; color: var(--primary); }
.dropdown-menu a::after { display: none; }
.nav-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }

.header-actions { display: flex; gap: 10px; }

.mobile-menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--border); background: #fff;
  border-radius: 11px; cursor: pointer; padding: 0 11px;
}
.mobile-menu-btn .bar { display: block; height: 2px; width: 100%; background: var(--primary-dark); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.mobile-menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
  background: #eaf3ff; border: 1px solid #d8e8ff; border-radius: 999px; padding: 7px 13px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.14; margin: 14px 0 12px; letter-spacing: -.02em; }
.section-lead { color: var(--muted); font-size: 16.5px; max-width: 720px; margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 650px; display: flex; align-items: center; overflow: hidden; background: #0d2340; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,24,48,.93) 0%, rgba(5,33,65,.78) 42%, rgba(3,30,58,.32) 70%, rgba(3,30,58,.12) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; color: #fff; padding: 90px 0; }
.hero-badge { display: inline-flex; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.hero h1 { font-size: clamp(34px, 5.6vw, 62px); line-height: 1.05; margin: 18px 0 16px; letter-spacing: -.03em; text-shadow: 0 2px 18px rgba(0,0,0,.28); }
.hero p { font-size: clamp(16px, 2vw, 19px); color: #e6f0fb; max-width: 600px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 30px; font-weight: 700; font-size: 14.5px; color: #dcecff; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: "\2713"; color: #66e5c5; font-weight: 900; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-media { position: relative; overflow: hidden; }
.service-media img { width: 100%; height: 240px; object-fit: cover; transition: transform .45s ease; }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { margin: 0 0 14px; font-size: 22px; }
.service-list { display: grid; gap: 9px; margin-bottom: 20px; }
.service-list li { display: flex; align-items: center; gap: 9px; color: #3d4d63; font-weight: 600; font-size: 15px; }
.service-list li::before { content: "\2713"; flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #e8f8f4; color: var(--teal); font-size: 12px; font-weight: 900; }
.service-body .btn { margin-top: auto; }

/* ---------- Detailed service sections ---------- */
.service-detail { padding: 78px 0; }
.service-detail.alt { background: var(--bg); }
.detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.detail-inner.reverse .detail-media { order: 2; }
.detail-media { position: relative; }
.detail-media img { width: 100%; height: 440px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.detail-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.14; margin: 14px 0 12px; letter-spacing: -.02em; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 24px 0 28px; }
.detail-list li { display: flex; align-items: center; gap: 9px; font-weight: 600; color: #3d4d63; font-size: 15px; }
.detail-list li::before { content: "\2713"; flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #e8f8f4; color: var(--teal); font-size: 12px; font-weight: 900; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Split / Why choose us ---------- */
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.split > img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; height: 460px; object-fit: cover; }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 0; }
.check-list li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 15px; font-weight: 700; font-size: 14.5px; transition: transform .18s ease, box-shadow .18s ease; }
.check-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.check-list li::before { content: "\2713"; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--teal)); color: #fff; font-size: 12px; font-weight: 900; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.step { position: relative; padding: 26px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--teal)); color: #fff; font-weight: 900; font-size: 17px; margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- CTA strip ---------- */
.cta-strip { position: relative; overflow: hidden; border-radius: 26px; min-height: 400px; display: flex; align-items: center; color: #fff; }
.cta-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,24,48,.92), rgba(4,24,48,.6), rgba(4,24,48,.24)); }
.cta-copy { position: relative; z-index: 2; padding: 52px; max-width: 680px; }
.cta-copy h2 { font-size: clamp(28px, 4.5vw, 46px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.cta-copy p { color: #e7f0fa; margin: 0 0 24px; font-size: 16.5px; }

/* ---------- Contact / Form ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: start; margin-top: 40px; }
.contact-card, .form-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.contact-card h3, .form-card h3 { margin: 0 0 18px; font-size: 24px; }
.contact-item { padding: 15px 0; border-bottom: 1px solid #edf2f8; }
.contact-item small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.contact-item strong { font-size: 18px; }
.contact-item a:hover { color: var(--primary); }
.contact-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.contact-actions .btn { flex: 1; min-width: 130px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #cedced; border-radius: 12px; padding: 13px 14px;
  font: inherit; color: var(--ink); background: #fff; outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa9bc; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,92,196,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e05a5a; box-shadow: 0 0 0 3px rgba(224,90,90,.12); }
.field-error { display: block; color: #c0392b; font-size: 12px; font-weight: 600; margin-top: 5px; min-height: 14px; }

.notice { padding: 13px 15px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; font-size: 14.5px; }
.notice:empty { display: none; }
.notice.success { background: #e9fbf2; color: #157448; border: 1px solid #bfead4; }
.notice.error { background: #fff0f0; color: #9d2525; border: 1px solid #f2caca; }

.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: #07182c; color: #c9d6e7; padding: 52px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .9fr; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 14px; }
.footer-brand img { width: 60px; height: 60px; object-fit: contain; background: #fff; border-radius: 14px; padding: 5px; }
.footer-brand strong { font-size: 17px; }
.footer-brand div div { font-size: 13px; color: #aebfd4; }
.site-footer p { color: #aebfd4; font-size: 14.5px; margin: 0; max-width: 340px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 9px; font-size: 14.5px; }
.footer-bottom { margin-top: 36px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom a { color: #fff; }

/* ---------- Floating actions & back to top ---------- */
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; box-shadow: 0 10px 26px rgba(0,0,0,.22); transition: transform .18s ease; }
.float-btn:hover { transform: scale(1.08); }
.float-call { background: var(--primary); }
.float-wa { background: var(--whatsapp); }

.back-top {
  position: fixed; left: 18px; bottom: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #102f55; color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.22); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; z-index: 46; font-size: 20px;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Privacy policy page ---------- */
.policy-hero { background: linear-gradient(135deg, #eaf4ff, #f3fffd); padding: 74px 0 54px; }
.policy-content { max-width: 900px; padding: 56px 0 76px; }
.policy-content h2 { margin: 34px 0 10px; font-size: 22px; }
.policy-content p { color: #4f6075; margin: 0 0 4px; }
.policy-content a { color: var(--primary); font-weight: 700; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    box-shadow: 0 20px 40px rgba(10,58,112,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 6px; border-bottom: 1px solid #eef3fa; }
  .nav a::after { display: none; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a { justify-content: space-between; }
  .nav-dropdown::after { display: none; }
  .caret { display: none; }
  .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--border);
    border-radius: 0; padding: 2px 0 2px 14px; margin: 2px 0 8px 6px;
  }
  .dropdown-menu a { padding: 10px 8px; border-bottom: 0; }
  .detail-inner { grid-template-columns: 1fr; gap: 30px; }
  .detail-inner.reverse .detail-media { order: 0; }
  .detail-media img { height: 380px; }
  .mobile-menu-btn { display: flex; }
  .header-actions .btn-outline { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split > img { height: 380px; }
  .split { gap: 32px; }
  .hero { min-height: 600px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(4,24,48,.92), rgba(4,24,48,.72)); }
  .footer-grid { gap: 34px; }
}

@media (max-width: 768px) {
  body { padding-bottom: 68px; }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(10,58,112,.12);
    padding: 8px; gap: 8px;
  }
  .mobile-cta-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 12px; font-weight: 800; font-size: 15px; color: #fff; }
  .mobile-cta-btn.call { background: linear-gradient(135deg, var(--primary), var(--teal)); }
  .mobile-cta-btn.wa { background: var(--whatsapp); }
  .floating-actions { display: none; }
  .back-top { left: auto; right: 14px; bottom: 80px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 24px, 1160px); }
  .section { padding: 56px 0; }
  :root { --header-h: 68px; }
  .brand img { width: 46px; height: 46px; }
  .brand-text strong { font-size: 14.5px; }
  .brand-text span { display: none; }
  .hero { min-height: 560px; }
  .hero-content { padding: 64px 0; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .hero-actions .btn { width: 100%; }
  .services-grid, .steps, .check-list, .form-grid { grid-template-columns: 1fr; }
  .service-media img { height: 220px; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-media img { height: 260px; }
  .detail-actions .btn { width: 100%; }
  .split > img { height: 300px; }
  .cta-strip { min-height: 430px; }
  .cta-copy { padding: 30px 24px; }
  .cta-copy .btn { width: 100%; }
  .contact-card, .form-card { padding: 22px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
