/* ===== Hero ===== */
.landing-hero {
  position: relative;
  direction: rtl;
  color: var(--landing-text);
  background-color: var(--landing-gray);
  padding-block: clamp(36px, 6vw, 88px);
  overflow: hidden;
  isolation: isolate;
}

/* blueprint grid */
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(12, 31, 56, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 31, 56, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 85%);
          mask-image: linear-gradient(to left, #000 0%, transparent 85%);
}

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

.landing-hero__inner {
  max-width: var(--landing-wrap);
  margin-inline: auto;
  padding-inline: var(--landing-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(31px, 3.85vw, 62px);
  align-items: stretch;
}

/* --- text column --- */
.landing-hero__content { display: flex; flex-direction: column; align-items: stretch; }

/* open / closed badge */
.landing-hero .landing-status {
  display: inline-grid;
  align-self: flex-start;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 10px;
  max-width: 100%;
  margin: auto 0 22px;
  padding: 8px 16px 8px 18px;
  background: var(--landing-navy);
  color: var(--landing-white);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.6;
  transition: background-color .3s ease, color .3s ease;
}
.landing-hero .landing-status[data-ready="false"] { visibility: hidden; }
.landing-status__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--landing-yellow);
  flex: none;
}
.landing-status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--landing-yellow);
  animation: landing-ping 2s ease-out infinite;
}
.landing-status__time { color: var(--landing-yellow); font-weight: 800; }

.landing-hero.is-closed .landing-status {
  border-radius: 16px;
  padding: 8px 18px 10px;
  background: var(--landing-white);
  color: var(--landing-navy);
  box-shadow: inset 0 0 0 1.5px rgba(12, 31, 56, .35);
}
.landing-hero.is-closed .landing-status__dot { background: rgba(12, 31, 56, .45); }
.landing-hero.is-closed .landing-status__dot::after { animation: none; opacity: 0; }
.landing-hero.is-closed .landing-status__time { color: inherit; }

@keyframes landing-ping {
  0%   { transform: scale(1);   opacity: .7; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

.landing-hero h1.landing-hero__title {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 1.1rem + 2.7vw, 3.2rem);
  font-weight: 800;
  line-height: 1.5;
  color: var(--landing-navy);
  text-wrap: balance;
}

.landing-hero p.landing-hero__lead {
  margin: 0 0 32px;
  text-align: justify;
  text-justify: inter-word;
  font-size: clamp(1rem, .95rem + .2vw, 1.0625rem);
  line-height: 2.1;
  color: var(--landing-text-soft);
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(28px, 3vw, 40px);
}

/* buttons: outline by default */
.landing-hero a.landing-btn {
  display: inline-flex;
  flex: 1 1 0;
  max-width: 320px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 10px;
  border: 1px solid var(--landing-navy);
  border-radius: 8px;
  background: transparent;
  color: var(--landing-navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.landing-hero a.landing-btn svg { width: 20px; height: 20px; flex: none; }

/* filled = the main action: call while open, consultation form while closed */
.landing-hero:not(.is-closed) a.landing-btn--call,
.landing-hero.is-closed a.landing-btn--consult {
  background: var(--landing-yellow);
  border-color: var(--landing-yellow);
  color: var(--landing-navy);
}
.landing-hero:not(.is-closed) a.landing-btn--call:hover,
.landing-hero:not(.is-closed) a.landing-btn--call:focus-visible,
.landing-hero.is-closed a.landing-btn--consult:hover,
.landing-hero.is-closed a.landing-btn--consult:focus-visible {
  background: var(--landing-navy);
  border-color: var(--landing-navy);
  color: var(--landing-yellow);
}
.landing-hero:not(.is-closed) a.landing-btn--consult:hover,
.landing-hero:not(.is-closed) a.landing-btn--consult:focus-visible,
.landing-hero.is-closed a.landing-btn--call:hover,
.landing-hero.is-closed a.landing-btn--call:focus-visible {
  background: var(--landing-navy);
  color: var(--landing-white);
}

.landing-hero a.landing-btn:focus-visible {
  outline: 3px solid var(--landing-navy);
  outline-offset: 3px;
}

/* closed-state message, inside the badge under the status line */
.landing-hero .landing-closed-msg {
  grid-column: 2;
  margin: 0;
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.7;
  white-space: nowrap;
  color: rgba(12, 31, 56, .8);
}
.landing-hero .landing-closed-msg[hidden] { display: none; }

.landing-hero p.landing-hero__note {
  margin: auto 0 0;
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--landing-yellow);
  font-size: .8125rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--landing-text-soft);
}
@media (min-width: 1280px) {
  .landing-hero p.landing-hero__note { white-space: nowrap; }
}

/* --- media column --- */
.landing-hero__media { margin: 0; position: relative; }

.landing-hero__frame {
  position: relative;
  aspect-ratio: 6 / 4;
  background: rgba(12, 31, 56, .1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(12, 31, 56, .45);
}
.landing-hero__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Wide screens: a bit more breathing room in the text column ===== */
@media (min-width: 1500px) {
  .landing-hero .landing-status { margin-bottom: 28px; }
  .landing-hero h1.landing-hero__title { margin-bottom: 26px; }
  .landing-hero p.landing-hero__lead { margin-bottom: 40px; }
}
@media (min-width: 901px) {
  .landing-hero__frame { width: 100%; height: 100%; }
  .landing-hero h1.landing-hero__title { text-wrap: wrap; } /* lines fill the column; use balance to revert */
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .landing-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .landing-hero__frame { aspect-ratio: 6 / 4; }
}
@media (max-width: 520px) {
  .landing-hero .landing-closed-msg { white-space: normal; }
  .landing-hero__actions { width: 100%; }
  .landing-hero a.landing-btn { flex: 1 1 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-status__dot::after { animation: none; opacity: 0; }
  .landing-hero a.landing-btn,
  .landing-hero .landing-status { transition: none; }
}
