/* ---------------------------------------------
   Clarity Technology Group — Homepage Styles
--------------------------------------------- */

:root {
  --navy-header: #0d1526;
  --navy-text: #17233c;
  --blue-hero-start: #2f5fd6;
  --blue-hero-end: #6ea3f2;
  --accent-orange: #e8502f;
  --white: #ffffff;
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-text);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------------- Header / Nav ---------------- */

.site-header {
  background: var(--navy-header);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 52px;
  width: auto;
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: #9dc0ff;
}

.nav-link.active {
  color: #6ea3f2;
  border-bottom-color: #6ea3f2;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: linear-gradient(115deg, var(--blue-hero-start) 0%, var(--blue-hero-end) 100%);
  overflow: hidden;
  padding-bottom: 60px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
  padding: 80px 40px 40px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero-headline {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
}

.hero-headline .line {
  display: block;
}

.line-light {
  color: var(--white);
}

.line-dark {
  color: var(--navy-text);
}

.hero-subtext {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn-solid {
  background: var(--white);
  color: var(--navy-text);
}

.btn-solid:hover {
  transform: translateY(-2px);
  background: #eef3fb;
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

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

/* ---------------- Hero media / team photo ---------------- */

.hero-media {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.team-photo {
  width: auto;
  max-width: min(100%, 480px);
  max-height: min(560px, 72vh);
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  margin-left: auto;
}

.team-photo-fallback {
  display: none;
  width: 100%;
  height: 420px;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--white);
  text-align: center;
  padding: 20px;
}

.team-photo-fallback p {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

.team-photo-fallback span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-media.no-photo .team-photo-fallback {
  display: flex;
}

.hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  z-index: 1;
}

/* ---------------- Intro / Cybersecurity section ---------------- */

.intro {
  background: var(--white);
  padding: 90px 40px 110px;
}

.intro-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-headline {
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.15;
  color: var(--navy-text);
}

.intro-headline .accent {
  color: #d81e1e;
  font-weight: 500;
}

.intro-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--navy-text);
  max-width: 760px;
  margin: 0 auto 22px;
}

.intro-text:last-child {
  margin-bottom: 0;
}

.intro-text strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  .intro {
    padding: 60px 20px 70px;
  }

  .intro-text {
    font-size: 16px;
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .hero-media {
    order: -1;
    min-height: 280px;
    justify-content: center;
  }

  .team-photo {
    max-width: min(100%, 360px);
    max-height: 380px;
    object-position: bottom center;
    margin-left: 0;
  }

  .hero-subtext {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 16px 20px;
  }

  .logo-image {
    height: 42px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-header);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .primary-nav.open {
    max-height: 320px;
    padding: 10px 20px 20px;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-inner {
    padding: 40px 20px 20px;
  }

  .hero-headline {
    font-size: 34px;
  }

  .hero-subtext {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    flex: 1;
  }
}
