/**
 * EOS calculator — Ajman · isolated (#22/#26)
 * Structure: GM calculator form (uae-lawyer) + Ajman hero/sidebar exclusivity.
 * Tokens: navy #0b1f33 · gold #c9a84c · mist #f2f0e8 · local Tajawal / Inter.
 */
body[data-page="calculator"] .site-main {
  font-family: "Tajawal", system-ui, sans-serif;
  background: #fff;
  color: #1a1a1a;
  max-width: 100%;
  overflow-x: hidden;
}
html[lang="en"] body[data-page="calculator"] .site-main {
  font-family: "Inter", system-ui, sans-serif;
}

.eos-page {
  background: #fff;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.eos-wrap {
  width: min(100% - 40px, 1100px);
  margin-inline: auto;
  padding: 24px 0;
  box-sizing: border-box;
}

/* Hero */
.eos-hero {
  position: relative;
  isolation: isolate;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1f33;
  overflow: hidden;
  border-bottom: 3px solid #c9a84c;
}
.eos-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 0;
}
.eos-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 21, 34, 0.58) 0%, rgba(7, 21, 34, 0.82) 100%),
    linear-gradient(90deg, rgba(201, 168, 76, 0.28) 0%, rgba(201, 168, 76, 0.08) 55%, rgba(7, 21, 34, 0.45) 100%);
}
.eos-hero__inner {
  position: relative;
  z-index: 2;
  padding: 44px 0 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.eos-crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}
.eos-crumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.eos-crumb a:hover { color: #c9a84c; }
.eos-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
}
.eos-hero__line {
  display: block;
  white-space: nowrap;
}
/* Mobile: one flowing title (no forced two-line split) */
@media (max-width: 720px) {
  .eos-hero h1 {
    display: block;
    max-width: 100%;
  }
  .eos-hero__line {
    display: inline;
    white-space: normal;
  }
}
.eos-hero__rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 16px;
  background: #c9a84c;
  border-radius: 2px;
}
.eos-hero__lede {
  margin: 0;
  max-width: 42em;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Layout */
.eos-body { background: #f2f0e8; padding-bottom: 8px; }
.eos-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .eos-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
    align-items: start;
  }
}

/* Form */
.eos-form {
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 4px;
  padding: 1.35rem 1.25rem;
  display: grid;
  gap: 0.95rem;
  box-shadow: 0 8px 28px rgba(11, 31, 51, 0.06);
}
.eos-form__kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c9a84c;
}
.eos-field {
  display: grid;
  gap: 0.4rem;
}
.eos-field label {
  font-weight: 700;
  color: #0b1f33;
  font-size: 0.95rem;
}
.eos-field input,
.eos-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9d4c6;
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: #1a1a1a;
  background: #fff;
  box-sizing: border-box;
}
.eos-field input:focus,
.eos-field select:focus {
  outline: 2px solid rgba(201, 168, 76, 0.45);
  border-color: #c9a84c;
}

.eos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.eos-btn--gold {
  background: #c9a84c;
  color: #0b1f33;
  border-color: #c9a84c;
}
.eos-btn--gold:hover {
  background: #0b1f33;
  color: #fff;
  border-color: #0b1f33;
}
.eos-btn--ghost {
  background: transparent;
  color: #0b1f33;
  border-color: #0b1f33;
}
.eos-btn--ghost:hover {
  background: #0b1f33;
  color: #fff;
}

.eos-result {
  background: #0b1f33;
  color: #fff;
  border-radius: 4px;
  padding: 1.15rem 1.1rem;
  border-inline-start: 4px solid #c9a84c;
}
.eos-result__label {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}
.eos-result__amount {
  font-size: 1.15rem;
}
.eos-result__amount strong {
  color: #c9a84c;
  font-size: 1.65rem;
  font-weight: 800;
}
.eos-result__note {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.9;
}

/* Notes */
.eos-notes {
  margin-top: 1.25rem;
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 4px;
  padding: 1.2rem 1.15rem;
}
.eos-notes h2 {
  margin: 0 0 0.75rem;
  color: #0b1f33;
  font-size: 1.1rem;
  font-weight: 800;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c9a84c;
}
.eos-notes__list {
  margin: 0 0 0.85rem;
  padding-inline-start: 1.2rem;
  color: #333;
  line-height: 1.65;
}
.eos-notes__list li { margin-bottom: 0.35rem; }
.eos-notes__disclaimer {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* Sidebar */
.eos-side {
  display: grid;
  gap: 1rem;
}
.eos-side__card {
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 4px;
  padding: 1.15rem 1.1rem;
}
.eos-side__card--soft { background: #fffdf8; }
.eos-side__card h2 {
  margin: 0 0 0.55rem;
  color: #0b1f33;
  font-size: 1.05rem;
  font-weight: 800;
}
.eos-side__card p {
  margin: 0 0 0.9rem;
  color: #444;
  font-size: 0.94rem;
  line-height: 1.6;
}
.eos-side__actions {
  display: grid;
  gap: 0.55rem;
}
.eos-side__link {
  color: #0b1f33;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #c9a84c;
  padding-bottom: 2px;
}
.eos-side__link:hover { color: #c9a84c; }

@media (max-width: 560px) {
  .eos-hero { min-height: 260px; }
  .eos-hero__inner { padding: 36px 0 28px; }
  .eos-form { padding: 1.15rem 1rem; }
}
