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

/* ═══════════════════════════════════════════
   REFIRE AESTHETIC - EWI
   Focus: Deep Teal, Terracotta, Spaced Typography
   ═══════════════════════════════════════════ */

:root {
  /* Colors from Premium Elite Palette */
  --bg-deep: #0D0C2B;
  --bg-surface: #151345;
  --accent-primary: #FFE169;
  --accent-secondary: #FFC300;
  --accent-border: #BCC5CC;
  --accent-cyan: #FFC300;
  --text-ice: #BCC5CC;
  --text-white: #FFFFFF;
  --color-gray: #7A8A99;
  --color-bg-alt: #0D0C2B;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --header-h: 100px;
  --section-pad: 8rem;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-ice);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.title-hero {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 400;
  max-width: 20ch;
  margin-bottom: 2rem;
}

.title-hero strong {
  font-weight: 700;
}

.title-hero em {
  font-style: normal;
  display: block;
}

.title-section {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.125rem;
  max-width: 750px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.text-small {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.decorative-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-ice);
  margin-bottom: 2rem;
}



.accent-color {
  color: var(--accent-secondary);
}

/* ═══════════════════════════════════════════
   UTILITIES & CONTAINERS
   ═══════════════════════════════════════════ */
.wrap {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.surface-bg {
  background-color: var(--bg-surface);
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(255,255,255,0);
}

.site-header.scrolled {
  background-color: rgba(13, 12, 43, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(188, 197, 204, 0.2);
  height: 80px;
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 80px;
  width: auto;
  object-position: left center;
  margin-left: -15px;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  color: var(--text-white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.contact-tel {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--accent-primary);
}

/* Mobile Nav */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-white);
  position: absolute;
  transition: all 0.3s ease;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 9px; }
.menu-btn span:nth-child(3) { top: 18px; }

/* ═══════════════════════════════════════════
   BUTTONS & CTAs
   ═══════════════════════════════════════════ */
.hero-cta {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(13, 12, 43, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-white);
  border: 1px solid rgba(188, 197, 204, 0.3);
  border-radius: 7px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background: rgba(188, 197, 204, 0.1);
  color: var(--accent-border);
  border-color: var(--accent-border);
  box-shadow: inset 0 0 0 1px rgba(188, 197, 204, 0.2), 0 8px 25px rgba(188, 197, 204, 0.2);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #FFC300 100%);
  color: var(--bg-deep);
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 20px rgba(188, 197, 204, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E8FF85 0%, var(--accent-primary) 100%);
  color: var(--bg-deep);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 30px rgba(188, 197, 204, 0.4);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.05); /* Parallax target */
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(13, 12, 43, 0.95) 0%, rgba(13, 12, 43, 0.75) 50%, rgba(13, 12, 43, 0.4) 100%);
  z-index: -1;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: 1.25rem;
  max-width: 600px;
  color: var(--text-ice);
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════
   SERVICES GRID (WHAT WE DO)
   ═══════════════════════════════════════════ */
