/* Vertex Integrated Solutions — premium dark UI */

:root {
  --bg: #06070a;
  --bg-elevated: #0d1017;
  --surface: #12151d;
  --surface-2: #191d28;
  --border: rgba(255, 255, 255, 0.08);
  --silver: #c9d2e0;
  --silver-bright: #eef2f8;
  --blue: #2e6bff;
  --blue-bright: #5b8cff;
  --blue-deep: #0a2a6b;
  --text: #e7ebf3;
  --text-muted: #93a0b8;
  --success: #24c48c;
  --warning: #f3b13c;
  --danger: #ef5a6f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: 22px; }
p { color: var(--text-muted); }

.muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 107, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46, 107, 255, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--silver);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blue-bright); color: var(--silver-bright); }
.btn-whatsapp { background: #25D366; color: #06210f; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, .35); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Announce bar + header ---------- */
.announce-bar {
  background: var(--blue-deep);
  color: var(--silver-bright);
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
}
.announce-bar a { color: var(--blue-bright); font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); letter-spacing: 2px; font-size: 18px; color: var(--silver-bright); }
.brand-text small { font-size: 10px; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--text-muted); padding: 6px 2px; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--silver-bright); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--blue-bright); border-radius: 2px;
}
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 130%; left: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease; box-shadow: var(--shadow);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 13px; }
.dropdown-menu a:hover { background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--silver-bright); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(46, 107, 255, .18), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(201, 210, 224, .08), transparent 40%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue-bright); font-weight: 700; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--blue-bright); }
.hero h1 span { background: linear-gradient(135deg, var(--silver-bright), var(--blue-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--silver-bright); }
.hero-stats div span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-visual {
  position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 30%, rgba(46,107,255,.25), var(--surface));
  padding: 40px; display: flex; align-items: center; justify-content: center;
  animation: float 6s ease-in-out infinite;
}
.hero-visual img { width: 70%; filter: drop-shadow(0 20px 40px rgba(46,107,255,.35)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

.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: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  animation: rise .6s ease both;
}
.card:hover { transform: translateY(-6px); border-color: rgba(91,140,255,.4); box-shadow: var(--shadow); }
.card img { border-radius: var(--radius-sm); margin-bottom: 18px; aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--surface-2); }
.card h3 { margin-bottom: 8px; }
.card .tag {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--blue-bright); background: rgba(46,107,255,.12); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.company-card { display: flex; gap: 20px; align-items: flex-start; }
.company-card .logo-wrap {
  width: 64px; height: 64px; border-radius: 16px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--border);
}
.company-card .logo-wrap img { width: 70%; }

.services-grid .card { text-align: center; }
.services-grid .icon { font-size: 34px; margin-bottom: 14px; }

.cta-band {
  background: linear-gradient(135deg, var(--blue-deep), #04122f);
  border-radius: 24px; padding: 60px; text-align: center; border: 1px solid var(--border);
}

.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.testimonial .stars { color: var(--warning); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial .who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-planning { background: rgba(243,177,60,.15); color: var(--warning); }
.badge-in_progress { background: rgba(46,107,255,.15); color: var(--blue-bright); }
.badge-completed { background: rgba(36,196,140,.15); color: var(--success); }
.badge-on_hold { background: rgba(239,90,111,.15); color: var(--danger); }
.badge-pending { background: rgba(243,177,60,.15); color: var(--warning); }
.badge-partial { background: rgba(46,107,255,.15); color: var(--blue-bright); }
.badge-paid { background: rgba(36,196,140,.15); color: var(--success); }
.badge-overdue { background: rgba(239,90,111,.15); color: var(--danger); }
.badge-new { background: rgba(46,107,255,.15); color: var(--blue-bright); }
.badge-contacted { background: rgba(243,177,60,.15); color: var(--warning); }
.badge-closed { background: rgba(36,196,140,.15); color: var(--success); }

/* ---------- Progress bar ---------- */
.progress-bar { width: 100%; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); border-radius: 999px; transition: width .6s ease; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before {
  content: ''; position: absolute; left: -37px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--blue-bright);
}
.timeline-item.completed::before { background: var(--success); border-color: var(--success); }
.timeline-item.in_progress::before { background: var(--blue-bright); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--silver); }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(91,140,255,.18); }
textarea { min-height: 130px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: rgba(36,196,140,.12); color: var(--success); border: 1px solid rgba(36,196,140,.3); }
.alert-error { background: rgba(239,90,111,.12); color: var(--danger); border: 1px solid rgba(239,90,111,.3); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-methods .card { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.contact-methods .icon-box {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(46,107,255,.12); color: var(--blue-bright);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #06210f; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45); z-index: 90; animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; padding-bottom: 50px; }
.footer-brand img { width: 42px; margin-bottom: 12px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--silver); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: var(--blue-bright); }
.footer-bottom { text-align: center; padding: 22px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border); font-size: 13px; color: var(--text-muted);
}
.pagination a:hover { border-color: var(--blue-bright); color: var(--silver-bright); }
.pagination .active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Utility page blocks ---------- */
.page-hero { padding: 70px 0 50px; text-align: center; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.prose { max-width: 780px; margin: 0 auto; }
.prose img { border-radius: var(--radius); margin: 20px 0; }
.prose h2, .prose h3 { margin-top: 32px; }
.prose p { margin-bottom: 16px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--blue-bright); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 66px 0 0 0; background: var(--bg); flex-direction: column; align-items: flex-start;
    padding: 24px; gap: 6px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .cta-band { padding: 36px 22px; }
}
