/*-------------------------------------------------------------------------------------
                                        ROOT / BASE
--------------------------------------------------------------------------------------*/
:root {
    --primary-blue: #0052cc;
    --primary-blue-dark: #003d99;
    --hero-gradient: linear-gradient(135deg, #0061ff 0%, #0033aa 100%);
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 18px 30px rgba(2, 6, 23, 0.08);
    --radius: 12px;
    --radius-lg: 18px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.7;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-padding {
    padding: 72px 0;
}

.bg-light {
    background: var(--bg-light);
}

.bg-white {
    background: var(--white);
}

/*-------------------------------------------------------------------------------------
                                      TYPOGRAPHY / HEADINGS
--------------------------------------------------------------------------------------*/
.section-header {
    margin-bottom: 28px;
}

.section-header.text-left {
    text-align: left;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-header h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--text-main);
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    max-width: 760px;
}

.content-flow p {
    margin: 0 0 18px;
    color: var(--text-main);
}

.content-flow p:last-child {
    margin-bottom: 0;
}

/*-------------------------------------------------------------------------------------
                                         BREADCRUMB
--------------------------------------------------------------------------------------*/
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.92);
}

.breadcrumb span[aria-current="page"] {
    color: rgba(255, 255, 255, 0.76);
}

/*-------------------------------------------------------------------------------------
                                            HERO
--------------------------------------------------------------------------------------*/
.hero.real-estate-hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 42px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero.real-estate-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 22%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.10), transparent 24%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    gap: 28px;
    align-items: start;
}

.hero-text {
    color: var(--white);
}

.hero-text h1 {
    margin: 0 0 16px;
    font-size: 3rem;
    line-height: 1.08;
    font-weight: 800;
    color: var(--white);
}

.hero-intro,
.hero-support {
    color: rgba(255, 255, 255, 0.92);
    max-width: 760px;
}

.hero-intro {
    font-size: 1.08rem;
    margin: 0 0 14px;
}

.hero-support {
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

/*-------------------------------------------------------------------------------------
                                            BUTTONS
--------------------------------------------------------------------------------------*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary,
.btn-solid {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary,
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.34);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-card .btn-outline {
    color: var(--primary-blue);
    border-color: rgba(0, 82, 204, 0.2);
    background: transparent;
}

.cta-card .btn-outline:hover {
    background: rgba(0, 82, 204, 0.05);
}

/*-------------------------------------------------------------------------------------
                                         PAGE SHELL
--------------------------------------------------------------------------------------*/
.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.main-content {
    min-width: 0;
}

.side-panel {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 100px;
}

.side-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.side-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.side-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.side-card p {
    margin: 0 0 14px;
    color: var(--text-muted);
}

.side-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-links li {
    padding: 0;
    margin-bottom: 10px;
}

.side-links li:last-child {
    margin-bottom: 0;
}

.side-links a {
    color: var(--primary-blue);
    font-weight: 600;
}

.tip-list {
    display: grid;
    gap: 12px;
}

.tip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.tip-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tip-row span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tip-row strong {
    color: var(--text-main);
    font-size: 0.95rem;
    text-align: right;
}

/*-------------------------------------------------------------------------------------
                                      CARDS / GRID SECTIONS
--------------------------------------------------------------------------------------*/
.calculator-grid,
.method-grid,
.steps-grid,
.benefits-grid,
.mistakes-grid,
.related-grid {
    display: grid;
    gap: 20px;
}

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

.method-grid,
.mistakes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid,
.benefits-grid,
.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card,
.info-card,
.step-card,
.benefit-card,
.mistake-card,
.related-card,
.formula-card,
.feature-panel,
.disclaimer-card,
.cta-card,
.audience-item,
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tool-card,
.info-card,
.step-card,
.benefit-card,
.mistake-card,
.related-card,
.formula-card {
    padding: 22px;
    transition: var(--transition);
}

.tool-card:hover,
.info-card:hover,
.step-card:hover,
.benefit-card:hover,
.mistake-card:hover,
.related-card:hover,
.formula-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1rem;
}

