/* Ario Ops — logo-matched white + aqua theme */

:root {
  --logo-bg: #fdfdfd;
  --logo-bg-soft: #f4f6f7;
  --logo-bg-deep: #e5eaec;
  --navy: #102030;
  --navy-mid: #203050;
  --steel: #6a7d88;
  --steel-light: #809090;
  --ink: #102030;
  --ink-soft: #2a3d4d;
  --muted: #5f727c;
  --surface: #ffffff;
  --signal: #0d9488;
  --signal-dim: #0f766e;
  --signal-light: #14b8a6;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

html.intro-pending,
html.intro-pending body {
  overflow: hidden;
}

body {
  background-color: var(--logo-bg);
  color: var(--ink);
}

/* —— Logo intro splash —— */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fdfdfd;
  opacity: 1;
  transition: opacity 0.9s var(--ease-out);
  pointer-events: auto;
}

html.intro-pending .intro-splash,
.intro-splash.is-active {
  display: flex;
}

.intro-splash.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.intro-splash__stage {
  width: min(78vw, 420px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 1.4s var(--ease-out),
    transform 1.4s var(--ease-out);
}

.intro-splash.is-ready .intro-splash__stage {
  opacity: 1;
  transform: scale(1);
}

.intro-splash__media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.intro-splash__fallback {
  /* shown when video can't play */
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash,
  .intro-splash__stage {
    transition-duration: 0.01ms !important;
  }
}

/* Atmospheric backgrounds — soft white base */
.bg-grid {
  background-image:
    linear-gradient(rgba(16, 32, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 48, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 20%, black 15%, transparent 72%);
}

.bg-radial-fade {
  background:
    radial-gradient(ellipse 70% 45% at 85% 5%, rgba(13, 148, 136, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(32, 48, 80, 0.05), transparent 50%),
    linear-gradient(180deg, #fdfdfd 0%, #f7f9fa 45%, #f2f5f6 100%);
}

.hero-image {
  background:
    linear-gradient(125deg, #fdfdfd 0%, #f6f8f9 45%, #eef2f4 100%),
    radial-gradient(ellipse at 75% 35%, rgba(13, 148, 136, 0.07), transparent 55%);
  background-size: cover;
  background-position: center;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(253, 253, 253, 0.92) 0%, rgba(253, 253, 253, 0.55) 50%, rgba(253, 253, 253, 0.12) 100%),
    linear-gradient(180deg, rgba(253, 253, 253, 0.45) 0%, transparent 30%, rgba(253, 253, 253, 0.8) 100%);
}

.hero-scanlines {
  opacity: 0.15;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 4px,
    rgba(16, 32, 48, 0.025) 4px,
    rgba(16, 32, 48, 0.025) 5px
  );
}

/* Logo merges into white page */
.logo-hero-merge {
  position: relative;
  isolation: isolate;
  filter: drop-shadow(0 14px 28px rgba(16, 32, 48, 0.1));
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
  animation: logo-float 7s ease-in-out infinite;
}

.logo-hero-merge:hover {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 22px 36px rgba(16, 32, 48, 0.14));
}

.logo-hero-merge img,
.logo-hero-merge video {
  display: block;
  width: 100%;
  height: auto;
}

.logo-hero-merge::before {
  content: '';
  position: absolute;
  inset: 12% 14%;
  background: radial-gradient(ellipse at center, rgba(13, 148, 136, 0.1), transparent 70%);
  z-index: -1;
  filter: blur(28px);
  pointer-events: none;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

.animate-pulse-soft {
  animation: pulse-soft 2.4s ease-in-out infinite;
}

/* Sticky header */
#site-header {
  background: transparent;
  overflow: visible;
}

#site-header nav a img {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 2px 6px rgba(16, 32, 48, 0.08));
  transition: transform 0.35s var(--ease-out);
}

#site-header nav a:hover img {
  transform: scale(1.04);
}

#site-header.is-scrolled {
  background: rgba(253, 253, 253, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 32, 48, 0.08);
  box-shadow: 0 10px 30px rgba(16, 32, 48, 0.05);
}

.nav-link {
  position: relative;
  transition: color 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--navy);
  font-weight: 600;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service pillar cards */
.pillar-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
  perspective: 800px;
}

.pillar-inner {
  position: relative;
  height: 100%;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(160deg, rgba(238, 242, 243, 0.95), rgba(228, 233, 235, 0.9));
  border: 1px solid rgba(16, 32, 48, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    border-color 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background 0.35s;
  box-shadow: 0 12px 28px -22px rgba(16, 32, 48, 0.28);
}

.pillar-inner::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--signal), var(--navy-mid));
  opacity: 0.45;
  transition: opacity 0.35s, width 0.35s;
}

