/* Aras Hidrofor — custom layer on top of Tailwind CDN */

:root {
  --navy-950: #070d14;
  --navy-900: #0c1520;
  --navy-800: #132033;
  --steel-500: #4a6d82;
  --steel-300: #8ba9bb;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
}

/* Fix accidental typo prevention — real tokens used in utilities below */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #f4f6f8;
  color: #15202b;
}

::selection {
  background: #f59e0b;
  color: #0c1520;
}

/* Diagonal / asymmetric section edges */
.slash-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}

.slash-top {
  clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
}

.slash-both {
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.diag-band {
  position: relative;
}

.diag-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  background: inherit;
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

/* Industrial grid texture */
.tech-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.noise-overlay {
  position: relative;
}

.noise-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sticky header state */
.site-header {
  background-color: rgba(7, 13, 20, 0.55);
  backdrop-filter: blur(8px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background-color: rgba(12, 21, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* FAQ accordion */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
}

/* Form focus */
.form-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

/* Gallery hover */
.project-card img {
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

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