.tool-card h3,
.info-card h3,
.step-card h3,
.benefit-card h3,
.mistake-card h3,
.related-card h3,
.formula-card h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    line-height: 1.35;
}

.tool-card p,
.info-card p,
.step-card p,
.benefit-card p,
.mistake-card p,
.related-card p,
.formula-card p {
    margin: 0 0 10px;
    color: var(--text-muted);
}

.tool-card p:last-child,
.info-card p:last-child,
.step-card p:last-child,
.benefit-card p:last-child,
.mistake-card p:last-child,
.related-card p:last-child,
.formula-card p:last-child {
    margin-bottom: 0;
}

.tool-link,
.related-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-weight: 700;
    color: var(--primary-blue);
}

/*-------------------------------------------------------------------------------------
                                       FEATURE PANEL
--------------------------------------------------------------------------------------*/
.feature-panel {
    padding: 28px;
}

/*-------------------------------------------------------------------------------------
                                          FORMULA GRID
--------------------------------------------------------------------------------------*/
.formula-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.formula-box {
    margin: 12px 0 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary-blue-dark);
    font-weight: 800;
    text-align: center;
    font-size: 1.05rem;
    border: 1px solid #dbeafe;
}

/*-------------------------------------------------------------------------------------
                                        STEP CARDS
--------------------------------------------------------------------------------------*/
.step-number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 82, 204, 0.1);
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 12px;
}

/*-------------------------------------------------------------------------------------
                                      BENEFIT CARDS
--------------------------------------------------------------------------------------*/
.benefit-card i {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 14px;
    display: inline-block;
}

/*-------------------------------------------------------------------------------------
                                       AUDIENCE GRID
--------------------------------------------------------------------------------------*/
.audience-intro {
    color: var(--text-muted);
    margin: 0 0 22px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.audience-item {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.audience-item i {
    color: var(--primary-blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.audience-item span {
    font-weight: 600;
    color: var(--text-main);
}

/*-------------------------------------------------------------------------------------
                                           FAQ
--------------------------------------------------------------------------------------*/

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    overflow: hidden;
}

.faq-item details {
    padding: 0;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 700;
    color: var(--text-main);
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 1.15rem;
    font-weight: 800;
}

.faq-item details[open] summary::after {
    content: "−";
}

.faq-item details p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--text-muted);
}

/*-------------------------------------------------------------------------------------
                                     DISCLAIMER / CTA
--------------------------------------------------------------------------------------*/
.disclaimer-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
}

.disclaimer-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.disclaimer-content h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.disclaimer-content p {
    margin: 0;
    color: var(--text-muted);
}

.cta-card {
    padding: 34px 28px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.cta-card h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.2;
}

.cta-card p {
    margin: 0 auto;
    max-width: 760px;
    color: var(--text-muted);
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

/*-------------------------------------------------------------------------------------
                                        RESPONSIVE
--------------------------------------------------------------------------------------*/
@media (max-width: 1100px) {
    .page-shell {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hero-content,
    .calculator-grid,
    .method-grid,
    .steps-grid,
    .benefits-grid,
    .mistakes-grid,
    .related-grid,
    .formula-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.45rem;
    }

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

@media (max-width: 767px) {
    .section-padding {
        padding: 56px 0;
    }

    .hero.real-estate-hero {
        padding: 32px 0 56px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2,
    .cta-card h2 {
        font-size: 1.65rem;
    }

    .side-panel {
        grid-template-columns: 1fr;
    }

    .feature-panel,
    .tool-card,
    .info-card,
    .step-card,
    .benefit-card,
    .mistake-card,
    .related-card,
    .formula-card,
    .disclaimer-card,
    .cta-card {
        padding: 20px;
    }

    .disclaimer-card {
        flex-direction: column;
    }

    .tip-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .tip-row strong {
        text-align: left;
    }
}