/* =============================================================
   VEDATRICKS v2 — Layout
   Navigation, footer, responsive grid
   ============================================================= */

/* =============================================================
   NAVIGATION
   ============================================================= */

.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

/* Logo */
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.nav__logo-img { height: 30px; width: auto; }
.nav__logo-dot {
  color: var(--g);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  margin: 0 -2px;
  padding-bottom: 4px;
}
.nav__logo-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
}
.nav__links a {
  color: var(--ink);
  padding: 4px 0;
  position: relative;
  transition: color var(--t-fast);
}
.nav__links a:hover { color: var(--g-hover); }
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--g);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--t-normal) var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

/* Nav actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--wa);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r-pill);
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav__wa:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}
.nav__wa svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--g);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r-pill);
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav__cta:hover {
  background: var(--g-hover);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.nav__toggle:hover { background: var(--bg-off); }
.nav__toggle svg { width: 24px; height: 24px; }

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px var(--gutter) 32px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  animation: fadeSlide 0.3s var(--ease);
}
.nav__mobile.is-open { display: flex; }

.nav__mobile a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.nav__mobile a:hover { background: var(--bg-off); }

.nav__mobile-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* =============================================================
   FOOTER
   ============================================================= */

.foot {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.foot__wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
}

.foot__brand { display: flex; flex-direction: column; gap: 16px; }
.foot__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.foot__logo-img { height: 28px; width: auto; }
.foot__logo-dot { color: var(--g); font-weight: 800; font-size: 22px; margin: 0 -2px; }

.foot__tag {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}

.foot__addr {
  font-size: 13px;
  color: var(--ink-4);
  line-height: 1.7;
}
.foot__addr strong { color: var(--ink-3); }

.foot__social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.foot__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: var(--bg-off);
  color: var(--ink-3);
  transition: background var(--t-fast), color var(--t-fast);
}
.foot__social a:hover { background: var(--g-soft); color: var(--g-dark); }
.foot__social a svg { width: 16px; height: 16px; }

.foot__col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.foot__col a {
  display: block;
  font-size: 14px;
  color: var(--ink-3);
  padding: 5px 0;
  transition: color var(--t-fast);
}
.foot__col a:hover { color: var(--g-dark); }

/* Newsletter in footer */
.foot__newsletter {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}
.foot__newsletter input {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  font-size: 14px;
  background: var(--bg-off);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: border-color var(--t-fast);
}
.foot__newsletter input:focus {
  outline: none;
  border-color: var(--g);
}
.foot__newsletter button {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--g);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--r-pill);
  transition: background var(--t-fast);
}
.foot__newsletter button:hover { background: var(--g-hover); }

/* Footer bottom bar */
.foot__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-4);
}

/* =============================================================
   HERO SECTION
   ============================================================= */

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

.hero__card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background: var(--warm-2);
  min-height: clamp(480px, 60vh, 680px);
  box-shadow: var(--sh-hero);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg--warm {
  background:
    linear-gradient(135deg, var(--warm-1) 0%, var(--warm-2) 30%, var(--warm-3) 60%, var(--warm-4) 100%);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 700px at 10% 60%, rgba(10,5,0,.6) 0%, transparent 55%),
    radial-gradient(circle 400px at 90% 20%, rgba(216,155,90,.15), transparent 60%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: .5;
}

.hero__content {
  position: relative;
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  color: #fff;
  animation: heroFade 0.9s 0.15s var(--ease) both;
}

.hero__title {
  font-size: clamp(36px, 6.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
}

.hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  font-weight: 500;
  max-width: 540px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero__illustration {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(24px, 5vw, 72px);
  width: clamp(180px, 25vw, 340px);
  opacity: 0.2;
}

/* =============================================================
   GRID LAYOUTS
   ============================================================= */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 1080px) {
  .nav__links { gap: 24px; }
  .foot__wrap { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav__wa span { display: none; }
  .nav__wa { padding: 10px; }

  .hero__content { padding: clamp(28px, 5vw, 48px); }
  .hero__illustration { display: none; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }

  .foot__wrap { grid-template-columns: 1fr; gap: 32px; }
  .foot__bar { flex-direction: column; text-align: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .trust-row { flex-direction: column; gap: 12px; }
  .trust-item--divider {
    padding-left: 0;
    border-left: none;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .stats-strip { gap: 24px; }
}

@media (max-width: 480px) {
  .nav__wrap { height: 60px; }
  .grid-services { grid-template-columns: 1fr; }
}
