/* 
 * Custom CSS Overrides
 * This file is loaded automatically by the TailPress theme.
 * The browser cache is instantly busted on save thanks to automatic timestamp versioning.
 * You can safely place any plain CSS overrides here without needing to compile Tailwind.
 */

/* ======================================================================
   Global Cross-Browser Polyfills & Fixes
   Addresses FOUC, tap-highlight, and viewport issues on mobile browsers
   ====================================================================== */
html, body {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Safari / FB Browser / Line 100vh Fix for main wrappers */
.min-h-screen {
  min-height: 100vh !important;
}
@supports (min-height: 100dvh) {
  .min-h-screen {
    min-height: 100dvh !important;
  }
}

/* Fix iOS Safari input shadows and rounding */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* HOME PAGE ELITE STYLES */
.expatsafe-about-elite {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  background-color: #05080d; color: #94a3b8; overflow-x: hidden;
}
.expatsafe-about-elite * { box-sizing: border-box; }

:root {
  --es-cyan: #28D3EE; --es-cyan-dark: #1b9cb0; --es-white: #ffffff;
  --es-gray-light: #f1f5f9; --es-gray-muted: #94a3b8; --es-surface: #0f1523;
  --es-border: rgba(255, 255, 255, 0.08);
}

.es-container { max-width: 1280px; width: 100%; margin: 0 auto; padding: 7rem 2rem; }

/* Animations */
.es-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.es-reveal.active { opacity: 1; transform: translateY(0); }
.es-reveal-delay-1 { transition-delay: 0.1s; } .es-reveal-delay-2 { transition-delay: 0.2s; }
.es-reveal-delay-3 { transition-delay: 0.3s; } .es-reveal-delay-4 { transition-delay: 0.4s; }
.es-reveal-delay-5 { transition-delay: 0.5s; }

/* SECTION 1: HERO */
.es-hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; background-color: #05080d; }
.es-hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.es-hero-bg-image { position: absolute; inset: -5%; width: 110%; height: 110%; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); filter: brightness(.4) saturate(1.1); transition: opacity 2s ease-in-out, transform 10s ease-out; z-index: 0; }
.es-hero-bg-image.active { opacity: 1; transform: scale(1); } /* Ken burns zoom out */
.es-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5, 8, 13, 0.4) 0%, rgba(5, 8, 13, 0.7) 60%, #05080d 100%); z-index: 1; }
.es-hero-content { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; transform: translateY(-20px); }
.es-eyebrow { display: block; font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--es-cyan); margin-bottom: 1.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.es-hero-title { font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 800; color: var(--es-white); line-height: 1.1; margin: 0 0 1.5rem 0; letter-spacing: -0.03em; text-shadow: 0 0 40px rgba(255,255,255,0.1); }
.es-hero-title span { color: var(--es-cyan); }
.es-hero-desc { font-size: clamp(1.15rem, 2.5vw, 1.35rem); color: var(--es-cyan); font-weight: 300; max-width: 680px; margin: 0 auto; line-height: 1.8; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }

/* SECTION HEADERS */
.es-section-header { text-align: center; margin-bottom: 4.5rem; }
.es-section-title { font-size: 2.75rem; font-weight: 700; color: var(--es-white); margin: 0; letter-spacing: -0.02em; }