.pillar-inner::after {
  content: 'לחצו לפירוט';
  position: absolute;
  inset-inline-end: 1rem;
  bottom: 0.85rem;
  font-size: 0.7rem;
  color: var(--signal);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.pillar-card:hover .pillar-inner,
.pillar-card:focus-visible .pillar-inner,
.pillar-card.is-active .pillar-inner {
  border-color: rgba(13, 148, 136, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.12), 0 22px 40px -18px rgba(16, 32, 48, 0.22);
  background: linear-gradient(160deg, #f4f7f8, #e8eef0);
}

.pillar-card:hover .pillar-inner::before,
.pillar-card:focus-visible .pillar-inner::before,
.pillar-card.is-active .pillar-inner::before {
  opacity: 1;
  width: 4px;
}

.pillar-card:hover .pillar-inner::after,
.pillar-card.is-active .pillar-inner::after {
  opacity: 1;
  transform: translateY(0);
}

.pillar-card.is-active .pillar-inner {
  border-color: rgba(13, 148, 136, 0.55);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.18), 0 22px 40px -18px rgba(16, 32, 48, 0.22);
}

.pillar-card:focus-visible {
  outline: none;
}

.pillar-index {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.25rem;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(16, 32, 48, 0.06);
  transition: color 0.35s, transform 0.35s var(--ease-spring);
}

.pillar-card:hover .pillar-index,
.pillar-card.is-active .pillar-index {
  color: rgba(13, 148, 136, 0.18);
  transform: scale(1.05);
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  color: var(--signal);
  border: 1px solid rgba(13, 148, 136, 0.28);
  background: rgba(13, 148, 136, 0.08);
  border-radius: 8px;
  transition: transform 0.35s var(--ease-spring), background 0.3s;
}

.pillar-card:hover .pillar-icon,
.pillar-card.is-active .pillar-icon {
  transform: scale(1.08) rotate(-3deg);
  background: rgba(13, 148, 136, 0.14);
}

/* Accordion */
.accordion-item {
  border: 1px solid rgba(16, 32, 48, 0.08);
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 10px 24px -20px rgba(16, 32, 48, 0.25);
}

.accordion-item.is-open {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.1), 0 14px 28px -16px rgba(16, 32, 48, 0.2);
  transform: translateY(-2px);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: inherit;
  transition: background 0.25s;
}

.accordion-trigger:hover {
  background: rgba(13, 148, 136, 0.05);
}

.accordion-trigger:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -2px;
}

.accordion-chevron {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.accordion-chevron::before,
.accordion-chevron::after {
  content: '';
  position: absolute;
  background: var(--signal);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.accordion-chevron::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-chevron::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-item.is-open .accordion-chevron::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}

.accordion-panel.collapsed {
  grid-template-rows: 0fr;
}

.accordion-content {
  overflow: hidden;
  min-height: 0;
  padding: 0 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-block {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(16, 32, 48, 0.06);
  background: rgba(244, 246, 247, 0.85);
  border-inline-start: 3px solid rgba(13, 148, 136, 0.55);
  border-radius: 0 6px 6px 0;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.detail-block:hover {
  background: rgba(238, 242, 243, 1);
  transform: translateX(-3px);
}

.detail-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.detail-text {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Why us */
.why-item {
  position: relative;
  padding: 1.25rem;
  border-radius: 8px;
  transition: transform 0.35s var(--ease-out), background 0.35s;
}

.why-item:hover {
  transform: translateY(-4px);
  background: rgba(238, 242, 243, 0.7);
}

.why-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  color: var(--signal);
  border: 1px solid rgba(13, 148, 136, 0.28);
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.12), transparent);
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(13, 148, 136, 0.06);
  transition: transform 0.35s var(--ease-spring);
}

.why-item:hover .why-badge {
  transform: scale(1.1);
}

.quote-card {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(13, 148, 136, 0.22);
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.08), transparent 55%),
    var(--surface);
  border-radius: 8px;
  box-shadow: 0 18px 36px -24px rgba(16, 32, 48, 0.25);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.quote-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -22px rgba(16, 32, 48, 0.28);
}

.quote-card::before {
  content: '„';
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 1.25rem;
  font-family: Outfit, Rubik, sans-serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(13, 148, 136, 0.18);
  pointer-events: none;
}

@media (min-width: 768px) {
  .quote-card {
    padding: 2.75rem 3rem;
  }
}

/* Contact form */
.contact-form,
.success-panel {
  padding: 1.75rem;
  border: 1px solid rgba(16, 32, 48, 0.08);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 20px 40px -28px rgba(16, 32, 48, 0.3);
  transition: box-shadow 0.35s, transform 0.35s;
}

.contact-form:focus-within {
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.2), 0 24px 48px -24px rgba(16, 32, 48, 0.28);
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: rgba(244, 246, 247, 0.9);
  border: 1px solid rgba(16, 32, 48, 0.12);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.25s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7a8f8f;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: #f4f7f8;
  border-color: rgba(13, 148, 136, 0.5);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #dc2626;
}

.field-error {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #b91c1c;
}

.success-panel {
  text-align: center;
  padding: 3rem 1.75rem;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.35);
  color: var(--signal);
  font-size: 1.5rem;
  font-weight: 700;
  animation: pop-in 0.5s var(--ease-spring);
}

@keyframes pop-in {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.section-soft {
  background: rgba(244, 246, 247, 0.7);
  border-color: rgba(16, 32, 48, 0.06);
}

/* CTA press + glow */
.cta-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s, background 0.25s !important;
}

.cta-primary:hover {
  transform: translateY(-2px) scale(1.02);
}

.cta-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Floating actions */
.float-actions {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.3);
  background: rgba(238, 242, 243, 0.92);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(16, 32, 48, 0.14);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), background 0.25s, opacity 0.3s, box-shadow 0.3s;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 32, 48, 0.18);
}

.float-btn.primary {
  background: var(--signal);
  border-color: transparent;
  color: #fff;
}

.float-btn.primary:hover {
  background: var(--signal-light);
}

.float-btn#back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.float-btn#back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 60;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--navy-mid), var(--signal));
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .logo-hero-merge,
  .animate-pulse-soft {
    animation: none !important;
  }
  .pillar-inner,
  .cta-primary,
  .float-btn {
    transition: none !important;
  }
}
