/* =============================================================================
 * inner-pages.css — medinaproperti.com
 * UI/UX Phase 13 — Shared inner-page design system
 * -----------------------------------------------------------------------------
 * Reusable, semantic patterns that extend the approved homepage visual language
 * to every inner template (about, contact, legal, portfolio, landings, property
 * detail, article, search, 404). Loads after design-system.css (tokens + focus
 * + .ds-container/.ds-visually-hidden) and alongside site-header.css /
 * site-footer.css — mirroring the homepage's 4-file chain, with this file in
 * place of homepage.css. No Elementor/OceanWP/Divi runtime, no builder IDs.
 *
 * Principles (match homepage, Phase 10/11):
 *   - dark-teal headings (--color-heading), NOT the legacy light blue
 *   - small 56px LEFT hatch accent, never full-width
 *   - inline-SVG icons in brand green/teal, never icon fonts
 *   - one container width (1240) + a narrow reading width (760)
 *   - grid/flex, design tokens, minimal !important, no heavy shadows/gradients
 * ========================================================================== */

/* ---------------------------------------------------------------------------
 * 0. MINIMAL RESET (design-system.css is additive-only; WP normalize is gone)
 * ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Base typography — design-system.css only sets the font on the ds- classes,
 * header, footer and inputs, so main content otherwise falls back to the
 * browser default serif. Establish the intended sans stack for the whole page. */
body { font-family: var(--font-base); color: var(--color-text); font-size: var(--fs-body); line-height: var(--lh-body); }
img, svg { max-width: 100%; }
img { height: auto; }
main { display: block; overflow-x: clip; }

/* ---------------------------------------------------------------------------
 * 1. CONTAINERS & SECTION RHYTHM
 * ------------------------------------------------------------------------- */
.page-container { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.reading-container { max-width: 760px; margin-inline: auto; padding-inline: 24px; }
.content-section { padding: 52px 0; }
.content-section--tight { padding: 36px 0; }

.section-head { margin-bottom: 24px; }
.section-hatch {
  width: 56px; height: 12px; margin-bottom: 8px;
  background: repeating-linear-gradient(-55deg, var(--color-heading) 0 2px, transparent 2px 6px);
}
.section-hatch--light {
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,.85) 0 2px, transparent 2px 6px);
}
.section-title { font-size: 32px; line-height: 1.2; color: var(--color-heading); font-weight: 700; margin: 0; }
.section-subtitle { font-size: 16px; line-height: 1.6; color: var(--color-muted); margin: 8px 0 0; }

/* Shared body typography for inner content (matches homepage cadence). */
.prose { font-size: 15px; line-height: 1.7; color: var(--color-text); }
.prose p { margin: 0 0 1em; }
.prose b, .prose strong { font-weight: 700; color: inherit; }
.prose h2 { font-size: 26px; line-height: 1.25; color: var(--color-heading); font-weight: 700; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 20px; line-height: 1.3; color: var(--color-heading); font-weight: 700; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin: 0 0 .4em; }
.prose li:empty { display: none; }               /* kill stray empty bullets */
.prose a { color: var(--color-link); text-decoration: underline; }
.prose a:hover { color: var(--color-link-hover); }
.prose blockquote {
  margin: 1.2em 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--color-accent);
  color: var(--color-heading); font-style: italic;
}
.prose img { border-radius: var(--radius-small); }

/* ---------------------------------------------------------------------------
 * 2. PAGE HERO / BANNER (compact, not a giant image)
 *    Default: light surface band with dark-teal title + left hatch.
 *    Variant --teal: dark band with white title (for landings/detail).
 * ------------------------------------------------------------------------- */
