/* ============================================================
   BANZ TECHNOLOGIES — MAIN CSS
   Global Design System, Reset, Typography, Utilities
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary:     #ffffff;
  --bg-secondary:   #f9f9f9;
  --bg-surface:     #f4f4f4;
  --bg-card:        #ffffff;
  --border:         #e5e5e5;
  --border-light:   #f0f0f0;
  --cta-border:     #cfcfcf;
  --text-primary:   #050505;
  --text-secondary: #555555;
  --text-muted:     #888888;
  --accent:         #000000;
  --accent-dim:     rgba(0,0,0,0.05);

  --bg-dark:        #0a0a0a;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-pad:    160px;
  --section-pad-sm: 80px;
  --container:      1320px;
  --gutter:         32px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   0.3s;
  --dur-med:    0.6s;
  --dur-slow:   1s;

  /* Z-index layers */
  --z-bg:       -1;
  --z-base:      1;
  --z-card:      10;
  --z-nav:       100;
  --z-cursor:    200;
  --z-preloader: 999;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  cursor: none; /* Custom cursor active */
}

body.menu-open {
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Section --- */
.section {
  padding-block: var(--section-pad);
}

.section--sm {
  padding-block: var(--section-pad-sm);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.display-1 {
  font-size: clamp(3rem, 8vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.display-2 {
  font-size: clamp(2.5rem, 6vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.heading-1 { font-size: clamp(2rem, 4vw, 5rem); }
.heading-2 { font-size: clamp(1.75rem, 3vw, 3.5rem); }
.heading-3 { font-size: clamp(1.25rem, 2vw, 2rem); }
.heading-4 { font-size: clamp(1rem, 1.5vw, 1.5rem); }

.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.body-lg { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; }
.body-md { font-size: 1rem; line-height: 1.7; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

svg { display: block; }

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* --- Flex utils --- */
.flex       { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col   { display: flex; flex-direction: column; }

/* --- Overflow clip for reveal animations --- */
.clip {
  overflow: hidden;
}

/* --- Gradient text --- */
.gradient-text {
  background: linear-gradient(135deg, #000 0%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* --- Section header --- */
.section-header {
  margin-bottom: 80px;
}

.section-header .label {
  display: block;
  margin-bottom: 16px;
}

.section-header h2 {
  max-width: 900px;
}

.section-header--center {
  text-align: center;
}

.section-header--center h2 {
  margin-inline: auto;
}

/* --- WhatsApp FAB --- */
.whatsapp-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
  transition: transform var(--dur-fast) var(--ease-bounce);
}

.whatsapp-fab:hover {
  transform: scale(1.12);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --section-pad: 100px;
    --section-pad-sm: 60px;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
    --section-pad-sm: 40px;
    --gutter: 20px;
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-header { margin-bottom: 32px; }
  body { cursor: auto; } /* Disable custom cursor on touch */
  
  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
/* --- Services Index / Categories --- */
.services-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.index-tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast) ease, box-shadow var(--dur-med) ease;
}

.index-tile:hover {
  transform: translateY(-8px);
  border-color: var(--text-primary);
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.index-tile__num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-primary);
  margin-bottom: 32px;
}

.index-tile__title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.index-tile__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 450px;
  text-align: justify;
}

.index-tile__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.index-tile__list-item {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  font-weight: 500;
  cursor: default;
  transition: color var(--dur-fast) ease;
}

.index-tile__list-item:hover {
  color: var(--text-primary);
}

.index-tile__list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-primary);
  opacity: 0.3;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.index-tile__list-item:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
}

/* Tooltip Popup */
.index-tile__tooltip {
  position: absolute;
  bottom: 140%;
  left: -10px;
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  width: max-content;
  max-width: 250px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom left;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  z-index: 100;
  white-space: normal;
  text-align: left;
}

.index-tile__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px;
  border: 8px solid transparent;
  border-top-color: var(--bg-dark);
}

.index-tile__list-item:hover .index-tile__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.index-tile__arrow {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .services-index { grid-template-columns: 1fr; }
  .index-tile { padding: 32px; }
  .index-tile__title { font-size: 1.75rem; }
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--bg-dark);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-block: var(--section-pad);
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(2.5rem, 6.5vw, 7.5rem);
  margin-bottom: 32px;
  line-height: 0.95;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 56px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.cta-section__bg-text {
  position: absolute;
  bottom: -0.1em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: clamp(8rem, 28vw, 32rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
  line-height: 0.8;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.testborder {
  border: #25d366 solid medium;
}