/* Cem.Mart landing - follows the Figma design "Cem.Mart" (desktop 1920, mobile 390) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --landing-ink: #313842;
    --landing-muted: #6b7a8b;
    --landing-blue: #1255a6;
    --landing-red: #c2240a;
    --landing-bg: #f9f9fc;
    --landing-card: #fff;
    --landing-icon-bg: #e9f3fd;
    --landing-footer-bg: #dfebf7;
    --landing-line: #e3e8ef;
    --landing-shadow: 0 4px 24px rgba(18, 85, 166, .08);
    --landing-font: Inter, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.landing-page {
    margin: 0;
    color: var(--landing-ink);
    font-family: var(--landing-font);
    font-size: 16px;
    line-height: 1.5;
    background: var(--landing-bg);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body.landing-page a { color: inherit; text-decoration: none; }
body.landing-page button,
body.landing-page input { font: inherit; color: inherit; }
body.landing-page img { max-width: 100%; }

.landing-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.landing-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.landing-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.landing-blue { color: var(--landing-blue); }
.landing-red { color: var(--landing-red); }

/* Page grid: blocks manage their own width, the row wrappers stay full width */
.landing-row > .landing-container { width: 100%; max-width: none; margin: 0; padding: 0; }
.landing-row-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.landing-column { min-width: 0; }
.landing-col-12 { grid-column: span 12; }
.landing-wrap { width: min(1440px, calc(100% - 80px)); margin-inline: auto; }

