:root{--bg:#FAF6F8;--sf:#EFE4EC;--ink:#1E1423;--mu:#5E4A66;--dp:#3E1F47;--ac:#C23B22;--ln:#E0CFDA}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.6 system-ui,sans-serif}
h1,h2,h3{font-family:Georgia,serif;line-height:1.15;margin:0 0 .5em}
h1{font-size:clamp(2.2rem,6vw,3.8rem)}
p{max-width:62ch}
a{color:inherit}
:focus-visible{outline:3px solid var(--ac);outline-offset:3px}
.w{max-width:1080px;margin:0 auto;padding:0 22px}
.bar{background:var(--dp);color:#FAF6F8;font-size:.88rem}
.bar .w{display:flex;flex-wrap:wrap;gap:6px 22px;padding-top:8px;padding-bottom:8px}
nav{border-bottom:1px solid var(--ln)}
nav .w{display:flex;justify-content:space-between;align-items:center;padding-top:14px;padding-bottom:14px}
nav a{text-decoration:none;margin-left:18px;color:var(--mu)}
nav .brand{font-family:Georgia,serif;font-weight:700;font-size:1.25rem;color:var(--ink);margin:0}
.hero{background:var(--sf);padding:72px 0}
section{padding:56px 0}
.g3{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:28px}
.btn{display:inline-block;background:var(--ac);color:#fff;font:inherit;font-weight:600;text-decoration:none;padding:13px 24px;border:0;border-radius:3px;cursor:pointer}
form{display:grid;gap:16px;max-width:560px}
label{display:grid;gap:6px;font-weight:600;font-size:.95rem}
input,select,textarea{font:inherit;color:var(--ink);background:#fff;border:1px solid var(--mu);border-radius:3px;padding:11px 12px;width:100%}
.hp{position:absolute;left:-9999px}
.ok{font-weight:600;color:var(--dp)}
.err{font-weight:600;color:#B00020}
footer{background:var(--ink);color:var(--bg);padding:32px 0;font-size:.92rem}

/* Cornerstone Global — visual enhancements */

:root {
    --radius: 12px;
    --shadow: 0 12px 35px rgba(30, 20, 35, .07);
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 {
    letter-spacing: -.025em;
  }

  h2 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
  }

  h3 {
    font-size: 1.35rem;
  }

  p {
    color: var(--mu);
  }

  section {
    padding: 80px 0;
  }

  /* Navigation */

  nav {
    background: var(--bg);
    position: relative;
    z-index: 10;
  }

  nav a {
    transition: color .2s ease;
  }

  nav a:hover {
    color: var(--ac);
  }

  /* Hero */

  .hero {
    background: linear-gradient(
      135deg,
      #EFE4EC 0%,
      #FAF6F8 70%
    );
    padding: 110px 0;
  }

  .hero h1 {
    max-width: 760px;
    color: var(--dp);
  }

  .hero p {
    font-size: 1.16rem;
    line-height: 1.75;
    margin-bottom: 30px;
  }

  /* Buttons */

  .btn {
    border-radius: 7px;
    transition:
      transform .2s ease,
      background .2s ease,
      box-shadow .2s ease;
  }

  .btn:hover {
    background: #A9321D;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }

  /* Cards */

  .g3 > div {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--ln);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s ease;
  }

  .g3 > div:hover {
    transform: translateY(-4px);
  }

  .g3 h3 {
    color: var(--dp);
  }

  /* Contact form */

  form {
    background: #fff;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--ln);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 680px;
  }

  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--dp);
    outline-offset: 2px;
    border-color: var(--dp);
  }

  textarea {
    resize: vertical;
  }

  /* Footer */

  footer {
    padding: 50px 0;
    line-height: 1.8;
  }

  /* Responsive */

  @media (max-width: 768px) {
    .hero {
      padding: 75px 0;
    }

    section {
      padding: 55px 0;
    }

    nav .w {
      flex-wrap: wrap;
      gap: 15px;
    }

    nav .w > div {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    nav a {
      margin-left: 0;
    }

    .bar .w {
      gap: 5px 14px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    .btn,
    .g3 > div {
      transition: none;
    }
  }

/* ===================================
   CORNERSTONE GLOBAL — NEW LAYOUT
=================================== */

:root {
  --card:#FFFFFF;
  --radius:12px;
}

body {
  overflow-x:hidden;
}

html {
  scroll-behavior:smooth;
}

section[id] {
  scroll-margin-top:30px;
}

h2 {
  font-size:clamp(2rem,4vw,2.8rem);
  color:var(--dp);
}

.eyebrow {
  display:block;
  color:var(--ac);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:2px;
  margin-bottom:18px;
  text-transform:uppercase;
}

.section-intro {
  font-size:1.12rem;
  color:var(--mu);
  margin-bottom:36px;
}

/* TOP BAR */

.topbar-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.topbar-phones {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

.bar a {
  color:#fff;
  text-decoration:none;
}

.bar a:hover {
  text-decoration:underline;
}

/* NAVIGATION */

.main-nav {
  background:var(--bg);
}

.nav-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}

.main-nav .brand {
  display:flex;
  flex-direction:column;
  line-height:1.1;
  flex-shrink:0;
  text-decoration:none;
}

.brand-name {
  font-family:Georgia,serif;
  font-size:1.25rem;
  font-weight:bold;
  letter-spacing:1px;
  color:var(--dp);
}

.brand-sub {
  font-family:system-ui,sans-serif;
  font-size:.68rem;
  letter-spacing:5px;
  color:var(--ac);
  margin-top:5px;
}

.desktop-links {
  display:flex;
  align-items:center;
  gap:18px;
}

.desktop-links a {
  margin:0;
  font-size:.85rem;
  font-weight:600;
  text-decoration:none;
  color:var(--ink);
}

.desktop-links a:hover {
  color:var(--ac);
}

.desktop-links .nav-contact {
  color:#fff;
  background:var(--dp);
  border-radius:6px;
  padding:10px 15px;
}

.desktop-links .nav-contact:hover {
  background:var(--ac);
  color:#fff;
}

.mobile-menu {
  display:none;
}

/* HERO */

.hero {
  background:linear-gradient(
    130deg,
    #EFE4EC 0%,
    #FAF6F8 75%
  );
  padding:110px 0;
}

.hero-content {
  display:flex;
  align-items:center;
}

.hero-text {
  max-width:820px;
}

.hero h1 {
  font-size:clamp(2.6rem,5.5vw,4.5rem);
  color:var(--dp);
  margin-bottom:24px;
}

.hero h1 span {
  color:var(--ac);
}

.hero p {
  font-size:1.17rem;
  max-width:670px;
  margin-bottom:30px;
}

.hero-actions {
  display:flex;
  gap:15px;
  align-items:center;
  flex-wrap:wrap;
}

.btn-outline {
  display:inline-block;
  padding:12px 23px;
  border:1px solid var(--dp);
  color:var(--dp);
  border-radius:4px;
  font-weight:600;
  text-decoration:none;
}

.btn-outline:hover {
  background:var(--dp);
  color:#fff;
}

/* ABOUT */

.about-preview {
  background:#fff;
}

.about-preview .w {
  max-width:900px;
}

.text-link {
  color:var(--ac);
  text-decoration:none;
  font-weight:700;
  display:inline-block;
  margin-top:12px;
}

.text-link:hover {
  text-decoration:underline;
}

/* SERVICES */

.services-section {
  background:var(--bg);
}

.services-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.service-card {
  background:var(--card);
  border:1px solid var(--ln);
  border-radius:var(--radius);
  padding:30px;
  transition:transform .2s,box-shadow .2s;
}

.service-card:hover {
  transform:translateY(-4px);
  box-shadow:0 12px 30px rgba(30,20,35,.08);
}

.service-number {
  font-family:Georgia,serif;
  font-size:1.8rem;
  color:var(--ac);
  margin-bottom:20px;
}

.service-card h3 {
  color:var(--dp);
  font-size:1.28rem;
}

.service-card p {
  font-size:.95rem;
  color:var(--mu);
}

.section-action {
  text-align:center;
  margin-top:36px;
}

/* VALUES */

.values-section {
  background:var(--sf);
}

.value-icon {
  display:block;
  font-size:1.5rem;
  font-weight:700;
  color:var(--ac);
  margin-bottom:18px;
}

/* FEATURE SECTIONS */

.feature-section,
.grants-section {
  background:#fff;
}

.feature-section .w,
.grants-section .w {
  max-width:900px;
}

.technical-section {
  background:var(--bg);
}

.support-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
  margin-top:30px;
}

.support-grid div {
  background:#fff;
  padding:20px;
  border-left:3px solid var(--ac);
  border-radius:5px;
  font-weight:600;
  overflow-wrap:anywhere;
}

/* CALL TO ACTION */

.cta-section {
  background:var(--dp);
  color:#fff;
  text-align:center;
}

.cta-section h2 {
  color:#fff;
  max-width:760px;
  margin:0 auto 24px;
}

.cta-section p {
  color:#F1E4F0;
  margin:0 auto 30px;
}

.cta-section .eyebrow {
  color:#F3AE9D;
}

.btn-light {
  background:#fff;
  color:var(--dp);
}

.btn-light:hover {
  background:var(--sf);
}

/* FOOTER */

.site-footer {
  background:var(--ink);
  color:#fff;
  padding:60px 0 25px;
}

.footer-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1.5fr;
  gap:45px;
}

.footer-grid h3 {
  font-size:1.2rem;
  margin-bottom:18px;
}

.footer-grid p {
  color:#E2D5E1;
}

.footer-grid a {
  display:block;
  color:#E2D5E1;
  text-decoration:none;
  margin-bottom:9px;
  overflow-wrap:anywhere;
}

.footer-grid a:hover {
  color:#fff;
  text-decoration:underline;
}

.footer-bottom {
  border-top:1px solid #49354C;
  margin-top:45px;
  padding-top:20px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  font-size:.8rem;
  color:#D5C9D5;
}

/* RESPONSIVE */

@media(max-width:1100px) {
  .desktop-links {
    gap:11px;
  }

  .desktop-links a {
    font-size:.78rem;
  }
}

@media(max-width:950px) {
  .desktop-links {
    display:none;
  }

  .mobile-menu {
    display:block;
    position:relative;
  }

  .mobile-menu summary {
    cursor:pointer;
    padding:10px 16px;
    border:1px solid var(--ln);
    border-radius:6px;
    font-weight:600;
  }

  .mobile-links {
    position:absolute;
    right:0;
    top:100%;
    min-width:230px;
    background:#fff;
    border:1px solid var(--ln);
    box-shadow:0 12px 25px rgba(0,0,0,.1);
    padding:15px;
    border-radius:8px;
    z-index:20;
  }

  .mobile-links a {
    display:block;
    margin:0;
    padding:9px;
    text-decoration:none;
  }

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

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

@media(max-width:650px) {
  .topbar-inner {
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
  }

  .hero {
    padding: 65px 0;
  }

  .hero-content {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-text {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 7.5vw, 2.5rem);
    line-height: 1.2;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    margin-bottom: 22px;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 100%;
    text-align: left;
    margin-bottom: 26px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero-actions a {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }


  section {
    padding:55px 0;
  }

  .services-grid,
  .support-grid,
  .footer-grid {
    grid-template-columns:1fr;
  }

  .hero-actions {
    align-items:stretch;
    flex-direction:column;
  }

  .hero-actions a {
    text-align:center;
  }

  .service-card {
    padding:24px;
  }

  .footer-grid {
    gap:25px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }

  .service-card {
    transition:none;
  }
}

/* ================================
   ABOUT US PAGE
================================ */

.about-hero {
  background:linear-gradient(135deg,#EFE4EC,#FAF6F8);
  padding:95px 0;
}

.about-hero h1 {
  color:var(--dp);
  max-width:850px;
}

.about-hero p {
  font-size:1.2rem;
  color:var(--mu);
}

/* INTRO */

.about-two-col {
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:70px;
  align-items:start;
}

.about-two-col h2 {
  max-width:450px;
}

.about-two-col p {
  margin-top:0;
  margin-bottom:20px;
}

/* MISSION */

.mission-section {
  background:var(--dp);
  color:#fff;
  text-align:center;
}

.mission-content {
  max-width:850px;
}

.mission-section h2 {
  color:#fff;
}

.mission-section .eyebrow {
  color:#F3AE9D;
}

.mission-section p {
  color:#F1E4F0;
  font-size:1.22rem;
  margin:0 auto;
}

/* HEADINGS */

.section-heading {
  text-align:center;
  margin-bottom:45px;
}

.section-heading p {
  margin:0 auto;
  color:var(--mu);
}

/* VALUES */

.about-values {
  background:var(--bg);
}

.value-card {
  background:#fff;
  border-radius:12px;
  padding:30px;
}

.value-card h3 {
  color:var(--dp);
}

/* EXPERIENCE */

.experience-section {
  background:#fff;
}

.experience-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:30px;
}

.experience-card {
  background:var(--sf);
  border-radius:12px;
  padding:35px;
}

/* LEADERSHIP */

.leadership-section {
  background:var(--bg);
}

.leader-feature {
  display:grid;
  grid-template-columns:280px 1fr;
  gap:55px;
  align-items:center;
  background:#fff;
  border:1px solid var(--ln);
  border-radius:14px;
  padding:38px;
}

.leader-photo img {
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:12px;
}

.leader-details h3 {
  font-size:2rem;
  color:var(--dp);
}

.leader-details p {
  margin-bottom:16px;
}

/* TEAM */

.team-section {
  background:#fff;
}

.people-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
}

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

.person-card {
  background:#fff;
  border:1px solid var(--ln);
  border-radius:12px;
  overflow:hidden;
  transition:transform .2s,box-shadow .2s;
}

.person-card:hover {
  transform:translateY(-4px);
  box-shadow:0 12px 30px rgba(30,20,35,.09);
}

.person-card img {
  width:100%;
  height:290px;
  object-fit:cover;
  object-position:center top;
  display:block;
  background:var(--sf);
}

.person-info {
  padding:22px;
}

.person-info h3 {
  font-size:1.2rem;
  color:var(--dp);
  margin-bottom:8px;
}

.person-info p {
  font-size:.87rem;
  color:var(--mu);
  margin:0;
}

/* ADVISORY */

.advisory-section {
  background:var(--sf);
}

/* PARTNERS */

.partners-section {
  background:#fff;
}

.partner-feature {
  display:grid;
  grid-template-columns:280px 1fr;
  gap:45px;
  align-items:center;
  max-width:900px;
  margin:0 auto;
}

.partner-feature img {
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:12px;
}

.partner-feature h3 {
  font-size:2rem;
  color:var(--dp);
}

.partner-role {
  color:var(--ac);
  font-weight:700;
}

/* TABLET */

@media(max-width:900px) {
  .about-two-col,
  .leader-feature,
  .partner-feature {
    grid-template-columns:1fr;
    gap:28px;
  }

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

  .leader-photo {
    max-width:280px;
  }

  .partner-feature img {
    max-width:280px;
  }
}

/* MOBILE */

@media(max-width:600px) {
  .about-hero {
    padding:65px 0;
  }

  .experience-grid,
  .people-grid,
  .people-grid-four {
    grid-template-columns:1fr;
  }

  .leader-feature {
    padding:22px;
  }

  .person-card img {
    height:340px;
  }

  .person-info {
    padding:20px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .person-card {
    transition:none;
  }
}

/* TEAM PHOTOS — IMPROVED DISPLAY */

.person-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center;
  background: #F5F0F3;
}

.person-card {
  overflow: hidden;
  border-radius: 12px;
}

.person-info {
  min-height: 100px;
  padding: 22px;
}

/* Mobile */
@media (max-width: 600px) {
  .person-card img {
    height: 300px;
  }
}

/* ===================================
   GLOBAL TEXT JUSTIFICATION
=================================== */

/* Justify paragraphs across the website */
p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Keep headings aligned naturally */
h1, h2, h3, h4, h5, h6 {
  text-align: inherit;
}

/* Keep centered sections centered */
.section-heading p,
.cta-section p,
.mission-section p {
  text-align: center;
}

/* Keep team member information aligned left */
.person-info p {
  text-align: left;
}

/* ================================
   TEAM CAROUSEL
================================ */

.team-carousel {
  position: relative;
  width: 100%;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 22px;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--dp);
  background: #fff;
  color: var(--dp);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}


.carousel-arrow:hover:not(:disabled) {
  background: var(--sf);
  color: var(--dp);
  border-color: var(--dp);
}

.carousel-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding-bottom: 5px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .person-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
}

/* Consistent photo presentation */

.carousel-track .person-card img {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: contain;
  object-position: center;
  background: #F5F0F3;
}

.carousel-track .person-info {
  flex: 1;
  min-height: 110px;
}

.carousel-status {
  text-align: center;
  font-size: .85rem;
  color: var(--mu);
  margin: 16px auto 0;
}

/* Tablet: two cards */

@media (max-width: 900px) {
  .carousel-track .person-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

/* Mobile: one card */

@media (max-width: 600px) {
  .carousel-track {
    gap: 16px;
  }

  .carousel-track .person-card {
    flex-basis: 100%;
  }

  .carousel-track .person-card img {
    height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    scroll-behavior: auto;
  }
}

.carousel-track .person-card img {
  background: #F5F0F3;
  object-fit: contain;
  object-position: center;
}

.carousel-track .person-card {
  box-shadow: 0 4px 18px rgba(30, 20, 35, .04);
}

/* ==================================
   TECHNICAL PARTNERS — FINAL
================================== */

.partner-profile {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: center;

  max-width: 1000px;
  margin: 0 auto;
  padding: 35px;

  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 14px;
}

.partner-image {
  background: var(--sf);
  border-radius: 10px;
  overflow: hidden;
}

.partner-image img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: contain;
  object-position: center;
}

.partner-content h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--dp);
  margin-bottom: 20px;
}

