/* =============================================================
   Namos layout & component styles
   Replaces the compiled Tailwind bundle with focused, readable CSS.
   All visual decisions reference CSS variables from namos.css.
   ============================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

/* ----- Container ------------------------------------------ */
.container {
  width: 100%;
  max-width: 80rem;   /* 1280px */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--narrow {
  max-width: 64rem;   /* 1024px */
}

.container--text {
  max-width: 42rem;   /* 672px */
}

/* ----- Section -------------------------------------------- */
.section {
  position: relative;
  padding-block: 6rem;
}

.section--sm {
  padding-block: 3rem;
}

/* Darker gradient fill for alternating sections */
.section--dark {
  background: linear-gradient(160deg, var(--color-blue-deep) 0%, var(--color-bg) 60%, var(--color-blue-deep) 100%);
}

.section--alt {
  background: linear-gradient(200deg, var(--color-blue-deep) 0%, var(--color-bg) 70%);
}

/* ----- Grids ---------------------------------------------- */
.grid-2 {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

.grid-4 {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }

  .grid-2--wide {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

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

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

/* ----- Typography ----------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-red);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

.text-muted {
  color: rgba(255, 255, 255, 0.75);
}

.text-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-light-blue);
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

/* ----- Buttons -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 8px 30px rgba(216, 35, 42, 0.3);
}

/* Gradient background layered behind content via pseudo-element */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, #0a3a8c 0%, #0a2a66 35%, #d8232a 100%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(143, 180, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(143, 180, 255, 0.8);
}

.btn-white {
  background: #fff;
  color: var(--color-blue-deep);
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ----- Icon badge ----------------------------------------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-icon);
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-red) 100%);
  flex-shrink: 0;
}

.icon-badge--lg {
  width: 3.5rem;
  height: 3.5rem;
}

.icon-badge--reverse {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-blue) 100%);
}

/* ----- Pill badge ----------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pill-gradient {
  background: linear-gradient(to right, var(--color-blue), var(--color-red));
  color: #fff;
}

.pill-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(143, 180, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

/* =============================================================
   NAVIGATION
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80rem;
  margin-inline: auto;
  padding: 1rem 1.5rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

/* Desktop nav links — hidden on mobile */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.375rem;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--color-blue), var(--color-red));
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #fff;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* CTA button — hidden on small screens */
.nav-cta {
  display: none;
}

/* Hamburger toggle — hidden on large screens */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(143, 180, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Icon swap for open/close state */
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* Mobile slide-down menu */
.nav-mobile {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 80rem;
  margin-inline: auto;
  padding: 1rem 1.5rem;
  list-style: none;
}

.nav-mobile-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.nav-mobile-link:hover,
.nav-mobile-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Breakpoints */
@media (min-width: 640px) {
  .nav-cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   HERO (home page)
   ============================================================= */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6,24,63,0.97) 0%, rgba(10,42,140,0.82) 45%, rgba(6,24,63,0.55) 100%);
}

.hero-glow {
  position: absolute;
  left: -5rem;
  top: 2.5rem;
  width: 20rem;
  height: 20rem;
  border-radius: 9999px;
  filter: blur(120px);
  background: rgba(10, 58, 140, 0.5);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 80rem;
  margin-inline: auto;
  padding: 6rem 1.5rem 8rem;
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 8rem 1.5rem 10rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(143, 180, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-light-blue);
  backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 48rem;
}

.hero-subtitle {
  margin-top: 1.75rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 32rem;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
}

@media (min-width: 640px) {
  .hero-stat-value {
    font-size: 2.5rem;
  }
}

.hero-stat-label {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(204, 204, 204, 0.8);
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  background: var(--color-bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 35%);
}

.hero-accent {
  position: absolute;
  bottom: 88px;
  left: 0;
  height: 3px;
  width: 100%;
  opacity: 0.8;
}

/* =============================================================
   PAGE HERO (inner pages)
   ============================================================= */

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(120deg, var(--color-bg) 0%, var(--color-blue-deep) 60%, var(--color-bg) 100%);
}

.page-hero-glow {
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  filter: blur(120px);
  background: rgba(10, 58, 140, 0.5);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  max-width: 80rem;
  margin-inline: auto;
  padding: 5rem 1.5rem 6rem;
}

@media (min-width: 1024px) {
  .page-hero-content {
    padding: 6rem 1.5rem;
  }
}

.page-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 48rem;
}

/* =============================================================
   WORK PACKAGE CARDS
   ============================================================= */

.wp-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.wp-card:hover {
  transform: translateY(-0.5rem);
}

