/*
Theme Name: CMSEOK Modern
Theme URI: http://localhost/cmseokenyachapter.com/
Author: CMSEOK
Description: A fast, accessible and modern custom theme for CMSEOK.
Version: 1.0.0
Text Domain: cmseok-modern
*/

:root {
  --cm-ink: #13243a;
  --cm-ink-soft: #445268;
  --cm-green: #087a5b;
  --cm-green-dark: #075e49;
  --cm-green-light: #e6f4ef;
  --cm-gold: #e8a928;
  --cm-red: #c83d3d;
  --cm-blue: #1e5d9c;
  --cm-cream: #faf8f2;
  --cm-white: #ffffff;
  --cm-line: #dfe7e4;
  --cm-shadow: 0 18px 45px rgba(19, 36, 58, 0.11);
  --cm-radius: 22px;
  --cm-container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cm-ink);
  background: var(--cm-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--cm-green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cm-red);
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--cm-ink);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
  margin: 0 0 1.15em;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--cm-white);
  background: var(--cm-ink);
  border-radius: 8px;
}

.cm-container {
  width: min(calc(100% - 40px), var(--cm-container));
  margin-inline: auto;
}

.cm-topbar {
  color: rgba(255, 255, 255, 0.88);
  background: var(--cm-ink);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.cm-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
}

.cm-topbar__group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cm-topbar a {
  color: inherit;
  text-decoration: none;
}

.cm-topbar a:hover {
  color: var(--cm-gold);
}

.cm-site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(19, 36, 58, 0.08);
  backdrop-filter: blur(14px);
}

.admin-bar .cm-site-header {
  top: 32px;
}

.cm-nav-shell {
  display: flex;
  align-items: center;
  min-height: 84px;
  gap: 28px;
}

.cm-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-right: auto;
  color: var(--cm-ink);
  text-decoration: none;
}

.cm-brand:hover {
  color: var(--cm-ink);
}

.cm-brand img {
  width: 60px;
  height: 58px;
  object-fit: contain;
}

.cm-brand__name {
  max-width: 215px;
  font-size: 0.77rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.cm-primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cm-primary-nav a {
  display: block;
  padding: 12px 13px;
  color: var(--cm-ink);
  border-radius: 10px;
  font-size: 0.91rem;
  font-weight: 720;
  text-decoration: none;
}

.cm-primary-nav a:hover,
.cm-primary-nav .current-menu-item > a,
.cm-primary-nav .current_page_item > a {
  color: var(--cm-green-dark);
  background: var(--cm-green-light);
}

.cm-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--cm-ink);
  background: var(--cm-white);
  border: 1px solid var(--cm-line);
  border-radius: 12px;
  cursor: pointer;
}

.cm-nav-toggle span,
.cm-nav-toggle span::before,
.cm-nav-toggle span::after {
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 10px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.cm-nav-toggle span {
  position: relative;
}

.cm-nav-toggle span::before,
.cm-nav-toggle span::after {
  position: absolute;
  left: 0;
  content: "";
}

.cm-nav-toggle span::before { top: -7px; }
.cm-nav-toggle span::after { top: 7px; }

.cm-nav-toggle[aria-expanded="true"] span { background: transparent; }
.cm-nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.cm-nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.cm-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  color: var(--cm-white);
  background: var(--cm-green);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(8, 122, 91, 0.22);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cm-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  color: var(--cm-white);
  background: var(--cm-green-dark);
  box-shadow: 0 14px 30px rgba(8, 122, 91, 0.28);
  transform: translateY(-2px);
}

.cm-button--light {
  color: var(--cm-ink);
  background: var(--cm-white);
  box-shadow: none;
}

.cm-button--light:hover {
  color: var(--cm-ink);
  background: #f0f7f5;
}

.cm-button--outline {
  color: var(--cm-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.cm-button--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cm-hero {
  position: relative;
  display: grid;
  min-height: 720px;
  align-items: center;
  overflow: hidden;
  color: var(--cm-white);
  background-color: #091a30;
  background-image: linear-gradient(90deg, rgba(5, 20, 40, 0.94) 0%, rgba(5, 25, 45, 0.79) 48%, rgba(5, 20, 40, 0.28) 100%), var(--cm-hero-image);
  background-position: center;
  background-size: cover;
}

.cm-hero::after {
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 440px;
  height: 440px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.04), 0 0 0 140px rgba(255, 255, 255, 0.025);
}

.cm-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 110px;
}

.cm-hero__content {
  max-width: 760px;
}

.cm-hero h1,
.cm-hero p {
  color: var(--cm-white);
}

