/* ND Resales Landingpage - Frontend Styles v1.5.26 (Plexo Design + per-site brand variables) */

/* ---- Brand variables (overridable per site via Branding settings) ---- */
:root {
    --ndrl-primary:         #143862;  /* navy: thank-you headings, accents */
    --ndrl-accent:          #b8962e;  /* primary brand: links, prices, focus */
    --ndrl-accent-bright:   #f0c75e;  /* lighter accent: hero price highlight */
    --ndrl-button-bg:       #000000;  /* submit button bg */
    --ndrl-button-bg-hover: #1a1a1a;  /* submit button hover */
    --ndrl-text:            #1a1a1a;
}

/* ---- Base ---- */
.ndrl-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    max-width: 100%;
}
.ndrl-page * { box-sizing: border-box; }

.ndrl-faded {
    opacity: 0.5;
    pointer-events: none;
}

/* ---- Sold Out Banner ---- */
.ndrl-sold-out-banner {
    background: #fffbe6;
    border: 2px solid #f0c040;
    border-radius: 8px;
    padding: 16px 24px;
    margin: 16px auto;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ndrl-sold-pill {
    background: #e53e3e;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.ndrl-sold-btn {
    margin-left: auto;
    background: #1a1a1a;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s;
}
.ndrl-sold-btn:hover { background: #000; }

/* ---- Hero (560px with dark overlay) ---- */
.ndrl-hero {
    position: relative;
    width: 100%;
    height: 560px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    color: #fff;
}
.ndrl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.55));
    display: flex;
    align-items: flex-end;
}
.ndrl-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
    width: 100%;
}
.ndrl-location-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}
.ndrl-hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #fff;
}
.ndrl-price-block {
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.ndrl-price-locked {
    color: var(--ndrl-accent-bright);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}
.ndrl-price-locked .ndrl-price-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 2px;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
}
.ndrl-price-current {
    font-size: 16px;
    opacity: 0.75;
    font-style: italic;
    color: #fff;
}

/* ---- Facts Bar (dark, gold labels) ---- */
.ndrl-facts-bar {
    background: #1a1a1a;
    color: #fff;
    padding: 28px 40px;
}
.ndrl-facts-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    text-align: center;
}
.ndrl-fact {
    padding: 0 8px;
}
.ndrl-fact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ndrl-accent);
    margin-bottom: 6px;
    font-weight: 600;
}
.ndrl-fact-value {
    font-size: 20px;
    font-weight: 600;
}

/* ---- Main container ---- */
.ndrl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* ---- Section titles ---- */
.ndrl-section-sub {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
}
.ndrl-section-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 32px;
    letter-spacing: -0.3px;
    color: #1a1a1a;
    line-height: 1.2;
}

/* ---- Highlights (2-column grid, gold bullets) ---- */
.ndrl-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 48px;
    margin-bottom: 24px;
}
.ndrl-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0;
}
.ndrl-highlight-bullet {
    width: 8px;
    height: 8px;
    background: var(--ndrl-accent);
    border-radius: 50%;
    margin-top: 9px;
    flex-shrink: 0;
}
.ndrl-highlight-text strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 2px;
    font-weight: 600;
}
.ndrl-highlight-text span {
    color: #666;
    font-size: 14px;
}

/* ---- Gallery (1 main + 2 stacked below) ---- */
.ndrl-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 40px 0;
}
.ndrl-gallery-main {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.ndrl-gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ndrl-gallery-row img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* ---- Description (centered, readable column) ---- */
.ndrl-description {
    max-width: 820px;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin: 48px auto 0;
}
.ndrl-description p { margin: 0 0 16px; }
.ndrl-description p:last-child { margin-bottom: 0; }

/* ---- Features section (gray band) ---- */
.ndrl-features-section {
    background: #fafafa;
    padding: 80px 40px;
    margin: 0;
}
.ndrl-features-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.ndrl-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 40px;
    margin-top: 32px;
}
.ndrl-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #333;
    font-size: 15px;
}
.ndrl-feature-bullet {
    width: 6px;
    height: 6px;
    background: var(--ndrl-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Form section (border card, gold accent) - v1.5.5 Hi Homes spec ---- */
.ndrl-form-section {
    max-width: 700px;
    margin: 60px auto;
    padding: 60px 40px;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    background: #ffffff;
}
.ndrl-form-title {
    text-align: center;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: #1a1a1a;
    font-weight: 700;
}
.ndrl-form-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0 0 32px;
}
.ndrl-form-wrapper iframe {
    width: 100%;
    min-height: 580px;
    border: none;
    display: block;
}

/* ---- Native form ---- */
.ndrl-form { width: 100%; }
.ndrl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.ndrl-form-field { margin-bottom: 14px; }
.ndrl-form-field label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}
.ndrl-form-field label .ndrl-req,
.ndrl-form-field label .req { color: var(--ndrl-accent); }
.ndrl-form-field input[type="text"],
.ndrl-form-field input[type="email"],
.ndrl-form-field input[type="tel"],
.ndrl-form-field input[type="number"],
.ndrl-form-field textarea,
.ndrl-form-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.ndrl-form-field input:focus,
.ndrl-form-field textarea:focus,
.ndrl-form-field select:focus {
    outline: none;
    border-color: var(--ndrl-accent);
}
.ndrl-form-field textarea {
    resize: vertical;
    min-height: 90px;
}
.ndrl-form-phone {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
}