/* SECTION 2: WHAT I DO (Pillars) */
.es-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.es-service-card { position: relative; background: linear-gradient(145deg, #0f1523 0%, #0a0d16 100%); border: 1px solid var(--es-border); border-top: 1px solid rgba(40, 211, 238, 0.2); border-radius: 16px; padding: 4rem 3rem; text-align: left; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; }
.es-service-card:hover { transform: translateY(-8px); border-color: rgba(40, 211, 238, 0.4); box-shadow: 0 20px 40px -10px rgba(40, 211, 238, 0.12); }
.es-service-bg-number { position: absolute; top: -20px; right: 0px; font-size: 10rem; font-weight: 800; color: rgba(255, 255, 255, 0.02); line-height: 1; transition: color 0.5s ease; user-select: none; }
.es-service-card:hover .es-service-bg-number { color: rgba(40, 211, 238, 0.05); }
.es-service-card h3 { position: relative; z-index: 1; color: var(--es-white); font-size: 1.5rem; font-weight: 600; margin: 0 0 1.25rem 0; letter-spacing: -0.01em; }
.es-service-card p { position: relative; z-index: 1; color: var(--es-white); font-size: 1.05rem; line-height: 1.7; margin: 0; font-weight: 300; opacity: 0.9; }

/* SECTION 3: SITUATIONS */
.es-split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.es-situations-image-wrapper { position: relative; width: 100%; height: 100%; min-height: 500px; border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.es-situations-image { position: absolute; inset: -5%; width: 110%; height: 110%; background-size: cover; background-position: center; transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1); }
.es-situations-image-wrapper:hover .es-situations-image { transform: scale(1.05); }
.es-situations-list { display: flex; flex-direction: column; gap: 0.75rem; }
.es-situation-item { display: flex; align-items: center; gap: 0.75rem; background: rgba(255, 255, 255, 0.03); padding: 1.5rem 2rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); transition: transform 0.3s ease, border-color 0.3s ease; }
.es-situation-item:hover { transform: translateX(10px); border-color: rgba(40, 211, 238, 0.5); background: rgba(40, 211, 238, 0.03); box-shadow: 0 0 20px rgba(40, 211, 238, 0.15), inset 0 0 10px rgba(40, 211, 238, 0.05); }
.es-situation-item p { margin: 0; color: var(--es-white); font-size: 1.15rem; font-weight: 400; }

/* SECTION 4: TRUST (BENTO) */
.es-trust-section { position: relative; padding: 8rem 0; background-color: #030508; border-top: 1px solid rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255, 255, 255, 0.03); overflow: hidden; }
.es-trust-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.15; z-index: 0; }
.es-ambient-glow { position: absolute; top: 50%; left: 50%; width: 60%; height: 60%; background: radial-gradient(circle, rgba(40,211,238,0.08) 0%, rgba(15,21,35,0) 70%); transform: translate(-50%, -50%); border-radius: 50%; filter: blur(60px); z-index: 0; pointer-events: none; animation: pulseGlow 8s infinite alternate; }
@keyframes pulseGlow { 0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } }
.es-trust-content { position: relative; z-index: 1; }
.es-bento-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; width: 100%; }
.es-bento-card { background: linear-gradient(145deg, rgba(15, 21, 35, 0.7) 0%, rgba(10, 13, 22, 0.85) 100%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.05); border-top: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 2.5rem; text-align: left; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.es-bento-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(40, 211, 238, 0.3), transparent); opacity: 0; transition: opacity 0.4s ease; }
.es-bento-card:hover { transform: translateY(-5px) scale(1.01); border-color: rgba(40, 211, 238, 0.4); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(40, 211, 238, 0.05); }
.es-bento-card:hover::before { opacity: 1; }
.es-bento-number { font-size: 2.5rem; font-weight: 300; color: var(--es-cyan); opacity: 0.8; letter-spacing: -0.05em; margin-bottom: 1rem; display: block; line-height: 1; }
.es-bento-card h3 { color: var(--es-white); font-size: 1.4rem; font-weight: 600; margin: 0 0 0.5rem 0; letter-spacing: -0.01em; }
.es-bento-desc { color: var(--es-white); font-size: 1.15rem; line-height: 1.6; margin: 0; font-weight: 400; }
.es-span-4 { grid-column: span 4; } .es-span-2 { grid-column: span 2; }