.partner-content p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: normal;
}

@media (max-width: 768px) {
  .partner-profile {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 22px;
  }

  .partner-image {
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
  }

  .partner-image img {
    height: 320px;
  }
}

/* ==================================
   SERVICES PAGE
================================== */

.services-hero {
  background: linear-gradient(
    135deg,
    #EFE4EC 0%,
    #FAF6F8 85%
  );
  padding: 100px 0;
}

.services-hero .w {
  max-width: 1080px;
}

.services-hero h1 {
  color: var(--dp);
  max-width: 800px;
}

.services-hero p {
  font-size: 1.16rem;
  margin-bottom: 30px;
  max-width: 700px;
}

/* INTRODUCTION */

.services-intro {
  background: #fff;
  padding-bottom: 35px;
}

.services-intro .section-heading {
  margin-bottom: 0;
}

/* MAIN SERVICES */

.services-page-section {
  background: var(--bg);
  padding-top: 45px;
}

.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-detail-card {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 32px;
  transition: transform .2s, box-shadow .2s;
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30,20,35,.08);
}

.service-detail-card h3 {
  color: var(--dp);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.service-detail-card p {
  color: var(--mu);
  font-size: .97rem;
  line-height: 1.8;
  text-align: justify;
  hyphens: none;
}

/* BENEFITS */

.services-benefits {
  background: var(--sf);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--ln);
}

