/* ── Harcourts Webbook — Brand-Compliant Stylesheet ──────────────────────── */
/* Brand Standards v1.2: Navy #001f49, Cyan #00aeef, Source Sans Pro          */

@font-face {
    font-family: 'Harcourts Script';
    src: url('../fonts/HarcourtsScript.woff') format('woff'),
         url('../fonts/HarcourtsScript.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}

:root {
    --navy: #001f49;
    --cyan: #00aeef;
    --cyan-lt: #e6f7ff;
    --mid-grey: #c8c8c8;
    --light-grey: #ececec;
    --white: #ffffff;
    --black: #000000;
    --font: 'Source Sans 3', 'Source Sans Pro', sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    font-weight: 300;
    letter-spacing: -0.025em;
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--navy);
    transition: box-shadow 0.3s;
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem; height: 56px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.nav-logo-img {
    height: 36px; width: auto; max-width: none;
    display: block; flex-shrink: 0; object-fit: contain;
}
.nav-links {
    display: none; list-style: none;
}
.nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--navy); padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 0.25rem;
}
.nav-links li a {
    display: block;
    color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 400;
    padding: 0.6rem 0.8rem; border-radius: 4px; transition: all 0.2s;
    text-decoration: none;
}
.nav-links li a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-toggle {
    display: flex; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--white);
    transition: transform 0.3s;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero { position: relative; margin-top: 56px; background: var(--navy); width: 100%; overflow: hidden; }
.hero-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,31,73,0.85));
    padding: 3rem 2rem 2rem;
    display: flex; justify-content: space-between; align-items: flex-end;
    pointer-events: none;
}
.hero-suburb {
    display: block; color: var(--cyan); font-weight: 300;
    font-size: 1.85rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-suburb-script {
    font-family: 'Harcourts Script', cursive;
    font-weight: 400; font-size: 6.5rem; letter-spacing: -0.025em;
    text-transform: none; line-height: 0.9; margin-bottom: 0.25rem;
    transform: rotate(-5deg); transform-origin: bottom left;
    display: inline-block;
    margin-bottom: 0.25rem;
}
.hero-street {
    color: var(--white); font-weight: 900; font-size: 2.85rem;
    text-transform: uppercase; letter-spacing: -0.075em; line-height: 1.1;
}

/* ── Gallery ──────────────────────────────────────────────────────────────── */
.gallery { position: relative; }
.gallery-main { position: relative; overflow: hidden; width: 100vw; height: 75vh; }
.gallery-hero {
    width: 100%; height: 100%; object-fit: cover;
    cursor: pointer; transition: opacity 0.3s;
}
.gallery-prev, .gallery-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,31,73,0.6); color: var(--white); border: none;
    font-size: 2.5rem; width: 48px; height: 64px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; line-height: 1;
}
.gallery-prev { left: 0; border-radius: 0 4px 4px 0; }
.gallery-next { right: 0; border-radius: 4px 0 0 4px; }
.gallery-prev:hover, .gallery-next:hover { background: rgba(0,31,73,0.85); }
.gallery-counter {
    position: absolute; bottom: 1rem; right: 1rem;
    background: rgba(0,31,73,0.7); color: var(--white);
    padding: 0.25rem 0.75rem; border-radius: 4px;
    font-size: 0.85rem; font-weight: 400;
}
.gallery-thumbs {
    display: flex; gap: 4px; padding: 4px;
    overflow-x: auto; background: var(--navy);
    scrollbar-width: thin; scrollbar-color: var(--cyan) var(--navy);
}
.gallery-thumb {
    width: 80px; height: 60px; object-fit: cover;
    cursor: pointer; opacity: 0.5; transition: opacity 0.2s;
    flex-shrink: 0; border: 2px solid transparent;
}
.gallery-thumb:hover { opacity: 0.8; }
.gallery-thumb.active { opacity: 1; border-color: var(--cyan); }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
    position: absolute; top: 1rem; right: 1.5rem;
    background: none; border: none; color: var(--white);
    font-size: 2.5rem; cursor: pointer; line-height: 1;
}
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: none; color: var(--white);
    font-size: 3rem; padding: 0.5rem 1rem; cursor: pointer;
    transition: background 0.2s; line-height: 1;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-counter {
    position: absolute; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%); color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 3.5rem 0; background: var(--white); }
