/* ==========================================================
   Public information pages (About Us, Contact Us, Contact Support,
   Privacy Policy, Terms and Conditions).
   Header, footer and buttons match index.php.
   ========================================================== */

:root {
    --primary-maroon: #8B1C4D;
    --primary-maroon-hover: #6a153b;
    --bg-light: #F8F9FA;
    --bg-grey: #F2F2F2;
    --text-dark: #333333;
    --text-muted: #666666;
}

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body.site-page {
    color: var(--text-dark);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* --- FOOTER (same as the home page) --- */
.footer {
    background: white;
    padding: 60px 0 0 0; /* no white strip under the copyright bar */
    border-top: 1px solid #eee;
}
.footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
}
.footer a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer a:hover {
    color: var(--primary-maroon);
    padding-left: 5px;
}
.footer-bottom {
    background-color: var(--primary-maroon);
    color: #ffffff;
    padding: 15px 0;
    text-align: center;
    margin-top: 40px;
}
.support-hours {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 15px;
    font-size: 0.85rem;
}
.social-icons a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background: var(--primary-maroon);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: var(--primary-maroon-hover);
    color: white;
    transform: translateY(-3px);
}

.btn-outline-maroon {
    border: 1px solid var(--primary-maroon);
    color: var(--primary-maroon);
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 500;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-maroon:hover {
    background-color: var(--primary-maroon);
    color: white;
    transform: translateY(-2px);
}

/* --- PAGE HERO --- */
.page-hero {
    padding: 64px 0 70px;
    background-color: var(--bg-grey);
}
.page-crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 26px;
}
.page-crumbs a { color: var(--text-muted); }
.page-crumbs a:hover { color: var(--primary-maroon); }
.page-crumbs i { font-size: 0.6rem; opacity: 0.6; }
.page-crumbs span { color: var(--primary-maroon); font-weight: 600; }
.page-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    max-width: 780px;
    margin-bottom: 18px;
    color: var(--text-dark);
}
.page-hero-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 0;
}
.page-updated {
    display: inline-flex;
    align-items: center;
    margin-top: 26px;
    padding: 8px 18px;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    font-size: 0.85rem;
    color: var(--text-muted);
}
@media (max-width: 767.98px) {
    .page-hero { padding: 76px 0 50px; }  /* room for the pinned Back button */
    .page-hero-title { font-size: 2.1rem; }
    .page-hero-intro { font-size: 1rem; }
}

/* --- SECTIONS --- */
.page-main { overflow: clip; } /* clip, not hidden: hidden would stop the sticky 'On this page' list */
.page-section { padding: 90px 0; }
.page-section.alt { background-color: var(--bg-grey); }
@media (max-width: 767.98px) {
    .page-section { padding: 60px 0; }
    .page-section-title { font-size: 1.7rem; }
}

/* Rise in when scrolled to (armed only if below the screen on load) */
[data-rise].rise-armed {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--rise-delay, 0s);
}
[data-rise].rise-armed.is-in { opacity: 1; transform: none; }

/* --- CARDS --- */
.info-tile {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.info-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}
.info-tile h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.info-tile p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; line-height: 1.7; }
.info-tile.maroon { background: var(--primary-maroon); border-color: var(--primary-maroon); color: #ffffff; }
.info-tile.maroon p { color: rgba(255, 255, 255, 0.85); }
.info-tile.maroon .tile-icon { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

/* About: story image + numbered steps */
.story-photo {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}
.step-list { counter-reset: step; display: grid; gap: 18px; padding: 0; margin: 0; }
.step-list li {
    counter-increment: step;
    position: relative;
    padding: 4px 0 0 64px;
    min-height: 46px;
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-maroon);
    background: #ffffff;
    border: 1px solid rgba(139, 28, 77, 0.25);
}
.step-list strong { display: block; margin-bottom: 2px; }
.step-list span { color: var(--text-muted); font-size: 0.93rem; }
.step-card { background: #ffffff; border-radius: 24px; padding: 36px; height: 100%; }
.step-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.step-card h3 i { color: var(--primary-maroon); }

.cta-band {
    background: linear-gradient(135deg, #6B0F35 0%, var(--primary-maroon) 60%, #a8325f 100%);
    color: #ffffff;
    border-radius: 28px;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 25px 50px rgba(107, 15, 53, 0.25);
}
.cta-band h2 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; color: #ffffff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 560px; }
.cta-band .btn-light-pill {
    background: #ffffff;
    color: var(--primary-maroon);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-band .btn-light-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); color: var(--primary-maroon); }
.cta-band .btn-light-pill i { transition: transform 0.3s ease; }
.cta-band .btn-light-pill:hover i { transform: translateX(4px); }
.cta-band .btn-ghost-pill {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.cta-band .btn-ghost-pill:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
@media (max-width: 575.98px) { .cta-band { padding: 40px 26px; } .cta-band h2 { font-size: 1.6rem; } }

/* --- CONTACT DETAILS + FORM --- */

.map-frame {
    width: 100%;
    height: 340px;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    display: block;
}

/* --- HELP CENTER --- */
.topic-tile { display: block; color: inherit; }
.topic-tile:hover { color: inherit; }
.topic-tile .topic-go { margin-top: 16px; font-size: 0.88rem; font-weight: 600; color: var(--primary-maroon); }
.topic-tile .topic-go i { transition: transform 0.3s ease; }
.topic-tile:hover .topic-go i { transform: translateX(4px); }

.help-group { margin-bottom: 56px; }
.help-group:last-child { margin-bottom: 0; }
.help-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.help-group-head .tile-icon { margin: 0; }
.help-group-head h3 { font-size: 1.4rem; font-weight: 700; margin: 0; }


/* --- LEGAL PAGES (Terms, Privacy) --- */
.legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 60px; align-items: start; }
.legal-toc {
    position: sticky;
    top: 24px;
    background: var(--bg-grey);
    border-radius: 20px;
    padding: 26px 22px;
}
.legal-toc h6 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-maroon); margin-bottom: 14px; }
.legal-toc a {
    display: block;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: background-color 0.25s ease, color 0.25s ease;
}
.legal-toc a:hover { color: var(--primary-maroon); }
.legal-toc a.active { background: #ffffff; color: var(--primary-maroon); font-weight: 600; }
.legal-toc .toc-group { margin-top: 12px; padding: 0 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dark); }

