/* ============================================
   Transilvania Broker — Homepage
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
    --green: #9eab03;
    --green-dark: #788302;
    --green-deeper: #535a01;
    --green-light: #f6f8e2;
    --green-mid: #dee68a;
    --ink: #0e0e0e;
    --ink-2: #3a3a3a;
    --ink-3: #6b6b6b;
    --ink-4: #9a9a9a;
    --border: #e4e4e0;
    --surface: #f7f7f4;
    --white: #ffffff;
    --dark: #0e0e0e;
    --dark-2: #1a1a1a;
    --dark-3: #252525;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --header-h: 68px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

.hp-container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ============================================
   Buttons
   ============================================ */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    line-height: 1;
}
.hp-btn--primary { background: var(--green); color: #fff; }
.hp-btn--primary:hover { background: var(--green-dark); transform: translateY(-1px); color: #fff; }
.hp-btn--secondary {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--border);
    font-weight: 500;
}
.hp-btn--secondary:hover { border-color: var(--ink-3); background: var(--surface); transform: translateY(-1px); }
.hp-btn--white { background: #fff; color: var(--green-dark); font-weight: 700; }
.hp-btn--white:hover { transform: translateY(-1px); color: var(--green-dark); }
.hp-btn--bvb {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--border);
    padding: 9px 18px;
    font-size: 13px;
    margin-top: 16px;
}
.hp-btn--bvb:hover { border-color: var(--green); color: var(--green); }
.hp-btn--ghost {
    background: transparent;
    color: #ccc;
    border: 1.5px solid #333;
    font-weight: 500;
}
.hp-btn--ghost:hover { color: #fff; border-color: #555; }
.hp-btn--sm { font-size: 13px; padding: 10px 18px; }

/* ============================================
   Header
   ============================================ */
.hp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    display: flex;
    align-items: center;
}
.hp-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 24px;
}
.hp-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.hp-header__logo img {
    height: 42px;
    width: auto;
    display: block;
}

.hp-header__nav { display: flex; align-items: center; }
.hp-nav__list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.hp-nav__list a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    display: inline-block;
}
.hp-nav__list a:hover { background: var(--surface); color: var(--ink); }

.hp-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.hp-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
}
.hp-header__phone svg, .hp-header__phone i { color: var(--green); }
.hp-header__phone--mobile { display: none; }

.hp-lang-switcher { display: flex; gap: 6px; align-items: center; }
.hp-lang-switcher a {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.55;
    transition: opacity 0.15s;
    border: 1px solid var(--border);
}
.hp-lang-switcher a:hover, .hp-lang-switcher a.active { opacity: 1; }
.hp-lang-switcher img { width: 100%; height: 100%; object-fit: cover; }
.hp-lang-switcher--mobile { display: none; }

.hp-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.hp-header__cta:hover { background: var(--green-dark); transform: translateY(-1px); }

.hp-header__burger {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   Hero
   ============================================ */
.hp-hero {
    padding: 80px 0 0;
    background: var(--white);
    overflow: hidden;
    position: relative;
}
.hp-hero__bg {
    position: absolute;
    top: 0; right: 0;
    width: 55%;
    height: 100%;
    background: var(--green-light);
    clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
}
.hp-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px 72px;
}
.hp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px 6px 8px;
    margin-bottom: 28px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-2);
}
.hp-hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.hp-hero__title {
    font-size: clamp(38px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 22px;
}
.hp-hero__title em { font-style: normal; color: var(--green); }
.hp-hero__sub {
    font-size: 16.5px;
    color: var(--ink-3);
    line-height: 1.65;
    margin-bottom: 38px;
    max-width: 440px;
}
.hp-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}
.hp-hero__ctas .hp-btn { font-size: 15px; padding: 14px 26px; }
.hp-hero__stats {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    flex-wrap: nowrap;
}
.hp-hero__stat {
    flex: 1 1 0;
    min-width: 0;
}
.hp-hero__stat-num {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 6px;
    white-space: nowrap;
}
.hp-hero__stat-num span { color: var(--green); }
.hp-hero__stat-label {
    font-size: 11.5px;
    color: var(--ink-4);
    line-height: 1.35;
}
.hp-hero__stat-divider { width: 1px; background: var(--border); align-self: stretch; flex-shrink: 0; }