.benefit-item span {
  color: var(--ac);
  font-weight: 800;
  font-size: 1.2rem;
}

.benefit-item p {
  margin: 0;
  text-align: left;
  line-height: 1.65;
}

/* SPECIALIZED SERVICES */

.specialized-services {
  background: #fff;
}

.specialized-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.specialized-card {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.specialized-card h3 {
  color: var(--dp);
  font-size: 1.35rem;
}

.specialized-card p {
  flex: 1;
  color: var(--mu);
  line-height: 1.8;
}

.specialized-card a {
  color: var(--ac);
  font-weight: 700;
  text-decoration: none;
  margin-top: 16px;
}

.specialized-card a:hover {
  text-decoration: underline;
}

/* OUR APPROACH */

.services-approach {
  background: var(--dp);
  color: #fff;
}

.services-approach .w {
  max-width: 850px;
}

.services-approach h2 {
  color: #fff;
}

.services-approach .eyebrow {
  color: #F3AE9D;
}

.services-approach p {
  color: #F1E4F0;
  font-size: 1.08rem;
  line-height: 1.85;
  text-align: justify;
  hyphens: none;
}

/* TABLET */

@media (max-width: 900px) {
  .services-page-grid,
  .specialized-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE */

@media (max-width: 650px) {
  .services-hero {
    padding: 70px 0;
  }

  .services-page-grid,
  .specialized-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-card,
  .specialized-card {
    padding: 25px;
  }

  .benefit-item {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-detail-card {
    transition: none;
  }
}

/* SERVICES — FINAL TEXT REFINEMENTS */

/* Narrow cards read better left-aligned */
.service-detail-card p,
.specialized-card p,
.footer-grid p {
  text-align: left;
  hyphens: none;
  word-spacing: normal;
}

/* Keep longer content justified */
.services-hero p,
.services-approach p {
  text-align: justify;
  hyphens: none;
}

/* Improve spacing in service cards */
.service-detail-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-detail-card h3,
.service-detail-card p {
  margin-top: 0;
}

.service-detail-card p {
  line-height: 1.75;
}

/* Clearer footer text */
.footer-grid p {
  line-height: 1.75;
}


/* SEPARATE APPROACH AND CALL TO ACTION */

.services-approach {
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.services-approach + .cta-section {
  padding-top: 70px;
}

/* ==================================
   CORNERSTONE CAPACITIES
================================== */

.capacities-hero {
  background: linear-gradient(
    135deg,
    #EFE4EC 0%,
    #FAF6F8 85%
  );
  padding: 105px 0;
}

.capacities-hero h1 {
  color: var(--dp);
  max-width: 820px;
}

.capacities-hero h1 span {
  color: var(--ac);
}

.capacities-hero p {
  max-width: 720px;
  font-size: 1.16rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* FOUNDATION INTRO */

.capacities-about {
  background: #fff;
}

.capacities-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.capacities-intro-grid p {
  line-height: 1.85;
  text-align: justify;
  hyphens: none;
}

/* MISSION */

.capacities-mission {
  background: var(--sf);
}

.capacities-mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.capacity-mission-card {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 26px;
}

.capacity-number {
  display: block;
  color: var(--ac);
  font-family: Georgia, serif;
  font-size: 1.65rem;
  margin-bottom: 24px;
}

.capacity-mission-card h3 {
  color: var(--dp);
  font-size: 1.25rem;
}

.capacity-mission-card p {
  color: var(--mu);
  font-size: .93rem;
  line-height: 1.75;
  text-align: left;
}

/* PROGRAMS */

.capacities-programs {
  background: #fff;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.program-card {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.program-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.program-index {
  color: var(--ac);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: 1.5px;
}

.program-acronym {
  color: var(--dp);
  background: var(--sf);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .85rem;
  font-weight: 800;
}

.program-card h3 {
  font-size: 1.45rem;
  color: var(--dp);
  margin-bottom: 18px;
}

.program-card p {
  font-size: .95rem;
  color: var(--mu);
  line-height: 1.75;
  text-align: left;
}

.program-card a {
  margin-top: auto;
  padding-top: 22px;
  color: var(--ac);
  font-weight: 700;
  text-decoration: none;
}

.program-card a:hover {
  text-decoration: underline;
}

/* COMMUNITY ACTIVITIES */

.capacities-activities {
  background: var(--bg);
}

.capacity-activities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.capacity-activity {
  background: #fff;
  padding: 28px;
  border: 1px solid var(--ln);
  border-radius: 12px;
}

.activity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  background: var(--sf);
  color: var(--ac);
  border-radius: 50%;
  font-weight: 800;
}

.capacity-activity h3 {
  color: var(--dp);
  font-size: 1.23rem;
}

.capacity-activity p {
  color: var(--mu);
  font-size: .95rem;
  line-height: 1.75;
  text-align: left;
}

/* IMPACT */

.capacities-impact {
  background: var(--dp);
  color: #fff;
  text-align: center;
}

.capacities-impact .w {
  max-width: 900px;
}

.capacities-impact h2 {
  color: #fff;
}

.capacities-impact p {
  color: #F1E4F0;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.85;
  text-align: center;
}

.capacities-impact .eyebrow {
  color: #F3AE9D;
}

/* TABLET */

@media (max-width: 950px) {
  .capacities-mission-grid,
  .capacity-activities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .capacities-intro-grid {
    gap: 35px;
  }
}

/* MOBILE */

@media (max-width: 650px) {
  .capacities-hero {
    padding: 70px 0;
  }

  .capacities-intro-grid,
  .capacities-mission-grid,
  .programs-grid,
  .capacity-activities-grid {
    grid-template-columns: 1fr;
  }

  .program-card,
  .capacity-activity,
  .capacity-mission-card {
    padding: 25px;
  }
}

/* CORNERSTONE CAPACITIES — FINAL TEXT FIXES */

/* Long introduction: justified */
.capacities-intro-grid p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: normal;
}

/* Narrow cards: improve readability */
.capacity-mission-card p,
.program-card p,
.capacity-activity p {
  text-align: left;
  hyphens: none;
  word-spacing: normal;
  overflow-wrap: normal;
}

/* Section descriptions: centered */
.capacities-mission .section-heading p,
.capacities-programs .section-heading p,
.capacities-activities .section-heading p {
  text-align: center;
  hyphens: none;
}

/* SEPARATE IMPACT AND CONTACT */

.capacities-impact {
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.capacities-impact + .cta-section {
  padding-top: 70px;
}

/* ===================================
   TECHNICAL ASSISTANCE PAGE
=================================== */

/* HERO */

.technical-hero {
  background: linear-gradient(
    135deg,
    #EFE4EC 0%,
    #FAF6F8 85%
  );
  padding: 105px 0;
}

.technical-hero h1 {
  color: var(--dp);
  max-width: 850px;
}

.technical-hero h1 span {
  color: var(--ac);
}

.technical-hero p {
  max-width: 720px;
  font-size: 1.16rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* INTRODUCTION */

.technical-intro {
  background: #fff;
}

.technical-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.technical-intro-grid p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  line-height: 1.85;
}

/* SERVICES */

.technical-areas {
  background: var(--bg);
}

.technical-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.technical-service-card {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 30px;
  transition: transform .2s, box-shadow .2s;
}

.technical-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30,20,35,.08);
}

.technical-number {
  display: block;
  color: var(--ac);
  font-family: Georgia, serif;
  font-size: 1.75rem;
  margin-bottom: 22px;
}

.technical-service-card h3 {
  font-size: 1.3rem;
  color: var(--dp);
  margin-bottom: 18px;
}

.technical-service-card p {
  font-size: .95rem;
  line-height: 1.8;
  text-align: left;
  hyphens: none;
  color: var(--mu);
}

/* GRANTS */

.technical-grants {
  background: #fff;
}

.technical-grants-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.technical-grants p {
  line-height: 1.85;
  margin-bottom: 28px;
  text-align: justify;
  hyphens: none;
}

.technical-highlight {
  background: var(--sf);
  padding: 40px;
  border-radius: 12px;
  border-left: 4px solid var(--ac);
}

.technical-highlight-label {
  display: block;
  color: var(--ac);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.technical-highlight h3 {
  font-size: 1.65rem;
  color: var(--dp);
}

.technical-highlight p {
  margin-bottom: 0;
  text-align: left;
}

/* PROCESS */

.technical-process {
  background: var(--sf);
}

.technical-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.process-step {
  padding: 28px;
  border: 1px solid var(--ln);
  background: #fff;
  border-radius: 12px;
}

.process-step span {
  display: block;
  color: var(--ac);
  font-family: Georgia, serif;
  font-size: 1.65rem;
  margin-bottom: 22px;
}

.process-step h3 {
  color: var(--dp);
  font-size: 1.3rem;
}

.process-step p {
  color: var(--mu);
  font-size: .95rem;
  text-align: left;
  line-height: 1.75;
}

/* RESPONSIVE */

@media (max-width: 950px) {
  .technical-intro-grid,
  .technical-grants-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

@media (max-width: 650px) {
  .technical-hero {
    padding: 70px 0;
  }

  .technical-services-grid,
  .technical-process-grid {
    grid-template-columns: 1fr;
  }

  .technical-service-card,
  .process-step {
    padding: 25px;
  }

  .technical-highlight {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .technical-service-card {
    transition: none;
  }
}

/* TECHNICAL ASSISTANCE — FINAL REFINEMENTS */

.technical-process .section-heading p,
.process-step p,
.technical-service-card p {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-align: left;
}

.technical-process .section-heading p {
  text-align: center;
}

.technical-intro-grid p {
  font-size: 1rem;
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}

/* ===================================
   GRANT PROGRAMS PAGE
=================================== */

/* HERO */

.grants-hero {
  background: linear-gradient(
    135deg,
    #EFE4EC 0%,
    #FAF6F8 85%
  );
  padding: 105px 0;
}

.grants-hero h1 {
  max-width: 850px;
  color: var(--dp);
}

.grants-hero h1 span {
  color: var(--ac);
}

.grants-hero p {
  max-width: 720px;
  font-size: 1.16rem;
  line-height: 1.8;
  margin-bottom: 32px;
  text-align: justify;
  hyphens: none;
}

/* INTRODUCTION */

.grants-introduction {
  background: #fff;
}

.grants-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.grants-intro-grid p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  line-height: 1.85;
}

/* SUPPORT CARDS */

.grant-support-section {
  background: var(--bg);
}

.grant-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grant-support-card {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 32px;
  transition: transform .2s, box-shadow .2s;
}

.grant-support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30,20,35,.08);
}

.grant-number {
  display: block;
  color: var(--ac);
  font-family: Georgia, serif;
  font-size: 1.75rem;
  margin-bottom: 25px;
}

.grant-support-card h3 {
  font-size: 1.35rem;
  color: var(--dp);
  margin-bottom: 18px;
}

.grant-support-card p {
  color: var(--mu);
  font-size: .96rem;
  line-height: 1.8;
  text-align: left;
  hyphens: none;
}

/* FUNDING SOURCES */

.grant-funding-section {
  background: #fff;
}

.grant-funding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.grant-funding-card {
  background: var(--sf);
  padding: 36px;
  border-radius: 12px;
  border: 1px solid var(--ln);
}

.grant-funding-tag {
  display: block;
  color: var(--ac);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
}

.grant-funding-card h3 {
  color: var(--dp);
  font-size: 1.55rem;
}

.grant-funding-card p {
  line-height: 1.8;
  text-align: left;
  hyphens: none;
}

/* PROCESS */

.grant-process-section {
  background: var(--sf);
}

.grant-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grant-process-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--ln);
}

