/* =============================================================
   EverAfter Digital — qikSites Static Website
   Fonts: Open Sans (body), Ubuntu (headings)
   Accent: #7a00df (vivid purple)
   ============================================================= */

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

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0d0d0d;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

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

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(122, 0, 223, 0.25);
}

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

/* Logo */
.logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  height: 44px;
  width: auto;
}

/* Navigation */
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-navigation a {
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cccccc;
  transition: color 0.2s ease;
}

.main-navigation a:hover {
  color: #7a00df;
}

/* Client Portal link — styled as a button */
.main-navigation li:last-child a {
  background-color: #7a00df;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-navigation li:last-child a:hover {
  background-color: #9b51e0;
  color: #ffffff;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  margin: 5px 0;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

/* =============================================================
   HERO
   ============================================================= */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 72px);
  padding: 80px 0 60px;
  background-image: url('/media/header1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark gradient overlay so text stays legible over the photo */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(13, 0, 30, 0.68) 50%,
    rgba(13, 13, 13, 0.85) 100%
  );
  z-index: 0;
}

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

.hero-headline {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: #ffffff;
}

.hero-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: #aaaaaa;
  letter-spacing: 0.02em;
}

/* =============================================================
   SERVICES
   ============================================================= */
.services-section {
  padding: 100px 0;
  background-color: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-heading {
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #7a00df;
  text-align: center;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-item {
  text-align: center;
}

.service-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
  height: 100%;
}

.service-link:hover {
  border-color: rgba(122, 0, 223, 0.5);
  background-color: rgba(122, 0, 223, 0.06);
  transform: translateY(-3px);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(122, 0, 223, 0.15);
  border: 1px solid rgba(122, 0, 223, 0.3);
}

.service-icon i {
  font-size: 1.4rem;
  color: #7a00df;
}

.service-item h3 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #dddddd;
  line-height: 1.3;
}

/* =============================================================
   CTA
   ============================================================= */
.cta-section {
  position: relative;
  padding: 120px 0;
  background-image: url('/media/cta-v1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 0, 30, 0.82) 0%,
    rgba(50, 0, 100, 0.65) 100%
  );
  z-index: 0;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.cta-subtext {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  background-color: #7a00df;
  color: #ffffff;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 4px;
  border: 2px solid #7a00df;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cta-btn:hover {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}


/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  padding: 32px 0;
  background-color: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-text {
  font-size: 0.78rem;
  color: #666666;
  letter-spacing: 0.03em;
}

.footer-text a {
  color: #7a00df;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: #9b51e0;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .main-navigation {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #0d0d0d;
    border-bottom: 1px solid rgba(122, 0, 223, 0.25);
    padding: 16px 24px 24px;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .hero-section {
    min-height: calc(100svh - 72px);
  }
}

@media (max-width: 380px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
