/* ═══════════════════════════════════════════
   SETU MARINE — Premium Maritime Design System
   ═══════════════════════════════════════════ */

/* ── Base & Paper Grain ── */
html { scroll-behavior: smooth; }

.paper-grain {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 9999; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

::selection { background-color: #fdca6a; color: #271900; }

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

.technical-line { border-bottom: 0.5px solid rgba(197, 198, 206, 0.4); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fcf9f4; }
::-webkit-scrollbar-thumb { background: #0b1d3a; }

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: #0B1D3A; color: white;
  padding: 0.5rem 1rem; z-index: 10001;
  font-family: 'Inter', sans-serif;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════
   NAVIGATION — Transparent → Glass on scroll
   ═══════════════════════════════════════════ */
.nav-scrolled {
  background-color: rgba(252, 249, 244, 0.92) !important;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(197, 198, 206, 0.3);
}

.nav-link-active {
  color: #C4963C !important;
  border-bottom: 2px solid #C4963C;
  padding-bottom: 4px;
}

/* ── Mobile Menu ── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open { transform: translateX(0); }

.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #0B1D3A; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════
   HERO — Cinematic Parallax & Ken Burns
   ═══════════════════════════════════════════ */
.hero-image {
  animation: kenBurns 25s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-gradient {
  background: linear-gradient(
    to bottom,
    rgba(11, 29, 58, 0.3) 0%,
    rgba(11, 29, 58, 0.1) 30%,
    rgba(11, 29, 58, 0.4) 70%,
    rgba(11, 29, 58, 0.85) 100%
  );
}

/* Hero text staggered entrance */
.hero-label {
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
.hero-title {
  opacity: 0; transform: translateY(40px);
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.hero-subtitle {
  opacity: 0; transform: translateY(30px);
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}
.hero-buttons {
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Decorative pulsing line */
.hero-line {
  animation: pulseHeight 3s ease-in-out infinite;
}
@keyframes pulseHeight {
  0%, 100% { height: 8rem; opacity: 0.6; }
  50% { height: 10rem; opacity: 1; }
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL — Multiple Variants
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0; transform: translateX(-50px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(50px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════
   IMAGE EFFECTS — Cinematic & Editorial
   ═══════════════════════════════════════════ */
.img-cinematic {
  filter: brightness(0.5) contrast(1.25);
  transition: filter 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-cinematic:hover {
  filter: brightness(0.6) contrast(1.15);
  transform: scale(1.02);
}

.img-editorial {
  filter: grayscale(1) brightness(0.9) contrast(1.1);
  transition: filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-editorial:hover {
  filter: grayscale(0) brightness(1) contrast(1);
}

.img-desaturated {
  filter: grayscale(0.7) contrast(1.15);
  transition: filter 0.6s;
}
.img-desaturated:hover {
  filter: grayscale(0) contrast(1);
}

/* Image zoom on hover */
.img-zoom { overflow: hidden; }
.img-zoom img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-zoom:hover img { transform: scale(1.05); }

/* ═══════════════════════════════════════════
   SERVICE CARDS — Sophisticated Hover
   ═══════════════════════════════════════════ */
.service-card {
  position: relative; overflow: hidden;
  transition: background-color 0.4s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px; background: #C4963C;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); }

.service-card .service-icon {
  transition: color 0.4s, transform 0.4s;
}
.service-card:hover .service-icon {
  color: #C4963C !important; transform: scale(1.1);
}

/* Service line expand */
.service-line {
  width: 0; height: 2px; background: #00221c;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.group:hover .service-line { width: 100%; }

/* ═══════════════════════════════════════════
   COUNTERS & STATS
   ═══════════════════════════════════════════ */
.counter { display: inline-block; }

.stat-item {
  position: relative;
  transition: background-color 0.3s;
}
.stat-item:hover { background-color: rgba(196, 150, 60, 0.06); }

/* ═══════════════════════════════════════════
   TRUST BAR — Infinite Scroll
   ═══════════════════════════════════════════ */
.trust-scroll {
  display: flex; gap: 6rem;
  animation: trustScroll 30s linear infinite;
  width: max-content;
}
.trust-scroll:hover { animation-play-state: paused; }

@keyframes trustScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   TEAM CARDS — Premium Hover
   ═══════════════════════════════════════════ */
.team-card {
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-card:hover { transform: translateY(-6px); }
.team-card img {
  transition: filter 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s;
}
.team-card:hover img {
  filter: grayscale(0) !important;
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════
   VALUES / PILLARS — Hover Glow
   ═══════════════════════════════════════════ */
.value-pillar {
  position: relative;
  transition: background-color 0.4s;
}
.value-pillar::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: #C4963C;
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.value-pillar:hover::before { transform: scaleX(1); }
.value-pillar:hover { background-color: #e5e2dd; }

/* ═══════════════════════════════════════════
   BUTTONS — Premium Interaction
   ═══════════════════════════════════════════ */
.btn-primary {
  position: relative; overflow: hidden;
  transition: background-color 0.3s, transform 0.15s;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  position: relative; overflow: hidden;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: #C4963C;
}

/* ═══════════════════════════════════════════
   CTA SECTION — Ambient Glow
   ═══════════════════════════════════════════ */
.cta-section {
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(196, 150, 60, 0.08) 0%, transparent 50%);
  animation: ambientGlow 8s ease-in-out infinite alternate;
}
@keyframes ambientGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(5%, 5%); }
}

/* ═══════════════════════════════════════════
   FORM STYLES
   ═══════════════════════════════════════════ */
.form-input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid #75777e;
  padding: 10px 0; font-family: 'Inter', sans-serif;
  font-size: 0.875rem; color: #1c1c19;
  transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none; border-radius: 0;
  -webkit-appearance: none;
}
.form-input:focus {
  border-bottom-color: #C4963C;
  border-bottom-width: 2px;
}
.form-input::placeholder { color: #c5c6ce; }
.form-input.error { border-bottom-color: #ba1a1a; }
.form-error {
  font-size: 0.75rem; color: #ba1a1a;
  margin-top: 4px; display: none;
}
.form-input.error + .form-error,
.form-input.error ~ .form-error { display: block; }

select.form-input {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230B1D3A'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.5em 1.5em;
}

/* ═══════════════════════════════════════════
   WHATSAPP & TOAST
   ═══════════════════════════════════════════ */
.whatsapp-btn {
  position: fixed; bottom: 2rem; right: 2rem;
  background: #25D366; color: white;
  padding: 1rem; z-index: 50;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}
.whatsapp-btn:active { transform: scale(0.95); }

.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0b1d3a; color: white;
  padding: 1rem 2rem; font-family: 'Inter', sans-serif;
  font-size: 0.875rem; z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 32px rgba(11, 29, 58, 0.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════
   PARALLAX — Simple CSS-based
   ═══════════════════════════════════════════ */
.parallax-slow { will-change: transform; }

/* ═══════════════════════════════════════════
   CERTIFICATION BADGES — Hover
   ═══════════════════════════════════════════ */
.cert-badge {
  transition: background-color 0.3s, transform 0.3s;
}
.cert-badge:hover {
  background-color: #fcf9f4;
  transform: translateY(-4px);
}

/* ═══════════════════════════════════════════
   FOOTER — Link Hover
   ═══════════════════════════════════════════ */
.footer-link {
  position: relative; display: inline;
}
.footer-link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: #C4963C;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-link:hover::after { width: 100%; }

/* ═══════════════════════════════════════════
   LOADING — Page Entrance
   ═══════════════════════════════════════════ */
.page-loader {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0b1d3a; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s 0.2s, visibility 0.6s 0.2s;
}
.page-loader.loaded {
  opacity: 0; visibility: hidden;
}
.page-loader .loader-text {
  color: #C4963C; font-family: 'Noto Serif', serif;
  font-size: 1.5rem; font-weight: 600;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ═══════════════════════════════════════════
   MAP OVERLAY STYLES
   ═══════════════════════════════════════════ */
.map-overlay {
  background: linear-gradient(to top,
    rgba(11, 29, 58, 0.9) 0%,
    rgba(11, 29, 58, 0.4) 50%,
    transparent 100%);
}

/* ═══════════════════════════════════════════
   PRINT & ACCESSIBILITY
   ═══════════════════════════════════════════ */
@media print {
  .paper-grain, .whatsapp-btn, nav, .mobile-menu, .page-loader { display: none !important; }
  body { background: white !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1; transform: none;
  }
  .hero-image { animation: none !important; }
  .hero-label, .hero-title, .hero-subtitle, .hero-buttons {
    opacity: 1; transform: none; animation: none !important;
  }
}