/* Hero panel */
.hp-hero__panel {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 28px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.hp-panel__title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.hp-panel__tabs {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}
.hp-panel__tab {
    flex: 1;
    padding: 9px 16px;
    border-radius: 7px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--ink-3);
    transition: all 0.2s;
}
.hp-panel__tab.is-active { background: var(--green); color: #fff; font-weight: 600; }

.hp-panel__pane { display: none; grid-template-columns: 1fr 1fr; gap: 8px; }
.hp-panel__pane.is-active { display: grid; }

.hp-prod {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}
.hp-prod:hover { border-color: var(--green); background: var(--green-light); transform: translateY(-1px); }
.hp-prod__icon {
    width: 32px; height: 32px;
    border-radius: 7px;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--green);
}
.hp-prod:hover .hp-prod__icon { background: var(--green-mid); }
.hp-prod__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hp-prod__name { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.hp-prod__desc { font-size: 10.5px; color: var(--ink-4); line-height: 1.3; }
.hp-prod__arrow { color: var(--ink-4); font-size: 14px; margin-left: auto; flex-shrink: 0; transition: color 0.2s; }
.hp-prod:hover .hp-prod__arrow { color: var(--green); }
.hp-prod__cat {
    grid-column: 1 / -1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-4);
    padding: 6px 0 2px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2px;
}
.hp-panel__footer { margin-top: 14px; text-align: right; }
.hp-panel__footer a { font-size: 12.5px; font-weight: 600; color: var(--green); text-decoration: none; }

/* ============================================
   Partners marquee
   ============================================ */
.hp-partners {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hp-partners__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-4);
    white-space: nowrap;
    padding: 0 28px 0 40px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
}
.hp-partners__track { overflow: hidden; flex: 1; }
.hp-partners__list {
    display: flex;
    align-items: center;
    width: max-content;
    animation: hp-scroll 225s linear infinite;
}
.hp-partners__list:hover { animation-play-state: paused; }
@keyframes hp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hp-partners__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 28px;
    border-right: 1px solid var(--border);
    transition: opacity 0.2s, background 0.2s;
    height: 48px;
    flex-shrink: 0;
}
.hp-partners__item img {
    max-height: 36px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.75;
    filter: grayscale(0.2);
    transition: opacity 0.2s, filter 0.2s;
}
.hp-partners__item:hover img { opacity: 1; filter: grayscale(0); }

/* ============================================
   Sections / common
   ============================================ */
section { padding: 88px 0; }
.hp-section__head { text-align: center; margin-bottom: 56px; }
.hp-section__head--left { text-align: left; }
.hp-section__head--left .hp-eyebrow { justify-content: flex-start; }

.hp-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hp-eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}
.hp-eyebrow--center { justify-content: center; }
.hp-eyebrow--center::before { display: none; }

.hp-h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 14px;
}
.hp-h2--white { color: #fff; }

.hp-section__sub {
    font-size: 16px;
    color: var(--ink-3);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}
.hp-section__sub--muted { color: #666; }

/* ============================================
   How It Works
   ============================================ */
.hp-how { background: var(--surface); }
.hp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}
.hp-steps::before {
    content: '';
    position: absolute;
    top: 42px;
    left: calc(33.33% - 10px);
    right: calc(33.33% - 10px);
    height: 1px;
    background: var(--border);
    z-index: 0;
}
.hp-step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px 28px;
    position: relative;
    z-index: 1;
    transition: border-color 0.2s, transform 0.2s;
    overflow: hidden;
}
.hp-step:hover { border-color: var(--green); transform: translateY(-3px); }
.hp-step__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}
.hp-step__desc {
    font-size: 14px;
    color: var(--ink-3);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}
