/* ========================================================
   UNICORN QUALITY SOLUTIONS - DESIGN SYSTEM
   Official Brand Book Specification:
   - Colors: Galaxy Blue (#120152), Deep Violet (#220070),
     Electric Blue (#450EFF), Phlox (#E000F6), Red RYB (#FD3219),
     Beer (#FF911A), Sea Serpent (#6ACDCD), Alien Green (#8DE31C)
   - Typefaces: Proxima Nova & Poppins
   ======================================================== */

@font-face {
  font-family: 'Proxima Nova';
  src: url('../assets/fonts/ProximaNova-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('../assets/fonts/ProximaNova-italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('../assets/fonts/ProximaNova-bold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('../assets/fonts/ProximaNova-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('../assets/fonts/ProximaNova-bold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('../assets/fonts/ProximaNova-boldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Official Brand Book Backgrounds */
  --bg-dark: #120152;        /* GALAXY BLUE (18, 1, 82) */
  --bg-deep: #0B0036;        /* Deep Galaxy Blue */
  --bg-surface: #220070;     /* DEEP VIOLET (34, 0, 112) */
  --bg-card: rgba(34, 0, 112, 0.75);
  --bg-card-hover: rgba(48, 8, 140, 0.95);
  
  /* Official Brand Book Accent & Unicorn Colors */
  --color-electric-blue: #450EFF; /* ELECTRIC BLUE (69, 14, 255) - Security */
  --color-magenta: #E000F6;       /* PHLOX (224, 0, 246) - Manual & Brand Accent */
  --color-magenta-hover: #ec38ff;
  --color-purple: #8A2BE1;        /* Automation Purple */
  --color-red: #FD3219;           /* RED RYB (253, 50, 25) - Performance */
  --color-orange: #FF911A;        /* BEER (255, 145, 26) - Continuous Integration */
  --color-cyan: #6ACDCD;          /* SEA SERPENT (106, 205, 205) - Mobile */
  --color-green: #8DE31C;         /* ALIEN GREEN (141, 227, 28) - Usability */
  
  --text-white: #FFFFFF;
  --text-light: #E2DFF0;
  --text-muted: #A9A2C8;
  
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-neon: rgba(224, 0, 246, 0.45);
  --shadow-neon: 0 0 25px rgba(224, 0, 246, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  
  /* Official Brand Book Typefaces */
  --font-main: 'Proxima Nova', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Proxima Nova', sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* BADGES & TAGS */
.badge-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-magenta);
  margin-bottom: 12px;
}

.badge-pill-orange {
  display: inline-block;
  background-color: var(--color-orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-outline {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: #fff;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-main);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-magenta);
  color: #FFFFFF;
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  background-color: var(--color-magenta-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(224, 0, 246, 0.6);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--text-white);
  border-radius: 3px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-magenta);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

/* ========================================================
   GLOBAL HEADER & NAVBAR
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 1, 82, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand-logo span.dot {
  color: var(--color-magenta);
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-magenta);
  border-radius: 2px;
}

.header-cta .btn {
  padding: 9px 22px;
  font-size: 0.9rem;
}

/* HAMBURGER TOGGLE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ========================================================
   GLOBAL FOOTER
   ======================================================== */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
  position: relative;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact a {
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact a:hover {
  color: var(--color-magenta);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--color-magenta);
  color: #000;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 25px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================================
   SECTIONS & SHARED STYLES
   ======================================================== */
section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.5;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-neon);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--shadow-neon);
  background: var(--bg-card-hover);
}

/* ========================================================
   SPECIFIC PAGE STYLES
   ======================================================== */

/* HERO SECTION */
.hero-block {
  padding: 110px 0 90px 0;
  background: radial-gradient(circle at 85% 20%, rgba(69, 14, 255, 0.45) 0%, var(--bg-dark) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-title {
  font-size: 3.4rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFFFFF 65%, var(--color-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(69, 14, 255, 0.35), 0 0 30px rgba(224, 0, 246, 0.25);
  border: 1px solid var(--border-subtle);
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.03);
}

/* BANNER HIGHLIGHT */
.quote-banner {
  background: var(--color-electric-blue);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}

.quote-banner h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.quote-banner p {
  font-size: 1.35rem;
  font-weight: 500;
  max-width: 900px;
  margin: 0 auto;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .costa-rica-split {
    grid-template-columns: 1fr !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .btn-group {
    justify-content: center;
  }
  .hero-image-wrap {
    max-width: 600px;
    margin: 30px auto 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-deep);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: var(--transition);
    z-index: 999;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-toggle {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .section-title {
    font-size: 2.1rem;
  }
}
