/* ============================================
   HANS Global Tech — Enterprise UI
   Inspired by SAP/Cisco — minimal, high-contrast,
   driven by CSS variables (admin-editable colors).
   ============================================ */

:root {
  --color-primary:   #1E1D79;
  --color-secondary: #3A38B5;
  --color-accent:    #FE741B;
  --color-dark:      #0F0E4A;
  --color-light:     #F7F8FC;
  --text:        #1F2330;
  --text-muted:  #5C6479;
  --border:      #E6E8F0;
  --white:       #FFFFFF;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15,14,74,.06);
  --shadow:    0 6px 20px rgba(15,14,74,.08);
  --shadow-lg: 0 24px 60px rgba(15,14,74,.18);
  --shadow-orange: 0 8px 24px rgba(254,116,27,.32);
  --max-w: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  color: var(--color-dark);
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.8vw, 3.75rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { max-height: 48px; width: auto; }
.brand-wordmark {
  font-weight: 800; font-size: 1.3rem;
  color: var(--color-primary);
  letter-spacing: -.02em;
}
.site-nav .nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px; align-items: center;
}
.site-nav a {
  display: block; padding: 10px 18px;
  font-weight: 500; font-size: .95rem;
  color: var(--text); border-radius: var(--radius-sm);
}
.site-nav a:hover, .site-nav a.is-active {
  color: var(--color-primary); background: var(--color-light);
}
.nav-cta {
  margin-left: 8px;
  padding: 10px 20px !important;
  background: var(--color-accent);
  color: white !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--color-primary) !important;
  color: white !important;
}
.nav-toggle {
  display: none; background: none; border: 0;
  width: 40px; height: 40px; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--color-primary); transition: .3s; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  font: inherit; font-weight: 600; font-size: .95rem;
  border-radius: 100px; border: 0; cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--color-accent); color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--color-primary); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30,29,121,.35);
}
.btn-ghost {
  background: transparent; color: var(--color-primary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--color-primary); color: var(--color-primary);
  background: var(--color-light);
}
.btn-whatsapp {
  background: #25d366; color: white;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}
.btn-whatsapp:hover { background: var(--color-primary); color: white; transform: translateY(-2px); }
.btn-large { padding: 18px 36px; font-size: 1rem; }
.btn-arrow::after { content: '→'; transition: transform .25s; font-size: 1.1em; line-height: 1; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* HERO */
.hero {
  position: relative;
  padding: 100px 0 100px;
  background: linear-gradient(180deg, #fff 0%, var(--color-light) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 95% -10%, rgba(254,116,27,.10), transparent 60%),
    radial-gradient(800px 500px at -5% 100%, rgba(30,29,121,.08), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(30,29,121,.08);
  color: var(--color-primary);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
}
.hero h1 { margin-bottom: 24px; max-width: 16ch; }
.hero h1 .accent { color: var(--color-accent); }
.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-muted); max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.65;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .85rem;
}
.hero-trust strong { color: var(--color-primary); font-weight: 600; }

/* STATS STRIP */
.stats-strip {
  background: var(--color-dark); color: var(--white);
  padding: 64px 0;
  position: relative; overflow: hidden;
}
.stats-strip::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(254,116,27,.18), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(58,56,181,.25), transparent 70%);
}
.stats-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.stat { text-align: center; }
.stat-value {
  display: block; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.stat-label {
  display: block; margin-top: 12px;
  color: rgba(255,255,255,.7); font-size: .9rem;
  letter-spacing: .02em;
}

/* SECTIONS */
section.section { padding: 100px 0; }
section.section-light { background: var(--color-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-eyebrow {
  display: inline-block;
  color: var(--color-accent); font-weight: 700;
  font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* SERVICE CARDS */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  transition: background .3s;
}
.service-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--color-accent) 0%, #ff9540 100%);
}
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p {
  color: var(--text-muted);
  margin-bottom: 20px; font-size: .92rem;
  flex-grow: 1;
}
.service-card .service-link {
  margin-top: auto; font-weight: 600; font-size: .85rem;
  color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: .04em;
}
.service-card .service-link::after { content: '→'; transition: transform .25s; }
.service-card:hover .service-link { color: var(--color-accent); }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* WHY CHOOSE US */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-item {
  padding: 32px 28px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-num {
  display: inline-block;
  font-size: 2.2rem; font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -.03em;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-item p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* CTA BAND */
.cta-band {
  background: var(--color-primary);
  background-image: radial-gradient(800px 400px at 90% 50%, rgba(254,116,27,.18), transparent 70%);
  color: white;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: white; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 32px; font-size: 1.05rem; max-width: 580px; margin-left: auto; margin-right: auto; }

/* POSITIONING */
.positioning {
  padding: 100px 0;
  background: var(--color-dark); color: var(--white);
  position: relative; overflow: hidden;
}
.positioning::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 80% 50%, rgba(254,116,27,.16), transparent 70%);
}
.positioning-inner { position: relative; max-width: 820px; }
.positioning h2 { color: var(--white); margin-bottom: 20px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.positioning p { color: rgba(255,255,255,.85); font-size: 1.1rem; line-height: 1.7; }
.positioning .hero-eyebrow {
  background: rgba(254,116,27,.18);
  color: var(--color-accent);
}
.positioning .hero-eyebrow::before { background: var(--color-accent); }

/* SERVICE DETAIL */
.service-detail-hero { padding: 80px 0 40px; background: linear-gradient(180deg, var(--color-light), white); }
.service-detail-body { padding: 40px 0 100px; }
.service-detail-body .lede { font-size: 1.15rem; color: var(--text-muted); max-width: 760px; margin-bottom: 32px; }
.detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; margin-top: 56px;
}
.detail-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.detail-block h3 {
  display: flex; align-items: center; gap: 12px;
  color: var(--color-primary);
  margin-bottom: 24px; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.detail-block h3::before {
  content: ''; width: 24px; height: 2px;
  background: var(--color-accent);
}
.detail-block ul { list-style: none; padding: 0; margin: 0; }
.detail-block li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  line-height: 1.5;
}
.detail-block li:last-child { border-bottom: 0; }
.detail-block li::before {
  content: '';
  position: absolute; left: 0; top: 16px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(254,116,27,.15);
}
.detail-block li::after {
  content: '✓';
  position: absolute; left: 5px; top: 13px;
  color: var(--color-accent); font-weight: 800;
  font-size: .8rem;
}

/* ABOUT */
.about-hero { padding: 80px 0 40px; background: var(--color-light); }
.about-body { padding: 60px 0 100px; }
.about-body .prose { max-width: 760px; font-size: 1.05rem; color: var(--text); }
.about-body .prose p { margin-bottom: 1.3em; line-height: 1.75; }

/* CONTACT */
.contact-hero { padding: 80px 0 40px; background: var(--color-light); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 48px;
}
.contact-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: all .25s;
  display: flex; flex-direction: column; gap: 4px;
}
.contact-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.contact-card .icon-circle {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(30,29,121,.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.contact-card .icon-circle svg { width: 22px; height: 22px; stroke: var(--color-primary); fill: none; stroke-width: 1.7; }
.contact-card.is-whatsapp .icon-circle { background: rgba(37,211,102,.12); }
.contact-card.is-whatsapp .icon-circle svg { stroke: #25d366; fill: #25d366; }
.contact-card h3 { font-size: .8rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.contact-card .value { font-size: 1.1rem; font-weight: 600; color: var(--color-dark); word-break: break-word; line-height: 1.4; }
.contact-card .value a { color: inherit; }
.contact-card .value a:hover { color: var(--color-accent); }

.contact-cta-band {
  margin-top: 80px;
  background: var(--color-primary);
  background-image: radial-gradient(700px 350px at 90% 50%, rgba(254,116,27,.20), transparent 70%);
  border-radius: var(--radius-lg);
  padding: 64px 40px; text-align: center; color: white;
  position: relative; overflow: hidden;
}
.contact-cta-band h2 { color: white; margin-bottom: 14px; }
.contact-cta-band p { opacity: .9; margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* CONTACT FORM */
.contact-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  margin-top: 48px;
}
.contact-form .form-row { margin-bottom: 20px; }
.contact-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--color-dark); margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30,29,121,.1);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* FOOTER */
.site-footer {
  background: var(--color-dark); color: rgba(255,255,255,.75);
  padding: 80px 0 28px;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 100% 0%, rgba(254,116,27,.10), transparent 70%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-brand-block {
  background: white;
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.footer-brand-block img { max-height: 44px; width: auto; }
.footer-tagline { color: rgba(255,255,255,.7); font-size: .92rem; max-width: 360px; line-height: 1.6; }
.footer-col h4 { color: white; font-size: .8rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--color-accent); }
.footer-contact li { color: rgba(255,255,255,.72); font-size: .92rem; line-height: 1.5; margin-bottom: 12px; }
.footer-bottom {
  position: relative;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: rgba(255,255,255,.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* FLOATING WHATSAPP */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 64px; height: 64px;
  background: #25d366; color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37,211,102,.45);
  z-index: 90;
  transition: transform .25s;
  animation: floatPulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(37,211,102,.45); }
  50% { box-shadow: 0 12px 32px rgba(37,211,102,.6), 0 0 0 12px rgba(37,211,102,.12); }
}

/* EMPTY STATES */
.empty-state {
  padding: 80px 24px; text-align: center;
  background: var(--color-light); border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.empty-state h3 { color: var(--text-muted); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: white; border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .25s;
    box-shadow: var(--shadow-sm);
  }
  .nav-list.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta { margin-left: 0 !important; margin-top: 8px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  section.section { padding: 64px 0; }
  .hero { padding: 64px 0 64px; }
  .stats-strip { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-cta-band, .cta-band { padding: 48px 24px; }
  .container { padding: 0 20px; }
  .hero h1 { font-size: 2rem; }
  .whatsapp-float { width: 56px; height: 56px; bottom: 20px; right: 20px; }
  .contact-form { padding: 28px 20px; }
}