.grant-process-card span {
  display: block;
  color: var(--ac);
  font-family: Georgia, serif;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.grant-process-card h3 {
  color: var(--dp);
  font-size: 1.35rem;
}

.grant-process-card p {
  color: var(--mu);
  line-height: 1.8;
  text-align: left;
  hyphens: none;
}

/* IMPORTANT NOTE */

.grant-note-section {
  background: #fff;
  padding: 55px 0;
}

.grant-note {
  max-width: 850px;
  margin: 0 auto;
  padding: 30px 35px;
  border-left: 4px solid var(--ac);
  background: var(--bg);
  border-radius: 8px;
}

.grant-note h3 {
  color: var(--dp);
  font-size: 1.3rem;
}

.grant-note p {
  color: var(--mu);
  line-height: 1.8;
  margin-bottom: 0;
  text-align: left;
}

/* RESPONSIVE */

@media (max-width: 950px) {
  .grants-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

@media (max-width: 650px) {
  .grants-hero {
    padding: 70px 0;
  }

  .grant-support-grid,
  .grant-process-grid,
  .grant-funding-grid {
    grid-template-columns: 1fr;
  }

  .grant-support-card,
  .grant-process-card,
  .grant-funding-card {
    padding: 25px;
  }

  .grant-note {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grant-support-card {
    transition: none;
  }
}

/* GRANT PROGRAMS — FINAL REFINEMENTS */

.grants-intro-grid p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  line-height: 1.85;
}

.grant-support-card p,
.grant-funding-card p,
.grant-process-card p {
  text-align: left;
  hyphens: none;
  word-break: normal;
}

.grant-note p {
  text-align: left;
  line-height: 1.8;
}

/* ===================================
   CULTURE PAGE
=================================== */

/* HERO */

.culture-hero {
  background: linear-gradient(
    135deg,
    #EFE4EC 0%,
    #FAF6F8 85%
  );
  padding: 105px 0;
}

.culture-hero h1 {
  color: var(--dp);
  max-width: 850px;
}

.culture-hero h1 span {
  color: var(--ac);
}

.culture-hero p {
  max-width: 720px;
  font-size: 1.16rem;
  line-height: 1.8;
  margin-bottom: 32px;
  text-align: justify;
  hyphens: none;
}

/* PHILOSOPHY */

.culture-philosophy {
  background: #fff;
}

.culture-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.culture-intro-grid p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  line-height: 1.85;
}

/* CULTURAL PILLARS */

.culture-pillars {
  background: var(--bg);
}

.culture-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.culture-pillar-card {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 32px;
}

.culture-pillar-card > span {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.75rem;
  color: var(--ac);
  margin-bottom: 25px;
}

.culture-pillar-card h3 {
  color: var(--dp);
  font-size: 1.35rem;
}

.culture-pillar-card p {
  color: var(--mu);
  font-size: .96rem;
  line-height: 1.8;
  text-align: left;
  hyphens: none;
}

/* ORGANIZATIONAL CULTURE */

.culture-development {
  background: #fff;
}

.culture-development-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 65px;
  align-items: center;
}

