/* ──────────────────────────────────────────────────────
   Ne Too Infrastructure Projects — styles.css
   Desktop primary: 1440px  |  Tablet: 768px  |  Mobile: 390px
   ────────────────────────────────────────────────────── */

/* ── Brand Tokens ─────────────────────────────────── */
:root {
  --navy:        #001c3f;
  --blue:        #267fc1;
  --light-blue:  #9ac1e1;
  --sage:        #98ca90;
  --red:         #da291c;
  --text-dark:   #222c3a;
  --text-muted:  #5a6473;
  --bg-light:    #f5f8fa;
  --border:      #e4e8ee;
  --nav-height:  80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', Arial, sans-serif;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ── Shared Layout ────────────────────────────────── */
.section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
}

.section-heading {
  font-size: 42px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-top: 12px;
}

.section-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
  color: var(--text-dark);
  margin-top: 16px;
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0 80px;
}

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  height: var(--nav-height);
  transition: box-shadow 0.3s;
}

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

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--light-blue);
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* anchor offset for sticky nav */
section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  background-color: var(--navy);
  background-image: url('../hero_bg_web.jpg');
  background-size: cover;
  background-position: center;
  min-height: 860px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 80px 72px;
  text-align: center;
}

.hero-tagline {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--light-blue);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 60px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 19px;
  font-weight: 300;
  color: #d9e5f5;
  line-height: 30px;
  margin-bottom: 40px;
}

/* Video player */
.video-wrapper {
  display: grid;
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #030d21;
  border: 1px solid rgba(38, 127, 193, 0.3);
  aspect-ratio: 16 / 9;
}

/* suppress Safari's native inline play button */
.video-wrapper video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.video-poster {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-wrapper video {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.play-btn {
  grid-area: 1 / 1;
  place-self: center;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.play-btn:hover {
  background: #1e6fa8;
  transform: scale(1.08);
}

.play-btn .play-icon {
  color: #fff;
  font-size: 22px;
  margin-left: 3px;
}

.play-btn.hidden {
  display: none;
}

/* ── A COLLABORATIVE PARTNERSHIP ──────────────────── */
.partnership {
  background: #fff;
  overflow: hidden;
}

.partnership-top-accent {
  height: 3px;
  background: var(--sage);
  margin: 0 80px;
}

.partnership-inner {
  display: flex;
  gap: 80px;
  padding-top: 56px;
  padding-bottom: 60px;
  align-items: flex-start;
}

.partnership-left {
  flex: 0 0 560px;
  max-width: 560px;
}

.partnership-left .section-body {
  max-width: 560px;
}

.partnership-left .section-body:first-of-type {
  margin-top: 44px;
}

.partnership-right {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 125px);
  gap: 16px;
}

.partner-logo-cell {
  width: 125px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.partner-logo-cell img {
  display: block;
  width: 97px;
  height: 97px;
  object-fit: contain;
}

.partner-logo-dark {
  background: var(--navy);
}

/* ── THE PROJECTS ─────────────────────────────────── */
.projects {
  background: var(--bg-light);
  padding: 60px 0 64px;
}

.projects .section-heading {
  margin-bottom: 0;
}

.projects-intro {
  max-width: 780px;
  margin-bottom: 28px;
}

.objectives-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 32px;
  margin-bottom: 44px;
}

.objectives-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.objective-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf5fc;
  border: 1px solid rgba(38, 127, 193, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 14px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.objective-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.objective-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 17px;
}

.projects-list-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.projects-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.projects-list ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.projects-list li {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}

.projects-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 3.5px;
}

/* ── REACH OUT ────────────────────────────────────── */
.reach-out {
  position: relative;
  background-color: var(--navy);
  background-image: url('../water_bg_web.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.reach-out-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.78;
  pointer-events: none;
}

.reach-out-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--sage);
  z-index: 1;
}

.reach-out-inner {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: 64px;
}

.reach-out-label {
  color: var(--sage);
}

.reach-out-heading {
  color: #fff;
}

.reach-out-body {
  color: #cce0f2;
  max-width: 720px;
  margin-bottom: 32px;
}

/* Contact cards */
.contacts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 0;
}