.services-section {
  padding: var(--section-pad) 0;
  background-color: var(--bg-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  position: relative;
  background: rgba(21, 19, 69, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(188, 197, 204, 0.1);
  border-radius: 7px;
  padding: 3rem 2rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(188, 197, 204, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(21, 19, 69, 0.8);
}

.sc-num {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  max-width: 250px;
}

.service-card img {
  height: 200px;
  margin-bottom: 1.5rem;
  filter: grayscale(80%) sepia(20%) hue-rotate(140deg);
  transition: all 0.5s ease;
}

.service-card:hover img {
  filter: none;
}

/* ═══════════════════════════════════════════
   ABOUT / LEADERSHIP SECTION
   ═══════════════════════════════════════════ */
.about-section {
  padding: var(--section-pad) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-border);
  z-index: -1;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(188, 197, 204, 0.2);
  padding-top: 3rem;
}

.stat-item strong {
  display: block;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--accent-primary);
}

/* ═══════════════════════════════════════════
   PREMIUM SECTIONS & CLASSES
   ═══════════════════════════════════════════ */
.premium-card {
  background: linear-gradient(145deg, rgba(21, 19, 69, 0.6) 0%, rgba(13, 12, 43, 0.9) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(188, 197, 204, 0.15);
  border-radius: 7px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.premium-card:hover {
  border-color: rgba(188, 197, 204, 0.5);
  box-shadow: 0 20px 40px rgba(188, 197, 204, 0.1);
  transform: translateY(-5px);
}

.glass-panel {
  background: rgba(13, 12, 43, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(188, 197, 204, 0.1);
  transition: transform 0.4s ease;
}
.profile-card:hover {
  transform: translateY(-8px);
  border-color: rgba(188, 197, 204, 0.4);
}
.profile-image-wrap {
  width: 100%;
  height: 380px;
  overflow: hidden;
}
.profile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.profile-card:hover .profile-image-wrap img {
  transform: scale(1.05);
}
.profile-content {
  padding: 2.5rem;
}

.partner-logo {
  filter: grayscale(100%) brightness(200%) opacity(0.6);
  transition: all 0.3s ease;
  max-width: 150px;
  margin: 0 auto;
}
.partner-logo:hover {
  filter: grayscale(0%) brightness(100%) opacity(1);
}

/* ═══════════════════════════════════════════
   FOOTER / CONTACT
   ═══════════════════════════════════════════ */
.site-footer {
  background-color: var(--bg-deep);
  padding: var(--section-pad) 0 2rem;
  border-top: 1px solid rgba(188, 197, 204, 0.2);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5rem;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand {
  flex: 0 0 auto;
  max-width: 500px;
}

.footer-brand h2 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-top: 1.5rem;
  color: var(--text-white);
  font-weight: 300;
}

.footer-contact-group {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-contact-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer-contact-item a {
  font-size: 1.15rem;
  color: var(--text-white);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact-item a svg {
  color: var(--accent-primary);
}

.footer-contact-item a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(188, 197, 204, 0.15);
  padding-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent-primary);
}

/* ═══════════════════════════════════════════
   ANIMATIONS (Smooth Reveal)
   ═══════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-overlay {
    background: linear-gradient(to top, rgba(13, 12, 43, 0.95) 0%, rgba(13, 12, 43, 0.8) 50%, rgba(13, 12, 43, 0.4) 100%);
  }
  .services-grid, .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid, .about-stats {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .site-header .logo {
    position: relative;
    z-index: 1002;
  }
  .logo img {
    margin-left: 0 !important;
    height: 60px;
  }
  .menu-btn { 
    display: block; 
    z-index: 1002;
  }
  .nav-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
  }
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .nav-links a { font-size: 1.5rem; }
  .contact-tel { display: none; }
  
  /* Hero CTA Alignment */
  .hero-cta {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
  .title-hero {
    text-align: center;
    font-size: calc(clamp(2rem, 6vw, 5rem) * 1.0168);
  }
  .decorative-tag {
    justify-content: center;
    text-align: center;
  }
  .mobile-center-text {
    text-align: center !important;
  }
  .mobile-contact-block {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }
  .hero .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Why Choose EWI Featured Image */
  .about-img {
    margin-top: 2rem;
  }
  .about-img::after {
    top: 10px;
    left: 10px;
  }
  .about-grid {
    text-align: center;
  }

  /* Footer Mobile */
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .footer-brand {
    text-align: center;
  }
  .footer-brand img {
    margin-left: 0 !important;
  }
  .footer-bottom { 
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .mobile-center-title {
    text-align: center !important;
  }
  .founder-contact {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.85rem !important;
    white-space: nowrap;
  }
  .founder-contact strong {
    margin-right: 0.5rem;
  }
  .founder-contact a {
    margin-left: 0 !important;
  }
  .footer-contact-group {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .footer-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-bottom { 
    flex-direction: column; 
    gap: 1rem; 
    text-align: center;
  }
}