.wp-card-image {
  position: relative;
  height: 11rem;
  overflow: hidden;
}

.wp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.wp-card:hover .wp-card-image img {
  transform: scale(1.05);
}

.wp-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,24,63,0.95), rgba(6,24,63,0.1));
}

.wp-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wp-card-placeholder svg {
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.wp-card-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,24,63,0.9), rgba(6,24,63,0.1));
}

.wp-card-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-blue), var(--color-red));
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.wp-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.75rem;
}

.wp-card-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.wp-card-desc {
  margin-top: 0.75rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.wp-card-points {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  list-style: none;
}

.wp-card-point {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.wp-card-point-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
  flex-shrink: 0;
}

.wp-card-accent {
  height: 3px;
  width: 100%;
}

/* =============================================================
   ABOUT PAGE — Vision/Mission cards, Domains, Values, Milestones
   ============================================================= */

/* Vision/Mission stacked cards */
.vision-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vision-card {
  border-radius: var(--radius-card);
  padding: 2rem;
}

/* Domain cards (Sea / Land / Air) */
.domain-card {
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
}

.domain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-icon);
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.domain-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.domain-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Values cards */
.value-card {
  border-radius: var(--radius-card);
  padding: 2rem;
}

/* Milestone timeline */
.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.milestone-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

@media (min-width: 640px) {
  .milestone-card {
    flex-direction: row;
    align-items: center;
  }
}

.milestone-year {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 3.5rem;
  border-radius: var(--radius-icon);
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.milestone-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.milestone-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* =============================================================
   ACTIVITIES — Approach cards
   ============================================================= */

.approach-card {
  position: relative;
  border-radius: var(--radius-card);
  padding: 2rem;
  overflow: hidden;
}

.approach-step-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
}

.approach-icon {
  margin-top: -1.5rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-icon);
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
}

.approach-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.approach-desc {
  margin-top: 0.75rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* =============================================================
   PARTNER GRID
   ============================================================= */

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-0.25rem);
}

.partner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s;
}

.partner-card:hover .partner-icon {
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
}

.partner-icon svg {
  color: var(--color-light-blue);
  transition: color 0.3s;
}

.partner-card:hover .partner-icon svg {
  color: #fff;
}

.partner-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}

.partner-category {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

/* Partner category role cards */
.partner-role-card {
  border-radius: var(--radius-card);
  padding: 2rem;
}

/* =============================================================
   NEWS
   ============================================================= */

.news-featured {
  display: grid;
  border-radius: var(--radius-card);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .news-featured {
    grid-template-columns: 1fr 1fr;
  }
}

.news-featured-image {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.news-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.news-featured:hover .news-featured-image img {
  transform: scale(1.05);
}

.news-featured-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6,24,63,0.65), rgba(6,24,63,0.2));
}

.news-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.news-date {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.news-title {
  margin-top: 1.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.news-excerpt {
  margin-top: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.news-read-more {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-red);
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  padding: 1.75rem;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.news-card:hover {
  transform: translateY(-0.5rem);
}

.news-card-title {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s;
}

.news-card:hover .news-card-title {
  color: var(--color-light-blue);
}

.news-card-excerpt {
  flex: 1;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* =============================================================
   NEWSLETTER FORM
   ============================================================= */

.newsletter-section {
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 2rem auto 0;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-email-field {
  flex: 1;
}

.newsletter-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 28rem;
  margin: 2rem auto 0;
}

/* =============================================================
   FORMS
   ============================================================= */

.form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-light-blue);
}

.form-input,
.form-textarea,
.newsletter-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(143, 180, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  outline: none;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s;
  font-family: inherit;
}

.newsletter-input {
  border-radius: var(--radius-pill);
  padding: 0.875rem 1.25rem;
}

.form-input::placeholder,
.form-textarea::placeholder,
.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus,
.form-textarea:focus,
.newsletter-input:focus {
  border-color: rgba(143, 180, 255, 0.7);
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--color-red-soft);
}

.form-textarea {
  resize: none;
}

.form-error {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-red-soft);
  display: none;
}

/* =============================================================
   CONTACT
   ============================================================= */

.contact-form-card {
  border-radius: var(--radius-card);
  padding: 2.5rem;
}

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-form-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-light-blue);
  margin-bottom: 0.5rem;
}

.contact-detail-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.enquiry-card {
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.enquiry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.enquiry-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.enquiry-item svg {
  color: var(--color-red);
  flex-shrink: 0;
}

/* =============================================================
   TEAM CARDS
   ============================================================= */

.team-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.team-card:hover {
  transform: translateY(-0.5rem);
}

.team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
}

