/* ====================================
   LAYBY PAGE STYLES
   ==================================== */

/* ── HERO override ── */
.layby-hero .about-hero-title em {
    color: var(--gold);
}

/* ── ELIGIBILITY BANNER ── */
.layby-eligibility {
    background: #FFFBF3;
    border-top: 1px solid rgba(175,144,68,0.2);
    border-bottom: 1px solid rgba(175,144,68,0.2);
    padding: 28px 5%;
}

.layby-eligibility-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.layby-eligibility-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(175,144,68,0.35);
}

.layby-eligibility-text {
    font-size: 0.95rem;
    color: #2c2618;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.layby-eligibility-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: #070707;
}

.layby-eligibility-text a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.layby-eligibility-text a:hover {
    opacity: 0.8;
}

/* ── STEPS SECTION ── */
.layby-steps {
    padding: 96px 5%;
    background: #F9F9F9;
}

.layby-steps-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.layby-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 20px;
}

/* Last row: 2 items centred */
.layby-steps-grid .layby-step-card:nth-child(4) {
    grid-column: 1 / 2;
}
.layby-steps-grid .layby-step-card:nth-child(5) {
    grid-column: 2 / 3;
}

.layby-step-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    border: 1px solid rgba(175,144,68,0.12);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.layby-step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(175,144,68,0.4);
    box-shadow: 0 20px 48px rgba(175,144,68,0.12);
}

.layby-step-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(175,144,68,0.1);
    line-height: 1;
    position: absolute;
    top: 16px;
    right: 20px;
}

.layby-step-card .about-value-icon {
    margin-bottom: 20px;
}

.layby-step-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #070707;
    margin-bottom: 12px;
}

.layby-step-card p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #7a6e58;
}

/* ── POLICY SECTION ── */
.layby-policy {
    background: #070707;
    padding: 96px 5%;
    position: relative;
    overflow: hidden;
}

.layby-policy-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.layby-policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.layby-policy-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(175,144,68,0.15);
    border-radius: 14px;
    padding: 28px 24px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.layby-policy-card:hover {
    border-color: rgba(175,144,68,0.4);
    background: rgba(175,144,68,0.05);
}

.layby-policy-card > i {
    font-size: 22px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.layby-policy-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.layby-policy-card p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* ── FAQ ── */
.layby-faq {
    padding: 96px 5%;
    background: #FFFBF3;
    border-top: 1px solid rgba(175,144,68,0.12);
}

.layby-faq-inner {
    max-width: 800px;
    margin: 0 auto;
}

.layby-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
    border: 1px solid rgba(175,144,68,0.15);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.layby-faq-item {
    border-bottom: 1px solid rgba(175,144,68,0.12);
}

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

.layby-faq-q {
    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;
    color: #070707;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.2s;
}

.layby-faq-q:hover {
    background: rgba(175,144,68,0.04);
}

.layby-faq-q i {
    color: var(--gold);
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.layby-faq-item.open .layby-faq-q {
    background: rgba(175,144,68,0.05);
    color: var(--gold);
}

.layby-faq-item.open .layby-faq-q i {
    transform: rotate(180deg);
}

.layby-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 28px;
}

.layby-faq-item.open .layby-faq-a {
    max-height: 200px;
    padding: 0 28px 24px;
}

.layby-faq-a p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #7a6e58;
    margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .layby-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .layby-steps-grid .layby-step-card:nth-child(4),
    .layby-steps-grid .layby-step-card:nth-child(5) {
        grid-column: auto;
    }
    .layby-policy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .layby-steps { padding: 64px 5%; }
    .layby-steps-grid { grid-template-columns: 1fr; }
    .layby-policy { padding: 64px 5%; }
    .layby-faq { padding: 64px 5%; }
    .layby-eligibility-inner { flex-direction: column; text-align: center; }
    .layby-faq-q { padding: 20px; }
    .layby-faq-item.open .layby-faq-a { padding: 0 20px 20px; }
}