.cm-hero p {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.cm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--cm-green-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cm-hero .cm-eyebrow,
.cm-cta .cm-eyebrow,
.cm-page-hero .cm-eyebrow {
  color: #ffd977;
}

.cm-eyebrow::before {
  width: 32px;
  height: 3px;
  content: "";
  background: currentColor;
  border-radius: 20px;
}

.cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.cm-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.cm-proof__item {
  padding-right: 24px;
}

.cm-proof strong {
  display: block;
  color: var(--cm-white);
  font-size: 1.2rem;
}

.cm-proof span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.cm-section {
  padding-block: clamp(76px, 9vw, 120px);
}

.cm-section--soft {
  background: var(--cm-cream);
}

.cm-section--tint {
  background: var(--cm-green-light);
}

.cm-section__head {
  max-width: 720px;
  margin-bottom: 50px;
}

.cm-section__head--center {
  margin-inline: auto;
  text-align: center;
}

.cm-section__head--center .cm-eyebrow {
  justify-content: center;
}

.cm-section__head p {
  color: var(--cm-ink-soft);
  font-size: 1.06rem;
}

.cm-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
}

.cm-split--reverse > :first-child {
  order: 2;
}

.cm-image-card {
  position: relative;
}

.cm-image-card::before {
  position: absolute;
  z-index: -1;
  top: -18px;
  left: -18px;
  width: 55%;
  height: 55%;
  content: "";
  background: var(--cm-gold);
  border-radius: var(--cm-radius) 0 0 0;
}

.cm-image-card img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
}

.cm-lead {
  color: var(--cm-ink-soft);
  font-size: 1.12rem;
}

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

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

.cm-card {
  height: 100%;
  padding: clamp(25px, 3vw, 34px);
  background: var(--cm-white);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
  box-shadow: 0 8px 28px rgba(19, 36, 58, 0.05);
}

.cm-card p:last-child {
  margin-bottom: 0;
}

.cm-card__number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--cm-white);
  background: var(--cm-green);
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 850;
}

.cm-card--accent {
  color: var(--cm-white);
  background: var(--cm-green-dark);
  border-color: transparent;
}

.cm-card--accent h3,
.cm-card--accent p {
  color: inherit;
}

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

.cm-value {
  position: relative;
  min-height: 250px;
  padding: 32px;
  overflow: hidden;
  background: var(--cm-white);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
}

.cm-value::after {
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 95px;
  height: 95px;
  content: "";
  background: var(--cm-green-light);
  border-radius: 50%;
}

.cm-value p {
  color: var(--cm-ink-soft);
  font-size: 0.94rem;
  line-height: 1.62;
}

.cm-page-hero {
  position: relative;
  overflow: hidden;
  color: var(--cm-white);
  background: linear-gradient(130deg, var(--cm-ink) 0%, #103f48 100%);
}

.cm-page-hero::before,
.cm-page-hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.cm-page-hero::before {
  top: -160px;
  right: 4vw;
  width: 390px;
  height: 390px;
  background: rgba(232, 169, 40, 0.12);
}

.cm-page-hero::after {
  right: -100px;
  bottom: -210px;
  width: 440px;
  height: 440px;
  border: 80px solid rgba(8, 122, 91, 0.22);
}

.cm-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-block: clamp(82px, 10vw, 132px);
}

.cm-page-hero h1 {
  color: var(--cm-white);
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.cm-page-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.14rem;
}

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

.cm-vision-card {
  padding: clamp(32px, 5vw, 54px);
  border-radius: var(--cm-radius);
}

.cm-vision-card:first-child {
  background: var(--cm-green-light);
}

.cm-vision-card:last-child {
  color: var(--cm-white);
  background: var(--cm-ink);
}

.cm-vision-card:last-child h2,
.cm-vision-card:last-child p {
  color: inherit;
}

.cm-role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: role;
}

.cm-role-list li {
  position: relative;
  min-height: 170px;
  padding: 30px 30px 30px 94px;
  background: var(--cm-white);
  border: 1px solid var(--cm-line);
  border-radius: 18px;
  counter-increment: role;
}

.cm-role-list li::before {
  position: absolute;
  top: 30px;
  left: 28px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  content: counter(role, decimal-leading-zero);
  color: var(--cm-white);
  background: var(--cm-green);
  border-radius: 13px;
  font-size: 0.77rem;
  font-weight: 850;
}

.cm-role-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

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

.cm-program {
  padding: 32px;
  background: var(--cm-white);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
}

.cm-program:nth-child(2),
.cm-program:nth-child(5) {
  background: var(--cm-green-light);
}

.cm-program p {
  color: var(--cm-ink-soft);
  font-size: 0.94rem;
}

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

.cm-story {
  overflow: hidden;
  background: var(--cm-white);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
}

.cm-story img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.cm-story figcaption {
  padding: 20px 24px;
  color: var(--cm-ink-soft);
  font-size: 0.92rem;
  font-weight: 720;
}

.gallery {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 !important;
}

.gallery-item {
  width: auto !important;
  margin: 0 !important;
  overflow: hidden;
  background: #eef3f1;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0 !important;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.cm-contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 7vw, 76px);
  align-items: start;
}

.cm-contact-cards {
  display: grid;
  gap: 14px;
}

.cm-contact-card {
  padding: 24px;
  background: var(--cm-cream);
  border-radius: 16px;
}

.cm-contact-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--cm-green-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cm-contact-card a,
.cm-contact-card strong {
  color: var(--cm-ink);
  font-size: 0.98rem;
  text-decoration: none;
}

