/* ============================================================
   MY NEST ORG — Premium Design Layer (v3.0)
   Humanitarian trust · minimal · editorial
   ============================================================ */

:root {
  --navy: #0a1628;
  --navy-mid: #132238;
  --navy-light: #1e3354;
  --warm: #c4785a;
  --warm-soft: rgba(196, 120, 90, 0.12);
  --surface: #f8f9fb;
  --surface-alt: #f1f3f7;
  --border-soft: rgba(10, 22, 40, 0.08);
  --shadow-soft: 0 1px 3px rgba(10, 22, 40, 0.06), 0 8px 32px rgba(10, 22, 40, 0.06);
  --shadow-hover: 0 4px 20px rgba(10, 22, 40, 0.1);
  --radius-md: 10px;
  --radius-lg: 16px;
  --container-wide: 1240px;
}

/* ---- Typography helpers ---- */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow-light {
  color: rgba(255, 255, 255, 0.85);
}

.premium-section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.premium-section-head.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.premium-section-head h2 {
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.15;
}
.premium-section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}
.premium-section-cta {
  text-align: center;
  margin-top: 48px;
}

.premium-empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}
.premium-empty-state i {
  font-size: 2.5rem;
  color: #c5cad3;
  margin-bottom: 16px;
  display: block;
}
.premium-empty-state p {
  color: var(--text-muted);
  margin: 0;
}

/* ---- Header polish ---- */
#site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
#site-header.scrolled {
  box-shadow: 0 1px 0 var(--border-soft), 0 4px 24px rgba(10, 22, 40, 0.06);
}
.main-nav > li > a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.main-nav > li > a:hover,
.main-nav > li.active > a {
  color: var(--primary);
}
.header-cta .btn-primary {
  font-weight: 600;
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 227, 0.25);
}
.header-cta .btn-outline {
  border-color: var(--border-soft);
  color: var(--navy);
}

/* ---- Hero premium ---- */
.premium-hero .slide-bg {
  background-size: cover;
  background-position: center;
}
.premium-hero .slide-bg-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #000044 100%);
}
.premium-hero .slide-overlay {
  background: linear-gradient(105deg, rgba(10, 22, 40, 0.88) 0%, rgba(10, 22, 40, 0.55) 55%, rgba(10, 22, 40, 0.35) 100%);
}
.premium-hero .slide-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 20px;
}
.premium-hero .slide-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 720px;
}
.premium-hero .slide-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 520px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
}
.premium-hero .slide-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Impact stats bar ---- */
.premium-stats {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  padding: 48px 0;
  margin-top: -1px;
  position: relative;
  z-index: 2;
}
.premium-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.premium-stat-item {
  text-align: center;
  padding: 8px 16px;
  position: relative;
}
.premium-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: var(--border-soft);
}
.premium-stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-xlight);
  border-radius: 10px;
  color: var(--primary);
  font-size: 1.1rem;
}
.premium-stats .stat-number {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.premium-stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---- Who we are ---- */
.premium-about {
  background: var(--white);
}
.premium-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.premium-about-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.premium-about-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--surface-alt), var(--surface));
  color: #b0b8c4;
  font-size: 4rem;
}
.premium-about-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.2;
}
.premium-about-content > p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 28px;
}
.premium-trust-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.premium-trust-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}
.premium-trust-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--primary);
  font-size: 0.9rem;
}

/* ---- Featured projects ---- */
.premium-projects {
  background: var(--surface);
}
.hp-project-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.hp-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.hp-card-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}
.hp-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.hp-project-card:hover .hp-card-img-wrap img {
  transform: scale(1.04);
}
.hp-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hp-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.hp-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.hp-card-link:hover {
  gap: 12px;
}
.hp-progress-track {
  height: 5px;
  background: var(--surface-alt);
  border-radius: 100px;
  overflow: hidden;
}
.hp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 100px;
  transition: width 1s var(--ease-out);
}

