/* ===========================
   Home Page Styles
   Rapid Property Transfers — Premium Classical Design
   =========================== */

/* ── Shared Layout Helpers ────────────────────────────────── */

.home-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 56px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: #5a6373;
    margin: 0;
    line-height: 1.7;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */

.home-hero {
    background-color: #ffffff;
    background-image:
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(12, 30, 74, 0.045) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(197, 160, 73, 0.06) 0%, transparent 60%);
    padding: 96px 0 80px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: 64px;
    align-items: center;
}

/* Hero content — left column */

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

/* Eyebrow pill — above the H1 */

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px 6px 10px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(197, 160, 73, 0.12), rgba(197, 160, 73, 0.06));
    border: 1px solid rgba(197, 160, 73, 0.35);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8b6914;
    letter-spacing: 0.02em;
}

.hero-eyebrow svg {
    width: 14px;
    height: 14px;
    color: var(--color-gold);
    flex-shrink: 0;
}

/* Trust strip — below the CTAs */

.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-trust-strip li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #5a6373;
}

.hero-trust-strip svg {
    width: 14px;
    height: 14px;
    color: #22c55e;
    flex-shrink: 0;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 600;
    color: var(--color-gold);
    margin: 0;
    letter-spacing: 0.04em;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
    max-width: 560px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* Hero visual — right column */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Decorative accent circle behind the image */
.hero-visual::before {
    content: '';
    position: absolute;
    inset: -24px -24px -24px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(197, 160, 73, 0.12), rgba(12, 30, 74, 0.06));
    border: 1px solid rgba(197, 160, 73, 0.2);
    z-index: 0;
}

.hero-image-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(12, 30, 74, 0.18), 0 4px 16px rgba(12, 30, 74, 0.08);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Decorative stats card (shown when no hero image) */

.hero-stats-card {
    background-color: var(--color-navy);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(12, 30, 74, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-hover));
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

/* ============================================================
   SECTION 2 — STATS BAR
   ============================================================ */

.home-stats-bar {
    background-color: var(--color-navy);
    padding: 56px 0;
}

.stats-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    position: relative;
}

.stat-bar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.12);
}

.stat-bar-number {
    font-family: var(--font-heading);
    font-size: clamp(1.875rem, 3vw, 2.75rem);
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-bar-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ============================================================
   SECTION 3 — SERVICES
   ============================================================ */

.home-services {
    background-color: #ffffff;
    padding: 96px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(12, 30, 74, 0.1);
    border-color: transparent;
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(184, 150, 62, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.3;
}

.service-desc {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #5a6373;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-gold);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: auto;
    transition: gap 0.2s ease, color 0.2s ease;
}

.service-link:hover {
    color: var(--color-gold-hover);
    gap: 10px;
}

/* ============================================================
   SECTION 4 — WHY CHOOSE US
   ============================================================ */

.home-why {
    background-color: var(--color-off-white);
    padding: 96px 0;
}

.why-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

/* Left content */

.why-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.why-subtitle {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gold);
    margin: 0;
}

.why-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
}

/* Right feature grid */

.why-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.why-feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 3px solid var(--color-gold);
    box-shadow: 0 2px 12px rgba(12, 30, 74, 0.05);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.why-feature-item:hover {
    box-shadow: 0 8px 28px rgba(12, 30, 74, 0.1);
    transform: translateY(-2px);
}

.why-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.why-feature-icon svg {
    width: 28px;
    height: 28px;
}

.why-feature-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.why-feature-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.3;
}

.why-feature-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #5a6373;
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   SECTION 5 — HOW IT WORKS
   ============================================================ */

.home-process {
    background-color: #ffffff;
    padding: 96px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

/* Horizontal connector line between step circles */
.process-steps::before {
    content: '';
    position: absolute;
    top: 28px; /* half of step-number circle height (56px) */
    left: calc(12.5% + 28px); /* centre of first circle + offset */
    right: calc(12.5% + 28px);
    height: 2px;
    border-top: 2px dashed rgba(12, 30, 74, 0.2);
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.step-connector {
    display: none; /* replaced by the ::before pseudo-element */
}

.step-number-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-navy);
    border: 3px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(12, 30, 74, 0.2);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.3;
}

.step-desc {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #5a6373;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   SECTION 6 — TESTIMONIALS
   ============================================================ */

.home-testimonials {
    background-color: var(--color-off-white);
    padding: 96px 0;
}

/* ── Carousel wrapper ─────────────────────────────────────── */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 28px;
}

/* ── Nav arrows ───────────────────────────────────────────── */
.tc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--color-border);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.tc-btn:hover {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #ffffff;
}