/* Buttons */
.landing-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; border: 1px solid var(--landing-blue); border-radius: 8px;
    font-size: 16px; font-weight: 500; line-height: 24px; white-space: nowrap; cursor: pointer;
    transition: background-color .15s, color .15s;
}
.landing-btn .landing-icon { width: 20px; height: 20px; }
body.landing-page .landing-btn-primary { background: var(--landing-blue); color: #fff; }
.landing-btn-primary:hover { background: #0d4687; border-color: #0d4687; }
body.landing-page .landing-btn-outline { background: #fff; color: var(--landing-blue); }
.landing-btn-outline:hover { background: var(--landing-icon-bg); }

/* Header */
.landing-header-wrap { position: relative; z-index: 20; }
.landing-header { height: 96px; padding: 0 40px; display: flex; align-items: center; gap: 24px; }
.landing-brand { display: inline-flex; flex: none; }
.landing-brand img { display: block; width: 140px; height: auto; }
.landing-nav { display: flex; align-items: center; gap: clamp(24px, 3.34vw, 64px); margin-inline: auto; }
.landing-nav a { position: relative; font-weight: 600; line-height: 24px; white-space: nowrap; transition: color .15s; }
.landing-nav a:hover { color: var(--landing-blue); }
.landing-nav a.is-active { color: var(--landing-red); }
.landing-nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 35px; height: 2px; margin-left: -17px; background: var(--landing-red); }
.landing-header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.landing-menu-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 0; background: none; align-items: center; justify-content: center; color: var(--landing-blue); cursor: pointer; }

.landing-language { position: relative; }
.landing-language-toggle {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 20px;
    border: 1px solid var(--landing-line); border-radius: 8px; background: transparent; color: var(--landing-blue);
    font-weight: 500; cursor: pointer;
}
.landing-language-toggle .landing-icon { width: 20px; height: 20px; }
.landing-language-list {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 144px; margin: 0; padding: 8px; list-style: none;
    background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(49, 56, 66, .14);
}
.landing-language-list[hidden] { display: none; }
.landing-language-list button {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 12px 0 8px;
    border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer;
}
.landing-language-list button:hover { background: var(--landing-bg); }
.landing-language-list .landing-icon { visibility: hidden; }
.landing-language-list [aria-selected="true"] button { color: var(--landing-red); }
.landing-language-list [aria-selected="true"] .landing-icon { visibility: visible; }
.landing-language-list .landing-icon { width: 16px; height: 16px; stroke-width: 2; }

/* Hero */
.landing-hero { position: relative; padding: 64px 40px 120px; overflow: hidden; }
.landing-hero-art { position: absolute; z-index: 0; pointer-events: none; height: auto; }
.landing-hero-art-left { left: 0; top: 61px; width: min(718px, 37.4vw); }
.landing-hero-art-right { right: 0; top: -6px; width: min(710px, 37vw); }
.landing-hero-inner { position: relative; z-index: 1; width: min(1020px, 100%); margin-inline: auto; text-align: center; }
.landing-hero h1 { margin: 0; font-size: 80px; font-weight: 700; line-height: 88px; letter-spacing: 0; }
.landing-hero-subtitle { margin: 16px 0 0; font-size: 24px; line-height: 34px; }

.landing-search {
    display: flex; align-items: center; gap: 12px; height: 72px; margin-top: 45px; padding: 8px 8px 8px 24px;
    background: #fff; border-radius: 12px; box-shadow: var(--landing-shadow); text-align: left;
}
.landing-search-icon { color: var(--landing-muted); }
body.landing-page .landing-search input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 18px; -webkit-appearance: none; appearance: none;
}
.landing-search input::placeholder { color: var(--landing-muted); opacity: 1; }
.landing-search button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; height: 52px; padding: 0 41px;
    border: 0; border-radius: 8px; background: var(--landing-blue); color: #fff; font-size: 20px; font-weight: 500; cursor: pointer;
    transition: background-color .15s;
}
.landing-search button:hover { background: #0d4687; }
body.landing-page .landing-search button { color: #fff; }
.landing-search button .landing-icon { display: none; }

.landing-quick { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.landing-quick-label { display: inline-flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 600; white-space: nowrap; }
.landing-quick-label .landing-icon { width: 20px; height: 20px; }
.landing-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.landing-chips a {
    display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border: 1px solid transparent;
    border-radius: 999px; background: #fff; color: var(--landing-ink); white-space: nowrap; transition: border-color .15s, color .15s;
}
.landing-chips a:hover,
.landing-chips a.is-active { border-color: var(--landing-red); color: var(--landing-red); }

/* Agent banner */
.landing-agent-banner { position: relative; z-index: 1; margin-top: -84px; padding-bottom: 32px; }
.landing-agent-card { display: flex; align-items: center; gap: 24px; width: min(890px, 100%); margin-inline: auto; padding: 16px 32px; border: 1px solid var(--landing-line); border-radius: 16px; background: rgba(255, 255, 255, .85); }
.landing-agent-art { flex: none; width: 96px; height: auto; padding-right: 24px; border-right: 1px solid var(--landing-line); box-sizing: content-box; }
.landing-agent-text { flex: 1; min-width: 0; }
.landing-agent-text strong { display: block; color: var(--landing-blue); font-size: 24px; font-weight: 600; line-height: 34px; }
.landing-agent-text strong em { color: var(--landing-red); font-style: normal; }
.landing-agent-text span { display: block; color: var(--landing-muted); line-height: 24px; }
.landing-agent-btn { flex: none; gap: 8px; padding: 0 20px; white-space: nowrap; }
.landing-agent-btn .landing-icon { width: 16px; height: 16px; }

/* Stats */
.landing-stat-card { display: flex; align-items: center; padding: 40px 0; border-radius: 16px; background: var(--landing-card); box-shadow: var(--landing-shadow); }
.landing-stat { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.landing-stat + .landing-stat::before { content: ""; position: absolute; left: 0; top: 50%; height: 54px; margin-top: -27px; border-left: 1px solid var(--landing-line); }
.landing-stat img { width: 60px; height: 60px; flex: none; }
.landing-stat strong { display: block; color: var(--landing-blue); font-size: 28px; font-weight: 600; line-height: 39px; }
.landing-stat span { display: block; line-height: 22px; white-space: nowrap; }

/* Services */
.landing-services { margin-top: 40px; }
.landing-service-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.landing-service-card {
    display: flex; flex-direction: column; align-items: center; min-height: 302px; padding: 20px; border-radius: 16px;
    background: var(--landing-card); box-shadow: var(--landing-shadow); text-align: center; transition: transform .2s, box-shadow .2s;
}
.landing-service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(18, 85, 166, .14); }
.landing-service-icon { display: flex; align-items: center; justify-content: center; width: 102px; height: 102px; border-radius: 50%; background: var(--landing-icon-bg); }
.landing-service-icon img { width: 56px; height: 56px; }
.landing-service-card strong { margin-top: 20px; font-size: 20px; font-weight: 600; line-height: 28px; text-transform: uppercase; }
.landing-service-desc { margin-top: 8px; line-height: 22px; }
.landing-service-go {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: auto;
    border: 1px solid var(--landing-red); border-radius: 50%; color: var(--landing-red); transition: background-color .15s, color .15s;
}
.landing-service-go .landing-icon { width: 20px; height: 20px; }
.landing-service-card:hover .landing-service-go { background: var(--landing-red); color: #fff; }
.landing-carousel-dots { display: none; }

/* Footer */
body.landing-page > footer { margin-top: auto; }
.landing-footer { margin-top: 80px; background: var(--landing-footer-bg); }
.landing-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 24px 40px; line-height: 22px; }
.landing-footer strong { color: var(--landing-blue); font-weight: 500; }
.landing-footer a { color: inherit; text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; }

/* Mobile menu */
.landing-mobile-menu[hidden] { display: none; }
.landing-mobile-menu { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow-y: auto; background: #fff; }
.landing-mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.landing-mobile-menu-head .landing-brand img { width: 90px; }
.landing-menu-close { display: flex; width: 40px; height: 40px; padding: 0; border: 0; background: none; align-items: center; justify-content: center; color: var(--landing-blue); cursor: pointer; }
.landing-mobile-nav { margin: 16px 16px 0; }
.landing-mobile-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid #eef1f6; font-size: 14px; font-weight: 500; }
.landing-mobile-nav a.is-active { color: var(--landing-red); }
.landing-mobile-nav .landing-icon { width: 20px; height: 20px; color: var(--landing-ink); }
.landing-mobile-account { margin: auto 16px 16px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 4px 24px rgba(49, 56, 66, .12); }
.landing-mobile-account-info { display: flex; align-items: center; gap: 12px; }
.landing-mobile-account-info > span:nth-child(2) { flex: 1; }
.landing-mobile-account-info strong { display: block; font-size: 14px; font-weight: 600; }
.landing-mobile-account-info small { display: block; color: var(--landing-muted); font-size: 12px; line-height: 16px; }
.landing-avatar { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--landing-icon-bg); color: var(--landing-blue); }
.landing-mobile-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

/* Header collapses to the hamburger layout before the desktop nav runs out of room */
@media (max-width: 1320px) {
    .landing-nav,
    .landing-register { display: none; }
    .landing-menu-toggle { display: inline-flex; }
    .landing-header { padding: 0 24px; }
}
@media (min-width: 1321px) {
    .landing-mobile-menu { display: none !important; }
}

/* Tablet and below */
@media (max-width: 1180px) {
    .landing-hero { padding-inline: 24px; }
    .landing-wrap { width: calc(100% - 48px); }
    .landing-stat-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 0; padding: 32px 16px; }
    .landing-stat:nth-child(3n + 1)::before { display: none; }
    .landing-service-grid {
        display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none;
    }
    .landing-service-grid::-webkit-scrollbar { display: none; }
    .landing-service-card { flex: 0 0 min(320px, 78%); scroll-snap-align: start; }
    .landing-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
    .landing-carousel-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid var(--landing-blue); border-radius: 50%; background: transparent; cursor: pointer; }
    .landing-carousel-dots button[aria-current="true"] { background: var(--landing-blue); }
}

/* Narrow tablets: mobile-style hero so the artwork stays above the title */
@media (max-width: 1000px) {
    .landing-hero { padding: 180px 24px 56px; }
    .landing-hero-art-left { top: 18px; left: 0; width: min(354px, 72.6vw); }
    .landing-hero-art-right { top: -13px; right: 0; width: min(364px, 74.6vw); }
    .landing-quick { flex-direction: column; gap: 12px; }
    .landing-agent-banner { margin-top: 0; }
}

/* Mobile */
@media (max-width: 760px) {
    .landing-header { height: 76px; padding: 0 16px; }
    .landing-brand img { width: 101px; }
    .landing-header-actions { gap: 8px; }
    .landing-header-actions .landing-btn { height: 40px; padding: 0 12px; font-size: 14px; }
    .landing-header-actions .landing-btn .landing-icon { display: none; }
    body.landing-page .landing-header-actions .landing-btn-primary { background: #fff; color: var(--landing-blue); }
    .landing-language-toggle { height: 40px; padding: 0 8px 0 12px; border-color: var(--landing-footer-bg); background: #fff; font-size: 14px; }
    .landing-agent-card { flex-direction: column; gap: 12px; padding: 16px; text-align: center; }
    .landing-agent-art { width: 72px; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--landing-line); }
    .landing-agent-text strong { font-size: 20px; line-height: 28px; }
    .landing-agent-btn { width: 100%; justify-content: center; }
    .landing-hero { padding: 149px 16px 40px; }
    .landing-hero-art-left { top: 18px; left: 0; width: 72.6vw; }
    .landing-hero-art-right { top: -13px; right: 0; width: 74.6vw; }
    .landing-hero h1 { font-size: 48px; line-height: 60px; }
    .landing-hero-subtitle { max-width: 268px; margin: 8px auto 0; font-size: 16px; line-height: 24px; text-wrap: balance; }
    .landing-search { height: 64px; margin-top: 32px; padding: 4px 4px 4px 16px; }
    .landing-search-icon { display: none; }
    body.landing-page .landing-search input { font-size: 14px; }
    .landing-search button { width: 56px; height: 56px; padding: 0; }
    .landing-search button span { display: none; }
    .landing-search button .landing-icon { display: block; width: 28px; height: 28px; }
    .landing-quick { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; text-align: left; }
    .landing-quick-label { font-size: 16px; line-height: 24px; }
    .landing-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
    .landing-chips a { height: 40px; padding: 0 8px; border-color: var(--landing-footer-bg); font-size: 14px; }
    .landing-chips a:hover,
    .landing-chips a.is-active { border-color: var(--landing-red); }
    .landing-wrap { width: calc(100% - 32px); }
    .landing-stat-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; padding: 24px; border: 1px solid var(--landing-footer-bg); box-shadow: none; }
    .landing-stat + .landing-stat::before { display: none; }
    .landing-stat { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; }
    .landing-stat img { width: 48px; height: 48px; }
    .landing-stat > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
    .landing-stat strong { font-size: 20px; line-height: 28px; }
    .landing-stat span { font-size: 14px; line-height: 20px; }
    .landing-services { margin-top: 40px; }
    .landing-service-card { flex-basis: 100%; min-height: 302px; border: 1px solid var(--landing-footer-bg); box-shadow: none; }
    .landing-carousel-dots { margin-top: 20px; }
    .landing-footer { margin-top: 45px; }
    .landing-footer-inner { flex-direction: column; align-items: center; gap: 4px; padding: 16px; font-size: 14px; text-align: center; line-height: 20px; }
}

@media (max-width: 400px) {
    .landing-header { gap: 8px; }
    .landing-brand img { width: 80px; }
    .landing-header-actions { gap: 4px; }
    .landing-header-actions .landing-btn { padding: 0 8px; font-size: 13px; }
    .landing-language-toggle { padding: 0 4px 0 8px; font-size: 13px; }
    .landing-hero h1 { font-size: 44px; }
    body.landing-page .landing-search input { font-size: 12px; }
    .landing-stat > div { display: block; }
    .landing-stat span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* Google Translate: hide its banner and keep the page from shifting */
#google_translate_element,
.goog-te-banner-frame,
body > .skiptranslate { display: none !important; }
body.landing-page { top: 0 !important; }