/* ---- Partners ---- */
.premium-partners {
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.premium-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.premium-partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
  text-align: center;
}
.premium-partner-item:hover {
  background: var(--white);
  border-color: rgba(0, 0, 227, 0.15);
  transform: translateY(-2px);
}
.premium-partner-logo {
  max-width: 120px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.65);
  transition: filter 0.35s;
}
.premium-partner-item:hover .premium-partner-logo {
  filter: grayscale(0%) opacity(1);
}
.premium-partner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.premium-partner-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- News ---- */
.premium-news {
  background: var(--white);
}
.hp-news-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.hp-news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.hp-news-img-wrap {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-alt);
}
.hp-news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.hp-news-card:hover .hp-news-img-wrap img {
  transform: scale(1.03);
}
.hp-news-body {
  padding: 24px;
}
.hp-news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 10px 0;
  line-height: 1.35;
}
.hp-news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 12px;
}
.hp-news-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-xlight);
  padding: 4px 10px;
  border-radius: 100px;
}
.hp-news-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Impact story ---- */
.premium-story {
  background: var(--navy);
  padding: 80px 0;
  overflow: hidden;
}
.premium-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.premium-story-content h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.15;
}
.premium-story-content p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 28px;
}
.premium-story-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.premium-story-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 4rem;
}

/* ---- Trust section ---- */
.premium-trust {
  background: var(--surface);
}
.premium-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.premium-trust-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.premium-trust-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.premium-trust-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-xlight);
  border-radius: 10px;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.premium-trust-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.premium-trust-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  color: var(--text-muted);
}

/* ---- Final CTA ---- */
.premium-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0000aa 50%, var(--navy) 100%);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.premium-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.premium-cta-inner {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.premium-cta h2 {
  color: var(--white);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.premium-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.premium-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---- Footer premium ---- */
#site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 72px;
}
#site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#site-footer .footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
#site-footer .footer-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin: 16px 0 24px;
}
#site-footer .footer-links li {
  margin-bottom: 10px;
}
#site-footer .footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
#site-footer .footer-links a:hover {
  color: var(--white);
}
#site-footer .contact-item .text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
#site-footer .social-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
#site-footer .social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
}
#site-footer .newsletter-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
}
#site-footer .newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
#site-footer .newsletter-form button {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#site-footer .newsletter-form button:hover {
  background: var(--primary-light);
  color: #fff;
}
#site-footer .footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
#site-footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}
#site-footer .footer-bottom a:hover {
  color: var(--white);
}
.page-header-badge {
  display: inline-block;
  margin-top: 20px;
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
}
#site-footer .footer-legal {
  display: flex;
  gap: 20px;
}
#site-footer .brand-wordmark .brand-my {
  color: #6b8cff !important;
}

/* ---- Inner page polish ---- */
.page-header {
  background: var(--surface);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}
.page-header .subtitle,
.page-header .eyebrow {
  margin-bottom: 12px;
}
.page-header h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Buttons refinement */
.btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.btn-primary {
  box-shadow: 0 2px 8px rgba(0, 0, 227, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 227, 0.3);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: var(--border-soft);
  color: var(--navy);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-xlight);
}

/* Cards site-wide */
.card {
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
}

/* Forms site-wide */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="password"],
textarea,
select {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 227, 0.1);
  outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .hp-project-card,
  .hp-news-card,
  .premium-trust-card {
    transition: none !important;
    animation: none !important;
  }
  .hp-project-card:hover,
  .hp-news-card:hover {
    transform: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .premium-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .premium-stat-item:nth-child(2)::after {
    display: none;
  }
  .premium-stat-item:nth-child(odd):not(:last-child)::after {
    display: block;
  }
  .premium-about-grid,
  .premium-story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .premium-story-grid {
    direction: ltr;
  }
  .premium-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
  .premium-stats {
    padding: 36px 0;
  }
  .premium-stat-item::after {
    display: none !important;
  }
  .premium-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .premium-trust-grid {
    grid-template-columns: 1fr;
  }
  .premium-hero .slide-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .premium-hero .slide-buttons .btn {
    justify-content: center;
  }
  #site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .premium-cta {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .premium-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .premium-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
