/* GATE Technologies Landing Page */
:root {
  --primary: #8B6BAE;
  --accent: #E8961F;
  --olive: #B5A642;
  --text-color: #7a7a7a;
  --dark-text: #54595f;
  --navy-dark: #0f1923;
  --navy-mid: #1a2a3a;
  --light-bg: #f4f6f9;
  --white: #ffffff;
  --font-body: 'Roboto', sans-serif;
  --font-heading: 'Roboto Slab', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  line-height: 1.6;
  background: var(--white);
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navy-dark);
  padding: 0 24px;
  transition: box-shadow 0.3s;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.navbar__logo img {
  height: 44px;
  width: auto;
}

.navbar__links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.navbar__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: var(--primary);
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 120px 24px 80px;
}

.hero__badge {
  display: inline-block;
  background: rgba(139, 107, 174, 0.15);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(139, 107, 174, 0.3);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--primary);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}

.hero__cta:hover {
  background: #d4850e;
  transform: translateY(-2px);
}

/* ── Section shared ── */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--navy-dark);
  color: var(--white);
}

.section--light {
  background: var(--light-bg);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 16px;
}

.section--dark .section__title {
  color: var(--white);
}

.section__desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-color);
  font-size: 1.05rem;
}

.section--dark .section__desc {
  color: rgba(255, 255, 255, 0.6);
}

/* ── About ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--navy-dark);
}

.about__text p {
  color: var(--text-color);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Products ── */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.product-card__image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fafbfc;
}

.product-card__image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-card__info {
  padding: 20px 24px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
}

/* ── Capabilities ── */
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.capability {
  text-align: center;
}

.capability__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 107, 174, 0.1);
  border-radius: 16px;
  padding: 16px;
}

.capability__icon img {
  width: 40px;
  height: 40px;
}

.capability__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy-dark);
}

.capability__desc {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Contact ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.contact__info p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.contact__info a {
  color: var(--primary);
  transition: color 0.2s;
}

.contact__info a:hover {
  color: #7a5a9e;
}

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

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact__form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__form button {
  align-self: flex-start;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.contact__form button:hover {
  background: #d4850e;
}

/* ── Stats row ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stat {
  text-align: center;
  padding: 28px 16px;
  background: rgba(139, 107, 174, 0.06);
  border: 1px solid rgba(139, 107, 174, 0.18);
  border-radius: 8px;
}

.section--dark .stat {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.stat__num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.92rem;
  color: var(--text-color);
  letter-spacing: 0.3px;
}

.section--dark .stat__label {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Product card extras (specs + downloads) ── */
.products__family-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 56px 0 24px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.products__family-title:first-child {
  margin-top: 0;
}

.product-card__info {
  text-align: left;
}

.product-card__name {
  margin-bottom: 6px;
}

.product-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-card__desc {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 14px;
  line-height: 1.55;
}

.product-card__specs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-card__specs li {
  font-size: 0.78rem;
  background: rgba(139, 107, 174, 0.08);
  color: var(--navy-dark);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(139, 107, 174, 0.18);
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.product-card__cta:hover {
  color: #d4850e;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  padding: 32px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--olive), var(--accent));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  text-align: center;
  padding-top: 88px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--navy-dark);
  z-index: 2;
}

.timeline__year {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.timeline__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  padding: 0 4px;
}

/* ── Capability cards (product-style icons in dark) ── */
.section--dark .capability__icon {
  background: rgba(255, 255, 255, 0.05);
}

.section--dark .capability__title {
  color: var(--white);
}

.section--dark .capability__desc {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Accessibility widget ── */
.a11y-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.a11y-toggle:hover,
.a11y-toggle:focus {
  background: #7a5a9e;
  transform: scale(1.05);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.a11y-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.a11y-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 300px;
  max-width: calc(100vw - 48px);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 20px;
  z-index: 9999;
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.a11y-panel.open {
  display: block;
}

.a11y-panel__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.a11y-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.a11y-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--light-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy-dark);
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
  line-height: 1.3;
}

.a11y-btn:hover,
.a11y-btn:focus {
  background: rgba(139, 107, 174, 0.1);
  border-color: var(--primary);
  outline: none;
}

.a11y-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.a11y-btn__icon {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.a11y-reset {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-color);
  transition: background 0.2s;
}

.a11y-reset:hover {
  background: var(--light-bg);
}

/* a11y body modes */
body.a11y-text-lg { font-size: 1.12rem; }
body.a11y-text-xl { font-size: 1.25rem; }

body.a11y-contrast { filter: contrast(1.4); }
body.a11y-contrast .hero,
body.a11y-contrast .section--dark,
body.a11y-contrast .footer { background: #000 !important; }
body.a11y-contrast .section--light { background: #fff !important; }

body.a11y-grayscale { filter: grayscale(1); }
body.a11y-contrast.a11y-grayscale { filter: contrast(1.4) grayscale(1); }

body.a11y-underline a { text-decoration: underline !important; }

body.a11y-reduce-motion *,
body.a11y-reduce-motion *::before,
body.a11y-reduce-motion *::after {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}

/* ── Footer ── */
.footer {
  background: #0a1118;
  padding: 32px 0;
  text-align: center;
}

.footer p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer a {
  color: var(--primary);
  transition: color 0.2s;
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.6rem;
  }

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

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

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

  .timeline {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 56px;
  }

  .timeline::before {
    display: none;
  }

  .timeline__item {
    padding-top: 0;
  }

  .timeline__item::before {
    display: none;
  }

  .timeline__year {
    position: static;
    transform: none;
    display: block;
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar__links.active {
    display: flex;
  }

  .navbar__toggle {
    display: block;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

  .hero__title {
    font-size: 1.7rem;
  }
}