.tc-btn svg {
    width: 20px;
    height: 20px;
}

.tc-prev { left: 16px; }
.tc-next { right: 16px; }

.testimonial-card {
    flex: 0 0 calc((100% - 56px) / 3);
    background-color: #ffffff;
    border-radius: 12px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 16px rgba(12, 30, 74, 0.06);
}

.testimonial-stars {
    font-size: 1.25rem;
    color: var(--color-gold);
    letter-spacing: 2px;
    line-height: 1;
}

.testimonial-quote {
    margin: 0;
    flex: 1;
}

.testimonial-quote p {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
    font-style: italic;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.testimonial-name {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
}

.testimonial-location {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: #8a9ab0;
    font-weight: 500;
}

/* ============================================================
   SECTION 7 — CTA BANNER
   ============================================================ */

.home-cta-banner {
    background-color: var(--color-navy);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.home-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-hover));
}

/* Subtle decorative radial glow */
.home-cta-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 150, 62, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.cta-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-banner-text {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
    max-width: 560px;
}

/* ============================================================
   SECTION 8 — FAQ ACCORDION
   ============================================================ */

.home-faq {
    background-color: #ffffff;
    padding: 96px 0;
}

.faq-container {
    /* Centred narrower column for readability */
}

.home-faq .section-header {
    margin-bottom: 48px;
}

.faq-list {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--color-off-white);
}

.faq-item.is-open .faq-question {
    background-color: var(--color-off-white);
}

.faq-question-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.4;
    flex: 1;
}

/* Expand/collapse icon — drawn with CSS */
.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.2s ease, transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-gold);
    border-radius: 2px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Horizontal bar */
.faq-icon::before {
    width: 10px;
    height: 2px;
}

/* Vertical bar */
.faq-icon::after {
    width: 2px;
    height: 10px;
}

.faq-item.is-open .faq-icon {
    background-color: var(--color-gold);
    transform: rotate(45deg);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
    background-color: var(--color-navy);
}

/* Answer panel — smooth height animation */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 0 28px 24px;
}

.faq-answer-inner p {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
}

/* ── Service card with image ──────────────────────────────── */

.service-card-img {
    margin: -36px -32px 24px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    height: 180px;
    flex-shrink: 0;
}

.service-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-photo {
    transform: scale(1.04);
}

/* ── Testimonial avatar ───────────────────────────────────── */

.testimonial-meta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    flex-shrink: 0;
}

.testimonial-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
    display: block;
}

.testimonial-meta-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* ── Why section optional image ───────────────────────────── */

.why-section-image {
    border-radius: 10px;
    overflow: hidden;
    max-width: 380px;
}

.why-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* ── CTA Banner with background image ────────────────────── */

.home-cta-banner.has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-cta-banner.has-bg::after {
    width: 100%;
    height: 100%;
    background: rgba(12, 30, 74, 0.82);
    border-radius: 0;
    top: 0;
    left: 0;
    transform: none;
}

/* ============================================================
   RESPONSIVE — TABLET  (max 1024px)
   ============================================================ */

@media (max-width: 1024px) {

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .stats-bar-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-bar-item:nth-child(2)::after {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why-content {
        order: 1;
    }

    .why-features {
        order: 2;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process-steps::before {
        display: none;
    }

    .testimonials-track {
        gap: 20px;
    }

    .testimonial-card {
        flex: 0 0 calc((100% - 20px) / 2);
        padding: 28px 24px;
    }

    .tc-btn {
        width: 44px;
        height: 44px;
    }

}

/* ============================================================
   RESPONSIVE — MOBILE  (max 640px)
   ============================================================ */

@media (max-width: 640px) {

    .home-hero {
        padding: 64px 0 56px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .hero-stats-card {
        padding: 32px 24px;
    }

    .home-stats-bar {
        padding: 40px 0;
    }

    .stats-bar-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-bar-item::after {
        display: none !important;
    }

    .home-services {
        padding: 56px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .home-why {
        padding: 56px 0;
    }

    .why-features {
        grid-template-columns: 1fr;
    }

    .home-process {
        padding: 56px 0;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .process-step {
        padding: 0;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }

    .step-number-wrap {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .home-testimonials {
        padding: 56px 0;
    }

    .tc-btn {
        width: 40px;
        height: 40px;
    }

    .testimonials-track {
        gap: 0;
    }

    .testimonial-card {
        flex: 0 0 100%;
        padding: 28px 20px;
    }


    .home-cta-banner {
        padding: 56px 0;
    }

    .home-faq {
        padding: 56px 0;
    }

    .faq-question {
        padding: 20px 20px;
    }

    .faq-answer-inner {
        padding: 0 20px 20px;
    }

}
