/* ====== GLOBAL RESET ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0%, #020617 45%, #000000 100%);
  color: #e5e7eb;
  min-height: 100vh;
}

/* ====== THEME VARIABLES ====== */
:root {
  --bg-main: rgba(15, 23, 42, 0.85);
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-soft: rgba(31, 41, 55, 0.7);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.18);
  --accent-2: #22c55e;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --shadow-glass: 0 18px 45px rgba(0, 0, 0, 0.65);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --max-width: 1180px;
}

/* ====== LAYOUT ====== */
.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding-top: 5.5rem; /* for sticky header */
}

/* ====== GLASS EFFECTS ====== */
.glass {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-glass);
}

/* subtle card variant */
.card {
  background: var(--bg-card-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ====== HEADER / NAV ====== */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.65),
    rgba(15, 23, 42, 0.92)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 0, #f97316, #ef4444 40%, #1d4ed8 80%);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0b1120;
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #f9fafb;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #f97316, #22c55e);
  transition: width 0.2s ease-out;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

/* nav button */
.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  background: radial-gradient(circle at 0 0, #f97316, #facc15);
  color: #0b1120;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #e5e7eb;
  font-size: 1.4rem;
}

/* ====== HERO ====== */
.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-badge span {
  color: #f97316;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.2rem, 3.1vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(to right, #f97316, #facc15);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.btn-primary {
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #0b1120;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  cursor: pointer;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta strong {
  color: #e5e7eb;
}

/* hero right */
.hero-panel {
  padding: 1.3rem;
}

.hero-panel-inner {
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.04), rgba(15, 23, 42, 0.9));
}

.hero-panel h2 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.hero-panel p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  font-size: 0.8rem;
}

.kpi {
  padding: 0.7rem 0.6rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.kpi strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.tag-highlight {
  border-color: rgba(249, 115, 22, 0.7);
  background: var(--accent-soft);
}

/* ====== SECTIONS ====== */
.section {
  padding: 3.5rem 0 3rem;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* services grid / cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.service-card {
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.service-chip {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
}

.service-chip span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.service-meta a {
  color: #f97316;
  text-decoration: none;
  font-weight: 500;
}

.service-highlight {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.06), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

/* stats row */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  flex: 1 1 120px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat strong {
  display: block;
  font-size: 1.3rem;
  color: #f9fafb;
  margin-bottom: 0.15rem;
}

/* ====== LOGO STRIP ====== */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.logo-pill {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ====== CASE STUDIES / CARDS ====== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.case-card {
  padding: 1.1rem;
}

.case-badge {
  font-size: 0.7rem;
  color: var(--accent-2);
  margin-bottom: 0.4rem;
}

.case-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.case-metric {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.case-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ====== CONTACT / FORM ====== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-info strong {
  color: #e5e7eb;
}

.contact-meta {
  margin: 1rem 0;
  display: grid;
  gap: 0.7rem;
}

.contact-meta div {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.contact-meta span {
  font-size: 0.85rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.7rem;
}

label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.9rem;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* ====== FOOTER ====== */
footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 50%);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-col-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.4rem;
  color: #9ca3af;
}

.footer-link {
  display: block;
  margin-bottom: 0.25rem;
  text-decoration: none;
  color: var(--text-muted);
}

.footer-link:hover {
  color: #f9fafb;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

/* ====== WHATSAPP FLOATING BUTTON ====== */
.whatsapp-fab {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 0, #22c55e, #16a34a 50%, #15803d 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  z-index: 40;
}

.whatsapp-fab img {
  width: 26px;
  height: 26px;
}

.whatsapp-fab:hover {
  transform: translateY(-1px) scale(1.02);
}

/* small label (desktop only) */
.whatsapp-label {
  position: fixed;
  right: 5.5rem;
  bottom: 2.1rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ====== UTILITIES ====== */
.chip-inline {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-right: 0.3rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .hero-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .grid-3,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .navbar {
    padding-inline: 1rem;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 0.75rem 1.5rem 1rem;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.97);
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-cta {
    margin-top: 0.4rem;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .grid-3,
  .case-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-top {
    flex-direction: column;
  }

  .whatsapp-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .wrapper {
    padding-inline: 1.1rem;
  }
}
