/* ==========================================================================
   ADESMY Fiber Optics — Layout (Header, Navigation, Sections, Grids, Footer)
   ========================================================================== */

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-weight: 800;
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1;
}

.logo small {
  display: block;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.logo--light {
  color: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--mute);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a.is-active {
  color: var(--fg);
  background: var(--soft);
}

.site-nav .btn {
  padding: 9px 16px;
  margin-left: 6px;
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--fg);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(15, 27, 45, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .btn {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }
}

/* Sections & Grids */
.section {
  padding: 80px 0;
}

.section--soft {
  background: var(--soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.section-head h2,
.section-title,
.page-section h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  margin-top: 8px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split--top {
  align-items: start;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.split img {
  border-radius: var(--radius-xl);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Inner Page Wrapper */
.page-section {
  padding: 64px 0 80px;
}

.page-section .lead {
  color: var(--mute);
  max-width: 60ch;
  margin: 12px 0 36px;
}

.page-actions {
  margin-bottom: 32px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #b9c7dc;
  padding: 56px 0 28px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 36px;
}

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

.site-footer h4 {
  color: #ffffff;
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 18px;
  font-size: 0.85rem;
}
