/* Deaço — base styles. Tailwind handles utilities; this file owns custom things. */

:root {
  --aco-orange: #FFB800;
  --aco-orange-hover: #E0A300;
  --aco-dark: #1A1A1B;
  --aco-navy: #2A2A2C;
  --aco-steel: #5A5A5D;
  --aco-light: #E8E8E8;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #fff;
  color: var(--aco-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Mobile: never let an image or media force the page wider than the screen */
img, svg, iframe, video, image-slot { max-width: 100%; }

.font-display { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.03em; }
.font-display-x { font-family: 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: -0.02em; }

/* ============== HATCH PLACEHOLDER ============== */
.hatch {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,184,0,.10) 0,
    rgba(255,184,0,.10) 1px,
    transparent 1px,
    transparent 9px
  );
}
.hatch-dark {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,184,0,.18) 0,
    rgba(255,184,0,.18) 1px,
    transparent 1px,
    transparent 9px
  );
}
.hatch-light {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(26,26,27,.06) 0,
    rgba(26,26,27,.06) 1px,
    transparent 1px,
    transparent 9px
  );
}

.mono { font-family: 'JetBrains Mono', ui-monospace, 'Menlo', monospace; }

/* ============== HEADER ============== */
.header { transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.header-scrolled {
  background-color: rgba(20,20,21,.92) !important;
  box-shadow: 0 1px 0 rgba(255,184,0,.2), 0 8px 24px rgba(0,0,0,.35);
  border-bottom-color: rgba(255,184,0,.18) !important;
}

/* ============== HERO BG SVG ============== */
.hero-grid {
  background-image:
    linear-gradient(rgba(255,184,0,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,184,0,.06) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-glow-1 {
  background: radial-gradient(60% 60% at 20% 30%, rgba(255,184,0,.18), transparent 70%);
}
.hero-glow-2 {
  background: radial-gradient(50% 50% at 85% 70%, rgba(255,184,0,.10), transparent 70%);
}

/* ============== BUTTONS ============== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; line-height: 1; transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; cursor: pointer; user-select: none; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--aco-orange); color: var(--aco-dark); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 24px -8px rgba(255,184,0,.6); }
.btn-primary:hover { background: var(--aco-orange-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 28px -8px rgba(255,184,0,.7); }

.btn-outline { background: rgba(255,255,255,.04); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,184,0,.5); }

.btn-ghost { background: transparent; color: #fff; border: 1px solid transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }

.btn-dark { background: var(--aco-dark); color: #fff; border: 1px solid var(--aco-dark); }
.btn-dark:hover { background: #000; }

/* ripple */
.btn .ripple { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255,255,255,.45), transparent 40%); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.btn.ripple-on::after { opacity: 1; transition: opacity 0s; }

/* ============== CARDS ============== */
.card { transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }

.card-product {
  background: linear-gradient(180deg, var(--aco-navy), #202022);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.card-product::before { content:''; position:absolute; inset:0; background: radial-gradient(120% 60% at 50% 0%, rgba(255,184,0,.06), transparent 60%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.card-product:hover { transform: translateY(-4px); border-color: rgba(255,184,0,.45); box-shadow: 0 24px 48px -16px rgba(0,0,0,.6), 0 0 0 1px rgba(255,184,0,.15); }
.card-product:hover::before { opacity: 1; }
.card-product .product-svg { transition: opacity .3s ease, transform .4s ease; }
.card-product:hover .product-svg { opacity: 1; transform: scale(1.04); }
.card-product .icon-chip { transition: background-color .25s ease, color .25s ease; }
.card-product:hover .icon-chip { background: var(--aco-orange); color: var(--aco-dark); }

.card-service {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(0,0,0,.06);
  border-top: 4px solid var(--aco-orange);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-service:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(0,0,0,.18); }

.card-article {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card-article:hover { transform: translateY(-3px); border-color: var(--aco-orange); box-shadow: 0 16px 32px -16px rgba(0,0,0,.18); }

.card-info {
  background: var(--aco-navy);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.card-info:hover { border-color: rgba(255,184,0,.4); transform: translateX(2px); }

/* ============== SECTION TRANSITIONS ============== */
.section-transition-dark-to-light {
  height: 64px;
  background: linear-gradient(180deg, var(--aco-dark), #fafafa);
}
.section-transition-light-to-dark {
  height: 64px;
  background: linear-gradient(180deg, #fafafa, var(--aco-dark));
}

/* ============== REVEAL ============== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============== FORM ============== */
.field { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); background: #fff; font: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.field:focus { outline: none; border-color: var(--aco-orange); box-shadow: 0 0 0 3px rgba(255,184,0,.18); }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--aco-dark); margin-bottom: 6px; }

/* ============== UTIL ============== */
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.icon-chip {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,184,0,.12); color: var(--aco-orange);
  font-size: 22px;
}

/* WhatsApp floating */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6), 0 0 0 8px rgba(37,211,102,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 32px -8px rgba(37,211,102,.7), 0 0 0 12px rgba(37,211,102,.16); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Focus ring for keyboard nav */
:focus-visible { outline: 2px solid var(--aco-orange); outline-offset: 3px; border-radius: 4px; }

/* Density helpers — Tweaks knob */
[data-density="compact"] .section-pad { padding-top: 64px; padding-bottom: 64px; }
[data-density="regular"] .section-pad { padding-top: 96px; padding-bottom: 96px; }
[data-density="airy"]    .section-pad { padding-top: 128px; padding-bottom: 128px; }

[data-density="compact"] .section-pad-sm { padding-top: 48px; padding-bottom: 48px; }
[data-density="regular"] .section-pad-sm { padding-top: 72px; padding-bottom: 72px; }
[data-density="airy"]    .section-pad-sm { padding-top: 96px; padding-bottom: 96px; }

/* dark tones */
[data-darktone="black"]    { --aco-dark: #0F0F10; --aco-navy: #1B1B1D; }
[data-darktone="charcoal"] { --aco-dark: #1A1A1B; --aco-navy: #2A2A2C; }
[data-darktone="anthracite"] { --aco-dark: #232326; --aco-navy: #34343A; }

/* Hero variants get distinct treatments via data-attr */

/* card hover personalities */
[data-cardhover="lift"] .card-product:hover { transform: translateY(-6px); }
[data-cardhover="tilt"] .card-product:hover { transform: perspective(800px) rotateX(2deg) translateY(-3px); }
[data-cardhover="glow"] .card-product:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--aco-orange), 0 24px 48px -16px rgba(255,184,0,.35); }

/* show/hide section transition gradients */
[data-transitions="off"] .section-transition-dark-to-light,
[data-transitions="off"] .section-transition-light-to-dark { display: none; }

/* placeholder photo */
.photo-ph {
  position: relative; overflow: hidden;
  background: #2A2A2C;
  border: 1px solid rgba(255,184,0,.2);
}
.photo-ph::before {
  content:''; position:absolute; inset:0;
  background-image: repeating-linear-gradient(135deg, rgba(255,184,0,.08) 0 1px, transparent 1px 12px);
}
.photo-ph .ph-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .04em;
  background: rgba(255,184,0,.92); color: #1A1A1B;
  padding: 4px 8px; border-radius: 4px;
  font-weight: 700;
}
.photo-ph .ph-spec {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .04em; line-height: 1.4;
  color: rgba(255,255,255,.5);
}

/* Status pill */
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aco-orange); box-shadow: 0 0 0 4px rgba(255,184,0,.2); animation: pulse 2.4s ease-in-out infinite; display:inline-block; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(255,184,0,.2); } 50% { box-shadow: 0 0 0 8px rgba(255,184,0,.05); } }

/* anchor offset for sticky header */
section[id] { scroll-margin-top: 80px; }

/* ============== MOBILE REFINEMENTS ============== */
@media (max-width: 640px) {
  /* Tighter section rhythm on phones (overrides density padding) */
  [data-density="compact"] .section-pad,
  [data-density="regular"] .section-pad,
  [data-density="airy"]    .section-pad { padding-top: 56px; padding-bottom: 56px; }
  [data-density="compact"] .section-pad-sm,
  [data-density="regular"] .section-pad-sm,
  [data-density="airy"]    .section-pad-sm { padding-top: 44px; padding-bottom: 44px; }

  /* Smaller floating WhatsApp so it doesn't cover content/CTAs */
  .wa-float { width: 52px; height: 52px; font-size: 26px; right: 14px; bottom: 14px;
    box-shadow: 0 8px 20px -6px rgba(37,211,102,.6), 0 0 0 5px rgba(37,211,102,.12); }

  /* Buttons go full-width-friendly and a touch taller for thumbs */
  .btn { padding: 15px 20px; }

  /* Keep decorative floating badges from ever pushing past the screen edge */
  .photo-ph .ph-spec { font-size: 9px; }
}

/* Honor iOS safe areas for the floating button */
@supports (padding: max(0px)) {
  .wa-float { right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom)); }
}
