﻿/* shared.css — Fisiogiraut design system: animations, complex patterns, component classes */
/* Used alongside Tailwind CDN */
/* v2 */

/* Legal page content typography */
.legal-content h2 { font-size: 16px; font-weight: 600; color: #1a2744; margin: 2rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; }
.legal-content h3 { font-size: 15px; font-weight: 600; color: #1a2744; margin: 1.5rem 0 0.4rem; }
.legal-content p { font-size: 15px; color: rgba(26,39,68,0.7); line-height: 1.8; margin-bottom: 0.9rem; }
.legal-content ul, .legal-content ol { font-size: 15px; color: rgba(26,39,68,0.7); line-height: 1.8; margin: 0 0 1rem 1.5rem; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-content a { color: #2563EB; }
.legal-content strong { color: #1a2744; font-weight: 600; }
.legal-content .table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-content th { background: rgba(26,39,68,0.04); padding: 8px 12px; text-align: left; font-weight: 600; color: #1a2744; border-bottom: 1px solid rgba(26,39,68,0.1); }
.legal-content td { padding: 8px 12px; border-bottom: 1px solid rgba(26,39,68,0.06); color: rgba(26,39,68,0.7); vertical-align: top; }

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Helvetica, sans-serif;
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-text: #1a2744;
  --color-muted: rgba(26,39,68,0.40);
  --color-faint: rgba(26,39,68,0.25);
  --color-accent: #2563EB;
  --color-accent-dark: #1e3a8a;
  --color-accent-bg: #dbeafe;
  --color-border: rgba(26,39,68,0.08);
  --color-dark: #1a2744;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ── NAV ─────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.5rem;
  background: rgba(245,247,251,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--color-border);
  font-family: var(--font-sans);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; line-height: 1; }
.nav-wordmark { font-family: var(--font-sans); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; }
.nav-link {
  font-size: 15px;
  color: rgba(26,39,68,0.50);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.18s;
  position: relative;
  padding-bottom: 1px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.22s ease;
  transform-origin: left;
}
.nav-link:hover { color: var(--color-text); }
.nav-link.active { color: var(--color-accent); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta {
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  background: var(--color-accent);
  padding: 9px 22px;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 2px 14px rgba(37,99,235,0.28);
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--color-accent-dark); box-shadow: 0 4px 22px rgba(37,99,235,0.48); transform: translateY(-1px); }

/* Mega-menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: 720px;
  background: #fff;
  border: 0.5px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.10), 0 3px 12px rgba(0,0,0,0.05);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.22s, transform 0.22s;
}
/* Invisible bridge: covers the gap so mouse can reach the menu */
.mega-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 10px;
}
[x-data]:has(button[aria-expanded="true"]) .mega-menu,
.nav-services-wrap:hover .mega-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.mega-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.mega-item:hover { background: var(--color-accent-bg); }
.mega-item:hover .mi-name { color: var(--color-accent); }
.mi-ico {
  width: 18px; height: 18px;
  stroke: var(--color-accent); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 4px;
}
.mi-name { font-size: 13.5px; font-weight: 500; color: var(--color-text); transition: color 0.15s; }
.mi-desc { font-size: 13px; color: var(--color-muted); line-height: 1.4; }

/* Hamburger spans */
.ham span {
  display: block; width: 20px; height: 1.5px;
  background: var(--color-text);
  transition: transform 0.25s, opacity 0.25s;
}

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background: #f5f7fb;
  border-bottom: 0.5px solid var(--color-border);
}
.hero-orb { position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; }
.orb1 {
  width: 600px;
  height: 600px;
  background: none;
  box-shadow: 0 0 200px 100px rgba(37,99,235,0.45);
  top: -160px;
  right: -100px;
  position: absolute;
  border-radius: 50%;
}
.orb2 {
  width: 400px;
  height: 400px;
  background: none;
  box-shadow: 0 0 150px 80px rgba(37,99,235,0.35);
  bottom: -100px;
  left: 160px;
  position: absolute;
  border-radius: 50%;
}
.orb3 {
  width: 260px;
  height: 260px;
  background: none;
  box-shadow: 0 0 120px 60px rgba(37,99,235,0.22);
  top: 30px;
  left: 400px;
  position: absolute;
  border-radius: 50%;
}

.hero-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: hero-pulse-ring 2.5s ease-in-out infinite;
}
@keyframes hero-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,0.6); }
  65%  { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

.hero-btns a:first-child:hover {
  box-shadow: 0 6px 32px rgba(37,99,235,0.60), 0 1px 4px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Metric cards */
.hcard {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid var(--color-border);
  border-radius: 18px;
  padding: 1.5rem 1.8rem;
  width: 250px;
  animation: floatup 5s ease-in-out infinite;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}
.hcard.d2 { margin-left: 2rem; animation-delay: 1.4s; }
.hcard.d3 { animation-delay: 2.8s; }
.hc-track { height: 2px; background: rgba(26,39,68,0.06); border-radius: 2px; margin-top: 12px; }
.hc-fill { height: 100%; border-radius: 2px; background: var(--color-accent); }

/* ── SERVICE ROWS ────────────────────────── */
.srow {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.75rem;
  border-bottom: 0.5px solid rgba(26,39,68,0.06);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s;
  color: inherit;
}
.srow:hover { background: rgba(37,99,235,0.05); box-shadow: inset 2.5px 0 0 var(--color-accent); }
.srow:hover .sarr { opacity: 1; transform: translateX(0); }
.sarr {
  width: 14px; height: 14px;
  stroke: rgba(37,99,235,0.6); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: translateX(-4px);
  transition: all 0.18s;
}

/* ── VALUE CARDS ─────────────────────────── */
.vitem {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 14px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.vitem:hover {
  border-color: rgba(37,99,235,0.30);
  box-shadow: 0 8px 32px rgba(37,99,235,0.10);
  transform: translateY(-2px);
}
.vitem::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 30%, var(--color-accent) 70%, transparent 100%);
}
.vi-ico {
  width: 26px; height: 26px;
  stroke: var(--color-accent); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  display: block; margin-bottom: 10px;
}

/* ── SERVICE CARDS (grid) ────────────────── */
.scard {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: border-color 0.18s;
}
.scard:hover { border-color: var(--color-accent); }
.scard-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; transition: transform 0.3s; }
.scard:hover .scard-img { transform: scale(1.03); }
.scard-img-wrap { position: relative; overflow: hidden; }
.scard-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(37,99,235,0); transition: background 0.18s;
}
.scard:hover .scard-img-wrap::after { background: rgba(37,99,235,0.05); }