.section:nth-of-type(even) { background: var(--light-grey); }
.section-grey { background: var(--light-grey); }
.section-navy,
.section.section-navy:nth-of-type(even) { background: var(--navy); color: var(--white); }
.section-title {
    font-weight: 900; font-size: 1.5rem; text-transform: uppercase;
    letter-spacing: -0.075em; color: var(--navy);
    margin-bottom: 2rem; line-height: 1.1;
}
.section-title-white { color: var(--white); }

/* ── Key Facts ────────────────────────────────────────────────────────────── */
.keyfacts {
    display: flex; flex-wrap: wrap; gap: 2rem;
    justify-content: center;
}
.keyfact {
    display: flex; flex-direction: column; align-items: center;
    min-width: 100px;
}
.keyfact-icon {
    width: 36px; height: 36px; fill: var(--navy);
    margin-bottom: 0.5rem;
}
.keyfact-value { font-weight: 700; font-size: 1.8rem; line-height: 1; }
.keyfact-label { font-weight: 300; font-size: 0.85rem; color: #666; margin-top: 0.25rem; }

/* ── Description ──────────────────────────────────────────────────────────── */
.description {
    font-size: 1.05rem; line-height: 1.75;
    max-width: 800px;
}
.description p { margin-bottom: 1rem; }
.description ul { margin: 0.5rem 0 1rem 0; padding-left: 1.5rem; list-style: none; }
.description li { margin-bottom: 0.25rem; position: relative; }
.description li::before {
    content: ""; position: absolute; left: -1.1rem; top: 0.65em;
    width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}
.feature-item {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 400; font-size: 0.95rem;
}
.feature-check { width: 20px; height: 20px; fill: var(--cyan); flex-shrink: 0; }

/* ── Property Features Accordion ──────────────────────────────────────────── */
.accordion { max-width: 800px; }
.accordion-item {
    border-bottom: 1px solid var(--mid-grey);
}
.accordion-header {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem 0; cursor: pointer;
    list-style: none; /* remove default marker */
    user-select: none;
}
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header::marker { display: none; content: ''; }
.accordion-title {
    font-weight: 600; font-size: 1rem; color: var(--navy);
    flex: 1;
}
.accordion-chevron {
    width: 24px; height: 24px; fill: var(--navy);
    transition: transform 0.3s ease; flex-shrink: 0;
}
.accordion-item[open] .accordion-chevron {
    transform: rotate(180deg);
}
.accordion-header:hover .accordion-title { color: var(--cyan); }
.accordion-header:hover .accordion-chevron { fill: var(--cyan); }
.accordion-body {
    list-style: none; padding: 0 0 1.25rem 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.35rem 1.5rem;
    animation: accordionOpen 0.3s ease;
}
.accordion-body li {
    font-size: 0.9rem; font-weight: 300; color: #333;
    padding-left: 1rem; position: relative;
}
.accordion-body li::before {
    content: ''; position: absolute; left: 0; top: 0.55em;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--cyan);
}
.accordion-body li.accordion-subheading {
    grid-column: 1 / -1;
    font-weight: 600; color: var(--navy);
    padding-left: 0; margin-top: 0.5rem;
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em;
}
.accordion-body li.accordion-subheading::before { display: none; }
@keyframes accordionOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Price / Sale ─────────────────────────────────────────────────────────── */
.sale-info { text-align: center; }
.sale-price {
    font-weight: 700; font-size: 2.6rem; color: var(--navy);
    letter-spacing: -0.03em; line-height: 1.1;
    margin-bottom: 2rem;
}
.sale-info .keyfacts {
    padding: 2rem 1rem;
    border-top: 1px solid var(--mid-grey);
    border-bottom: 1px solid var(--mid-grey);
    gap: 3rem;
}
.sale-subtitle {
    font-weight: 700; font-size: 1.1rem; margin: 2rem 0 0.75rem;
    text-transform: uppercase; letter-spacing: -0.05em;
}
.sale-info .open-homes { max-width: 520px; margin: 0 auto; }
.sale-info .section-title { margin-top: 2.5rem; }
.highlights-title { margin-top: 2.5rem; margin-bottom: 1.5rem; text-align: left; max-width: 560px; margin-left: auto; margin-right: auto; }
.highlights {
    list-style: none; padding: 0; margin: 0 auto;
    max-width: 560px;
    display: flex; flex-direction: column; gap: 0.85rem;
}
.highlight-item {
    display: flex; align-items: center; justify-content: flex-start;
    gap: 0.85rem;
    font-size: 1.05rem; line-height: 1.4;
    text-align: left;
}
.highlight-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--cyan); flex-shrink: 0;
}
.open-homes { display: flex; flex-direction: column; gap: 0.5rem; }
.open-home {
    display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap;
    padding: 0.75rem 1rem; background: var(--light-grey); border-radius: 6px;
    text-align: center;
}
.open-home-date { font-weight: 600; }
.open-home-time { color: #555; }
.open-home-agent { color: var(--cyan); font-weight: 400; }
.ideal-for { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ideal-tag {
    background: var(--cyan-lt); color: var(--navy); padding: 0.4rem 1rem;
    border-radius: 20px; font-size: 0.9rem; font-weight: 400;
}

/* ── Documents ────────────────────────────────────────────────────────────── */
.documents-grid { display: flex; flex-direction: column; gap: 1rem; }
.document-card {
    display: flex; align-items: center; gap: 1.25rem;
    padding: 1.5rem; background: var(--white); border-radius: 8px;
    border: 1px solid var(--mid-grey);
}
.document-icon { width: 40px; height: 40px; fill: var(--navy); flex-shrink: 0; }
.document-info h3 { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.document-type { font-size: 0.85rem; color: #666; display: block; margin-bottom: 0.5rem; }
.document-info p { font-size: 0.95rem; line-height: 1.55; margin: 0 0 0.75rem; color: #333; }
.document-info .report-note { font-size: 0.85rem; color: #666; }
.document-info .btn { margin-top: 0.5rem; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block; padding: 0.6rem 1.5rem;
    font-family: var(--font); font-weight: 600; font-size: 0.9rem;
    border: 2px solid transparent; border-radius: 4px;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #003070; text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.btn-cyan { background: var(--cyan); color: var(--white); border: none; padding: 0.75rem 2rem; font-size: 1rem; }
.btn-cyan:hover { background: #0098d4; text-decoration: none; }
/* ── Make an Offer ────────────────────────────────────────────────────────── */
.offer-subtitle {
    font-weight: 700; font-size: 1.15rem;
    text-transform: uppercase; letter-spacing: -0.03em;
    text-align: center; margin: 2.5rem 0 1rem;
    color: var(--navy);
}
.offer-body {
    max-width: 760px; margin: 0 auto;
    font-size: 1rem; line-height: 1.7;
}
.offer-body p { margin-bottom: 1rem; }

/* ── Financial Particulars ────────────────────────────────────────────────── */
.financials { max-width: 500px; }
.financial-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0; border-bottom: 1px solid var(--mid-grey);
}
.financial-label { font-weight: 400; }
.financial-value { font-weight: 700; }

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps { max-width: 700px; }
.step { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; }
.step-number {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--navy); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}
.step-content h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--navy); }
.step-content p { font-size: 0.95rem; line-height: 1.6; color: #444; margin-bottom: 0.5rem; }
.step-content p:last-child { margin-bottom: 0; }
.step-list {
    margin: 0.25rem 0 0 1.1rem; padding: 0;
    font-size: 0.95rem; line-height: 1.6; color: #444;
}
.step-list li { margin-bottom: 0.25rem; }

.steps-intro {
    max-width: 780px; margin: 0 auto 2.5rem;
    font-size: 1rem; line-height: 1.7; color: #333;
}
.steps-intro p { margin-bottom: 1rem; }

.steps-summary {
    font-size: 1rem; line-height: 1.7; color: #333;
    text-align: left;
}
.steps-summary p { margin: 0; }

.steps-card { margin-top: 2rem; }

/* ── Enquiry Form ─────────────────────────────────────────────────────────── */
.enquiry-form { max-width: 600px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block; font-weight: 400; font-size: 0.85rem;
    color: rgba(255,255,255,0.7); margin-bottom: 0.3rem;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 0.7rem 1rem;
    font-family: var(--font); font-size: 1rem; font-weight: 300;
    border: 1px solid rgba(255,255,255,0.3); border-radius: 4px;
    background: rgba(255,255,255,0.1); color: var(--white);
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--cyan);
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Appraisal form sits on a white background — override the dark-section input styling */
.appraisal-intro {
    max-width: 600px; margin: 0 auto 1.5rem auto; text-align: center;
    color: #555; font-weight: 300;
}
.appraisal-form .form-group label { color: var(--navy); }
.appraisal-form .form-group input,
.appraisal-form .form-group textarea {
    border: 1px solid var(--mid-grey); background: var(--white); color: var(--navy);
}
.appraisal-form .form-group input::placeholder,
.appraisal-form .form-group textarea::placeholder {
    color: #999;
}
.appraisal-address-container { width: 100%; }
gmp-place-autocomplete {
    width: 100%; display: block;
    color-scheme: light;
    --gmpx-color-surface: #ffffff;
    --gmpx-color-on-surface: #001f49;
    --gmpx-color-on-surface-variant: #4a5468;
    --gmpx-color-primary: #00aeef;
    --gmpx-color-outline: #c8c8c8;
    --gmpx-font-family-base: var(--font);
    --gmpx-font-family-headings: var(--font);
    --gmpx-font-size-base: 1rem;
    background: #ffffff;
}
.appraisal-address-confirm {
    display: none; margin-top: 0.6rem; padding: 0.6rem 0.9rem;
    background: #eaf7fd; border: 1px solid #aee1f2; border-radius: 4px;
    color: #004B6C; font-size: 0.95rem;
}

/* ── Agent Card ───────────────────────────────────────────────────────────── */
.agents-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.agent-card {
    display: flex; gap: 1.5rem; align-items: flex-start;
    max-width: 400px;
}
.agent-photo {
    width: 140px; height: 175px; object-fit: cover;
    border-radius: 6px; flex-shrink: 0;
}
.agent-info { display: flex; flex-direction: column; gap: 0.25rem; }
.agent-name { font-weight: 700; font-size: 1.3rem; }
.agent-position { color: var(--cyan); font-weight: 300; font-size: 0.95rem; }
.agent-contact {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--navy); font-weight: 400; font-size: 0.9rem;
    margin-top: 0.25rem; text-decoration: none;
}
.agent-contact:hover { color: var(--cyan); }
.agent-contact-icon { width: 18px; height: 18px; fill: var(--navy); }
.agent-contact:hover .agent-contact-icon { fill: var(--cyan); }

/* ── Floor Plans ──────────────────────────────────────────────────────────── */
.floorplan-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.floorplan-link { display: block; }
.floorplan-img { max-height: 500px; border: 1px solid var(--mid-grey); border-radius: 4px; }

/* ── Location Map ─────────────────────────────────────────────────────────── */
.map-wrap {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,31,73,0.1);
}
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-address {
    margin-top: 1rem; text-align: center; color: var(--navy);
    font-weight: 600; font-size: 0.95rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
    background: var(--navy); color: rgba(255,255,255,0.6);
    padding: 2.5rem 0; text-align: center;
}
.footer-brand { margin-bottom: 1.25rem; display: flex; justify-content: center; }
.footer-logo-img { height: 110px; width: auto; display: block; }
.disclaimer { font-size: 0.8rem; line-height: 1.5; max-width: 700px; margin: 0 auto 1rem; }
.footer-copy { font-size: 0.75rem; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-overlay {
        flex-direction: column; align-items: flex-start;
        padding: 2rem 1.5rem 1.5rem; gap: 0.5rem;
    }
    .hero-street { font-size: 2rem; }
    .hero-suburb { font-size: 1.5rem; }
    .hero-suburb-script { font-size: 4.75rem; }

    .gallery-main { height: 50vh; }
    .gallery-prev, .gallery-next { width: 36px; height: 48px; font-size: 1.8rem; }

    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.3rem; }
    .keyfacts { gap: 1.25rem; }
    .keyfact-value { font-size: 1.5rem; }

    .form-row { grid-template-columns: 1fr; }

    .agent-card { flex-direction: column; align-items: center; text-align: center; }
    .agent-photo { width: 120px; height: 150px; }
    .agent-contact { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-street { font-size: 1.6rem; }
    .hero-suburb { font-size: 1.25rem; }
    .hero-suburb-script { font-size: 3.75rem; }
    .sale-price { font-size: 1.9rem; }
    .sale-info .keyfacts { gap: 1.5rem; padding: 1.25rem 0.5rem; }
    .features-grid { grid-template-columns: 1fr; }
}
