/*
Theme Name: CHITA Organizational
Theme URI: https://cebu-it.com
Author: Cebu Hotel IT Association
Description: Public organizational website for the Cebu Hotel IT Association.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: chita
*/

:root {
  color-scheme: light dark;
  --page: #f6f7f7;
  --surface: #ffffff;
  --surface-soft: #eff2f1;
  --surface-strong: #dfe4e2;
  --text: #17201d;
  --text-soft: #414a46;
  --muted: #68716d;
  --brand: #2d614c;
  --brand-strong: #1d4938;
  --brand-soft: #d8e8df;
  --line: #dce1df;
  --line-strong: #c4cbc8;
  --on-brand: #f8fbf9;
  --shadow: 0 20px 55px rgba(28, 70, 54, 0.12);
  --shadow-soft: 0 10px 30px rgba(28, 70, 54, 0.08);
  --radius: 8px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Aptos", "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: var(--on-brand); background: var(--brand); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 72%, transparent); outline-offset: 3px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--page) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 75%, var(--line));
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  font-size: 11px;
  font-weight: 800;
}
.brand-name { overflow: hidden; font-size: 14px; font-weight: 760; line-height: 1.2; white-space: nowrap; }
.brand-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 650; }
.primary-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  display: block;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 680;
  transition: color .2s ease, background-color .2s ease;
}
.primary-nav a:hover { color: var(--brand-strong); background: var(--surface-soft); }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 8px 20px rgba(29, 73, 56, .16);
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--brand-strong); border-color: var(--brand-strong); box-shadow: 0 12px 26px rgba(29, 73, 56, .2); }
.button:active { transform: translateY(0) scale(.98); }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.button-secondary:hover { color: var(--brand-strong); background: var(--surface-soft); border-color: var(--brand); box-shadow: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: clamp(570px, 76dvh, 720px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #f5faf7;
  background: #17392d center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9,31,24,.95) 0%, rgba(9,31,24,.82) 50%, rgba(9,31,24,.28) 82%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(8,28,21,.48), transparent);
}
.hero-content { width: 100%; max-width: var(--max); padding-block: 72px 80px; }
.eyebrow { margin: 0 0 16px; color: #d7e8df; font-size: 12px; font-weight: 760; text-transform: uppercase; }
.hero h1 {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(42px, 4.8vw, 60px);
  font-weight: 720;
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero p:not(.eyebrow) { max-width: 580px; margin: 24px 0 0; color: #e3eee8; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .button { background: #eff7f2; color: #17392d; border-color: #eff7f2; }
.hero .button:hover { background: #ffffff; border-color: #ffffff; }
.hero .button-secondary { color: #f4faf6; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.48); backdrop-filter: blur(10px); }
.hero .button-secondary:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.72); }

.stats-band { border-bottom: 1px solid var(--line); background: var(--surface); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 27px 32px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border: 0; }
.stat strong { display: block; color: var(--brand-strong); font-size: clamp(25px, 3vw, 34px); font-weight: 760; line-height: 1; }
.stat span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 680; }

.section { padding: clamp(76px, 9vw, 120px) 0; }
.section-soft { background: var(--surface-soft); }
.section-leadership { border-block: 1px solid var(--line); background: var(--surface); }
.section-head { max-width: 830px; margin-bottom: 48px; }
.section-head h2, .content-page h1 { margin: 0; font-size: clamp(34px, 4.8vw, 58px); font-weight: 700; line-height: 1.08; text-wrap: balance; }
.section-head p { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feature {
  grid-column: span 5;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.feature-wide { grid-column: span 7; }
.feature-tinted { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 24%, var(--line)); box-shadow: none; }
.feature h3 { max-width: 440px; margin: 0 0 10px; font-size: clamp(21px, 2.4vw, 29px); line-height: 1.2; }
.feature p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(40px, 7vw, 88px); align-items: center; }
.split-media { min-height: 520px; border-radius: var(--radius); background: var(--line) 64% center/cover; box-shadow: var(--shadow); }
.split-copy { max-width: 570px; }
.split-copy h2 { margin: 0; font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; line-height: 1.1; text-wrap: balance; }
.split-copy p { color: var(--muted); }
.check-list { display: grid; gap: 15px; margin: 28px 0 32px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 32px; color: var(--text-soft); }
.check-list li::before { content: ""; position: absolute; top: .55em; left: 3px; width: 12px; height: 7px; border: solid var(--brand); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.cards { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.card:first-child { grid-row: span 2; }
.card:only-child { grid-column: 1 / -1; min-height: 190px; }
.card:only-child .card-body { max-width: 760px; padding: 34px; }
.card:not(:first-child) { display: grid; grid-template-columns: minmax(140px,.72fr) 1.28fr; }
.card-media { width: 100%; height: 100%; min-height: 180px; object-fit: cover; background: var(--surface-strong); }
.card:first-child .card-media { min-height: 310px; aspect-ratio: 16/10; }
.card-body { padding: 26px; }
.card-meta { color: var(--brand); font-size: 12px; font-weight: 760; }
.card h3 { margin: 10px 0 9px; font-size: 22px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card h3 a { transition: color .2s ease; }
.card h3 a:hover { color: var(--brand); }

.officer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.officer { min-height: 145px; display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.officer:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.officer-photo { width: 76px; height: 76px; grid-row: 1 / span 2; border-radius: 50%; object-fit: cover; background: var(--surface-strong); }
.officer h3 { align-self: end; margin: 0; font-size: 19px; }
.officer p { align-self: start; margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.cta-band { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: center; padding-block: 44px; border-block: 1px solid var(--line-strong); }
.cta-band h2 { margin: 0; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.15; }
.cta-band p { margin: 10px 0 0; color: var(--muted); }
.cta-band .hero-actions { margin-top: 0; }

.content-page { padding: 78px 0 110px; }
.content-page article { max-width: 820px; }
.site-footer { padding: 64px 0 26px; border-top: 1px solid var(--line); background: var(--surface); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .7fr; gap: 64px; }
.footer-grid h3 { margin: 0 0 14px; font-size: 15px; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 14px; }
.footer-grid p { max-width: 44ch; }
.footer-grid a:hover { color: var(--brand); }
.footer-links { display: grid; gap: 9px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.feature:nth-child(2), .officer:nth-child(2), .card:nth-child(2) { transition-delay: .06s; }
.feature:nth-child(3), .officer:nth-child(3), .card:nth-child(3) { transition-delay: .12s; }
.feature:nth-child(4), .officer:nth-child(4) { transition-delay: .18s; }

@media (prefers-color-scheme: dark) {
  :root {
    --page: #131716;
    --surface: #1a1f1d;
    --surface-soft: #202624;
    --surface-strong: #2c3330;
    --text: #edf3f0;
    --text-soft: #cedbd4;
    --muted: #a5b5ad;
    --brand: #73ae91;
    --brand-strong: #8dc2a5;
    --brand-soft: #243c31;
    --line: #343b38;
    --line-strong: #48504c;
    --on-brand: #102219;
    --shadow: 0 20px 55px rgba(0,0,0,.24);
    --shadow-soft: 0 10px 30px rgba(0,0,0,.18);
  }
  .site-header { background: rgba(17,24,21,.9); }
  .brand-mark { color: #102219; }
}

@media (max-width: 1080px) {
  .primary-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 12px 24px 22px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-soft); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 2px; }
  .primary-nav a { padding: 12px; font-size: 14px; }
  .header-inner > .button { display: none; }
  .menu-toggle { display: block; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card:first-child { grid-row: auto; }
  .card:not(:first-child) { display: block; }
  .card:not(:first-child) .card-media { min-height: 220px; }
  .card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 66px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-name { max-width: 220px; font-size: 13px; }
  .brand-name small { display: none; }
  .primary-nav { top: 66px; padding-inline: 16px; }
  .hero { min-height: min(680px, calc(100dvh - 66px)); align-items: end; background-position: 62% center; }
  .hero::before { background: linear-gradient(0deg, rgba(8,28,21,.96) 0%, rgba(8,28,21,.72) 70%, rgba(8,28,21,.36) 100%); }
  .hero-content { padding-block: 76px 62px; }
  .hero h1 { font-size: clamp(39px, 12vw, 54px); }
  .hero p:not(.eyebrow) { font-size: 16px; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; padding-block: 8px; }
  .stat, .stat:first-child { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .stat span { margin-top: 0; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head p { font-size: 16px; }
  .feature-grid, .split, .cards, .officer-grid, .footer-grid, .cta-band { grid-template-columns: 1fr; }
  .feature, .feature-wide { grid-column: auto; min-height: 200px; padding: 25px; }
  .split { gap: 38px; }
  .split-media { min-height: 340px; }
  .cards .card, .card:last-child { grid-column: auto; }
  .card:first-child .card-media, .card:not(:first-child) .card-media { min-height: 220px; }
  .officer-grid { gap: 0; }
  .officer:nth-last-child(-n+2) { border-bottom: 0; }
  .officer:last-child { border-bottom: 1px solid var(--line); }
  .cta-band { gap: 24px; }
  .cta-band .hero-actions { width: 100%; }
  .footer-grid { gap: 38px; }
}

@media (max-width: 430px) {
  .brand-name { max-width: 175px; }
  .hero h1 { font-size: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--page); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
