/* ============================================
   NWK-BSAC Design System v2 — Layout
   Containers, grids, sections
   ============================================ */

/* === Container === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* === Grid System === */
.grid {
  display: grid;
  gap: var(--card-gap);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6040 { grid-template-columns: 3fr 2fr; gap: 40px; }
.grid--4060 { grid-template-columns: 2fr 3fr; gap: 40px; }
.grid--5050 { grid-template-columns: 1fr 1fr; gap: 40px; }

@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--6040,
  .grid--4060,
  .grid--5050 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* === Sections === */
.nwk-section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* Section backgrounds */
.nwk-section--white {
  background: var(--white);
}

.nwk-section--pale {
  background: var(--pale);
}

.nwk-section--sand {
  background: var(--sand);
}

.nwk-section--deep {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.9);
}

.nwk-section--deep h2,
.nwk-section--deep h3,
.nwk-section--deep h4 {
  color: var(--white);
}

.nwk-section--deep p {
  color: rgba(255, 255, 255, 0.8);
}

.nwk-section--deep .nwk-label {
  color: var(--aqua);
}

.nwk-section--abyss {
  background: var(--abyss);
  color: rgba(255, 255, 255, 0.9);
}

.nwk-section--abyss h2,
.nwk-section--abyss h3,
.nwk-section--abyss h4 {
  color: var(--white);
}

.nwk-section--abyss p {
  color: rgba(255, 255, 255, 0.8);
}

.nwk-section--abyss .nwk-label {
  color: var(--aqua);
}

/* Gradient background for special sections */
.nwk-section--gradient {
  background: linear-gradient(180deg, var(--deep) 0%, var(--abyss) 100%);
  color: rgba(255, 255, 255, 0.9);
}

.nwk-section--gradient h2,
.nwk-section--gradient h3,
.nwk-section--gradient h4 {
  color: var(--white);
}

.nwk-section--gradient p {
  color: rgba(255, 255, 255, 0.8);
}

/* === Section Header === */
.nwk-section-header {
  max-width: 700px;
  margin-bottom: 48px;
}

.nwk-section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.nwk-section-header h2 {
  margin-bottom: var(--space-md);
}

.nwk-section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.nwk-section--deep .nwk-section-header p,
.nwk-section--abyss .nwk-section-header p,
.nwk-section--gradient .nwk-section-header p {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
  .nwk-section-header {
    margin-bottom: 32px;
  }
  .nwk-section-header p {
    font-size: var(--text-base);
  }
}

/* === Header === */
.nwk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 130px;
  display: flex;
  align-items: center;
  transition: box-shadow var(--duration-base) var(--ease-out);
  background: var(--abyss);
}

.nwk-header--solid {
  box-shadow: 0 2px 20px rgba(7, 25, 50, 0.3);
}

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

@media (min-width: 768px) {
  .nwk-header__inner {
    padding: 0 40px;
  }
}

.nwk-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.nwk-header__logo img {
  height: 120px;
  width: 120px;
  border-radius: var(--radius-circle);
  object-fit: cover;
}

.nwk-header__logo-text {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

.nwk-header__logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.6;
  letter-spacing: 0.5px;
}

/* === Nav === */
.nwk-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nwk-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nwk-nav a:hover {
  color: var(--aqua);
}

.nwk-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nwk-nav__cta {
  background: var(--coral) !important;
  color: var(--white) !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  margin-left: 8px;
}

.nwk-nav__cta:hover {
  background: #e0663b !important;
  color: var(--white) !important;
  box-shadow: var(--shadow-glow-coral);
}

/* Hamburger */
.nwk-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}

.nwk-hamburger svg {
  width: 24px;
  height: 24px;
}

.nwk-hamburger__close {
  display: none;
}

.nwk-hamburger.is-active .nwk-hamburger__open {
  display: none;
}

.nwk-hamburger.is-active .nwk-hamburger__close {
  display: block;
}

/* WordPress admin bar offset */
.admin-bar .nwk-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .nwk-header {
    top: 46px;
  }
}

@media (max-width: 1023px) {
  .nwk-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--abyss);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-out);
    z-index: 999;
  }
  .nwk-nav.open {
    transform: translateX(0);
  }
  .nwk-nav a {
    font-size: 20px;
    padding: 12px 24px;
  }
  .nwk-hamburger {
    display: block;
    z-index: 1001;
  }
}

/* === Main Content Area === */
.site-main {
  padding-top: 130px;
}

/* === Full-bleed Elementor widgets ===
   When Elementor containers use full-width layout, they still have default
   padding (typically 10px). Full-bleed widgets with their own backgrounds
   (hero, CTA) need the parent padding removed so backgrounds stretch
   edge-to-edge. */
.e-con:has(> .elementor-widget-nwk_dive_hero),
.e-con:has(> .elementor-widget-nwk_cta_section) {
  padding: 0 !important;
}

/* === Footer === */
.nwk-footer {
  background: var(--abyss);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
  position: relative;
}

.nwk-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nwk-footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 16px;
}

.nwk-footer p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.nwk-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration-base) var(--ease-out);
  text-decoration: none;
}

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

.nwk-footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.nwk-footer__logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
}

.nwk-footer__logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

.nwk-footer__links {
  list-style: none;
}

.nwk-footer__links li {
  margin-bottom: 8px;
}

.nwk-footer__links a {
  font-size: 15px;
}

.nwk-footer__bottom {
  text-align: center;
  padding: 24px 0;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.nwk-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.nwk-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--duration-base) var(--ease-out);
}

.nwk-footer__social a:hover {
  background: var(--teal);
  color: var(--white);
}

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