/*
Theme Name: YCWS Official Humanitarian Theme
Theme URI: https://ycws.org
Author: Antigravity & YCWS Engineering
Author URI: https://ycws.org
Description: Official custom responsive WordPress theme for Yayasan Cita Wadah Swadaya (YCWS). Built with modern accessible design, bilingual readiness, interactive mapping, and humanitarian standards.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ycws-theme
*/

/* Reset & CSS Custom Properties */
:root {
  --ycws-primary: #5c2882;
  --ycws-primary-hover: #481d68;
  --ycws-primary-light: #f3e8ff;
  --ycws-primary-soft: #8b5cf6;
  
  --ycws-accent: #f59e0b;
  --ycws-accent-hover: #d97706;
  --ycws-teal: #0d9488;
  --ycws-teal-soft: #ccfbf1;
  
  --ycws-dark: #0f172a;
  --ycws-text: #1e293b;
  --ycws-text-muted: #64748b;
  --ycws-border: #e2e8f0;
  --ycws-bg-light: #f8fafc;
  --ycws-bg-white: #ffffff;

  --ycws-radius-sm: 6px;
  --ycws-radius-md: 12px;
  --ycws-radius-lg: 20px;
  --ycws-radius-full: 9999px;
  
  --ycws-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --ycws-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --ycws-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --ycws-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --ycws-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  font-family: var(--ycws-font-main);
  line-height: 1.6;
  color: var(--ycws-text);
  background-color: var(--ycws-bg-light);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

main {
  flex: 1;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

a {
  color: var(--ycws-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--ycws-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ycws-dark);
  font-weight: 700;
  line-height: 1.25;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container-narrow {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-gray {
  background-color: #f1f5f9;
}

.section-dark {
  background-color: var(--ycws-dark);
  color: #f8fafc;
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: var(--ycws-primary);
  background: var(--ycws-primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--ycws-radius-full);
  margin-bottom: 0.75rem;
}

.section-badge.badge-accent {
  color: #b45309;
  background: #fef3c7;
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--ycws-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--ycws-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1.25;
}

.btn-primary {
  background-color: var(--ycws-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(92, 40, 130, 0.35);
}

.btn-primary:hover {
  background-color: var(--ycws-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(92, 40, 130, 0.45);
}

.btn-accent {
  background-color: var(--ycws-accent);
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
  background-color: var(--ycws-accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--ycws-primary);
  color: var(--ycws-primary) !important;
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--ycws-primary);
  color: #ffffff !important;
}

.btn-white {
  background-color: #ffffff;
  color: var(--ycws-primary) !important;
  font-weight: 700;
  box-shadow: var(--ycws-shadow-md);
}

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
}

.btn-white-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
  background: transparent;
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--ycws-radius-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--ycws-radius-md);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3.5rem 0;
  }
}