.team-initials {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.team-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem .75rem;
  text-align: center;
}

.team-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.team-role {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-light-blue);
}

.team-email {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
  word-break: break-all;
}

.team-email:hover {
  color: #fff;
}

/* =============================================================
   CTA BANNER
   ============================================================= */

.cta-section {
  padding: 5rem 1.5rem;
}

.cta-banner {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  padding: 5rem 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .cta-banner {
    padding: 5rem 4rem;
  }
}

.cta-banner-content {
  position: relative;
  max-width: 42rem;
  margin-inline: auto;
}

.cta-banner-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cta-banner-desc {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-banner-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* =============================================================
   FORM SUCCESS STATE
   ============================================================= */

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-card);
  padding: 2.5rem 3rem;
  text-align: center;
}

.form-success-title {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.form-success-desc {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.form-reset-btn {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-light-blue);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}

.form-reset-btn:hover {
  color: #fff;
}

/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand-desc {
  margin-top: 1.25rem;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(204, 204, 204, 0.75);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  transition: border-color 0.2s;
}

.footer-social-link:hover {
  border-color: rgba(216, 35, 42, 0.5);
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-light-blue);
  margin-bottom: 1.25rem;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  list-style: none;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item svg {
  color: var(--color-red);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.footer-nav-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  list-style: none;
}

.footer-nav-link {
  transition: color 0.2s;
}

.footer-nav-link:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* =============================================================
   UTILITIES
   ============================================================= */

.text-center { text-align: center; }
.mt-cta      { margin-top: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =============================================================
   SINGLE NEWS / ARTICLE PAGE
   Self-contained styles for an individual news article.
   Reuses global helpers: .namos-glass, .namos-grid-bg,
   .namos-rise, .pill, .btn.
   ============================================================= */

/* Narrow reading column shared by hero, image, body and footer nav */
.article-col {
  position: relative;
  max-width: 48rem;            /* 768px */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ----- Hero ----------------------------------------------- */
.article-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(120deg, var(--color-bg) 0%, var(--color-blue-deep) 60%, var(--color-bg) 100%);
}

.article-hero .article-col {
  padding-block: 4rem;
}

@media (min-width: 1024px) {
  .article-hero .article-col {
    padding-block: 5rem;
  }
}

.article-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}

.article-hero-glow {
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  filter: blur(120px);
  background: rgba(10, 58, 140, 0.5);
  pointer-events: none;
}

/* "All news" back link */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-light-blue);
  transition: color 0.2s;
}

.article-back:hover { color: #fff; }
.article-back svg { transition: transform 0.3s ease; }
.article-back:hover svg { transform: translateX(-3px); }

/* Meta row: category pill + date */
.article-meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.article-date {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.article-date svg { flex-shrink: 0; }

/* Title + lead paragraph */
.article-title {
  margin-top: 1.25rem;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.article-lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* ----- Featured image ------------------------------------- */
.article-figure {
  margin-top: 3rem;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.article-figure img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

/* ----- Body copy ------------------------------------------ */
.article-body {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.article-body h2 {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.article-body a {
  color: var(--color-light-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { color: #fff; }

/* ----- Footer nav: back + read next ----------------------- */
.article-nav {
  margin-top: 3.5rem;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: var(--radius-card);
  padding: 2rem;
}

@media (min-width: 640px) {
  .article-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.article-next {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .article-next {
    align-items: flex-end;
    text-align: right;
  }
}

.article-next-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-light-blue);
}

.article-next-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  transition: color 0.2s;
}

.article-next:hover .article-next-title { color: var(--color-light-blue); }
.article-next-title svg { flex-shrink: 0; transition: transform 0.3s ease; }
.article-next:hover .article-next-title svg { transform: translateX(3px); }

/* Wider column — used for the featured image so it extends
   beyond the reading width, matching the original design */
.article-col--wide {
  max-width: 64rem;   /* 1024px */
}

/* ----- "Read next" with a nested link (e.g. CMS output) ----- */
.article-next-title a {
  color: inherit;            /* inherits #fff from .article-next-title */
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-next:hover .article-next-title a {
  color: var(--color-light-blue);
}

/* Arrow icon after the link — drawn in CSS, so no extra HTML inside <a> */
.article-next-title a::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  background-color: currentColor;            /* matches the text colour */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>") no-repeat center / contain;
  transition: transform 0.3s ease;
}

.article-next:hover .article-next-title a::after {
  transform: translateX(3px);
}

@media (min-width: 640px) {
  /* Message field spans the full row; all other fields stay 50% */
  .form-row .form-field:has(textarea) {
    grid-column: 1 / -1;
  }
}