.hp-step__ghost {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 80px;
    font-weight: 800;
    color: var(--green);
    opacity: 0.08;
    letter-spacing: -0.05em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* ============================================
   Map section
   ============================================ */
.hp-map { background: #fff; padding: 88px 0; }
.hp-map__wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: stretch;
}
.hp-map__sidebar { display: flex; flex-direction: column; gap: 12px; }
.hp-map__search {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
}
.hp-map__search:focus { border-color: var(--green); }
.hp-map__agents-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 480px;
}
.hp-map__loading { padding: 20px; text-align: center; color: var(--ink-4); }
.hp-map__loading p { margin-top: 8px; font-size: 13px; }
.hp-map__agent-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fff;
}
.hp-map__agent-card:hover, .hp-map__agent-card.active {
    border-color: var(--green);
    background: var(--green-light);
}
.hp-map__agent-card-header { display: flex; align-items: center; gap: 10px; }
.hp-map__agent-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--green);
    object-fit: cover;
    flex-shrink: 0;
}
.hp-map__agent-name { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 2px; line-height: 1.2; }
.hp-map__agent-position { font-size: 11.5px; color: var(--ink-4); }
.hp-map__agent-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--ink-3);
}
.hp-map__agent-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
}
.hp-map__container {
    background: var(--green-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 480px;
    position: relative;
}
.hp-map__canvas { width: 100%; height: 100%; min-height: 480px; }

/* ============================================
   Why Us
   ============================================ */
.hp-why { background: #fff; }
.hp-why__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.hp-why__lead {
    font-size: 15px;
    color: var(--ink-3);
    line-height: 1.65;
    margin-top: 14px;
    max-width: 440px;
}
.hp-checklist {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.5;
}
.hp-check {
    width: 22px; height: 22px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.hp-why__right { display: flex; flex-direction: column; gap: 16px; }
.hp-why__photo {
    background: var(--green-light);
    border-radius: var(--radius-xl);
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--green-mid);
}
.hp-why__photo img { width: 100%; height: 100%; object-fit: cover; }
.hp-why__cta {
    background: var(--green);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    color: #fff;
}
.hp-why__cta h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.hp-why__cta p { font-size: 13.5px; opacity: 0.9; line-height: 1.55; margin-bottom: 18px; }

/* ============================================
   Investor section
   ============================================ */
.hp-invest { background: var(--surface); padding: 88px 0; }
.hp-invest__title { margin-bottom: 40px; }
.hp-invest__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.hp-invest__col { display: flex; flex-direction: column; gap: 16px; }
.hp-invest__card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.hp-invest__card--full { height: 100%; }
.hp-invest__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}
.hp-invest__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hp-invest__bvb {
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}
.hp-invest__ticker {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
}
.hp-invest__company { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.hp-invest__meta { font-size: 11px; color: var(--ink-4); text-align: right; }
.hp-invest__price {
    font-size: 42px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
}
.hp-invest__price span { font-size: 16px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.hp-invest__change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-3);
    margin-bottom: 16px;
}
.hp-invest__stats {
    background: var(--green);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hp-invest__stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}
.hp-invest__stat-value { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hp-invest__links-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--ink);
}
.hp-invest__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hp-invest__links a {
    font-size: 13.5px;
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}
.hp-invest__links a:hover { color: var(--green-dark); }
.hp-invest__more { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ============================================
   Testimonials
   ============================================ */
.hp-test { background: var(--dark); padding: 88px 0; }
.hp-test__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}
.hp-test__card {
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}
.hp-test__card:hover { border-color: #3a3a3a; transform: translateY(-2px); }
.hp-test__stars { display: flex; gap: 3px; margin-bottom: 16px; }
.hp-test__stars span { color: var(--green); font-size: 14px; }
.hp-test__text {
    font-size: 14.5px;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.hp-test__author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--dark-3);
}
.hp-test__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.hp-test__name { font-size: 13px; font-weight: 700; color: #ddd; line-height: 1.2; }
.hp-test__loc { font-size: 11.5px; color: #555; margin-top: 1px; }
.hp-test__google {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 11px;
    color: #555;
}
.hp-test__more { text-align: center; margin-top: 32px; }

/* ============================================
   Sticky CTA
   ============================================ */
.hp-sticky-cta {
    background: var(--green);
    padding: 22px 0;
    position: sticky;
    bottom: 0;
    z-index: 50;
}
.hp-sticky-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 16px;
}
.hp-sticky-cta__left h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}
.hp-sticky-cta__left p { font-size: 13px; color: var(--green-mid); }
.hp-sticky-cta .hp-btn--white { font-size: 15px; padding: 13px 26px; }

