/* ============================================
   hasrah.com — Heritage Property Brand CSS
   Palette: Warm ivory base, tobacco brown,
   kampung green, aged gold
   Fonts: Lora (serif display) + Noto Sans (body)
   Signature: CSS-framed family portrait cards
   ============================================ */

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

:root {
    --ivory:        #F7F0E6;
    --ivory-dark:   #EDE4D6;
    --ivory-deep:   #E0D5C4;
    --brown:        #3D2B1F;
    --brown-mid:    #6B4C38;
    --brown-light:  #9A7A64;
    --green:        #4A6741;
    --green-light:  #6B8F62;
    --gold:         #B8924A;
    --gold-light:   #D4AA6A;
    --text:         #2C1F14;
    --text-body:    #4A3728;
    --text-muted:   #7A6555;
    --text-faint:   #B0A090;
    --border:       rgba(61,43,31,0.12);
    --shadow:       rgba(61,43,31,0.08);
    --font-serif:   'Lora', Georgia, 'Times New Roman', serif;
    --font-sans:    'Noto Sans', system-ui, sans-serif;
    --radius:       8px;
    --radius-lg:    14px;
    --max-w:        1080px;
    --section-gap:  100px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--ivory); color: var(--text-body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { color: var(--brown); font-weight: 600; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ---- NAV ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 28px;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(247,240,230,0.95); border-color: var(--border); backdrop-filter: blur(10px); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max-w); margin: 0 auto; }
.nav__wordmark { font-family: var(--font-serif); font-size: 20px; font-weight: 700; letter-spacing: 0.12em; color: var(--brown); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { padding: 7px 14px; font-size: 14px; font-weight: 500; color: var(--text-muted); border-radius: 6px; transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: var(--brown); background: rgba(61,43,31,0.06); }
.nav__cta { color: var(--green) !important; font-weight: 600 !important; }
.nav__cta:hover { background: rgba(74,103,65,0.1) !important; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--brown); border-radius: 2px; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: 6px; font-size: 15px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; border: none; transition: all 0.2s; }
.btn--earth { background: var(--brown); color: var(--ivory); }
.btn--earth:hover { background: var(--brown-mid); transform: translateY(-1px); }
.btn--earth-outline { background: transparent; color: var(--brown); border: 1.5px solid var(--brown); }
.btn--earth-outline:hover { background: rgba(61,43,31,0.06); }
.btn--outline-warm { background: transparent; color: var(--ivory); border: 1.5px solid rgba(247,240,230,0.5); }
.btn--outline-warm:hover { background: rgba(247,240,230,0.12); }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #20ba5a; }
.btn--whatsapp-lg { padding: 14px 24px; font-size: 16px; width: 100%; justify-content: center; margin-bottom: 20px; }
.btn--full { width: 100%; justify-content: center; }

