/* ME Real Estate — launching-soon page
   Colours come from the logo: teal wordmark, yellow sun. */

:root {
  --teal: #1b8a9a;
  --teal-700: #136b77;
  --teal-800: #0f5862;
  --teal-50: #eef6f7;
  --sun: #f4b41a;
  --ink: #16232a;
  --text: #33434b;
  --muted: #5b6b73;
  --line: #e2e8ea;
  --bg: #ffffff;
  --panel: #f5f8f8;

  --font: "Plus Jakarta Sans", "Mukta", system-ui, -apple-system, "Segoe UI",
    "Nirmala UI", "Noto Sans Devanagari", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:lang(hi) body,
body:lang(hi) {
  line-height: 1.75;
}

a {
  color: var(--teal-700);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 100vh;
  min-height: 100svh;
}

.brand-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
  background:
    radial-gradient(55% 45% at 78% 16%, rgba(244, 180, 26, 0.16), transparent 70%),
    radial-gradient(65% 55% at 12% 96%, rgba(27, 138, 154, 0.13), transparent 72%),
    var(--panel);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.brand-logo {
  width: min(520px, 90%);
  margin: 0;
}

/* The logo file is square with wide empty margins; show the drawn part only. */
.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.content {
  display: flex;
  flex-direction: column;
  padding: 40px clamp(32px, 6vw, 104px) 28px;
}

.content-main {
  margin: auto 0;
  max-width: 640px;
  padding: 72px 0 56px;
}

/* ---------- Language switch ---------- */

.lang {
  position: absolute;
  top: 24px;
  right: clamp(20px, 3vw, 40px);
  z-index: 2;
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(22, 35, 42, 0.04);
}

.lang a {
  display: inline-block;
  min-width: 72px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang a:hover {
  background: var(--teal-50);
  color: var(--teal-800);
}

.lang a[aria-current="page"] {
  background: var(--teal-700);
  color: #fff;
}

/* ---------- Text ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-800);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  80%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

h1 {
  margin: 24px 0 20px;
  color: var(--ink);
  font-size: clamp(2.125rem, 1.25rem + 2.9vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

:lang(hi) h1 {
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0;
}

h1 .accent {
  color: var(--teal);
  white-space: nowrap;
}

.lead {
  max-width: 34em;
  margin: 0;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.7;
  text-wrap: pretty;
}

:lang(hi) .lead {
  font-size: 1.25rem;
  line-height: 1.85;
}

.label {
  margin: 0 0 14px;
  color: var(--teal-700);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:lang(hi) .label {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- Services ---------- */

.services {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
}

.tile-icon svg {
  width: 24px;
  height: 24px;
}

.tile-name {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

:lang(hi) .tile-name {
  font-size: 1.1875rem;
  line-height: 1.5;
}

/* ---------- Contact (shown only when details are filled in config.js) ---------- */

.contact {
  margin-top: 36px;
}

.contact[hidden] {
  display: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  border-color: var(--teal);
  background: var(--teal-50);
}

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.btn-primary {
  border-color: var(--teal-700);
  background: var(--teal-700);
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--teal-800);
  background: var(--teal-800);
}

/* ---------- Footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 640px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.foot p {
  margin: 0;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 960px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .brand-panel {
    padding: 76px 20px 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-logo {
    width: min(340px, 84%);
  }

  .lang {
    top: 16px;
    right: 16px;
  }

  .content {
    padding: 36px 24px 24px;
  }

  .content-main {
    margin: 0;
    padding: 0 0 48px;
  }
}

@media (max-width: 480px) {
  .lang a {
    min-width: 64px;
    padding: 5px 12px;
    font-size: 0.875rem;
  }

  .content {
    padding: 32px 18px 22px;
  }

  .lead {
    font-size: 1.0625rem;
  }

  :lang(hi) .lead {
    font-size: 1.1875rem;
  }

  .services {
    margin-top: 36px;
    padding-top: 28px;
  }

  .tiles {
    gap: 8px;
  }

  .tile {
    gap: 12px;
    padding: 14px 12px 16px;
  }

  .tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .tile-name {
    font-size: 0.9375rem;
  }

  :lang(hi) .tile-name {
    font-size: 1.0625rem;
  }

  .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot::after {
    animation: none;
  }

  .lang a,
  .btn {
    transition: none;
  }
}
