* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
}

* {
  box-sizing: border-box;
}

:root {
  --background: #fff8f2;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #f1dfd2;

  --brand-red: #e9472f;
  --brand-orange: #f47b20;
  --brand-gold: #f7b733;
  --brand-blue: #2463a6;

  --dark: #111827;
  --brown-dark: #2a1b16;
  --shadow: 0 20px 60px rgba(120, 52, 24, 0.14);
  --radius: 24px;
  --container: 1120px;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(244, 123, 32, 0.16), transparent 35%),
    radial-gradient(circle at top right, rgba(233, 71, 47, 0.12), transparent 30%),
    var(--background);
  color: var(--text);
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 242, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(var(--container), calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.site-logo {
  width: 380px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--brand-red);
}

.nav-contact {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brown-dark);
  color: white !important;
}

.menu-button {
  display: none;
  border: none;
  background: white;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.hero-section {
  width: 100%;
  min-height: 580px;
  margin: 0;
  padding: 88px max(24px, calc((100% - var(--container)) / 2)) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(42, 27, 22, 0.72) 0%,
      rgba(42, 27, 22, 0.56) 45%,
      rgba(42, 27, 22, 0.16) 100%
    ),
    url("../assets/images/CRNES_Hero.jpg");

  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 680px;
  min-width: 0;
}

.tagline,
.section-label {
  color: var(--brand-red);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-section .tagline {
  color: var(--brand-gold);
}

h1 {
  max-width: 620px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 12px 0 24px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 10px 0 18px;
}

h3 {
  font-size: 24px;
  margin: 18px 0 10px;
}

.hero-section h1,
.hero-section .hero-description {
  color: white;
}

.hero-description {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0.94;
}

.hero-buttons,
.contact-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  max-width: 100%;
  text-align: center;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  color: white;
  box-shadow: 0 16px 32px rgba(233, 71, 47, 0.24);
}

.secondary-button {
  background: white;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.secondary-dark-button {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.about-section,
.initiatives-section,
.vision-section,
.faq-section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
  border-top: 1px solid var(--border);
}

.about-section h2 {
  max-width: 520px;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.about-section > p {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.75;
  margin-top: 36px;
  color: var(--muted);
}

.initiative-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  align-items: stretch;
}

.initiative-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 40px rgba(21, 32, 51, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 270px;
  min-width: 0;
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  flex-shrink: 0;
}

.initiative-card h3 {
  font-size: 22px;
  line-height: 1.2;
}

.initiative-card p {
  flex-grow: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-link {
  display: inline-block;
  margin-top: auto;
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.vision-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.vision-card,
.stats-card,
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 12px 40px rgba(21, 32, 51, 0.06);
  min-width: 0;
}

.vision-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.stats-card {
  display: grid;
  gap: 14px;
}

.stats-card div {
  padding: 22px;
  border-radius: 20px;
  background: var(--background);
  min-width: 0;
}

.stats-card strong {
  display: block;
  font-size: 36px;
  line-height: 1.1;
  word-break: break-word;
}

.stats-card span {
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.faq-item {
  padding: 28px;
}

.faq-item h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.faq-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.contact-section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 72px;
  padding: 58px 24px;
  text-align: center;
  background: var(--brown-dark);
  color: white;
  border-radius: 36px;
}

.contact-section .section-label {
  color: var(--brand-gold);
}

.contact-section p {
  width: min(700px, 100%);
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.7;
}

.contact-buttons {
  justify-content: center;
}

.contact-section .primary-button {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  color: white;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.small-note {
  font-size: 14px !important;
  margin-top: 28px;
}

.footer {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
}

/* Sticky social icons */
.social-sidebar {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.whatsapp {
  background: #25d366;
}

.facebook {
  background: #1877f2;
}

.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.youtube {
  background: #ff0000;
}

.email {
  background: var(--brown-dark);
}

/* Tablet */
@media (max-width: 920px) {
  .navbar {
    width: min(100% - 28px, var(--container));
  }

  .site-logo {
    width: 200px;
  }

  .hero-section {
    min-height: 560px;
    padding: 72px 24px 64px;
    background-position: center;
  }

  .about-section,
  .vision-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .about-section > p {
    margin-top: 0;
  }

  .initiative-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Mobile */
@media (max-width: 680px) {
  .site-header {
    position: sticky;
  }

  .navbar {
    width: calc(100% - 24px);
    height: 68px;
  }

  .site-logo {
    width: 148px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
    white-space: normal;
  }

  .nav-links.show-menu {
    display: flex;
  }

  .nav-contact {
    width: 100%;
    text-align: center;
  }

  .hero-section {
    min-height: 520px;
    padding: 64px 20px 56px;
    background:
      linear-gradient(
        90deg,
        rgba(42, 27, 22, 0.78) 0%,
        rgba(42, 27, 22, 0.58) 100%
      ),
      url("../assets/images/CRNES_Hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  h2 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.15;
  }

  h3 {
    font-size: 21px;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-buttons,
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    padding: 14px 18px;
  }

  .about-section,
  .initiatives-section,
  .vision-section,
  .faq-section {
    width: calc(100% - 32px);
    padding: 52px 0;
  }

  .about-section {
    gap: 20px;
  }

  .about-section h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .about-section > p {
    font-size: 16px;
    line-height: 1.7;
  }

  .initiative-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .initiative-card {
    min-height: auto;
    padding: 24px;
  }

  .initiative-card p {
    font-size: 15px;
  }

  .vision-card,
  .stats-card,
  .faq-item {
    padding: 24px;
  }

  .stats-card strong {
    font-size: 30px;
  }

  .contact-section {
    width: calc(100% - 32px);
    margin-bottom: 88px;
    padding: 48px 20px;
    border-radius: 28px;
  }

  .footer {
    width: calc(100% - 32px);
    flex-direction: column;
    gap: 8px;
    padding-bottom: 110px;
  }

  .social-sidebar {
    left: 50%;
    top: auto;
    bottom: 14px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    padding: 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    max-width: calc(100% - 24px);
  }

  .social-link {
    width: 38px;
    height: 38px;
    font-size: 15px;
    flex-shrink: 0;
  }

  .social-link:hover {
    transform: none;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .site-logo {
    width: 132px;
  }

  .navbar {
    width: calc(100% - 20px);
  }

  .hero-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 32px;
  }

  .about-section,
  .initiatives-section,
  .vision-section,
  .faq-section,
  .contact-section,
  .footer {
    width: calc(100% - 24px);
  }

  .social-link {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

.quick-contact-bar {
  position: fixed !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  pointer-events: auto !important;
}

.quick-contact-link {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.quick-contact-link:hover {
  transform: translateX(4px) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28) !important;
}

.quick-wa {
  background: #25d366 !important;
}

.quick-fb {
  background: #1877f2 !important;
}

.quick-ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af) !important;
}

.quick-yt {
  background: #ff0000 !important;
}

.quick-mail {
  background: #2a1b16 !important;
}

@media (max-width: 680px) {
  .quick-contact-bar {
    left: 50% !important;
    top: auto !important;
    bottom: 14px !important;
    transform: translateX(-50%) !important;
    flex-direction: row !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    padding: 8px !important;
    border-radius: 999px !important;
    border: 1px solid #f1dfd2 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
    max-width: calc(100% - 24px) !important;
  }

  .quick-contact-link {
    width: 38px !important;
    height: 38px !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
  }

  .quick-contact-link:hover {
    transform: none !important;
  }
}