/* ============================================================
   Intel Cyber Solutions — Main Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy:       #1a2e4a;
  --navy-dark:  #0d1b2a;
  --navy-light: #1e3556;
  --teal:       #1a8a9a;
  --teal-light: #2ab8cc;
  --white:      #ffffff;
  --bg:         #f4f6f8;
  --text:       #0d1b2a;
  --text-muted: #4a5568;
  --border:     #dde2e8;
  --shadow-sm:  0 2px 8px rgba(13, 27, 42, 0.08);
  --shadow-md:  0 4px 20px rgba(13, 27, 42, 0.12);
  --shadow-lg:  0 8px 40px rgba(13, 27, 42, 0.16);
  --radius:     6px;
  --transition: 0.25s ease;
  --nav-height: 120px;
  --section-pad: 100px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { max-width: 68ch; }

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

.section {
  padding: var(--section-pad) 0;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 14px;
}

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

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 138, 154, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-1px);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
  border-bottom: 1px solid var(--border);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(13, 27, 42, 0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo img {
  height: 100px;
  width: auto;
}

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

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.03em;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--teal);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
}

.nav__cta {
  padding: 9px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.03em;
}

.nav__cta:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.nav__cta::after {
  display: none !important;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav menu */
.nav__mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--navy-dark);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  gap: 4px;
}

.nav__mobile-menu.open {
  display: flex;
}

.nav__mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition);
}

.nav__mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 8px;
  color: var(--teal-light);
  font-weight: 600;
}

.nav__mobile-menu a:hover {
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2e4a 55%, #1e3a58 100%);
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(26,138,154,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(42,184,204,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid overlay texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,138,154,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,138,154,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 24px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--teal-light);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 44px;
  font-weight: 400;
  line-height: 1.7;
  max-width: 60ch;
}

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

.hero__badge-row {
  display: flex;
  gap: 24px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero__badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
}

/* ---------- Products ---------- */
#products {
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.product-card__header {
  background: var(--navy);
  padding: 24px 28px;
}

.product-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(26,138,154,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.product-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--teal-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card__header h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.product-card__tm {
  font-size: 0.65rem;
  color: var(--teal-light);
  letter-spacing: 0.05em;
}

.product-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  max-width: 100%;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  transition: gap var(--transition), color var(--transition);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.product-card__link:hover {
  color: var(--teal-light);
  gap: 10px;
}

.product-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Product Narratives ---------- */
.narratives {
  margin-top: 48px;
}

.narrative {
  display: none;
}

.narrative.is-open {
  display: block;
  border-top: 2px solid var(--teal);
  padding-top: 56px;
  margin-top: 8px;
}

.narrative {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.narrative__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.narrative__headline {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 20px;
  max-width: 100%;
}

.narrative__intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 100%;
}

.narrative__steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.narrative__step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.narrative__step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.narrative__step strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.narrative__step div:last-child {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.narrative__for {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 3px solid var(--teal);
  padding-left: 16px;
  line-height: 1.7;
}

.narrative__for span {
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  display: block;
  margin-bottom: 4px;
}

.narrative__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 auto 64px;
  max-width: 860px;
}

/* ---------- Services ---------- */
#services {
  background: var(--white);
}

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

.service-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-block__icon {
  width: 52px;
  height: 52px;
  background: rgba(26,138,154,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-block__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-block h3 {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
}

.service-block p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 100%;
}

/* ---------- About ---------- */
#about {
  background: var(--navy);
  color: var(--white);
}

#about .section-label {
  color: var(--teal-light);
}

#about h2 {
  color: var(--white);
  margin-bottom: 28px;
}

.about__body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  max-width: 72ch;
  font-weight: 400;
}

.about__tagline {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.about__tagline-sep {
  margin: 0 10px;
  color: rgba(42,184,204,0.4);
  font-weight: 300;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.about__stat {
  padding: 32px;
  background: rgba(13,27,42,0.5);
  text-align: center;
}

.about__stat-num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 8px;
}

.about__stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
#contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 24px;
  font-weight: 700;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info__item-icon {
  width: 38px;
  height: 38px;
  background: rgba(26,138,154,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info__item-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-top: 8px;
  line-height: 1.5;
}

.contact-info__item-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-info__item-text a {
  color: var(--teal);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-info__item-text a:hover {
  color: var(--teal-light);
}

.contact-info__note {
  margin-top: 32px;
  padding: 20px;
  background: rgba(26,138,154,0.07);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
}

input, textarea, select {
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,138,154,0.12);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  color: #a0aab4;
}

.form-submit {
  align-self: flex-start;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  padding: 48px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__logo img {
  height: 60px;
  width: auto;
  margin-bottom: 14px;
}

.footer__tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer__trademarks {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 32px;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2e4a 55%, #1e3a58 100%);
  padding-top: calc(var(--nav-height) + 64px);
}

.page-hero .section-label {
  color: var(--teal-light);
}

.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero__sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 62ch;
  line-height: 1.7;
}

/* ---------- Dark Section ---------- */
.section--dark {
  background: var(--navy-dark);
}

/* ---------- CTA Strip ---------- */
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-strip h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  max-width: none;
}

/* ---------- Divider / Accent ---------- */
.teal-rule {
  width: 48px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin-bottom: 28px;
}

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

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Mobile */
@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 64px;
  }

  .hero__badge-row {
    margin-top: 48px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__right {
    text-align: left;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root { --section-pad: 52px; }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__badge-row {
    gap: 12px;
  }

  .about__tagline {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    letter-spacing: 0.12em;
  }

  .about__tagline-sep {
    display: none;
  }
}