.culture-development-content p {
  color: var(--mu);
  line-height: 1.85;
  text-align: justify;
  hyphens: none;
}

.culture-quote-card {
  background: var(--sf);
  border-left: 4px solid var(--ac);
  border-radius: 12px;
  padding: 45px 36px;
}

.culture-quote-mark {
  display: block;
  font-family: Georgia, serif;
  color: var(--ac);
  font-size: 5rem;
  line-height: 1;
}

.culture-quote-card blockquote {
  margin: 10px 0 25px;
  font-family: Georgia, serif;
  color: var(--dp);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
}

.culture-quote-card p {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--ac);
  text-align: left;
}

/* VALUES */

.culture-values {
  background: var(--sf);
}

.culture-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.culture-value-card {
  background: #fff;
  border: 1px solid var(--ln);
  padding: 30px;
  border-radius: 12px;
}

.culture-value-card > span {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  color: var(--ac);
  margin-bottom: 25px;
}

.culture-value-card h3 {
  color: var(--dp);
  font-size: 1.35rem;
}

.culture-value-card p {
  color: var(--mu);
  line-height: 1.8;
  text-align: left;
  hyphens: none;
}

/* NAVIGATION WITH CULTURE LINK */

@media (max-width: 1200px) {
  .desktop-links {
    gap: 10px;
  }

  .desktop-links a {
    font-size: .76rem;
  }
}

