/* IFGF Malang Raya — krem hangat, sage, biru langit (mengikuti nuansa Instagram) */
:root {
  --cream: #f6efe4;
  --paper: #fbf8f2;
  --sand: #ece1cf;
  --brown: #4a3a2c;
  --brown-2: #6b5643;
  --ink: #3a3029;
  --muted: #7a6c5f;
  --sage: #9fb3a5;
  --sage-2: #7d9785;
  --sage-dark: #4f6a58;
  --sky: #6aa3dc;
  --sky-deep: #2f6db5;
  --terra: #c8643b;
  --radius: 18px;
  --shadow: 0 10px 30px -18px rgba(74, 58, 44, .45);
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Sacramento', 'Brush Script MT', cursive;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.1; color: var(--brown); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brown); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }

.display { font-family: var(--display); font-weight: 600; letter-spacing: .01em; }
.script { font-family: var(--script); font-weight: 400; color: var(--brown-2); line-height: 1; }
.kicker { font-size: 2.1rem; margin: 0 0 .1em; }
.kicker.light, .light { color: #fff; }
.lead { font-size: 1.12rem; color: var(--brown-2); max-width: 40em; }
.h2 { font-size: clamp(2rem, 6vw, 2.8rem); }
.h3 { font-size: 1.7rem; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(246, 239, 228, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 4px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.brand img { border-radius: 50%; }
.brand b { font-weight: 800; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--brown-2); font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--sand); color: var(--brown); }
.nav a[aria-current="page"] { background: var(--brown); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-brown { background: var(--brown); color: #fff; }
.btn-brown:hover { background: #3a2d22; color: #fff; }
.btn-sage { background: var(--sage-dark); color: #fff; }
.btn-sage:hover { background: #3f5747; color: #fff; }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: .88rem; white-space: nowrap; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-row.centered { justify-content: center; }

/* Hero */
.hero { padding: 28px 0 40px; background: radial-gradient(120% 80% at 80% 0%, #fdf8ef 0%, var(--cream) 60%); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-script { font-size: clamp(2.6rem, 10vw, 3.6rem); margin: 0; }
.hero-title { font-size: clamp(3.2rem, 15vw, 7.5rem); text-transform: uppercase; margin: -.05em 0 .15em; line-height: .9; letter-spacing: .02em; }
.next-card { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); max-width: 30em; }
.next-label { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; color: var(--sage-dark); margin: 0 0 4px; }
.next-when { font-family: var(--display); font-size: clamp(1.3rem, 5.4vw, 1.6rem); font-weight: 700; color: var(--brown); margin: 0; line-height: 1.2; }
.next-where { margin: 2px 0 6px; }
.next-kids { margin: 0; font-size: .92rem; color: var(--muted); }
.kids-badge { display: inline-block; background: linear-gradient(90deg, #f2b84b, #e7736b, #7fb1e3); color: #fff; font-weight: 800; border-radius: 6px; padding: 0 6px; font-size: .78rem; margin-right: 4px; }
.poster { border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(74, 58, 44, .55); max-width: 420px; margin: 0 auto; width: 100%; }
.hero-logo { width: 220px; margin: 0 auto; border-radius: 50%; box-shadow: var(--shadow); }

/* Sections */
.section { padding: 48px 0; }
.soft { background: var(--paper); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.link-more { font-weight: 700; }
.page-head { padding: 36px 0 26px; background: linear-gradient(180deg, #fdf8ef, var(--cream)); border-bottom: 1px solid var(--sand); }
.page-head h1 { font-size: clamp(2.6rem, 11vw, 4.4rem); text-transform: uppercase; letter-spacing: .02em; }
.mountains { display: block; width: 100%; height: 60px; color: var(--sage); margin-bottom: -1px; }

.welcome { color: #fff; }
.welcome-in { background: var(--sage); padding: 18px 0 48px; }
.welcome-in p { font-size: 1.08rem; }
.welcome-in .kicker { font-size: 2.3rem; }
.hero-grid > *, .two-col > *, .welcome-grid > *, .event-body, .event-wrap > * { min-width: 0; }
body { overflow-x: hidden; }
.head-row .brand { min-width: 0; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.welcome-grid { display: grid; gap: 24px; align-items: center; }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.welcome .photo { aspect-ratio: 16 / 10; }

/* Events */
.events { display: grid; gap: 14px; }
.event { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.event-date { flex: none; width: 66px; height: 66px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--sage); color: #fff; }
.ev-sundays .event-date { background: var(--brown); }
.ev-kids .event-date { background: var(--sky-deep); }
.ev-special .event-date { background: var(--terra); }
.event-date .d { font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.event-date .m { text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; font-weight: 800; }
.event-type { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: var(--sage-dark); }
.event h3 { font-family: var(--display); font-size: 1.55rem; margin: 0 0 2px; }
.event-meta { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.event-body p:last-child { margin-bottom: 0; }
.event-wrap { display: grid; gap: 10px; }
.poster-thumb img { border-radius: 14px; max-height: 520px; width: auto; box-shadow: var(--shadow); }
.month { margin-top: 10px; }
.past { margin-top: 30px; }
.past summary { cursor: pointer; font-weight: 700; color: var(--brown-2); margin-bottom: 12px; }
.muted-events .event { opacity: .7; }

/* Tiles */
.tiles { display: grid; gap: 14px; }
.tile { display: block; border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.tile:hover { transform: translateY(-2px); color: var(--ink); }
.tile .script { font-size: 1.9rem; margin: 0; }
.tile h3 { font-size: 2.3rem; text-transform: uppercase; margin: 0 0 6px; }
.tile p:last-child { margin: 0; }
.tile-cream { background: #f3e6d2; }
.tile-sage { background: var(--sage); color: #fff; }
.tile-sage h3, .tile-sage .script, .tile-sky h3, .tile-sky .script, .tile-terra h3, .tile-terra .script { color: #fff; }
.tile-sage:hover, .tile-sky:hover, .tile-terra:hover { color: #fff; }
.tile-sky { background: linear-gradient(160deg, var(--sky), var(--sky-deep)); color: #fff; }
.tile-terra { background: linear-gradient(160deg, #d77c52, #b2552f); color: #fff; }

.two-col { display: grid; gap: 22px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.soft .card { background: #fff; }
blockquote { margin: 0 0 20px; padding: 4px 0 4px 18px; border-left: 3px solid var(--sage); font-family: var(--display); font-size: 1.35rem; color: var(--brown-2); font-style: italic; }
blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; color: var(--muted); }
.mission .photo { max-height: 520px; }
.ig { background: linear-gradient(180deg, var(--cream), #e6eef6); }

/* Facts, map */
.facts { margin: 0 0 12px; display: grid; gap: 12px; }
.facts div { background: var(--paper); border: 1px solid var(--sand); border-radius: 14px; padding: 12px 16px; }
.facts dt { text-transform: uppercase; font-size: .72rem; letter-spacing: .14em; font-weight: 800; color: var(--sage-dark); }
.facts dd { margin: 2px 0 0; font-size: 1.05rem; }
.facts dd p { margin: 0; }
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); aspect-ratio: 4 / 3; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* iCare */
.groups { display: grid; gap: 16px; margin: 20px 0; }
.group { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding: 0 0 6px; }
.group img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 14px; }
.group h3, .group p { padding: 0 18px; }
.group h3 { font-size: 1.8rem; margin-top: 14px; }
.group img + h3 { margin-top: 0; }

/* About */
.leaders .photo { max-width: 360px; margin: 0 auto; aspect-ratio: 3 / 4; object-position: top; }
.pillars { display: grid; gap: 14px; margin-bottom: 30px; }
.pillars > div { border-top: 3px solid var(--sage); padding-top: 12px; }

/* Forms */
.form { display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.soft .form { background: #fff; }
.form label { display: grid; gap: 6px; font-weight: 700; color: var(--brown); }
.form .opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); width: 100%; padding: 12px 14px; border: 1.5px solid #d9ccb8; border-radius: 12px; background: #fff; min-height: 48px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--sage-dark); outline: none; box-shadow: 0 0 0 3px rgba(125, 151, 133, .25); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.form .check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--sage-dark); }
.form .btn { justify-self: start; }
.form .small { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info-mini { margin-bottom: 16px; padding: 14px 18px; }
.info-mini p { margin: 0 0 4px; }

.pending { background: #fff7e8; border: 1px dashed #d9b77a; border-radius: 14px; padding: 14px 16px; color: var(--brown-2); }
.notice { background: #eef3ef; border-left: 4px solid var(--sage-dark); border-radius: 10px; padding: 12px 16px; font-size: .95rem; margin-top: 20px; }
.give { display: grid; gap: 14px; margin-bottom: 14px; }
.give-bank { font-weight: 800; margin: 0; }
.give-acc { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: .04em; color: var(--brown); margin: 0; }
.qris { max-width: 280px; margin: 8px auto 0; border-radius: 12px; }
.kids-card { margin-top: 20px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 26px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.gallery.photos img { aspect-ratio: 1; }

/* Footer */
.site-foot { margin-top: 30px; color: #fff; }
.foot-in { background: var(--sage); padding: 20px 0 24px; }
.foot-grid { display: grid; gap: 20px; }
.site-foot h3 { color: #fff; font-family: var(--display); font-size: 1.5rem; }
.site-foot a { color: #fff; }
.site-foot img { border-radius: 50%; }
.foot-script { color: #fff; font-size: 2rem; margin: 10px 0 4px; }
.foot-copy { opacity: .85; margin: 18px auto 0; }

@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .two-col, .welcome-grid { grid-template-columns: 1fr 1fr; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .give { grid-template-columns: 1fr 1fr; }
  .event-wrap { grid-template-columns: 1fr 200px; align-items: start; }
  .poster-thumb img { width: 100%; }
}
@media (min-width: 960px) {
  .hero { padding: 50px 0 60px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .groups { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .events { grid-template-columns: repeat(2, 1fr); }
  .event-wrap .event { height: 100%; }
}
@media (max-width: 380px) { .head-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
