/* SEACHAD Corporate Website — Custom Styles */
/* AECF_META skill=aecf_refactor topic=refactor generated_at=2026-05-26 generated_by=luis.garcia-villaraco@seachad.com last_modified_skill=aecf_refactor last_modified_at=2026-05-26 touch_count=2 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design tokens (from support/styles.css) ── */
:root {
  --deep-navy:      #030814;
  --mid-navy:       #061026;
  --subheading:     rgba(255, 255, 255, 0.72);
  --brand-green:    #1de2e9;
  --brand-cyan:     #002aff;
  --brand-gradient: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-cyan) 100%);
  --page-gutter:    clamp(40px, 9vw, 128px);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Gradient text utilities ── */
.gradient-text-blue {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-sky {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-brand {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glow effects ── */
.glow-blue {
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.15);
}

.glow-violet {
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.15);
}

.glow-brand {
  box-shadow: 0 0 24px rgba(29, 226, 233, 0.15);
}

/* ── Subtle grid background ── */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Animated gradient border ── */
.border-gradient {
  position: relative;
  border: 1px solid transparent;
  background: linear-gradient(#18181b, #18181b) padding-box,
              linear-gradient(135deg, #3b82f6, #7c3aed) border-box;
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll-reveal animations ── */
.reveal-pending .word-reveal {
  opacity: 0;
  transform: translateY(-0.45em);
  filter: blur(2px);
}

.word-reveal {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 0.42s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.42s ease;
  transition-delay: var(--word-delay, 0ms);
  will-change: transform, opacity;
}

.word-reveal-in .word-reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.46s ease, transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--item-delay, 0ms);
  will-change: transform, opacity;
}

.reveal-item.reveal-left {
  transform: translateX(-24px);
}

.element-reveal-in .reveal-item {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.reveal-line {
  opacity: 0;
  transform: scaleX(0.72);
  transform-origin: center;
  transition: opacity 0.4s ease, transform 0.45s ease;
  transition-delay: var(--item-delay, 0ms);
}

.element-reveal-in .reveal-line {
  opacity: 1;
  transform: scaleX(1);
}

/* ── Section kicker label ── */
.section-kicker {
  margin: 0 auto;
  width: fit-content;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(29, 226, 233, 0.86);
  font-weight: 700;
  text-align: center;
}

/* ── Subpage hero layout ── */
.subpage-hero {
  min-height: auto;
  padding: 7.4rem var(--page-gutter) 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subpage-hero-content {
  width: min(100%, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.subpage-hero-lead {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: center;
}

/* ── AECF Phase pipeline ── */
.phase-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #7c3aed);
  opacity: 0.4;
}

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

/* ── Mobile nav ── */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Card hover ── */
.card-hover {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08);
}

/* ── Tag chips ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* ── Reduced motion accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .word-reveal,
  .reveal-item,
  .reveal-item.reveal-left,
  .reveal-line {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