.cm-form-card {
  padding: clamp(28px, 5vw, 48px);
  background: var(--cm-white);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
}

.wpforms-container {
  margin: 0 !important;
}

.wpforms-container .wpforms-field {
  padding: 9px 0 !important;
}

.wpforms-container label {
  color: var(--cm-ink) !important;
  font-size: 0.86rem !important;
  font-weight: 760 !important;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container textarea,
.wpforms-container select {
  width: 100% !important;
  max-width: none !important;
  padding: 13px 15px !important;
  color: var(--cm-ink) !important;
  background: #f8faf9 !important;
  border: 1px solid #d7e1dd !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
  border-color: var(--cm-green) !important;
  outline: 3px solid rgba(8, 122, 91, 0.12) !important;
}

.cm-cta {
  position: relative;
  overflow: hidden;
  color: var(--cm-white);
  background: var(--cm-green-dark);
}

.cm-cta::after {
  position: absolute;
  top: -100px;
  right: 3vw;
  width: 330px;
  height: 330px;
  content: "";
  border: 70px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.cm-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: clamp(64px, 8vw, 90px);
}

.cm-cta h2 {
  max-width: 700px;
  margin: 0;
  color: var(--cm-white);
}

.cm-site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #0b1929;
}

.cm-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.65fr 0.9fr;
  gap: clamp(40px, 7vw, 90px);
  padding-block: 72px 54px;
}

.cm-footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}

.cm-footer-brand img {
  width: 64px;
  height: 62px;
  object-fit: contain;
}

.cm-footer-brand strong {
  max-width: 280px;
  color: var(--cm-white);
  font-size: 0.91rem;
  line-height: 1.35;
}

.cm-footer-copy {
  max-width: 520px;
  margin: 0;
  font-size: 0.92rem;
}

.cm-site-footer h3 {
  margin-bottom: 22px;
  color: var(--cm-white);
  font-size: 0.83rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cm-site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.cm-site-footer li + li {
  margin-top: 10px;
}

.cm-site-footer a {
  color: inherit;
  text-decoration: none;
}

.cm-site-footer a:hover {
  color: var(--cm-gold);
}

.cm-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.cm-empty {
  min-height: 45vh;
  padding-block: 100px;
}

:focus-visible {
  outline: 3px solid var(--cm-gold);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .cm-nav-toggle { display: inline-flex; }

  .cm-header-cta { display: none; }

  .cm-primary-nav {
    position: fixed;
    z-index: 999;
    top: 126px;
    right: 0;
    left: 0;
    display: none;
    height: calc(100vh - 126px);
    padding: 24px 20px;
    background: var(--cm-white);
  }

  .admin-bar .cm-primary-nav { top: 158px; }

  .cm-primary-nav.is-open { display: block; }

  .cm-primary-nav ul {
    width: min(100%, 560px);
    margin-inline: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .cm-primary-nav a {
    padding: 15px 16px;
    font-size: 1.05rem;
  }

  .cm-split,
  .cm-contact-grid {
    grid-template-columns: 1fr;
  }

  .cm-split--reverse > :first-child { order: initial; }

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

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

  .cm-footer-grid { grid-template-columns: 1.4fr 0.6fr; }
  .cm-footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  .admin-bar .cm-site-header { top: 46px; }
  .admin-bar .cm-primary-nav { top: 172px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }

  .cm-container { width: min(calc(100% - 30px), var(--cm-container)); }

  .cm-topbar__inner { justify-content: center; min-height: 38px; }
  .cm-topbar__group { gap: 12px; }
  .cm-topbar__group span:nth-child(2),
  .cm-topbar__message { display: none; }

  .cm-nav-shell { min-height: 74px; }
  .cm-brand img { width: 50px; height: 48px; }
  .cm-brand__name { max-width: 175px; font-size: 0.67rem; }

  .cm-primary-nav { top: 112px; height: calc(100vh - 112px); }
  .admin-bar .cm-primary-nav { top: 158px; }

  .cm-hero {
    min-height: 660px;
    background-image: linear-gradient(90deg, rgba(5, 20, 40, 0.95), rgba(5, 25, 45, 0.72)), var(--cm-hero-image-mobile, var(--cm-hero-image));
    background-position: 62% center;
  }

  .cm-hero__inner { padding-block: 80px; }
  .cm-proof { grid-template-columns: 1fr; gap: 16px; margin-top: 44px; }
  .cm-proof__item { padding-right: 0; }

  .cm-cards,
  .cm-cards--3,
  .cm-values,
  .cm-vision-grid,
  .cm-role-list,
  .cm-program-grid,
  .cm-stories,
  .cm-footer-grid {
    grid-template-columns: 1fr;
  }

  .cm-role-list li:last-child:nth-child(odd),
  .cm-footer-grid > :last-child {
    grid-column: auto;
  }

  .cm-value { min-height: auto; }
  .cm-story img { height: 260px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cm-cta__inner { align-items: flex-start; flex-direction: column; }
  .cm-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