.ndrl-gdpr {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}
.ndrl-gdpr input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}
.ndrl-gdpr a { color: var(--ndrl-accent); }

.ndrl-submit-btn {
    display: block;
    width: 100%;
    padding: 20px;
    background: var(--ndrl-button-bg) !important;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.3s ease;
}
.ndrl-submit-btn:hover { background: var(--ndrl-button-bg-hover) !important; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .ndrl-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ndrl-hero { height: 460px; }
    .ndrl-hero-content { padding: 0 20px 40px; }
    .ndrl-hero-content h1 { font-size: 36px; }
    .ndrl-price-locked { font-size: 26px; }
    .ndrl-facts-bar { padding: 20px; }
    .ndrl-facts-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: left; }
    .ndrl-fact-value { font-size: 17px; }
    .ndrl-container { padding: 48px 20px; }
    .ndrl-section-title { font-size: 26px; }
    .ndrl-highlights { grid-template-columns: 1fr; gap: 4px 0; }
    .ndrl-gallery-main { height: 280px; }
    .ndrl-gallery-row img { height: 180px; }
    .ndrl-features-section { padding: 48px 20px; }
    .ndrl-features-grid { grid-template-columns: 1fr; }
    .ndrl-form-section {
        margin: 48px 20px;
        padding: 32px 24px;
    }
    .ndrl-form-title { font-size: 22px; letter-spacing: 1.5px; }
    .ndrl-form-row { grid-template-columns: 1fr; }
    .ndrl-form-phone { grid-template-columns: 110px 1fr; }
    .ndrl-sold-out-banner { flex-direction: column; align-items: flex-start; }
    .ndrl-sold-btn { margin-left: 0; }
}

/* ==========================================================================
   v1.5.0 ADDITIONS - matches the Word-doc Hi Homes reference
   ========================================================================== */

/* Outlined VIEW BROCHURE CTA in hero - v1.5.5 matches Word doc exactly */
.ndrl-hero-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 15px 40px;
    border: 2px solid #ffffff !important;
    background: rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.ndrl-hero-cta:hover {
    background: #ffffff !important;
    color: var(--ndrl-text) !important;
}

