/*
Theme Name: SAH Foundation
Theme URI: https://sahfoundation.or.id
Author: SAH Foundation
Description: Custom theme for SAH Foundation, built to match the Claude Design mockup 1:1 — colors, typography, layout, and interactions.
Version: 1.0.0
Text Domain: sah-foundation
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #FFFFFF;
	font-family: 'Manrope', system-ui, sans-serif;
	color: #10140F;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #FF6B35; text-decoration: none; }
a:hover { color: #0E5C46; }
button { font-family: inherit; }
::selection { background: #0E5C46; color: #fff; }

@keyframes sahFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sahMenu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.sah-fade { animation: sahFade .5s ease; }
.sah-menu-anim { animation: sahMenu .2s ease; }

/* image placeholder — matches the mockup's unfilled image-slot look */
.sah-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sah-img-placeholder {
	width: 100%; height: 100%;
	background: repeating-linear-gradient(45deg, #E7EEE5 0 12px, #DCE3D6 12px 24px);
	display: flex; align-items: center; justify-content: center; text-align: center;
	padding: 16px;
}
.sah-img-placeholder span {
	font: 500 13px/1.4 'Manrope', sans-serif; color: #6B7268; max-width: 240px;
}

/* buttons */
.sah-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 'Manrope', sans-serif; padding: 15px 28px; border-radius: 8px; border: none; cursor: pointer; }
.sah-btn-dark { background: #1B3311; color: #fff; }
.sah-btn-dark:hover { background: #264617; color: #fff; }
.sah-btn-outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,.7); color: #fff; padding: 15.5px 28px; }
.sah-btn-outline-white:hover { background: rgba(255,255,255,.16); color: #fff; }
.sah-btn-primary { background: #0E5C46; color: #fff; padding: 14px 26px; }
.sah-btn-primary:hover { background: #0A4736; color: #fff; }
.sah-btn-outline-primary { background: transparent; border: 1.5px solid #0E5C46; color: #0E5C46; padding: 13.5px 26px; }
.sah-btn-outline-primary:hover { background: #DBF2E7; }
.sah-btn-white { background: #fff; color: #0E5C46; padding: 15px 28px; }
.sah-btn-white:hover { background: #EDF2E9; color: #0E5C46; }
.sah-btn-transparent-onwhite { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5); color: #fff; padding: 15px 28px; }
.sah-btn-transparent-onwhite:hover { background: rgba(255,255,255,.24); color: #fff; }

/* nav */
.sah-nav-link { padding: 9px 13px; border-radius: 8px; font: 600 14px/1 'Manrope', sans-serif; white-space: nowrap; }
.sah-nav-link.is-transparent { color: #fff; }
.sah-nav-link.is-transparent:hover, .sah-nav-link.is-transparent.is-active { background: rgba(255,255,255,.2); }
.sah-nav-link.is-solid { color: #495047; }
.sah-nav-link.is-solid:hover { background: #EEF1EA; }
.sah-nav-link.is-solid.is-active { color: #0E5C46; background: #DBF2E7; }
.sah-nav-cta { margin-left: 8px; display: inline-flex; align-items: center; font: 600 14px/1 'Manrope', sans-serif; padding: 11px 20px; border-radius: 8px; }
.sah-nav-cta.is-transparent { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(4px); }
.sah-nav-cta.is-transparent:hover { background: #0A4736; color: #fff; }
.sah-nav-cta.is-solid { background: #1B3311; color: #fff; }
.sah-nav-cta.is-solid:hover { background: #264617; color: #fff; }

/* cards */
.sah-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #DEE4D8; border-radius: 14px; overflow: hidden; color: #10140F; transition: transform .18s ease, box-shadow .18s ease; }
.sah-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,33,27,.12); }
.sah-card-flat:hover { box-shadow: 0 14px 34px rgba(31,33,27,.1); }

/* pills */
.sah-pill { flex: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid #D2D7C9; background: #fff; color: #0E5C46; font: 600 14px/1 'Manrope', sans-serif; cursor: pointer; }
.sah-pill.is-active { border-color: #0E5C46; background: #0E5C46; color: #fff; }

/* social icons */
.sah-social { width: 38px; height: 38px; border-radius: 999px; border: 1px solid #2A3128; background: rgba(255,255,255,.03); display: flex; align-items: center; justify-content: center; color: #C9Cabf; }
.sah-social:hover { background: #1B3311; border-color: #264617; color: #fff; }

/* timeline card */
.sah-ms-card { background: #fff; border: 1px solid #DEE4D8; border-radius: 14px; padding: clamp(18px,2.4vw,24px); box-shadow: 0 1px 2px rgba(16,20,15,.04), 0 10px 22px rgba(16,20,15,.05); transform: perspective(1200px) rotateX(2deg); transform-origin: bottom center; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease; cursor: default; }
.sah-ms-card:hover { transform: perspective(1200px) rotateX(0deg) translateY(-8px); box-shadow: 0 2px 4px rgba(16,20,15,.06), 0 26px 40px rgba(16,20,15,.14); border-color: #FF6B35; }

/* form focus */
.sah-input { width: 100%; border: 1.5px solid #DADFD3; border-radius: 8px; padding: 12px 14px; font: 400 15px 'Manrope', sans-serif; background: #fff; margin-bottom: 16px; }
.sah-input:focus { border-color: #0E5C46; outline: none; }
.sah-input-dark { flex: 1; min-width: 180px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 8px; padding: 13px 16px; font: 400 14px 'Manrope', sans-serif; background: rgba(255,255,255,.12); color: #fff; }
.sah-input-dark:focus { border-color: #fff; outline: none; }

/* lang / device toggle (bottom-fixed) */
.sah-toggle-wrap { position: fixed; bottom: 20px; z-index: 200; display: flex; gap: 4px; background: #fff; padding: 5px; border-radius: 999px; box-shadow: 0 8px 28px rgba(0,0,0,.2); border: 1px solid #DEE4D8; }
.sah-toggle-btn { padding: 6px 11px; border-radius: 999px; border: none; cursor: pointer; font: 700 12px/1 'Manrope', sans-serif; background: transparent; color: #495047; }
.sah-toggle-btn.is-active { background: #0E5C46; color: #fff; }

/* mobile menu */
.sah-menu-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 999px; background: #EEF1EA; border: 1px solid #DEE4D8; cursor: pointer; flex: none; }
.sah-menu-btn.is-transparent { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.sah-menu-bar { width: 20px; height: 2px; border-radius: 2px; background: #10140F; display: block; }
.sah-menu-bar.is-transparent { background: #fff; }

/* offsets anchor-link scrolling (e.g. footer "Visi & Misi" / "Legalitas" links)
   so the sticky header doesn't cover the target section's top */
#visi-misi, #legalitas { scroll-margin-top: 90px; }

@media (max-width: 900px) {
	.sah-desktop-nav { display: none !important; }
}
@media (min-width: 901px) {
	.sah-mobile-menu-btn { display: none !important; }
}