@media (max-width: 1050px) {
  .desktop-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

/* TABLET */

@media (max-width: 950px) {
  .culture-intro-grid,
  .culture-development-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

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

/* MOBILE */

@media (max-width: 650px) {
  .culture-hero {
    padding: 70px 0;
  }

  .culture-pillars-grid,
  .culture-values-grid {
    grid-template-columns: 1fr;
  }

  .culture-pillar-card,
  .culture-value-card {
    padding: 25px;
  }

  .culture-quote-card {
    padding: 30px 24px;
  }
}

/* CULTURE — FINAL TYPOGRAPHY */

.culture-hero p,
.culture-intro-grid p,
.culture-development-content p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  word-break: normal;
}

.culture-pillar-card p,
.culture-value-card p {
  text-align: left;
  hyphens: none;
}

.culture-values .section-heading p,
.culture-pillars .section-heading p,
.culture-quote-card p {
  text-align: center;
  hyphens: none;
}

/* Keep final CTA centered without word splitting */
.culture-values + .cta-section p {
  text-align: center;
  hyphens: none;
  word-break: normal;
}

/* ==================================
   CONTACT PAGE — FINAL DESIGN
================================== */

.contact-hero {
  background: linear-gradient(135deg,#EFE4EC,#FAF6F8);
  padding: 85px 0;
}

.contact-hero h1 {
  color: var(--dp);
  max-width: 850px;
}

.contact-hero p {
  font-size: 1.15rem;
  max-width: 690px;
  line-height: 1.8;
  hyphens: none;
}

.contact-section {
  background: #fff;
  padding: 85px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 65px;
  align-items: start;
}

/* CONTACT INFORMATION */

.contact-details h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 24px;
}

.contact-details > p {
  text-align: justify;
  line-height: 1.85;
  hyphens: none;
  margin-bottom: 40px;
}

.contact-info-item {
  border-top: 1px solid var(--ln);
  padding: 23px 0;
}

.contact-info-label {
  display: block;
  color: var(--ac);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.contact-info-item a {
  display: block;
  color: var(--dp);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.contact-info-item a:hover {
  color: var(--ac);
}

.contact-info-item address {
  color: var(--mu);
  font-style: normal;
  line-height: 1.75;
}

.contact-message {
  margin-top: 25px;
  padding: 28px;
  border-radius: 12px;
  background: var(--sf);
  border-left: 4px solid var(--ac);
}

.contact-message h3 {
  color: var(--dp);
}

.contact-message p {
  margin-bottom: 0;
  text-align: left;
}

/* FORM CARD */

.contact-form-card {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 42px);
}

.contact-form-heading h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-form-heading p {
  text-align: left;
  margin-bottom: 15px;
}

.contact-form-heading small {
  color: var(--mu);
}

/* FORM LAYOUT */

.contact-form {
  display: grid;
  max-width: none;
  gap: 22px;
  margin-top: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--dp);
  font-size: .9rem;
  font-weight: 700;
  min-width: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--ln);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--dp);
  outline: 2px solid var(--dp);
  outline-offset: 2px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-privacy {
  font-size: .82rem;
  color: var(--mu);
  text-align: left;
  margin: 0;
  line-height: 1.7;
}