/* Centered "Luxury Living" price card between gallery and prose - v1.5.5 Hi Homes spec */
.ndrl-price-card {
    text-align: center;
    margin: 80px auto 40px;
    max-width: 600px;
    border-top: 1px solid #eaeaea;
    padding-top: 40px;
}
.ndrl-price-card .ndrl-section-sub {
    color: var(--ndrl-accent-bright);
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 3px;
}
.ndrl-price-card-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}
.ndrl-price-card-price {
    display: inline-block;
    color: var(--ndrl-accent-bright) !important;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Bulleted vertical features list (replaces 3-col grid) */
.ndrl-features-section .ndrl-features-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.ndrl-features-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 32px;
    letter-spacing: -0.3px;
}
.ndrl-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.ndrl-feature-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
    font-size: 16px;
    color: #333;
}
.ndrl-feature-row:last-child { border-bottom: none; }
.ndrl-feature-dot {
    width: 9px;
    height: 9px;
    background: var(--ndrl-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* reCAPTCHA notice below submit button */
.ndrl-recaptcha-notice {
    margin: 16px 0 0;
    font-size: 11px;
    color: #888;
    text-align: center;
    line-height: 1.5;
}
.ndrl-recaptcha-notice a { color: #888; text-decoration: underline; }

/* Mobile tweaks for new elements */
@media (max-width: 768px) {
    .ndrl-hero-cta { padding: 12px 24px; font-size: 12px; letter-spacing: 2px; }
    .ndrl-price-card { margin: 40px auto 28px; }
    .ndrl-price-card-title { font-size: 26px; }
    .ndrl-price-card-price { font-size: 22px; }
    .ndrl-features-title { font-size: 24px; }
    .ndrl-feature-row { font-size: 15px; padding: 10px 0; }
}


/* ---- Related developments (v1.5.13 internal linking) ---- */
.ndrl-related-section {
    background: #fafafa;
    padding: 72px 20px 64px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.ndrl-related-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.ndrl-related-heading {
    text-align: center;
    margin: 0 0 40px;
}
.ndrl-related-heading .ndrl-section-sub {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ndrl-accent);
    margin-bottom: 8px;
}
.ndrl-related-heading .ndrl-section-title {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin: 0;
}
.ndrl-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.ndrl-related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.ndrl-related-card:hover,
.ndrl-related-card:focus {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: #d7b34a;
    transform: translateY(-2px);
}
.ndrl-related-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #e9e9e9;
}
.ndrl-related-img--ph {
    background: linear-gradient(135deg, #eeeeee 0%, #dcdcdc 100%);
}
.ndrl-related-body {
    display: block;
    padding: 18px 20px 22px;
}
.ndrl-related-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.ndrl-related-loc {
    display: block;
    font-size: 13px;
    color: #777;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.ndrl-related-price {
    display: block;
    font-size: 14px;
    color: var(--ndrl-accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}
.ndrl-related-cta-wrap {
    text-align: center;
    margin-top: 36px;
}
.ndrl-related-cta {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    padding: 14px 32px;
    border: 1px solid var(--ndrl-accent);
    border-radius: 2px;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}
.ndrl-related-cta:hover,
.ndrl-related-cta:focus {
    background: var(--ndrl-accent);
    color: #ffffff;
}

@media (max-width: 900px) {
    .ndrl-related-grid { grid-template-columns: repeat(2, 1fr); }
    .ndrl-related-grid .ndrl-related-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 480px;
        justify-self: center;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .ndrl-related-section { padding: 56px 16px 48px; }
    .ndrl-related-grid { grid-template-columns: 1fr; gap: 20px; }
    .ndrl-related-grid .ndrl-related-card:last-child:nth-child(odd) {
        max-width: none;
    }
    .ndrl-related-heading .ndrl-section-title { font-size: 24px; }
}


/* ---- v1.5.26: External resource link (E-E-A-T outbound) ---- */
.ndrl-extlink-row {
    margin: 18px 0 0;
    padding-left: 22px;
}
.ndrl-extlink {
    display: inline-block;
    color: var(--ndrl-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s, color 0.18s;
}
.ndrl-extlink:hover,
.ndrl-extlink:focus {
    border-bottom-color: var(--ndrl-accent);
    color: var(--ndrl-accent);
}

/* ---- v1.5.29: Thank-you page styles (was inline in template, moved here so
                  wp_kses_post during seeder activation doesn't strip them) ---- */
.ndrl-thanks-wrap { max-width: 920px; margin: 60px auto; padding: 0 20px; text-align: center; font-family: inherit; }
.ndrl-thanks-icon { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: #e8f5e9; display: flex; align-items: center; justify-content: center; }
.ndrl-thanks-icon svg { width: 40px; height: 40px; color: #2e7d32; }
.ndrl-thanks-h1 { font-size: 2.2em; margin: 0 0 16px; color: var(--ndrl-primary); line-height: 1.25; }
.ndrl-thanks-sub { font-size: 1.1em; color: #4a5568; margin: 0 0 40px; line-height: 1.6; }
.ndrl-thanks-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; text-align: left; }
@media (max-width: 640px) { .ndrl-thanks-steps { grid-template-columns: 1fr; } }
.ndrl-step { background: #f8fafc; padding: 22px; border-radius: 8px; border-left: 3px solid var(--ndrl-primary); }
.ndrl-step-num { display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; background: var(--ndrl-primary); color: #fff; border-radius: 50%; font-weight: 600; font-size: 0.9em; margin-bottom: 10px; }
.ndrl-step-title { font-weight: 600; margin: 0 0 6px; color: var(--ndrl-primary); font-size: 1.02em; }
.ndrl-step-text { font-size: 0.92em; color: #4a5568; margin: 0; line-height: 1.5; }
.ndrl-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.ndrl-btn-primary, .ndrl-btn-secondary { display: inline-block; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: opacity 0.2s; }
.ndrl-btn-primary { background: var(--ndrl-primary); color: #fff !important; }
.ndrl-btn-secondary { background: transparent; color: var(--ndrl-primary) !important; border: 1px solid var(--ndrl-primary); }
.ndrl-btn-primary:hover, .ndrl-btn-secondary:hover { opacity: 0.85; }
.ndrl-contact { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e2e8f0; font-size: 0.95em; color: #4a5568; }
.ndrl-contact a { color: var(--ndrl-primary); font-weight: 600; }
.ndrl-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid #e2e8f0; text-align: left; }
.ndrl-related-h { font-size: 1.4em; color: var(--ndrl-primary); margin: 0 0 8px; text-align: center; }
.ndrl-related-sub { color: #4a5568; text-align: center; margin: 0 0 28px; font-size: 0.98em; }
.ndrl-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .ndrl-related-grid { grid-template-columns: 1fr; } }
.ndrl-card { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s; }
.ndrl-card:hover { box-shadow: 0 6px 20px rgba(20,56,98,0.10); transform: translateY(-2px); }
.ndrl-card-img { width: 100%; aspect-ratio: 16/10; background: #eef2f7 center/cover no-repeat; display: block; }
.ndrl-card-body { padding: 14px 16px 18px; }
.ndrl-card-title { font-size: 1.0em; font-weight: 600; color: var(--ndrl-primary); margin: 0 0 6px; line-height: 1.35; }
.ndrl-card-loc { font-size: 0.88em; color: #4a5568; margin: 0; }
.ndrl-related[hidden] { display: none; }