.contact-card {
  display: flex;
  align-items: stretch;
  background: #081a33;
  border: 1px solid rgba(38, 127, 193, 0.3);
  border-radius: 10px;
  overflow: hidden;
  min-height: 148px;
}

.contact-card-accent {
  width: 4px;
  background: var(--sage);
  flex-shrink: 0;
}

.contact-info {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.contact-title {
  font-size: 12px;
  color: var(--light-blue);
  line-height: 18px;
}

.contact-link {
  display: block;
  font-size: 12px;
  color: #8cc7ff;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #fff;
}

/* Form */
.form-divider {
  height: 1px;
  background: #334d66;
  margin-top: 40px;
}

.form-heading {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 24px 0 20px;
}

.status-banner {
  display: none;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
}

.status-banner[hidden] {
  display: none !important;
}

.status-banner.success {
  display: block;
  background: rgba(152, 202, 144, 0.15);
  border: 1px solid var(--sage);
  color: var(--sage);
}

.status-banner.error {
  display: block;
  background: rgba(218, 41, 28, 0.15);
  border: 1px solid var(--red);
  color: #ff8a7a;
}

.contact-form {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 28px;
}

.form-col {
  display: flex;
  flex-direction: column;
}

.form-col-left {
  gap: 0;
}

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

.form-group-message {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.form-group label {
  font-size: 12px;
  color: #b2cce5;
}

.form-group input,
.form-group textarea {
  background: #081a33;
  border: 1px solid rgba(38, 127, 193, 0.3);
  border-radius: 6px;
  padding: 14px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #5980a6;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 127, 193, 0.15);
}

.form-group input {
  height: 46px;
}

.form-group-message textarea {
  flex: 1;
  min-height: 136px;
  resize: vertical;
}

.btn-submit {
  align-self: flex-start;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 24px;
  height: 48px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: #1e6fa8;
}

.btn-submit:active {
  background: #165e96;
}

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  background: #030d1a;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

.footer-top-rule {
  height: 1px;
  background: #243854;
}

.footer-main {
  display: flex;
  align-items: center;
  padding: 28px 0;
  gap: 40px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo {
  height: 44px;
  width: auto;
}

.footer-copyright {
  font-size: 12px;
  color: #6b85a3;
}

.footer-byline-rule {
  height: 1px;
  background: #1a2e47;
}

.footer-byline {
  font-size: 11px;
  color: #4d668c;
  text-align: center;
  padding: 12px 0;
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .section-inner {
    padding-left: 48px;
    padding-right: 48px;
  }

  .nav-inner {
    padding: 0 48px;
  }

  .hero-content {
    padding: 80px 48px 60px;
  }

  .hero-title {
    font-size: 48px;
  }

  .section-heading {
    font-size: 36px;
  }

  .partnership-top-accent,
  .section-divider {
    margin: 0 48px;
  }

  .partnership-inner {
    flex-direction: column;
    gap: 44px;
    padding-bottom: 48px;
  }

  .partnership-left {
    flex: none;
    max-width: 100%;
  }


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

  .contacts-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .footer-inner {
    padding: 0 48px;
  }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 768px)
   ════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .section-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-inner {
    padding: 0 24px;
  }

  /* Show hamburger, hide link list by default */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 199;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 64px 24px 56px;
  }

  .hero-title {
    font-size: 36px;
  }

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

  .hero-subtitle br {
    display: none;
  }

  /* Sections */
  .section-heading {
    font-size: 30px;
  }

  .section-heading br {
    display: none;
  }

  /* Partnership */
  .partnership-top-accent,
  .section-divider {
    margin: 0 24px;
  }


  /* Projects */
  .projects {
    padding: 48px 0 52px;
  }

  .objectives-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .projects-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .projects-list ul + ul {
    margin-top: 0;
  }

  /* Reach Out */
  .contacts-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  /* Footer */
  .footer-inner {
    padding: 0 24px;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 0;
  }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 480px)
   ════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .section-heading {
    font-size: 26px;
  }

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


  .btn-submit {
    width: 100%;
    text-align: center;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* prevent iOS zoom */
  }
}