/* ============================================
   Footer
   ============================================ */
.hp-footer {
    background: var(--dark);
    border-top: 1px solid var(--dark-3);
    padding: 48px 0 32px;
}
.hp-footer__container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.hp-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.hp-footer__logo {
    display: inline-block;
    margin-bottom: 18px;
    text-decoration: none;
}
.hp-footer__logo img {
    height: 38px;
    width: auto;
    /* Footer is dark; flip the dark logo to white so it stays legible. */
    filter: brightness(0) invert(1);
    opacity: 0.92;
    transition: opacity 0.2s;
}
.hp-footer__logo:hover img { opacity: 1; }
.hp-footer__brand-desc { font-size: 13px; color: #b5b5b5; line-height: 1.65; max-width: 260px; margin-bottom: 22px; }
.hp-footer__social { display: flex; gap: 10px; }
.hp-footer__social a {
    display: inline-flex;
    width: 32px; height: 32px;
    border: 1px solid var(--dark-3);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.hp-footer__social a:hover { color: #fff; border-color: var(--green); background: rgba(158,171,3,0.1); }
.hp-footer__social-bvb { font-size: 9px; font-weight: 800; letter-spacing: 0.3px; }

.hp-footer__col h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 16px;
}
.hp-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hp-footer__col a {
    font-size: 13.5px;
    color: #c0c0c0;
    text-decoration: none;
    transition: color 0.2s;
}
.hp-footer__col a:hover { color: #fff; }
.hp-footer__address { font-size: 13.5px; color: #c0c0c0; line-height: 1.5; }

.hp-footer__bottom {
    padding-top: 28px;
    border-top: 1px solid var(--dark-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.hp-footer__bottom p { font-size: 12px; color: #a0a0a0; }
.hp-footer__bvb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a0a0a0;
}
.hp-footer__bvb-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.hp-footer__bvb-logo img {
    height: 20px;
    width: auto;
    /* Footer is dark and the logo art is black; flip it to white so it stays legible. */
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s;
}
.hp-footer__bvb-logo:hover img { opacity: 1; }
.hp-footer__bvb-pill {
    background: var(--dark-3);
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--green);
}

/* ============================================
   Popup (first-visit) — homepage visual language
   ============================================ */
.tbk-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(14,14,14,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: tbkFadeIn 0.3s ease;
}
@keyframes tbkFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.tbk-popup {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 32px 28px 24px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
    animation: tbkSlideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: inherit;
}
@keyframes tbkSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.tbk-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--ink-4);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}
.tbk-popup__close:hover { background: var(--surface); color: var(--ink); }

.tbk-popup__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
}
.tbk-popup__logo-mark {
    width: 38px; height: 38px;
    background: var(--green);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    font-style: italic;
    flex-shrink: 0;
}
.tbk-popup__logo-img { height: 40px; width: auto; display: block; }
.tbk-popup__logo-text { display: flex; flex-direction: column; line-height: 1; }
.tbk-popup__logo-text b {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.tbk-popup__logo-text small {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-4);
}

.tbk-popup__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-light);
    border: 1px solid var(--green-mid);
    border-radius: 20px;
    padding: 5px 12px 5px 8px;
    margin-bottom: 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--green-dark);
}
.tbk-popup__badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.tbk-popup__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.tbk-popup__sub {
    font-size: 14px;
    color: var(--ink-3);
    margin: 0 0 22px;
    line-height: 1.55;
}

