/* PRACHIYSO — modern site stylesheet */

:root {
  --color-primary: #14675a;
  --color-primary-dark: #0d4c42;
  --color-primary-darker: #082e28;
  --color-primary-light: #e6f0ee;
  --color-accent: #ef8354;
  --color-accent-dark: #d96a3a;
  --color-text: #1f2a28;
  --color-text-muted: #5c6b68;
  --color-bg: #fbfaf8;
  --color-surface: #ffffff;
  --color-border: #e7e3dd;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 10px rgba(20, 30, 28, 0.07);
  --shadow-md: 0 14px 34px rgba(15, 40, 34, 0.12);
  --shadow-lg: 0 26px 60px rgba(10, 30, 26, 0.18);
  --container: 1160px;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--color-primary-dark);
}

p { margin: 0 0 1em; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 { font-size: 2.1rem; }
.section-head p { color: var(--color-text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.bg-alt { background: var(--color-primary-light); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 10px 24px rgba(239, 131, 84, 0.35); }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(239, 131, 84, 0.4); }
.btn-outline { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.55); color: #fff; backdrop-filter: blur(4px); }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--color-primary-dark); transform: translateY(-2px); }
.btn-line { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-line:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.85);
  backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--color-primary-dark);
}
.brand .mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--color-border), var(--shadow-sm);
  flex-shrink: 0;
}
.brand .mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: scale(1.5);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.nav-links .active > a {
  background: var(--color-primary-dark);
  color: #fff;
}

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 10px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a { border-radius: var(--radius-sm); white-space: nowrap; }

/* Hero */
.hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(239, 131, 84, 0.28), transparent 60%),
    linear-gradient(200deg, rgba(8, 46, 40, 0.92) 10%, rgba(13, 76, 66, 0.72) 55%, rgba(8, 46, 40, 0.88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero .breadcrumb {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.hero .breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-bottom: 0.42em;
}
.hero p.lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.08rem;
  opacity: 0.92;
}
.hero-home { min-height: 580px; }
.hero-home .eyebrow-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}

/* Stat / intro cards */
.stat-strip {
  margin-top: -72px;
  position: relative;
  z-index: 2;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 30px;
  text-align: center;
  position: relative;
}
.stat-card.accent { background: linear-gradient(155deg, var(--color-primary), var(--color-primary-dark)); color: #fff; }
.stat-card.accent.warm { background: linear-gradient(155deg, var(--color-accent), var(--color-accent-dark)); }
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.stat-card.accent .stat-icon { background: rgba(255,255,255,0.16); color: #fff; }
.stat-card .stat-icon svg { width: 24px; height: 24px; }
.stat-card .num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}
.stat-card.accent .num { color: #fff; }
.stat-card small { color: var(--color-text-muted); }
.stat-card.accent small { color: rgba(255,255,255,0.85); }
.stat-card.accent .btn { margin-top: 16px; }

/* Card grid (services / projects / causes) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--color-primary-light), #fff);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(20,103,90,0.08);
}
.card .icon svg { width: 26px; height: 26px; }

.cause-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cause-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cause-card .img {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.cause-card:hover .img { transform: scale(1.08); }
.cause-card .body { padding: 24px 26px; }
.cause-card .body h3 { font-size: 1.15rem; }
.cause-card .body p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* Two-column project list */
.project-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.project-cols > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.project-cols h3 {
  font-size: 1.15rem;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-primary-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-cols ul { list-style: none; margin: 20px 0 0; padding: 0; }
.project-cols li {
  position: relative;
  padding: 9px 0 9px 30px;
  color: var(--color-text);
}
.project-cols li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-primary-light);
}
.project-cols li::after {
  content: "";
  position: absolute;
  left: 5px; top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Event / blog entry */
.entry {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.entry:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.entry .thumb {
  height: 190px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.entry:hover .thumb { transform: scale(1.06); }
.entry .body { padding: 26px; }
.entry .body h3 { font-size: 1.1rem; }
.entry .body p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.gallery-grid a {
  position: relative;
  display: block;
  height: 230px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,46,40,0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-grid a::before {
  content: "";
  position: absolute;
  right: 16px; bottom: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d4c42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / 16px;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.25s ease;
  z-index: 1;
}
.gallery-grid a:hover::after,
.gallery-grid a:hover::before { opacity: 1; transform: none; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Long-form content */
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.2rem; }
.prose p { color: var(--color-text); }
.prose .label {
  display: block;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 30px 0 8px;
  font-family: var(--font-heading);
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.target-grid span {
  display: block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.target-grid span:hover { background: var(--color-primary); color: #fff; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.contact-card .icon svg { width: 22px; height: 22px; }

/* Person / secretary card */
.person {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}
.person img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.person h3 { margin-bottom: 2px; font-size: 1.3rem; }
.person .role { color: var(--color-accent); font-weight: 600; display: block; margin-bottom: 22px; }

/* Footer */
.site-footer {
  position: relative;
  background: linear-gradient(175deg, var(--color-primary-dark), var(--color-primary-darker));
  color: rgba(255,255,255,0.85);
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.site-footer p, .site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; }
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a svg { width: 18px; height: 18px; }
.social-row a:hover { background: var(--color-accent); transform: translateY(-3px); }
.footer-bottom {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person img { max-width: 260px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    box-shadow: none; border: 1px solid var(--color-border);
    margin-top: 4px;
  }
  .has-dropdown.open .dropdown { display: block; }
  .stat-strip { margin-top: 28px; }
  section { padding: 64px 0; }
}