/* ── CTA BAND ────────────────────────────── */
.cta-band {
  background: radial-gradient(ellipse at 78% 50%, rgba(37,99,235,0.22) 0%, transparent 55%),
              radial-gradient(ellipse at 15% 80%, rgba(37,99,235,0.09) 0%, transparent 50%),
              #1a2744;
  padding: 3rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.cta-band-btn {
  background: var(--color-accent); color: #fff;
  font-size: 15px; font-weight: 500;
  padding: 12px 28px; border-radius: 40px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.cta-band-btn:hover { background: #1e3a8a; }

/* ── CONTACT BLOCK ───────────────────────── */
.cmap-wrap { border-radius: 14px; overflow: hidden; border: 0.5px solid var(--color-border); min-height: 200px; }
.cmap-wrap iframe { width: 100%; height: 240px; display: block; border: none; }

/* ── FORM ────────────────────────────────── */
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.15s, border-width 0.15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-width: 1px;
  border-color: var(--color-accent);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(26,39,68,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  background: var(--color-accent); color: #fff;
  font-size: 16px; font-weight: 500;
  padding: 14px; border-radius: 40px;
  border: none; cursor: pointer; font-family: var(--font-sans);
  transition: background 0.15s;
}
.form-submit:hover { background: var(--color-accent-dark); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── SCROLL FADE ─────────────────────────── */
/* expo-out easing: snappy start, smooth settle */
.fadein { opacity: 0; transform: translateY(22px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.fadein.visible { opacity: 1; transform: none; }

/* ── STAGGER CHILDREN ────────────────────── */
/* Add class="stagger" to a container; JS sets --i on each child */
.stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s cubic-bezier(0.16,1,0.3,1), transform 0.42s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--stagger-delay, 0s);
}
.stagger.stagger-go > * { opacity: 1; transform: none; }

/* ── ANIMATIONS ──────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
@keyframes floatup { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .mega-menu { width: 560px; }
  .hero { min-height: auto; }
}
@media (max-width: 768px) {
  .nav { padding: 0.75rem 1.25rem; }
  .cta-band { padding: 2rem 1.25rem; flex-direction: column; align-items: flex-start; }
  .hcard.d3 { display: none; }
  .hcard { width: 200px; margin-left: 0 !important; }
}
@media (max-width: 480px) {
  .hcard { display: none; }
}

/* ── MOBILE SECTION PADDING ──────────────── */
/* Reduce the flat px-10 (40px) to 20px on small screens site-wide */
@media (max-width: 640px) {
  .px-10 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .py-12 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .py-10 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .gap-12 {
    gap: 2rem !important;
  }
}

/* ── COOKIE CONSENT ───────────────────────── */
#cc-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid rgba(26,39,68,0.10);
  box-shadow: 0 -4px 28px rgba(0,0,0,0.08);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-sans);
  animation: slideup 0.3s ease;
}
html.cc-done #cc-banner { display: none; }
@keyframes slideup {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
#cc-reopen {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  width: 40px; height: 40px;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 2px 14px rgba(37,99,235,0.40);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.18s;
}
html.cc-done #cc-reopen { display: flex; }
#cc-reopen:hover { transform: scale(1.1); }

/* ── LANGUAGE SWITCHER ──────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}
.lang-sw {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(26,39,68,0.38);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 6px;
  font-family: var(--font-sans);
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.lang-sw:hover { color: var(--color-accent); background: var(--color-accent-bg); }
.lang-sw-active { color: var(--color-accent) !important; }
.lang-sep { font-size: 9px; color: rgba(26,39,68,0.2); user-select: none; padding: 0 1px; }
.mob-lang-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 0.5px solid rgba(26,39,68,0.08);
}
.mob-lang-sep { font-size: 11px; color: rgba(26,39,68,0.25); }
.mob-lang-btn {
  font-size: 13px;
  font-weight: 500;
  color: rgba(26,39,68,0.5);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-sans);
  transition: color 0.15s, background 0.15s;
}
.mob-lang-btn:hover, .mob-lang-btn.active { color: var(--color-accent); background: var(--color-accent-bg); }