/* SECTION 5: PRESENCE */
.es-presence-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; align-items: center; }
.es-pricing-block { margin-bottom: 3rem; padding: 2rem; background: linear-gradient(145deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2)); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; transition: transform 0.3s ease; }
.es-pricing-block:hover { transform: translateX(10px); border-color: rgba(40,211,238,0.2); }
.es-tag { display: inline-block; color: var(--es-cyan); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1rem; }
.es-pricing-block h4 { color: var(--es-white); font-size: 1.6rem; font-weight: 600; margin: 0 0 0.5rem 0; letter-spacing: -0.01em; }
.es-pricing-price { background: linear-gradient(90deg, #fff, var(--es-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.35rem; font-weight: 500; margin: 0; }

.es-btn-action { display: inline-flex; align-items: center; justify-content: center; padding: 1.2rem 3rem; background: linear-gradient(90deg, var(--es-cyan), #1b9cb0); color: #05080d; border-radius: 99px; font-size: 1.1rem; font-weight: 700; text-decoration: none; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 10px 20px rgba(40, 211, 238, 0.2); position: relative; overflow: hidden; }
.es-btn-action::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.5s ease; }
.es-btn-action:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 30px rgba(40, 211, 238, 0.3); }
.es-btn-action:hover::after { left: 100%; }

.es-profile-wrapper { position: relative; border-radius: 20px; }
.es-profile-glow { position: absolute; inset: -20px; background: radial-gradient(circle, rgba(40,211,238,0.2) 0%, transparent 70%); z-index: -1; animation: pulseGlow 6s infinite alternate; }
.es-profile-wrapper img { width: 100%; height: auto; display: block; border-radius: 20px; filter: drop-shadow(0 25px 50px rgba(0,0,0,0.6)); }

/* FIX PROFILE LABEL POSITION */
.es-profile-label { position: absolute; bottom: 1.5rem; left: 1.5rem; transform: none; width: calc(100% - 3rem); max-width: 320px; background: rgba(10, 15, 26, 0.8); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 1.5rem; border-radius: 12px; text-align: left; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); }

.es-profile-label h4 { color: var(--es-white); font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem 0; }
.es-profile-label p { color: var(--es-white); font-size: 1.05rem; margin: 0 0 0.75rem 0; font-weight: 300; }
.es-profile-label span { color: var(--es-cyan); font-size: 1rem; font-weight: 500; }

/* SECTION 6: BOUNDARIES */
.es-boundaries-section { padding: 8rem 0; background-color: #030406; border-top: 1px solid rgba(255, 255, 255, 0.02); }
.es-boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.es-boundary-card { position: relative; border-radius: 16px; overflow: hidden; height: 400px; border: 1px solid rgba(255, 50, 50, 0.1); }
.es-boundary-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); z-index: 0; }
.es-boundary-card:hover .es-boundary-bg { transform: scale(1.08); }
.es-boundary-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 5, 8, 0.95) 5%, rgba(15, 5, 8, 0.2) 80%); padding: 3rem 2.5rem; display: flex; flex-direction: column; justify-content: flex-end; z-index: 1; text-align: left;}
.es-boundary-overlay h3 { color: var(--es-white); font-size: 1.5rem; font-weight: 600; margin: 0 0 1rem 0; }
.es-boundary-overlay p { color: var(--es-gray-muted); font-size: 1.05rem; line-height: 1.6; margin: 0; font-weight: 300; }
.es-boundary-cross { color: #f87171; font-size: 2.5rem; line-height: 1; font-weight: 200; margin-bottom: 1rem; font-family: sans-serif; display: block; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .es-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .es-boundary-grid { grid-template-columns: repeat(2, 1fr); }
  .es-presence-grid { grid-template-columns: 1fr; gap: 5rem; }
  .es-bento-grid { grid-template-columns: repeat(2, 1fr); }
  .es-span-4 { grid-column: span 2; } .es-span-2 { grid-column: span 1; }
}
@media (max-width: 768px) {
  .es-trust-section, .es-boundaries-section { padding: 3rem 0; }
  .es-section-header { margin-bottom: 2rem; }
  .es-bento-card { padding: 1.5rem; }
  .es-profile-wrapper { display: flex; flex-direction: column; align-items: center; }
  .es-profile-label { position: relative; bottom: auto; left: auto; transform: none; width: 92%; margin-top: -3.5rem; padding: 1.5rem; z-index: 10; }
  .es-hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .es-grid-3, .es-boundary-grid, .es-bento-grid { grid-template-columns: 1fr; }
  .es-span-4, .es-span-2 { grid-column: span 1; }
  .es-split-section { grid-template-columns: 1fr; }
}
