/* NexasAI — Premium Homepage Stylesheet */

:root {
  --bg: #080808;
  --bg-2: #111111;
  --yellow: #FFD400;
  --yellow-soft: #FFF4B8;
  --white: #FFFFFF;
  --text: #F5F5F5;
  --body-text: #E9E9E9;
  --body-text-dim: #CFCFCF;
  --muted: #A3A3A3;
  --border: #262626;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --radius: 18px;
  --max: 1180px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 800;
}

h2 {
  font-weight: 800;
}

h3,
h4 {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--yellow);
  color: var(--bg);
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.section.alt {
  background: var(--bg-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--yellow);
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 16px;
}

.section p {
  color: var(--body-text);
  font-size: 1rem;
}

.section p + p {
  margin-top: 14px;
}

.center {
  text-align: center;
}

.center .section-head {
  margin-inline: auto;
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: var(--scroll-progress, 0%);
  height: 2px;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 212, 0, 0.5);
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--bg);
  font-weight: 800;
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  cursor: pointer;
  padding: 11px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--yellow);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav .nav-cta {
  background: var(--yellow);
  color: var(--bg);
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
}

.main-nav .nav-cta::after {
  display: none;
}

.main-nav .nav-cta:hover {
  background: var(--white);
  color: var(--bg);
}

/* ---------- Services dropdown ---------- */

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.caret {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.dropdown-toggle {
  display: none;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  z-index: 110;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
}

@media (min-width: 821px) {
  .nav-item:hover > .dropdown-menu,
  .nav-item:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item:hover > a .caret,
  .nav-item:focus-within > a .caret {
    transform: rotate(225deg) translateY(-2px);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(255, 212, 0, 0.18);
}

.btn-primary:hover {
  background: var(--white);
  box-shadow: 0 14px 36px rgba(255, 212, 0, 0.26);
}

.btn-outline {
  border-color: var(--border);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-light {
  background: var(--white);
  color: var(--bg);
}

.btn-light:hover {
  background: var(--yellow);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 110px 0 120px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  top: -320px;
  right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.13), transparent 68%);
  animation: glowPulse 9s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: heroUp 0.7s var(--ease-out) 0.05s both;
}

.eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.15rem);
  line-height: 1.08;
  margin: 24px 0 20px;
  animation: heroUp 0.85s var(--ease-out) 0.14s both;
}

.hero h1 .accent {
  color: var(--yellow);
  position: relative;
  display: inline-block;
  z-index: 0;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 6px;
  background: rgba(255, 212, 0, 0.22);
  z-index: -1;
  animation: underlineGrow 1s var(--ease-out) 0.7s both;
}

.hero .lead {
  color: var(--body-text);
  font-size: 1.08rem;
  max-width: 640px;
  animation: heroUp 0.85s var(--ease-out) 0.24s both;
}

.lead strong {
  color: var(--text);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
  animation: heroUp 0.85s var(--ease-out) 0.34s both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: var(--body-text-dim);
  font-size: 0.86rem;
  animation: heroUp 0.85s var(--ease-out) 0.44s both;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  animation: heroFade 1.1s var(--ease-out) 0.3s both;
  will-change: opacity, transform;
}

.orbit-ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  inset: 8%;
}

.orbit-ring.ring-2 {
  inset: 22%;
  border-style: dashed;
  border-color: rgba(255, 212, 0, 0.22);
  animation: spin 40s linear infinite;
}

.orbit-ring.ring-1::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.7);
}

.hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
  box-shadow: 0 0 0 10px rgba(255, 212, 0, 0.07), 0 18px 40px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.connector line {
  stroke: rgba(255, 212, 0, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawLine 1.3s var(--ease-out) 0.9s forwards, lineGlow 4s 2.2s ease-in-out infinite;
}

.node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: floatNode 6s ease-in-out infinite;
  will-change: transform;
}

.node svg {
  width: 16px;
  height: 16px;
  color: var(--yellow);
}

.node.seo { top: 6%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node.social { top: 30%; right: 0%; animation-delay: -1.4s; }
.node.ads { bottom: 22%; right: 4%; animation-delay: -2.8s; }
.node.analytics { bottom: 4%; left: 48%; transform: translateX(-50%); animation-delay: -4.2s; }
.node.whatsapp { bottom: 26%; left: 0%; animation-delay: -5.2s; }

.node.seo,
.node.analytics {
  animation-name: floatNodeCentered;
}

@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.45); }
  50% { opacity: 0.75; box-shadow: 0 0 0 7px rgba(255, 212, 0, 0); }
}