.legal-tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--bg-grey); border-radius: 50px; margin-bottom: 40px; flex-wrap: wrap; }
.legal-tabs a { padding: 10px 24px; border-radius: 50px; font-weight: 600; font-size: 0.92rem; color: var(--text-muted); }
.legal-tabs a:hover { color: var(--primary-maroon); }
.legal-tabs a.active { background: var(--primary-maroon); color: #ffffff; }

.legal-body { max-width: 820px; }
.legal-body .legal-part { margin-bottom: 18px; padding-top: 10px; }
.legal-body .legal-part-title { font-size: 1.7rem; font-weight: 700; margin-bottom: 8px; }
.legal-body .legal-part-intro { color: var(--text-muted); margin-bottom: 30px; }
.legal-block { padding: 30px 0; border-top: 1px solid #eee; }
.legal-block h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    gap: 14px;
    align-items: baseline;
}
.legal-block h2 .num { color: var(--primary-maroon); font-size: 0.95rem; font-weight: 700; min-width: 26px; }
.legal-block p, .legal-block li { color: #555; line-height: 1.8; font-size: 0.97rem; }
.legal-block ul { padding-left: 0; margin-bottom: 14px; }
.legal-block li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.legal-block li::before { content: ''; position: absolute; left: 4px; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-maroon); }
.legal-block a { color: var(--primary-maroon); font-weight: 600; }
.legal-note {
    background: var(--bg-grey);
    border-left: 4px solid var(--primary-maroon);
    border-radius: 0 16px 16px 0;
    padding: 18px 22px;
    margin: 16px 0;
}
.legal-note p { margin: 0; }
.legal-note strong { color: var(--text-dark); }
.legal-contact { margin-top: 30px; }

@media (max-width: 991.98px) {
    .legal-layout { grid-template-columns: 1fr; gap: 30px; }
    .legal-toc { position: static; }
}

/* One heading colour across the pages */
.page-section-title, .legal-part-title, .legal-block h2, .site-form-title,
.help-group-head h3, .step-card h3, .info-tile h4 { color: var(--text-dark); }
.info-tile.maroon h4 { color: #ffffff; }

/* --- Guideline pages (rental-rules.php, contract-guidelines.php, code-of-conduct.php) --- */
.legal-tag { margin-left: auto; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary-maroon); background: rgba(139, 28, 77, 0.08); padding: 4px 10px; border-radius: 50px; white-space: nowrap; }
.guide-related { margin-top: 30px; padding-top: 30px; border-top: 1px solid #eee; }
.guide-related h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.guide-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.guide-related-card { display: flex; gap: 14px; align-items: flex-start; border: 1px solid #eee; border-radius: 16px; padding: 16px; color: var(--text-dark); transition: border-color 0.2s, transform 0.2s; }
.guide-related-card:hover { border-color: var(--primary-maroon); transform: translateY(-2px); color: var(--text-dark); }
.guide-related-card .tile-icon { margin: 0; width: 40px; height: 40px; font-size: 1rem; flex-shrink: 0; }
.guide-related-card strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.guide-related-card small { display: block; color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }

/* --- Back (or Home) button, pinned top-right on every info page; no nav bar --- */
/* Pinned to the top-right corner so it is always one click away while scrolling. */
.page-topline { position: fixed; top: 20px; right: 24px; z-index: 1000; }
.page-back { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px 10px 16px; border-radius: 50px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text-dark); font-weight: 600; font-size: 0.92rem; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); border: 1px solid #e6e6e6; transition: border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.page-back:focus-visible { outline: 3px solid rgba(139, 28, 77, 0.35); outline-offset: 2px; }
.page-back i { font-size: 0.8rem; transition: transform 0.2s; }
.page-back:hover { border-color: var(--primary-maroon); color: var(--primary-maroon); }
.page-back:hover i { transform: translateX(-3px); }
@media (max-width: 575.98px) {
    .page-topline { top: 14px; right: 14px; }
}

/* --- FAQ pages (tenant-faqs.php, landlord-faqs.php) --- */
.faq-help-card { display: flex; align-items: center; gap: 18px; margin-top: 36px; padding: 24px 26px; border-radius: 20px; background: var(--bg-grey); flex-wrap: wrap; }
.faq-help-card .tile-icon { margin: 0; flex-shrink: 0; }
.faq-help-card > div { flex: 1; min-width: 220px; }
.faq-help-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; color: var(--text-dark); }
.faq-help-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.faq-help-card .btn-maroon { padding: 11px 26px; }