.contact-submit {
  justify-self: start;
  min-height: 48px;
}

.contact-error {
  background: #FFF1EF;
  color: #912717;
  padding: 15px;
  border-radius: 7px;
  margin-top: 25px;
  border: 1px solid #E9B8B0;
}

/* SUCCESS */

.contact-success {
  padding: 45px 10px;
  text-align: center;
}

.success-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--dp);
  color: #fff;
  font-size: 2rem;
  margin-bottom: 25px;
}

.contact-success h2 {
  color: var(--dp);
}

.contact-success p {
  text-align: center;
  margin: 15px auto 28px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 600px) {
  .contact-hero {
    padding: 65px 0;
  }

  .contact-section {
    padding: 55px 0;
  }

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

  .contact-form-card {
    padding: 22px;
  }

  .contact-submit {
    width: 100%;
  }
}

/* CONTACT — FINAL TYPOGRAPHY */

.contact-details > p {
  text-align: left;
  hyphens: none;
  word-spacing: normal;
}

.contact-form-heading p,
.contact-privacy,
.contact-message p {
  text-align: left;
  hyphens: none;
}

.contact-success p {
  text-align: center;
}

/* MOBILE NAVIGATION & RESPONSIVE FIXES */

.site-nav {
  position: relative;
  z-index: 20;
  background: var(--bg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-nav .brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--dp);
  text-decoration: none;
}

