/* ==========================================================================
   Meili Property Solutions — public marketing site
   Standalone stylesheet. Palette derived from the company logo
   (royal blue / warm orange / charcoal). This file is intentionally
   independent of the CRM design system — editing it never affects the app.
   ========================================================================== */

:root {
  /* Brand — sampled from the logo */
  --blue-900: #14304c;
  --blue-800: #1a3c5d;
  --blue-700: #214a72;
  --blue-600: #285687;
  --blue:     #2d5f93;
  --blue-500: #3a70a6;
  --blue-300: #87a9c9;
  --blue-100: #dbe7f3;
  --blue-50:  #eef4fb;

  --orange:     #e98a23;
  --orange-600: #d2791a;
  --orange-700: #b9680f;
  --orange-100: #fceedb;

  --ink:    #1d1d20;
  --ink-2:  #33333a;
  --muted:  #5f6b7a;
  --line:   #e7ebf2;

  --white:  #ffffff;
  --bg:     #ffffff;
  --bg-alt: #f5f8fc;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(20, 48, 76, .06);
  --shadow:    0 10px 30px rgba(20, 48, 76, .08);
  --shadow-lg: 0 24px 60px rgba(20, 48, 76, .16);

  --maxw: 1180px;
  --nav-h: 74px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

/* --- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.bg-alt { background: var(--bg-alt); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.section-head { max-width: 720px; margin: 0 auto 56px; }
.section-head.center { text-align: center; }
.muted { color: var(--muted); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(233, 138, 35, .32); }
.btn-primary:hover { background: var(--orange-600); color: #fff; box-shadow: 0 12px 26px rgba(233, 138, 35, .4); transform: translateY(-1px); }
.btn-dark { background: var(--blue); color: #fff; }
.btn-dark:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue-100); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-50); }
.btn-light { background: #fff; color: var(--blue-700); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-800); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* --- Top utility bar ---------------------------------------------------- */
.topbar { background: var(--blue-900); color: #cbd9e8; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #e4edf6; }
.topbar a:hover { color: #fff; }
.topbar-contacts { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-contacts span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social a { display: inline-flex; }

/* --- Navbar ------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--blue-800); line-height: 1; }
.brand-name small { display: block; font-size: .62rem; letter-spacing: .18em; color: var(--orange-600); font-weight: 700; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { font-family: var(--font-head); font-weight: 600; color: var(--ink-2); padding: 10px 14px; border-radius: 8px; font-size: .98rem; }
.nav-links a:hover { color: var(--blue); background: var(--blue-50); }
.nav-links a.active { color: var(--blue); }
.nav-only-mobile { display: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--blue-800); }
.nav-toggle svg { width: 28px; height: 28px; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #eaf2fb;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(58,112,166,.55), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(233,138,35,.18), transparent 55%),
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 86px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--orange); }
.hero p { color: #d4e2f1; font-size: 1.22rem; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div { font-family: var(--font-head); }
.hero-trust b { display: block; font-size: 1.7rem; color: #fff; font-weight: 800; }
.hero-trust span { font-size: .9rem; color: #aec6de; }

/* Hero illustration card */
.hero-art { position: relative; }
.hero-card {
  background: rgba(255,255,255,.96); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; color: var(--ink);
}
.hero-card .logo-wrap { display: flex; justify-content: center; padding: 18px 0 22px; }
.hero-card .logo-wrap img { height: 132px; width: auto; }
.hero-card .hc-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--blue-50); margin-top: 12px; }
.hero-card .hc-row .ic { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--blue); color: #fff; }
.hero-card .hc-row .ic.alt { background: var(--orange); }
.hero-card .hc-row b { font-family: var(--font-head); display: block; font-size: .98rem; }
.hero-card .hc-row span { font-size: .85rem; color: var(--muted); }

/* --- Feature / value cards --------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 18px;
}
.card .ic svg { width: 28px; height: 28px; }
.card.accent .ic { background: var(--orange-100); color: var(--orange-600); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* --- Service detail blocks --------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg); padding: 48px; min-height: 320px;
  display: grid; place-items: center; box-shadow: var(--shadow);
  background: linear-gradient(155deg, var(--blue-700), var(--blue-500));
  color: #fff;
}
.split-media.warm { background: linear-gradient(155deg, var(--orange-600), var(--orange)); }
.split-media .big-ic svg { width: 120px; height: 120px; opacity: .96; }
.feature-list { list-style: none; margin-top: 18px; }
.feature-list li { display: flex; gap: 12px; padding: 9px 0; color: var(--ink-2); align-items: flex-start; }
.feature-list li svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }

/* --- Steps -------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.step { position: relative; padding: 30px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: #fff;
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue);
  display: grid; place-items: center; margin-bottom: 16px;
}
.step:nth-child(2)::before { background: var(--orange); }
.step:nth-child(3)::before { background: var(--blue-700); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* --- Stats band --------------------------------------------------------- */
.statband { background: var(--blue); color: #fff; border-radius: var(--radius-lg); padding: 44px; }
.statband .grid-4 { gap: 20px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; }
.stat span { color: #cfe0f1; font-size: .95rem; }

/* --- Audience (landlords / tenants) ------------------------------------ */
.audience { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.audience h3 { display: flex; align-items: center; gap: 12px; }
.audience h3 .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.audience.warm h3 .ic { background: var(--orange-100); color: var(--orange-600); }

/* --- CTA band ----------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--blue-800), var(--blue-600));
  color: #fff; padding: 60px; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #d4e2f1; max-width: 56ch; margin: 0 auto 28px; }
.cta .hero-actions { justify-content: center; }
.cta::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(233,138,35,.4), transparent 70%);
}

/* --- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 46px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.contact-item b { font-family: var(--font-head); display: block; font-size: .95rem; }
.contact-item a, .contact-item span { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; display: block; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.field textarea { resize: vertical; min-height: 130px; }

/* --- Page hero (inner pages) ------------------------------------------- */
.page-hero { background: linear-gradient(160deg, var(--blue-900), var(--blue-700)); color: #fff; padding: 70px 0 64px; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #cfe0f1; max-width: 60ch; margin: 0 auto; font-size: 1.12rem; }
.breadcrumb { font-size: .85rem; color: #9fbcd9; margin-bottom: 18px; }
.breadcrumb a { color: #cfe0f1; }

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--blue-900); color: #b6c8da; padding: 64px 0 26px; font-size: .95rem; }
.footer a { color: #d7e3ef; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand img { height: 40px; background: #fff; padding: 6px; border-radius: 10px; }
.footer .brand-name { color: #fff; }
.footer .brand-name small { color: var(--orange); }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer .f-contact div { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer .f-contact svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--orange); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; color: #8aa3bb; font-size: .85rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer-social a:hover { background: var(--orange); }
.footer-social svg { width: 18px; height: 18px; }

/* --- Reveal animation --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 64px; }
  .hero-art { max-width: 460px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 72px 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 4px;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .25s ease; z-index: 49;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-cta-desktop { display: none; }
  .nav-only-mobile { display: block; }
  .grid-2, .grid-4, .form-row { grid-template-columns: 1fr; }
  .cta, .statband { padding: 38px 24px; }
  .hero-trust { gap: 20px; }
}