.page-hero { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.page-hero__inner { max-width: 1240px; margin-inline: auto; padding: 44px 24px; }
.page-hero__eyebrow { color: var(--color-primary); font-weight: 700; font-size: 15px; margin: 0 0 8px; text-transform: capitalize; }
.page-hero__title { font-size: clamp(30px, 2.4vw + 16px, 44px); line-height: 1.15; color: var(--color-heading); font-weight: 700; margin: 0; }
.page-hero__subtitle { font-size: 16px; line-height: 1.6; color: var(--color-muted); margin: 12px 0 0; max-width: 640px; }
.page-hero__cta { margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero--teal { background: var(--color-dark-teal); border-bottom: 0; }
.page-hero--teal .page-hero__eyebrow { color: var(--color-accent); }
.page-hero--teal .page-hero__title { color: #fff; }
.page-hero--teal .page-hero__subtitle { color: rgba(255,255,255,.85); }

/* Optional media hero (a real project photo under the title band). */
.page-hero__media { margin-top: 0; }
.page-hero__media img { width: 100%; height: auto; display: block; max-height: 460px; object-fit: cover; }

/* ---------------------------------------------------------------------------
 * 3. BUTTONS (identical system to the homepage)
 * ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 18px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 0;
  transition: filter .2s ease, background-color .2s ease;
}
.btn__caret { width: 10px; height: 12px; flex: none; fill: currentColor; }
.btn--gold { background: var(--color-accent); color: var(--color-heading); padding: 14px 30px; }
.btn--gold:hover { filter: brightness(.94); }
.btn--teal { background: var(--color-heading); color: #fff; padding: 14px 34px; }
.btn--teal:hover { filter: brightness(1.12); }
.btn--green { background: var(--color-primary); color: #fff; padding: 14px 30px; }
.btn--green:hover { filter: brightness(.94); }
.btn--link { background: none; color: var(--color-heading); font-weight: 500; padding: 0 0 5px; border-bottom: 3px solid var(--color-accent); }
.btn--link:hover { color: var(--color-primary-hover); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------------------------------------------------------------------------
 * 4. FORM CONTROLS (identical system to the homepage)
 * ------------------------------------------------------------------------- */
main form input[type="text"], main form input[type="email"], main form input[type="tel"],
main form input[type="date"], main form input[type="number"], main form select, main form textarea {
  width: 100%; min-height: 44px;
  border: 1px solid var(--color-border); border-radius: var(--radius-small);
  padding: 10px 14px; font-family: var(--font-base); font-size: 15px;
  color: var(--color-text); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
main form textarea { min-height: 120px; padding: 12px 14px; resize: vertical; }
main form input:focus, main form select:focus, main form textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(97,206,112,.18);
}
main form ::placeholder { color: var(--color-muted); opacity: 1; }
.form-field { margin-bottom: 14px; }
.form-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: 8px;
  box-shadow: 0 8px 28px rgba(3,53,55,.10); padding: 26px 28px;
}
.form-card__title { font-size: 22px; line-height: 1.25; color: var(--color-heading); margin: 0 0 18px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid-2 .form-field--full { grid-column: 1 / -1; }

/* ---------------------------------------------------------------------------
 * 5. MEDIA / TEXT SPLIT
 * ------------------------------------------------------------------------- */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.media-split--text-narrow { grid-template-columns: 1fr 1.15fr; }
.media-split__media img { width: 100%; height: auto; border-radius: var(--radius-small); display: block; }
.media-split__body .section-head { margin-bottom: 16px; }

/* ---------------------------------------------------------------------------
 * 6. FEATURE GRID (icon + title + desc) — homepage .feature language
 * ------------------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Bordered icon-box card — matches the homepage feature/benefit boxes */
.feature {
  display: block;
  border: 1px solid #d9e3df;
  border-radius: 6px;
  padding: 24px;
  height: 100%;
  background: #fff;
  box-shadow: none;
}
.feature__icon { width: 46px; height: 46px; margin-bottom: 12px; color: var(--color-primary); }
.feature__icon svg { width: 46px; height: 46px; fill: currentColor; }
/* Varied on-brand icon colors — each icon-box SVG a different hue (cycled) */
.feature:nth-child(5n+1) .feature__icon,
.property-overview__item:nth-child(5n+1) .feature__icon { color: #4bb95c; } /* green */
.feature:nth-child(5n+2) .feature__icon,
.property-overview__item:nth-child(5n+2) .feature__icon { color: #0e8f86; } /* teal */
.feature:nth-child(5n+3) .feature__icon,
.property-overview__item:nth-child(5n+3) .feature__icon { color: #d99e00; } /* amber */
.feature:nth-child(5n+4) .feature__icon,
.property-overview__item:nth-child(5n+4) .feature__icon { color: #2f9fa6; } /* cyan-teal */
.feature:nth-child(5n)   .feature__icon,
.property-overview__item:nth-child(5n)   .feature__icon { color: #033537; } /* dark teal */
.feature__title { font-size: 18px; line-height: 1.3; color: var(--color-heading); font-weight: 700; margin: 0 0 8px; }
.feature__desc { font-size: 15px; line-height: 1.7; color: var(--color-text); margin: 0; }

/* ---------------------------------------------------------------------------
 * 7. PROPERTY OVERVIEW & SPECS (landing / detail pages)
 * ------------------------------------------------------------------------- */
/* Compact "at a glance" stat row (e.g. 20 min to toll, type 40, etc.) */
.property-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.property-overview__item { text-align: center; }
.property-overview__value { font-size: 18px; font-weight: 700; color: var(--color-heading); }
.property-overview__label { font-size: 14px; color: var(--color-muted); margin-top: 2px; }

/* Spec icon grid (2 Kamar Tidur, Luas Tanah, …) */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spec { text-align: center; }
.spec__icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--color-primary); }
.spec__icon svg { width: 40px; height: 40px; fill: currentColor; }
.spec:nth-child(5n+1) .spec__icon { color: #4bb95c; }
.spec:nth-child(5n+2) .spec__icon { color: #0e8f86; }
.spec:nth-child(5n+3) .spec__icon { color: #d99e00; }
.spec:nth-child(5n+4) .spec__icon { color: #2f9fa6; }
.spec:nth-child(5n)   .spec__icon { color: #033537; }
.spec__label { font-size: 15px; color: var(--color-heading); font-weight: 600; }

/* Specification columns (Pondasi / Struktur / Dinding …) */
.spec-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
.spec-table__group { }
.spec-table__key { font-size: 15px; font-weight: 700; color: var(--color-heading); margin: 0 0 4px; }
.spec-table__val { font-size: 15px; color: var(--color-text); margin: 0; }
.spec-table__val ul { margin: 0; padding-left: 1.2em; }

/* Facilities grid: icon + title + description, 2-up */
.facility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 40px; }

/* ---------------------------------------------------------------------------
 * 8. CTA BAND (full-bleed dark-teal, like homepage .home-project-cta)
 * ------------------------------------------------------------------------- */
.cta-band { background: var(--color-dark-teal); padding: 48px 0; }
.cta-band__inner {
  max-width: 1240px; margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band__title { color: #fff; font-size: 28px; line-height: 1.25; font-weight: 700; margin: 0; max-width: 720px; }
.cta-band__title b { font-weight: 800; }
/* Light gold CTA band variant for softer sections */
.cta-band--soft { background: var(--color-surface); }
.cta-band--soft .cta-band__title { color: var(--color-heading); }

/* ---------------------------------------------------------------------------
 * 9. CONTACT GRID (fixes the legacy overlap: top-aligned, no absolute cols)
 * ------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { font-size: 15px; line-height: 1.7; color: var(--color-text); }
.contact-info__item { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-info__item:last-child { margin-bottom: 0; }
.contact-info__icon { flex: none; width: 26px; height: 26px; color: var(--color-heading); }
.contact-info__icon svg { width: 26px; height: 26px; fill: currentColor; }
.contact-info a { color: var(--color-text); text-decoration: none; }
.contact-info a:hover { color: var(--color-primary); }
.contact-info__label { font-weight: 700; color: var(--color-heading); }
.contact-info__muted { color: var(--color-muted); }
.contact-map { margin: 0 0 8px; border: 0; }
.contact-map iframe, .contact-map img { width: 100%; display: block; border: 0; }

/* Social row (inline-SVG, brand color) */
.social-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.social-row a { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--color-heading); transition: color .2s ease; }
.social-row a:hover { color: var(--color-primary); }
.social-row svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------------------------------------------------------------------------
 * 10. ARTICLE LAYOUT (content + optional sidebar)
 * ------------------------------------------------------------------------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.article-layout--no-aside { grid-template-columns: minmax(0, 760px); justify-content: center; }
.article__header { margin-bottom: 24px; }
.article__title { font-size: clamp(28px, 2.2vw + 14px, 38px); line-height: 1.2; color: var(--color-heading); font-weight: 700; margin: 0 0 12px; }
.article__meta { font-size: 14px; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 16px; }
.article__featured { margin: 0 0 24px; }
.article__featured img { width: 100%; height: auto; border-radius: var(--radius-small); display: block; }
.article-aside { font-size: 15px; }
.article-aside__widget { margin-bottom: 28px; }
.article-aside__widget:empty { display: none; }
.article-aside__title { font-size: 16px; font-weight: 700; color: var(--color-heading); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }
.article-aside__widget ul { list-style: none; margin: 0; padding: 0; }
.article-aside__widget li { margin: 0 0 10px; }
.article-aside__widget a { color: var(--color-text); text-decoration: none; }
.article-aside__widget a:hover { color: var(--color-primary); }

/* ---------------------------------------------------------------------------
 * 11. CARD LIST (portfolio / category post cards)
 * ------------------------------------------------------------------------- */
.card-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  border: 1px solid var(--color-border); border-radius: var(--radius-small);
  overflow: hidden; background: #fff; display: flex; flex-direction: column;
}
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 18px; line-height: 1.3; color: var(--color-heading); font-weight: 700; margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--color-primary); }
.card__excerpt { font-size: 15px; line-height: 1.6; color: var(--color-text); margin: 0; flex: 1; }
.card__more { font-size: 14px; font-weight: 600; color: var(--color-primary); text-decoration: none; }

/* ---------------------------------------------------------------------------
 * 12. LEGAL LAYOUT (narrow reading measure, comfortable rhythm)
 * ------------------------------------------------------------------------- */
.legal-layout { max-width: 820px; margin-inline: auto; padding-inline: 24px; }
.legal-layout .prose h2 { font-size: 20px; margin-top: 1.8em; }

/* ---------------------------------------------------------------------------
 * 12b. SEARCH (form + client-rendered results)
 * ------------------------------------------------------------------------- */
.search-box { display: flex; gap: 12px; max-width: 640px; margin-bottom: 24px; }
.search-box input[type="search"] {
  flex: 1; min-height: 46px; border: 1px solid var(--color-border);
  border-radius: var(--radius-small); padding: 10px 14px;
  font-family: var(--font-base); font-size: 15px; color: var(--color-text); background: #fff;
}
.search-box input[type="search"]:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(97,206,112,.18); }
.mp-count { font-size: 15px; color: var(--color-muted); margin: 0 0 8px; }
.mp-hit { padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.mp-hit a { font-size: 18px; font-weight: 700; color: var(--color-heading); text-decoration: none; }
.mp-hit a:hover { color: var(--color-primary); }
.mp-hit p { font-size: 15px; line-height: 1.6; color: var(--color-text); margin: 6px 0 0; }

/* ---------------------------------------------------------------------------
 * 13. EMPTY STATE / 404
 * ------------------------------------------------------------------------- */
.empty-state { max-width: 640px; margin-inline: auto; padding: 72px 24px; text-align: center; }
.empty-state__figure { margin: 0 auto 26px; max-width: 420px; }
.empty-state__img { display: block; width: 100%; height: auto; border-radius: var(--radius-small); }
.empty-state__code { font-size: 72px; font-weight: 800; color: var(--color-accent); line-height: 1; margin: 0 0 8px; }
.empty-state__title { font-size: 28px; color: var(--color-heading); font-weight: 700; margin: 0 0 12px; }
.empty-state__text { font-size: 16px; line-height: 1.7; color: var(--color-text); margin: 0 0 24px; }
.empty-state .btn { justify-content: center; }

/* Testimonial (property detail) */
.testimonial { border-left: 3px solid var(--color-accent); padding: 6px 0 6px 20px; }
.testimonial__quote { font-size: 16px; line-height: 1.7; color: var(--color-heading); font-style: italic; margin: 0 0 8px; }
.testimonial__author { font-size: 14px; color: var(--color-muted); }

/* ---------------------------------------------------------------------------
 * 14. FLOATING WHATSAPP BUTTON (identical to homepage)
 * ------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 54px; height: 54px; border-radius: 999px; background: #25d366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.22); transition: transform .2s ease, filter .2s ease;
}
.whatsapp-float:hover { filter: brightness(1.05); transform: translateY(-2px); }
.whatsapp-float:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------------------------------------------------------------------------
 * 15. RESPONSIVE
 * ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .feature-grid, .feature-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .property-overview, .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .card-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .media-split, .media-split--text-narrow { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .page-container, .reading-container, .cta-band__inner { padding-inline: 16px; }
  .page-hero__inner { padding: 32px 16px; }
  .content-section { padding: 40px 0; }
  .feature-grid, .feature-grid--2, .feature-grid--4, .facility-grid,
  .property-overview, .spec-grid, .spec-table, .card-list, .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-2 { gap: 0; }
}

/* ---------------------------------------------------------------------------
 * 16. REDUCED MOTION
 * ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn, main form input, main form select, main form textarea,
  .social-row a, .whatsapp-float, .contact-info a, .card__title a { transition: none; }
}

/* Sitewide contextual image galleries */
.site-image-gallery{padding:clamp(36px,6vw,72px) 0;background:#f7faf8}
.site-image-gallery__inner{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.site-image-gallery__title{margin:0 0 20px;color:#123f3c;font-size:clamp(24px,3vw,34px);line-height:1.2}
.site-image-gallery__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.site-image-gallery__item{margin:0;min-width:0;background:#fff;border:1px solid #dce6e1;border-radius:4px;overflow:hidden}
.site-image-gallery__item img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;background:#fff}
@media(max-width:768px){.site-image-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.site-image-gallery__inner{width:min(100% - 28px,1180px)}.site-image-gallery__grid{grid-template-columns:1fr}}