/* ---- EYEBROW ---- */
.eyebrow { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

/* ---- HERO ---- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 28px 80px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg-photo { position: absolute; inset: 0; background: linear-gradient(135deg, #4A3020 0%, #6B8F62 50%, #3D5A35 100%); }
.hero__bg-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45,28,15,0.55) 0%, rgba(45,28,15,0.70) 100%); }
.hero__content { position: relative; z-index: 2; max-width: 700px; }
.hero__khat { font-size: 22px; color: rgba(247,240,230,0.7); margin-bottom: 32px; letter-spacing: 0.04em; }
.hero__wordmark { font-family: var(--font-serif); font-size: clamp(56px, 10vw, 110px); font-weight: 700; letter-spacing: 0.18em; color: var(--ivory); line-height: 1; margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero__tagline-ms { font-family: var(--font-serif); font-size: clamp(16px, 2vw, 20px); font-style: italic; color: rgba(247,240,230,0.85); margin-bottom: 8px; }
.hero__tagline-en { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,240,230,0.55); margin-bottom: 28px; }
.hero__sub { font-size: 16px; color: rgba(247,240,230,0.75); max-width: 520px; margin: 0 auto 40px; line-height: 1.7; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); }
.hero__scroll-line { display: block; width: 1px; height: 52px; background: linear-gradient(180deg, rgba(247,240,230,0.4) 0%, transparent 100%); margin: 0 auto; animation: linepulse 2s infinite; }
@keyframes linepulse { 0%,100%{opacity:0.3;transform:scaleY(0.8)} 50%{opacity:1;transform:scaleY(1)} }

/* ---- SECTIONS ---- */
.section { padding: var(--section-gap) 0; }
.section--warm { background: var(--ivory-dark); }
.section__header { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section__header h2 { font-family: var(--font-serif); font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; color: var(--brown); }
.section__sub { font-size: 17px; color: var(--text-muted); line-height: 1.7; }
.section__intro { font-size: 16px; color: var(--text-body); max-width: 600px; margin: 16px auto 0; line-height: 1.8; }

/* ---- WARISAN ---- */
.warisan__header { text-align: center; margin-bottom: 64px; }
.warisan__title { font-family: var(--font-serif); font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -0.01em; color: var(--brown); line-height: 1; margin-bottom: 8px; }
.warisan__subtitle { font-family: var(--font-serif); font-size: 20px; font-style: italic; color: var(--text-muted); }

/* ---- PORTRAITS — the signature element ---- */
.portraits { display: flex; align-items: center; justify-content: center; gap: 32px; margin-bottom: 72px; flex-wrap: wrap; }
.portrait-frame { display: flex; flex-direction: column; align-items: center; gap: 0; }
.portrait-frame__photo {
    width: 240px;
    height: 300px;
    border: 8px solid var(--ivory);
    outline: 2px solid var(--gold);
    outline-offset: 6px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(61,43,31,0.18),
        0 1px 4px rgba(61,43,31,0.12),
        inset 0 0 0 1px rgba(184,146,74,0.15);
    position: relative;
    background: var(--ivory-deep);
}
.portrait-frame__photo--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ivory-deep) 0%, var(--ivory-dark) 100%);
}
.portrait-frame__photo--placeholder span {
    font-family: var(--font-serif); font-size: 28px; color: var(--text-faint); font-style: italic;
}
.portrait-frame__nameplate {
    background: var(--brown);
    padding: 10px 24px 12px;
    text-align: center;
    border: 1px solid var(--gold);
    border-top: none;
    min-width: 240px;
}
.portrait-frame__name { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--ivory); letter-spacing: 0.04em; }
.portrait-frame__title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); margin-top: 3px; }
.portrait-ornament { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 16px; }
.ornament-line { display: block; width: 1px; height: 80px; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
.ornament-symbol { font-size: 18px; color: var(--gold); }

/* ---- WARISAN BODY ---- */
.warisan__body { max-width: 720px; margin: 0 auto 56px; }
.warisan__copy p { font-family: var(--font-serif); font-size: 17px; font-style: italic; color: var(--text-body); margin-bottom: 20px; line-height: 1.85; }
.warisan__copy--ms p { font-size: 16px; color: var(--text-muted); }
.warisan__divider { text-align: center; font-family: var(--font-serif); font-size: 28px; color: var(--gold); margin: 32px 0; letter-spacing: 0.3em; }

/* ---- NAME ORIGIN ---- */
.warisan__name-origin {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    padding: 32px 40px; background: var(--ivory-dark);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    flex-wrap: wrap; max-width: 680px; margin: 0 auto;
}
.name-origin__part { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.name-origin__name { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--brown); }
.name-origin__role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.name-origin__plus, .name-origin__equals { font-family: var(--font-serif); font-size: 32px; color: var(--text-faint); line-height: 1; padding-bottom: 16px; }
.name-origin__result { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.name-origin__hasrah { font-family: var(--font-serif); font-size: 44px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; }

/* ---- PROPERTY CARDS ---- */
.property-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; margin-bottom: 28px;
    box-shadow: 0 2px 16px var(--shadow);
    background: #fff;
}
.property-card--soon { opacity: 0.92; }
.property-card__gallery { padding: 28px; background: var(--ivory-dark); display: flex; flex-direction: column; gap: 12px; }
.property-card__photo-main { height: 220px; border-radius: var(--radius); overflow: hidden; }
.property-card__photo--placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #c8b89a 0%, #a89070 100%);
    color: var(--brown); font-family: var(--font-serif); font-size: 16px; font-style: italic; text-align: center; padding: 20px; gap: 6px;
}
.property-card__photo--soon { background: linear-gradient(135deg, #b8c8a0 0%, #8aa870 100%); }
.property-card__photo-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb--placeholder { height: 72px; border-radius: 6px; background: linear-gradient(135deg, #d8c8aa 0%, #c0a880 100%); }
.thumb--soon { background: linear-gradient(135deg, #c8d8b0 0%, #a8c090 100%); }
.property-card__body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.property-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.property-card__loc { font-size: 13px; color: var(--text-muted); }
.property-card__body h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--brown); margin-bottom: 14px; line-height: 1.2; }
.property-card__body p { font-size: 15px; color: var(--text-body); margin-bottom: 10px; line-height: 1.7; }
.property-card__ms { font-size: 14px; color: var(--text-muted) !important; font-style: italic; }
.property-card__details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; padding: 16px; background: var(--ivory-dark); border-radius: var(--radius); }
.property-detail { display: flex; flex-direction: column; gap: 4px; }
.property-detail span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.property-detail strong { font-size: 13px; color: var(--brown); font-weight: 600; }
.property-card__cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- STATUS BADGES ---- */
.status-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 40px; letter-spacing: 0.04em; }
.status-badge--live { background: rgba(74,103,65,0.12); color: var(--green); border: 1px solid rgba(74,103,65,0.25); }
.status-badge--soon { background: rgba(184,146,74,0.12); color: var(--gold); border: 1px solid rgba(184,146,74,0.25); }
.coming-tag { font-size: 10px; padding: 2px 6px; border-radius: 3px; background: rgba(184,146,74,0.15); color: var(--gold); margin-left: 6px; }

/* ---- VISI ---- */
.visi__body { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.visi__copy p { font-family: var(--font-serif); font-size: 17px; color: var(--text-body); margin-bottom: 20px; line-height: 1.85; }
.visi__copy--en { font-size: 15px !important; font-style: italic; color: var(--text-muted) !important; font-family: var(--font-sans) !important; }
.visi__roadmap { display: flex; flex-direction: column; gap: 0; }
.roadmap-item { display: flex; gap: 16px; padding-bottom: 28px; position: relative; }
.roadmap-item:not(:last-child)::before { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1px; background: var(--border); }
.roadmap-item__dot { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; border: 2px solid; }
.roadmap-item--done   .roadmap-item__dot { background: var(--green); border-color: var(--green); }
.roadmap-item--soon   .roadmap-item__dot { background: var(--ivory); border-color: var(--gold); }
.roadmap-item--future .roadmap-item__dot { background: var(--ivory); border-color: var(--text-faint); }
.roadmap-item--vision .roadmap-item__dot { background: var(--ivory); border-color: var(--text-faint); border-style: dashed; }
.roadmap-item__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 4px; }
.roadmap-item__name { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--brown); margin-bottom: 2px; }
.roadmap-item__loc { font-size: 13px; color: var(--text-muted); }

/* ---- ABOUT ---- */
.section--about { border-top: 1px solid var(--border); }
.about__inner { max-width: 600px; margin: 0 auto; text-align: center; }
.about__text { font-size: 16px; color: var(--text-body); margin-bottom: 20px; line-height: 1.8; }
.about__link { font-size: 14px; color: var(--green); transition: color 0.2s; }
.about__link:hover { color: var(--brown); }

/* ---- CONTACT ---- */
.contact__inner { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item > span { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-info-item__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 6px; }
.contact-info-item p, .contact-info-item a { font-size: 15px; color: var(--text-body); }
.contact-email { color: var(--green); transition: color 0.2s; }
.contact-email:hover { color: var(--brown); }
.enquiry-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---- FORM ---- */
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.field-group input, .field-group select, .field-group textarea {
    background: #fff; border: 1.5px solid var(--border); border-radius: 6px;
    padding: 11px 14px; font-size: 15px; color: var(--text); font-family: var(--font-sans);
    transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,103,65,0.1);
}
.field-group input::placeholder, .field-group textarea::placeholder { color: var(--text-faint); }
.field-group.has-error input, .field-group.has-error select { border-color: #c0392b; }
.field-error { font-size: 12px; color: #c0392b; }
.alert--success { padding: 14px 18px; background: rgba(74,103,65,0.1); border: 1px solid rgba(74,103,65,0.25); border-radius: 6px; color: var(--green); font-size: 15px; line-height: 1.6; }

/* ---- FOOTER ---- */
.site-footer { background: var(--brown); color: var(--ivory); padding: 64px 28px 0; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer__wordmark { font-family: var(--font-serif); font-size: 24px; letter-spacing: 0.14em; font-weight: 700; color: var(--gold-light); margin-bottom: 10px; }
.footer__tagline { font-family: var(--font-serif); font-size: 14px; font-style: italic; color: rgba(247,240,230,0.7); margin-bottom: 8px; }
.footer__dedication { font-size: 12px; letter-spacing: 0.08em; color: rgba(247,240,230,0.4); }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer__col-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(247,240,230,0.4); margin-bottom: 16px; }
.footer__links a { display: block; font-size: 14px; color: rgba(247,240,230,0.65); margin-bottom: 10px; transition: color 0.2s; }
.footer__links a:hover { color: var(--ivory); }
.footer__bottom { border-top: 1px solid rgba(247,240,230,0.1); padding: 20px 0; margin: 0 -28px; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__bottom p { font-size: 12px; color: rgba(247,240,230,0.4); }
.footer__parent a { color: rgba(247,240,230,0.5); transition: color 0.2s; }
.footer__parent a:hover { color: var(--ivory); }

/* ---- SUBPAGES ---- */
.page-hero { position: relative; min-height: 60vh; display: flex; align-items: flex-end; padding: 0 0 60px; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg--sd { background: linear-gradient(135deg, #6B4C38 0%, #4A6741 100%); }
.page-hero__bg--ap { background: linear-gradient(135deg, #4A6741 0%, #3D7A6A 100%); }
.page-hero__overlay { position: absolute; inset: 0; background: rgba(45,28,15,0.5); }
.page-hero__content { position: relative; z-index: 2; }
.page-back { display: inline-block; font-size: 13px; letter-spacing: 0.06em; color: rgba(247,240,230,0.65); margin-bottom: 20px; transition: color 0.2s; }
.page-back:hover { color: var(--ivory); }
.page-hero__content h1 { font-family: var(--font-serif); font-size: clamp(36px, 6vw, 64px); font-weight: 700; color: var(--ivory); line-height: 1.1; margin: 12px 0 10px; }
.page-hero__content p { font-size: 15px; color: rgba(247,240,230,0.7); }
.prop-detail { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.prop-detail__body h2 { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--brown); margin-bottom: 20px; }
.prop-detail__body p { font-size: 16px; color: var(--text-body); margin-bottom: 16px; line-height: 1.8; }
.prop-ms { font-size: 14px !important; color: var(--text-muted) !important; font-style: italic; }
.prop-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; padding: 20px; background: var(--ivory-dark); border-radius: var(--radius-lg); }
.prop-spec { display: flex; flex-direction: column; gap: 4px; }
.prop-spec span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.prop-spec strong { font-size: 14px; color: var(--brown); }
.prop-gallery__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 12px; }
.prop-gallery__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; gap: 10px; margin-bottom: 10px; }
.prop-gallery__main { grid-row: span 2; }
.prop-gallery__ph { background: linear-gradient(135deg, var(--ivory-deep) 0%, var(--ivory-dark) 100%); border-radius: var(--radius); }
.prop-gallery__note { font-size: 13px; color: var(--text-faint); font-style: italic; }
.prop-enquire-card { padding: 28px; background: var(--ivory-dark); border: 1px solid var(--border); border-radius: var(--radius-lg); position: sticky; top: 90px; }
.prop-enquire-card__head { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--brown); margin-bottom: 6px; }
.prop-enquire-card__sub { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.prop-enquire-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .property-card { grid-template-columns: 1fr; }
    .visi__body { grid-template-columns: 1fr; gap: 40px; }
    .contact__inner { grid-template-columns: 1fr; gap: 40px; }
    .footer__inner { grid-template-columns: 1fr; }
    .prop-detail { grid-template-columns: 1fr; }
    .prop-enquire-card { position: static; }
}
@media (max-width: 640px) {
    :root { --section-gap: 72px; }
    .nav__links { display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--ivory); padding: 90px 28px 32px; gap: 6px; }
    .nav__links.open { display: flex; }
    .nav__links a { font-size: 18px; padding: 12px 0; }
    .nav__toggle { display: flex; }
    .hero__cta { flex-direction: column; align-items: center; }
    .portraits { flex-direction: column; gap: 16px; }
    .portrait-ornament { flex-direction: row; gap: 16px; }
    .ornament-line { width: 60px; height: 1px; }
    .warisan__name-origin { gap: 12px; padding: 20px; }
    .property-card__details { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .prop-specs { grid-template-columns: 1fr; }
    .footer__links { grid-template-columns: 1fr; }
    .footer__bottom-inner { flex-direction: column; }
}