.site-nav .brand small {
  margin-top: 5px;
  font-family: system-ui, sans-serif;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--ac);
}

.desktop-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.2vw, 18px);
}

.desktop-links a {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(.75rem, .85vw, .9rem);
  font-weight: 600;
  text-decoration: none;
}

.desktop-links .nav-contact {
  background: var(--dp);
  color: #fff;
  padding: 12px 15px;
  border-radius: 6px;
}

.mobile-menu {
  display: none;
}

/* Prevent horizontal overflow */

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

img {
  max-width: 100%;
}

.grid,
.g3,
.services-page-grid,
.programs-grid,
.technical-services-grid {
  min-width: 0;
}

@media (max-width: 1100px) {
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--ln);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
  }

  .mobile-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--dp);
    border-radius: 2px;
  }

  .desktop-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 14px 22px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--ln);
    box-shadow: 0 12px 22px rgba(30,20,35,.1);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .desktop-links.is-open {
    display: flex;
  }

  .desktop-links a {
    padding: 13px 12px;
    font-size: 1rem;
    white-space: normal;
    margin: 0;
  }

  .desktop-links .nav-contact {
    text-align: center;
    margin-top: 8px;
  }
}

@media (max-width: 650px) {
  .w {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .bar .w {
    justify-content: center;
    text-align: center;
    gap: 5px 14px;
  }

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

  .person-card img {
    max-width: 100%;
  }

  .carousel-track .person-card {
    flex-basis: 100%;
  }
}


/* =====================================
   CORNERSTONE — MOBILE NAVIGATION
   Uses HTML <details> element
===================================== */

.main-nav {
    position: relative;
    z-index: 100;
}

.main-nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (min-width: 1101px) {

    .main-nav .desktop-links {
        display: flex;
    }

    .main-nav .mobile-menu {
        display: none;
    }
}

@media (max-width: 1100px) {

    /* Hide desktop navigation */

    .main-nav .desktop-links {
        display: none !important;
    }

    /* Mobile menu container */

    .main-nav .mobile-menu {
        display: block;
        position: relative;
        flex: 0 0 auto;
        width: auto;
        height: auto;
        min-width: 90px;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
    }

    /* Menu button */

    .main-nav .mobile-menu > summary {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 14px;
        border: 1px solid var(--ln);
        border-radius: 8px;
        background: #fff;
        color: var(--dp);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        list-style: none;
        white-space: nowrap;
    }

    .main-nav .mobile-menu > summary::-webkit-details-marker {
        display: none;
    }

    .main-nav .mobile-menu > summary::before {
        content: "☰";
        margin-right: 8px;
        font-size: 18px;
        line-height: 1;
    }

    .main-nav .mobile-menu[open] > summary::before {
        content: "×";
    }

    /* Dropdown */

    .main-nav .mobile-links {
        display: flex;
        flex-direction: column;
        gap: 0;

        position: absolute;
        top: calc(100% + 8px);
        right: 0;

        width: min(300px, calc(100vw - 36px));
        padding: 12px;

        background: #fff;
        border: 1px solid var(--ln);
        border-radius: 10px;
        box-shadow: 0 12px 30px rgba(30, 20, 35, 0.12);
        z-index: 200;
    }

    .main-nav .mobile-menu:not([open]) .mobile-links {
        display: none;
    }

    .main-nav .mobile-links a {
        display: block;
        padding: 12px 14px;
        border-radius: 6px;
        color: var(--dp);
        font-size: 15px;
        font-weight: 500;
        line-height: 1.4;
        text-decoration: none;
    }

    .main-nav .mobile-links a:hover {
        background: var(--bg);
    }

    .main-nav .mobile-links a:last-child {
        margin-top: 8px;
        background: var(--dp);
        color: #fff;
        text-align: center;
        font-weight: 600;
    }
}

@media (max-width: 650px) {

    .main-nav .nav-inner {
        gap: 12px;
    }

    .main-nav .brand {
        min-width: 0;
    }

    .main-nav .mobile-links {
        max-height: calc(100dvh - 110px);
        overflow-y: auto;
    }
}

/* HOME — MOBILE TEXT ALIGNMENT */

@media (max-width: 650px) {
  .hero .hero-text p {
    text-align: left;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* MOBILE — NATURAL TEXT FLOW */

@media (max-width: 650px) {
  .about-preview p,
  .services-section p,
  .service-card p,
  .values-section p,
  .capacities-section p,
  .technical-section p {
    text-align: left;
    hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
  }
}

/* =====================================
   CORNERSTONE — MOBILE TEXT READABILITY
   Applies to all website pages
===================================== */

@media (max-width: 650px) {

  main p {
    text-align: left !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

}