@keyframes underlineGrow {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes lineGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes floatNode {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes floatNodeCentered {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* Gentle stagger for card grids — no extra JavaScript */
.services-grid [data-reveal]:nth-child(2),
.about-points [data-reveal]:nth-child(2),
.why-grid [data-reveal]:nth-child(2),
.process-grid [data-reveal]:nth-child(2) { transition-delay: 80ms; }

.services-grid [data-reveal]:nth-child(3),
.about-points [data-reveal]:nth-child(3),
.why-grid [data-reveal]:nth-child(3),
.process-grid [data-reveal]:nth-child(3) { transition-delay: 160ms; }

.services-grid [data-reveal]:nth-child(4),
.why-grid [data-reveal]:nth-child(4),
.process-grid [data-reveal]:nth-child(4) { transition-delay: 240ms; }

.services-grid [data-reveal]:nth-child(5) { transition-delay: 320ms; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text p {
  max-width: 560px;
}

.about-points {
  display: grid;
  gap: 14px;
}

.about-point {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.about-point:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
}

.about-point .icon {
  flex-shrink: 0;
}

.about-point h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.about-point p {
  font-size: 0.9rem;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
  transition: transform 0.35s var(--ease-out), background 0.3s ease;
}

.service-card:hover .icon,
.about-point:hover .icon,
.why-item:hover .icon {
  transform: translateY(-2px) scale(1.06);
  background: rgba(255, 212, 0, 0.16);
}

.icon svg {
  width: 21px;
  height: 21px;
}

/* ---------- Services ---------- */

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

/* Services page: five equal cards, last two centred instead of stretched.
   Scoped to this page so the homepage layout stays exactly as it is. */
.page-services .services-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.page-services .services-grid .service-card {
  grid-column: span 2;
}

.page-services .services-grid .service-card:nth-child(4) { grid-column: 2 / span 2; }
.page-services .services-grid .service-card:nth-child(5) { grid-column: 4 / span 2; }

.service-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: var(--yellow);
  box-shadow: var(--shadow);
}

.service-card.featured {
  background: var(--bg-2);
  border-color: rgba(255, 212, 0, 0.45);
}

.service-card .icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.94rem;
  flex-grow: 1;
}

.learn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap 0.25s ease;
}

.learn-link:hover {
  gap: 13px;
}

/* ---------- Why choose ---------- */

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

.why-item {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.why-item:hover {
  border-color: var(--yellow);
  transform: translateY(-5px);
}

.why-item .icon {
  margin-bottom: 18px;
}

.why-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.92rem;
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.step-num {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.step:hover .step-num {
  background: var(--yellow);
  color: var(--bg);
  border-color: var(--yellow);
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.92rem;
}

/* ---------- Local ---------- */

.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.96rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  font-weight: 700;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill-list span {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.pill-list span:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 860px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  margin-bottom: 12px;
  padding: 0 22px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 46px 20px 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.faq-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 212, 0, 0.12);
  color: var(--yellow);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item[open] .faq-icon {
  transform: translateY(-50%) rotate(45deg);
  background: var(--yellow);
  color: var(--bg);
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--body-text);
  font-size: 0.95rem;
}

.faq-item[open] .faq-answer {
  animation: faqReveal 0.35s var(--ease-out) both;
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- CTA + Contact ---------- */

.cta-wrap {
  padding: 90px 0;
}

.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: 24px;
  background: var(--bg-2);
  padding: 52px;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.16), transparent 65%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  max-width: 760px;
}

.cta-band p {
  color: var(--body-text);
  max-width: 720px;
  margin-top: 10px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-card,
.contact-form-wrap {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-2);
  padding: 32px;
}

.contact-card h2 {
  font-size: 1.5rem;
  margin: 10px 0 22px;
}

.contact-details li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 0.94rem;
}

.contact-details svg {
  width: 20px;
  height: 20px;
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-details a:hover {
  color: var(--yellow);
}

.contact-form-wrap h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.contact-form-wrap p {
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.contact-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--white);
  font-size: 0.92rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9a9a9a;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.12);
}

.contact-form textarea {
  min-height: 116px;
  resize: vertical;
}

.form-note {
  min-height: 1.4em;
  font-size: 0.85rem;
  color: var(--body-text-dim);
  margin-top: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.site-footer p {
  color: var(--body-text-dim);
  font-size: 0.9rem;
  max-width: 320px;
  margin-top: 14px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--body-text-dim);
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--body-text-dim);
  font-size: 0.85rem;
}

/* ---------- Floating WhatsApp ---------- */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--bg);
  box-shadow: 0 14px 34px rgba(255, 212, 0, 0.28);
  transition: transform 0.25s ease, background 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.07);
  background: var(--white);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .local-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-visual {
    max-width: 420px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 34px;
  }

  .process-grid::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .main-nav a {
    padding: 11px 4px;
    font-size: 1rem;
  }

  .main-nav .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  /* Services dropdown in the mobile menu */
  .nav-item {
    display: block;
  }

  .nav-item > a {
    display: block;
    padding-right: 44px;
  }

  .nav-item > a .caret {
    display: none;
  }

  .dropdown-toggle {
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
  }

  .dropdown-toggle[aria-expanded="true"] {
    color: var(--yellow);
  }

  .dropdown-toggle[aria-expanded="true"] .caret {
    transform: rotate(225deg) translateY(-2px);
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 2px 0 6px;
    padding: 2px 0 2px 14px;
    border: 0;
    border-left: 2px solid var(--yellow);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.dropdown-open .dropdown-menu {
    display: block;
    animation: dropdownIn 0.25s var(--ease-out) both;
  }

  .dropdown-menu a {
    padding: 8px 6px;
    font-size: 0.92rem;
  }
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 78px 0 88px;
  }

  .hero-visual {
    max-width: 330px;
  }

  .node {
    font-size: 0.68rem;
    padding: 7px 9px;
  }

  .hub {
    width: 92px;
    height: 92px;
    font-size: 0.88rem;
  }

  .cta-band {
    padding: 30px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .contact-form-wrap {
    padding: 24px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Services page grid breakpoints */
@media (max-width: 1023px) {
  .page-services .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-services .services-grid .service-card,
  .page-services .services-grid .service-card:nth-child(4),
  .page-services .services-grid .service-card:nth-child(5) {
    grid-column: auto;
  }

  .page-services .services-grid .service-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .page-services .services-grid {
    grid-template-columns: 1fr;
  }

  .page-services .services-grid .service-card:last-child {
    grid-column: auto;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
