/*
Theme Name: De Lissdin Portal
Theme URI: https://delissdin.com/
Description: A resident-first child theme for De Lissdin Green Residence.
Author: SWIN
Template: twentytwenty
Version: 1.0.0
Text Domain: delissdin-portal
*/

:root {
  --portal-ink: #183a2b;
  --portal-green: #245b3f;
  --portal-leaf: #81a36e;
  --portal-amber: #d89a57;
  --portal-paper: #fbfdf8;
  --portal-cream: #f0f5eb;
  --portal-line: #d7e4d4;
  --portal-muted: #526b5b;
  --portal-display: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --portal-body: "Gill Sans", "Trebuchet MS", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--portal-ink);
  background: linear-gradient(180deg, #f6f8f1 0%, var(--portal-cream) 100%);
  font-family: var(--portal-body);
  font-size: 1.7rem;
  line-height: 1.65;
}
body, button, input, textarea, select { font-family: var(--portal-body); }
a { color: var(--portal-green); }
a:hover { color: #153b28; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--portal-amber); outline-offset: 4px; }
.portal-shell { width: min(116rem, calc(100% - 4.8rem)); margin-inline: auto; }
.portal-skip { position: absolute; left: 1.5rem; top: -10rem; z-index: 100; padding: 1rem 1.5rem; background: var(--portal-paper); }
.portal-skip:focus { top: 1rem; }

.portal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(36, 86, 61, .12);
  background: rgba(251, 253, 248, .95);
  backdrop-filter: blur(14px);
}
.portal-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 8.6rem; gap: 2rem; }
.portal-brand { display: inline-flex; align-items: center; gap: 1.2rem; color: var(--portal-ink); text-decoration: none; }
.portal-brand:hover { text-decoration: none; }
.portal-brand-mark { display: grid; place-items: center; width: 4.7rem; height: 4.7rem; border-radius: 1.45rem 1.45rem 1.45rem .35rem; background: var(--portal-green); color: #fff; font: 700 1.5rem var(--portal-display); letter-spacing: -.06em; transform: rotate(-5deg); }
.portal-brand-mark span { transform: rotate(5deg); }
.portal-brand-text { display: grid; line-height: 1.08; }
.portal-brand-text strong { font: 700 2.15rem var(--portal-display); letter-spacing: -.04em; }
.portal-brand-text small { margin-top: .25rem; color: var(--portal-muted); font-size: 1.05rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.portal-nav { display: flex; align-items: center; gap: 3rem; }
.portal-nav a { color: var(--portal-ink); font-size: 1.45rem; font-weight: 700; text-decoration: none; }
.portal-nav a:hover, .portal-nav a[aria-current="page"] { color: var(--portal-green); text-decoration: underline; text-decoration-color: var(--portal-amber); text-underline-offset: .7rem; }
.portal-nav .portal-nav-cta { padding: 1rem 1.5rem; border: 1px solid var(--portal-green); border-radius: 999px; }
.portal-mobile-nav { display: none; }

.portal-eyebrow { margin: 0 0 1.5rem; color: var(--portal-green); font-size: 1.15rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.portal-hero { position: relative; overflow: hidden; padding: clamp(7rem, 10vw, 13rem) 0 9rem; background: radial-gradient(ellipse at 8% 100%, #e1edda, transparent 48%), linear-gradient(120deg, #eff5e9, #f8f8f0 62%, #e8f1e5); }
.portal-hero::before { content: ""; position: absolute; top: -7rem; right: -3rem; width: 64rem; height: 54rem; background: url("assets/canopy.svg") center / contain no-repeat; opacity: .19; filter: blur(2px); transform: translate3d(0, var(--portal-canopy-y, 0px), 0); pointer-events: none; }
.portal-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 8rem 5rem at 66% 17%, rgba(255,255,255,.4), transparent), radial-gradient(ellipse 11rem 7rem at 93% 67%, rgba(255,255,255,.42), transparent); pointer-events: none; }
.portal-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: clamp(4rem, 7vw, 10rem); }
.portal-hero h1, .portal-page-hero h1 { max-width: 10ch; margin: 0; color: var(--portal-ink); font-family: var(--portal-display); font-size: clamp(5.2rem, 7.4vw, 10.2rem); font-weight: 700; letter-spacing: -.07em; line-height: .98; }
.portal-hero h1 em { color: var(--portal-green); font-weight: 400; }
.portal-lead { max-width: 52rem; margin: 2.6rem 0 0; color: var(--portal-muted); font-size: clamp(1.8rem, 2vw, 2.1rem); line-height: 1.6; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 3.2rem; }
.portal-button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 5.2rem; padding: 1.2rem 2rem; border: 1px solid var(--portal-green); border-radius: 999px; font-size: 1.45rem; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.portal-button:hover { transform: translateY(-2px); text-decoration: none; }
.portal-button-primary { background: var(--portal-green); color: #fff; }
.portal-button-primary:hover { background: var(--portal-ink); color: #fff; }
.portal-button-outline { background: transparent; color: var(--portal-green); }
.portal-button-outline:hover { background: #e8eee3; }
.portal-photo-card { position: relative; margin: 0; padding: 1.1rem; border: 1px solid var(--portal-line); border-radius: 3rem; background: var(--portal-paper); box-shadow: 0 2.5rem 8rem rgba(25, 56, 44, .11); transform: rotate(2deg); }
.portal-photo-card img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: center top; border-radius: 2.15rem; }
.portal-photo-card figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.2rem .5rem; color: var(--portal-muted); font-size: 1.2rem; font-weight: 700; }
.portal-photo-card figcaption span:last-child { color: var(--portal-green); }

.portal-section { padding: 7rem 0; }
.portal-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3rem; }
.portal-section-heading h2, .portal-page-hero h1 { font-family: var(--portal-display); letter-spacing: -.055em; }
.portal-section-heading h2 { max-width: 15ch; margin: 0; font-size: clamp(3.6rem, 5vw, 6.4rem); line-height: 1.07; }
.portal-section-heading p:last-child { max-width: 42rem; color: var(--portal-muted); }
.portal-quicklinks { position: relative; padding: 6rem 0; background: linear-gradient(155deg, #fafcf7, #eaf2e7); border-block: 1px solid var(--portal-line); }
.portal-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem; }
.portal-card { display: flex; flex-direction: column; min-height: 24rem; padding: 2.6rem; border: 1px solid var(--portal-line); border-radius: 2rem; background: #f8fbf5; color: var(--portal-ink); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.portal-card:nth-child(2) { background: var(--portal-green); color: #fff; border-color: var(--portal-green); }
.portal-card:hover { transform: translateY(-5px); box-shadow: 0 1.8rem 4rem rgba(25, 56, 44, .12); text-decoration: none; }
.portal-card .portal-card-number { margin-bottom: auto; font-size: 1.2rem; font-weight: 800; letter-spacing: .15em; }
.portal-card strong { margin: 2rem 0 .5rem; font: 700 clamp(2.5rem, 3vw, 3.6rem)/1.08 var(--portal-display); letter-spacing: -.05em; }
.portal-card span:last-child { font-size: 1.4rem; line-height: 1.45; opacity: .82; }
.portal-community { padding: 9rem 0; background: linear-gradient(180deg, #f1f6ec, #f8f8f1 42%, #edf4e9); }
.portal-map-link { display: inline-flex; align-items: center; gap: 1rem; margin: 0 0 3rem; padding: 1.1rem 1.7rem; border: 1px solid var(--portal-green); border-radius: 999px; color: var(--portal-green); font-size: 1.4rem; font-weight: 800; text-decoration: none; }
.portal-map-link:hover { background: #e4eddf; text-decoration: none; }
.portal-community .elementor > .elementor-section:first-child { display: none !important; }
.portal-community .elementor-section.elementor-top-section { margin-bottom: 5rem; }
.portal-community .elementor-element-70c7284e { padding: 3rem !important; border: 1px solid var(--portal-line); border-radius: 2.6rem; background: var(--portal-paper); }
.portal-community .elementor-element-70c7284e .elementor-container { gap: 3rem; }
.portal-community .elementor-element-70c7284e .elementor-widget-google_maps { display: none; }
.portal-community .elementor-element-70c7284e img { border: 0 !important; border-radius: 1.4rem; box-shadow: none !important; }
.portal-community .elementor-element-4bf517db .elementor-widget-heading h2,
.portal-community .elementor-element-4bf517db .elementor-widget-heading h3,
.portal-community .elementor-element-46b1c1a .elementor-widget-heading h2 { color: var(--portal-ink); font-family: var(--portal-display); letter-spacing: -.04em; }
.portal-community .elementor-element-4bf517db { padding: 4rem 2rem !important; border: 1px solid var(--portal-line); border-radius: 2.6rem; background: #e4eee2 !important; }
.portal-community .elementor-element-f25c776 .elementor-column { padding: 1.8rem; }
.portal-community .elementor-element-f25c776 .elementor-widget-image img { width: 16rem; height: 16rem; object-fit: cover; border-radius: 50%; }
.portal-community .elementor-element-b8a6f82 img { border-radius: 1.2rem; }
.portal-community .elementor-element-46b1c1a { margin: 6rem 0 2rem !important; }
.portal-community .elementor-element-46b1c1a .elementor-widget-heading h2 { font-size: clamp(3.2rem, 4.5vw, 5.6rem); line-height: 1.1; text-align: left; }
.portal-community .elementor-element-b8a6f82 { padding: 3rem !important; border: 1px solid var(--portal-line); border-radius: 2.6rem; background: var(--portal-paper); }
.portal-community .elementor-element-b8a6f82 .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.portal-community .elementor-element-b8a6f82 .gallery-item { float: none; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.portal-community .elementor-element-b8a6f82 .gallery-icon, .portal-community .elementor-element-b8a6f82 .gallery-icon a { display: block; width: 100%; }
.portal-community .elementor-element-b8a6f82 .gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0 !important; box-shadow: none !important; object-fit: cover; }

.portal-page-hero { position: relative; overflow: hidden; padding: 7rem 0 6rem; background: linear-gradient(115deg, #eef5e9, #f7f8f0 65%, #e7f0e3); }
.portal-page-hero::before { content: ""; position: absolute; top: -13rem; right: 0; width: 42rem; height: 36rem; background: url("assets/canopy.svg") center / contain no-repeat; opacity: .11; pointer-events: none; }
.portal-page-hero .portal-shell { position: relative; }
.portal-page-hero h1 { max-width: 13ch; font-size: clamp(5rem, 7vw, 8.4rem); }
.portal-breadcrumb { display: flex; align-items: center; gap: .8rem; margin-bottom: 3.2rem; color: var(--portal-muted); font-size: 1.25rem; font-weight: 700; }
.portal-breadcrumb a { text-decoration: none; }
.portal-page-body { min-height: 40rem; padding: 7rem 0 10rem; background: var(--portal-paper); }
.portal-page-body .elementor { max-width: 106rem; margin: 0 auto; }
.portal-page-body .elementor-section.elementor-top-section { margin-bottom: 3rem; }
.portal-report .elementor-element-628cc375,
.portal-masjid .elementor-element-79ed2240 { display: none !important; }
.portal-report .elementor-element-ef7314e > .elementor-container { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; }
.portal-report .elementor-element-ef7314e .elementor-column { width: 100% !important; }
.portal-report .elementor-element-ef7314e .elementor-widget-wrap { padding: 0 !important; }
.portal-report .elementor-element-ef7314e .elementor-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 10rem; padding: 2rem 2.4rem; border: 1px solid var(--portal-line); border-radius: 1.6rem; background: var(--portal-cream); color: var(--portal-green); font: 700 2.6rem var(--portal-display); text-align: left; text-decoration: none; }
.portal-report .elementor-element-ef7314e .elementor-button::after { content: "\2197"; font: 700 2rem var(--portal-body); }
.portal-report .elementor-element-ef7314e .elementor-button:hover { background: #e4eddf; border-color: var(--portal-green); }
.portal-note { display: inline-block; margin: 3rem 0 0; padding: 1.3rem 1.7rem; border-left: 3px solid var(--portal-amber); background: #f8f6ee; color: var(--portal-muted); font-size: 1.35rem; }
.portal-masjid .elementor-widget-heading h3 { font-family: var(--portal-display); color: var(--portal-ink); font-size: 3.2rem; letter-spacing: -.04em; }
.portal-masjid .elementor-button { padding: 1.3rem 2rem; border-radius: 999px; background: var(--portal-green); color: #fff; }
.portal-masjid .elementor-button:hover { background: var(--portal-ink); }
.portal-masjid .elementor-gallery__container { gap: 1rem; }
.portal-masjid #laporan { scroll-margin-top: 10rem; }
.portal-masjid .elementor-element-e3e4418,
.portal-masjid .elementor-element-7e1835b,
.portal-masjid .elementor-element-d45c0e1,
.portal-masjid .elementor-element-5c3fb95 { display: none !important; }
.portal-masjid-report { margin: 2rem auto 0; padding: clamp(3rem, 5vw, 6rem); border: 1px solid var(--portal-line); border-radius: 2.6rem; background: #e6f0e3; }
.portal-masjid-report-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
.portal-masjid-report h2 { max-width: 15ch; margin: 0; color: var(--portal-ink); font: 700 clamp(3.6rem, 5vw, 6rem)/1.08 var(--portal-display); letter-spacing: -.055em; }
.portal-masjid-report-heading > p { max-width: 42rem; margin: 0; color: var(--portal-muted); font-size: 1.6rem; }

.portal-footer { padding: 5rem 0 3rem; background: linear-gradient(145deg, #1c4733, #102c21); color: #e5eee6; }
.portal-footer-grid { display: flex; justify-content: space-between; gap: 4rem; align-items: start; }
.portal-footer .portal-brand, .portal-footer a { color: #fff; }
.portal-footer .portal-brand-mark { background: var(--portal-amber); color: var(--portal-ink); }
.portal-footer .portal-brand-text small { color: #c8ddca; }
.portal-footer p { max-width: 40rem; margin: 1.5rem 0 0; color: #c8ddca; font-size: 1.4rem; }
.portal-footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; font-size: 1.4rem; }
.portal-footer-nav a { text-decoration: none; }
.portal-footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15); color: #b8ceb9; font-size: 1.25rem; }

@media (max-width: 850px) {
  .portal-hero-grid { grid-template-columns: 1fr; }
  .portal-photo-card { max-width: 58rem; transform: none; }
  .portal-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-section-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .portal-community .elementor-element-b8a6f82 .gallery { grid-template-columns: 1fr; }
  .portal-masjid-report-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 650px) {
  .portal-hero::before { top: -2rem; right: -9rem; width: 33rem; height: 28rem; opacity: .13; }
  .portal-page-hero::before { top: -4rem; right: -10rem; width: 28rem; height: 24rem; opacity: .09; }
  .portal-shell { width: min(100% - 3.2rem, 116rem); }
  .portal-header-inner { min-height: 7.2rem; }
  .portal-brand-mark { width: 4rem; height: 4rem; }
  .portal-brand-text strong { font-size: 1.9rem; }
  .portal-brand-text small { font-size: .9rem; }
  .portal-nav { display: none; }
  .portal-mobile-nav { position: relative; display: block; }
  .portal-mobile-nav summary { min-height: 4.4rem; display: grid; place-items: center; padding: .6rem 1.4rem; border: 1px solid var(--portal-line); border-radius: 999px; font-size: 1.4rem; font-weight: 700; cursor: pointer; list-style: none; }
  .portal-mobile-nav summary::-webkit-details-marker { display: none; }
  .portal-mobile-nav[open] nav { position: absolute; top: calc(100% + 1rem); right: 0; display: grid; gap: .5rem; width: min(30rem, 86vw); padding: 1rem; border: 1px solid var(--portal-line); border-radius: 1.4rem; background: var(--portal-paper); box-shadow: 0 1rem 3rem rgba(25,56,44,.14); }
  .portal-mobile-nav nav a { display: block; padding: 1rem; border-radius: .8rem; color: var(--portal-ink); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
  .portal-mobile-nav nav a:hover { background: var(--portal-cream); }
  .portal-hero { padding: 5rem 0 6rem; }
  .portal-hero h1 { font-size: clamp(5rem, 13vw, 7rem); }
  .portal-actions { align-items: stretch; flex-direction: column; }
  .portal-button { width: 100%; }
  .portal-section, .portal-community, .portal-page-body { padding-block: 5rem; }
  .portal-card-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 19rem; }
  .portal-page-hero { padding: 5rem 0; }
  .portal-page-hero h1 { font-size: clamp(4.8rem, 12vw, 7rem); }
  .portal-footer-grid, .portal-footer-bottom { flex-direction: column; }
  .portal-footer-bottom { margin-top: 3rem; }
  .portal-community .elementor-element-70c7284e { padding: 1.5rem !important; }
  .portal-community .elementor-element-4bf517db { padding: 2.5rem 1.5rem !important; }
  .portal-community .elementor-element-b8a6f82 { padding: 1.5rem !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .portal-reveal { opacity: 0; transform: translateY(2rem); transition: opacity .7s ease, transform .7s ease; }
  .portal-reveal.is-visible { opacity: 1; transform: translateY(0); }
  .portal-hero-copy, .portal-photo-card, .portal-card { animation: portal-rise .55s both; }
  .portal-photo-card { animation-delay: .12s; }
  .portal-card:nth-child(2) { animation-delay: .1s; }
  .portal-card:nth-child(3) { animation-delay: .2s; }
  @keyframes portal-rise { from { opacity: 0; transform: translateY(1.6rem); } to { opacity: 1; transform: translateY(0); } }
}