.tbk-popup__choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.tbk-popup__choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}
.tbk-popup__choice:hover {
    border-color: var(--green);
    background: var(--green-light);
    transform: translateY(-1px);
}
.tbk-popup__choice-icon {
    width: 40px; height: 40px;
    border-radius: 9px;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    flex-shrink: 0;
    transition: background 0.2s;
}
.tbk-popup__choice:hover .tbk-popup__choice-icon { background: var(--green-mid); }
.tbk-popup__choice-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tbk-popup__choice-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}
.tbk-popup__choice-desc {
    font-size: 12px;
    color: var(--ink-4);
}
.tbk-popup__choice-arrow {
    font-size: 18px;
    color: var(--ink-4);
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.tbk-popup__choice:hover .tbk-popup__choice-arrow {
    color: var(--green);
    transform: translateX(2px);
}

.tbk-popup__skip {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-3);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.tbk-popup__skip:hover { color: var(--ink); background: var(--surface); }

/* ============================================
   Body scroll lock
   ============================================ */
.hp-no-scroll { overflow: hidden; }

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
    .hp-container,
    .hp-header__container,
    .hp-hero__inner,
    .hp-sticky-cta__inner,
    .hp-footer__container { padding-left: 24px; padding-right: 24px; }

    .hp-hero__inner { gap: 36px; }
    .hp-why__inner { gap: 48px; }
    .hp-invest__grid { gap: 40px; }
    .hp-footer__grid { gap: 32px; }
    .hp-partners__label { padding: 0 20px 0 24px; }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 860px) {
    section { padding: 56px 0; }

    /* Header - mobile burger menu */
    .hp-header__cta { display: none; }
    .hp-header__phone--desktop,
    .hp-lang-switcher--desktop { display: none; }
    .hp-header__burger { display: inline-flex; }

    /* The header has backdrop-filter, which makes it a containing block for
       position:fixed descendants. We pin the drawer to the viewport explicitly
       with width:100vw (and drop the backdrop-filter on mobile since the
       drawer covers the whole page when open). */
    .hp-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .hp-header__nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100vw;
        height: calc(100vh - var(--header-h));
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 24px;
        margin: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 99;
        box-sizing: border-box;
    }
    .hp-header__nav.hp-header__nav--open { transform: translateX(0); }

    .hp-nav__list {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        width: 100%;
    }
    .hp-nav__list li { width: 100%; border-bottom: 1px solid var(--border); }
    .hp-nav__list a {
        display: block;
        padding: 16px 24px;
        font-size: 15px;
        border-radius: 0;
    }

    .hp-header__phone--mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 18px 24px;
        font-size: 15px;
        font-weight: 600;
        color: var(--ink);
        text-decoration: none;
        border-bottom: 1px solid var(--border);
    }
    .hp-lang-switcher--mobile {
        display: flex;
        gap: 8px;
        padding: 18px 24px;
        align-items: center;
    }
    .hp-lang-switcher--mobile a { width: 28px; height: 28px; }

    .hp-header__container { padding: 0 16px; gap: 12px; }
    .hp-header__actions { gap: 8px; }

    /* Hero */
    .hp-hero { padding: 32px 0 0; }
    .hp-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 16px 48px;
    }
    .hp-hero__bg {
        width: 100%;
        height: 60%;
        top: auto;
        bottom: 0;
        clip-path: polygon(0 12%, 100% 0%, 100% 100%, 0% 100%);
    }
    .hp-hero__title { font-size: 32px; }
    .hp-hero__title br.d-only { display: none; }
    .hp-hero__sub { font-size: 15px; margin-bottom: 28px; max-width: none; }
    .hp-hero__ctas { margin-bottom: 36px; flex-direction: column; }
    .hp-hero__ctas .hp-btn { font-size: 14px; padding: 12px 20px; width: 100%; justify-content: center; white-space: normal; }
    .hp-hero__stats { gap: 16px; padding-top: 24px; flex-wrap: wrap; }
    .hp-hero__stat { flex: 1 1 calc(50% - 16px); min-width: 110px; }
    .hp-hero__stat-num { font-size: 22px; }
    .hp-hero__stat-label { font-size: 11px; max-width: 110px; }
    .hp-hero__stat-divider { display: none; }

    .hp-hero__panel { padding: 20px; }
    .hp-panel__pane { grid-template-columns: 1fr; }

    /* Partners */
    .hp-partners__label { padding: 0 16px; font-size: 9px; }
    .hp-partners__item { padding: 4px 18px; height: 40px; }
    .hp-partners__item img { max-height: 28px; max-width: 100px; }

    /* How */
    .hp-steps { grid-template-columns: 1fr; gap: 14px; }
    .hp-steps::before { display: none; }
    .hp-step { padding: 26px 22px 22px; }
    .hp-section__head { margin-bottom: 36px; }

    /* Map */
    .hp-map__wrapper { grid-template-columns: 1fr; gap: 16px; }
    .hp-map__agents-list { max-height: 320px; }
    .hp-map__container { min-height: 360px; order: -1; }
    .hp-map__canvas { min-height: 360px; }

    /* Why */
    .hp-why__inner { grid-template-columns: 1fr; gap: 32px; }
    .hp-why__photo { height: 200px; }
    .hp-why__lead { max-width: none; }

    /* Invest */
    .hp-invest__grid { grid-template-columns: 1fr; gap: 24px; }
    .hp-invest__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hp-invest__meta { text-align: left; }
    .hp-invest__price { font-size: 36px; }

    /* Testimonials */
    .hp-test__grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }

    /* Sticky CTA */
    .hp-sticky-cta { padding: 14px 0; }
    .hp-sticky-cta__inner { padding: 0 16px; gap: 12px; }
    .hp-sticky-cta__left h3 { font-size: 15px; }
    .hp-sticky-cta__left p { font-size: 12px; }
    .hp-sticky-cta .hp-btn--white { font-size: 13px; padding: 10px 16px; }

    /* Footer */
    .hp-footer { padding: 36px 0 24px; }
    .hp-footer__container { padding: 0 16px; }
    .hp-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        margin-bottom: 32px;
    }
    .hp-footer__brand { grid-column: 1 / -1; }
    .hp-footer__brand-desc { max-width: none; margin-bottom: 16px; }
    .hp-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

    /* Popup mobile */
    .tbk-popup { padding: 26px 20px 20px; max-width: 360px; border-radius: 18px; }
    .tbk-popup__title { font-size: 21px; }
    .tbk-popup__sub { font-size: 13.5px; margin-bottom: 18px; }
    .tbk-popup__brand { margin-bottom: 16px; }
    .tbk-popup__choice { padding: 12px 14px; }
    .tbk-popup__choice-icon { width: 36px; height: 36px; }
    .tbk-popup__choice-name { font-size: 14px; }
}

/* Smaller mobile */
@media (max-width: 480px) {
    .hp-header__logo img { height: 34px; }
    .hp-hero__title { font-size: 28px; }
    .hp-hero__stats { gap: 12px 20px; }
    .hp-h2 { font-size: 26px; }
    .hp-footer__grid { grid-template-columns: 1fr; }
}
