/* Metropolis Harvest V9/V10 additions and interface stability fixes */

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--deep, #173D32);
  color: var(--paper, #FFF9EF);
  text-decoration: none;
  font-weight: 900;
}
.skip-link:focus { left: 16px; }

html, body { overflow-x: hidden; }
body { text-rendering: optimizeLegibility; }

/* Header and language selector */
.site-header {
  flex-wrap: wrap;
  gap: 16px;
}
.nav {
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.language-switcher select {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,249,239,.86);
  color: var(--deep);
  font-weight: 900;
  padding: 10px 12px;
  outline: none;
}
.language-switcher button {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--deep);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.language-switcher button.is-active {
  background: var(--deep);
  color: var(--paper);
}

/* Hero: the previous large fluid heading could overflow/overlap on mid-size screens. */
.hero {
  min-height: auto;
  padding: clamp(56px, 7vw, 84px) 0 clamp(46px, 6vw, 72px);
}
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}
.hero-copy,
.hero-visual,
.detail-grid > * {
  min-width: 0;
}
.hero-copy { max-width: 720px; }

h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.7vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  overflow-wrap: normal;
  word-break: normal;
}
h2 {
  font-size: clamp(30px, 4.1vw, 52px);
  letter-spacing: -1.35px;
}
h3 { overflow-wrap: anywhere; }
.lead {
  max-width: 700px;
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.58;
}
.kicker,
.eyebrow {
  max-width: 100%;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 2.6px;
  line-height: 1.35;
  flex-wrap: nowrap;
}
.kicker span:first-child,
.eyebrow::before {
  flex: 0 0 auto;
}
.kicker span:last-child {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}
.hero-visual { align-self: center; }
.hero-visual > img,
.detail-visual > img,
.region-visual {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}
.hero-actions {
  align-items: center;
  gap: 12px;
}
.button {
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}
.floating-card { max-width: calc(100% - 24px); }

/* V9 content blocks */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--deep, #173D32);
  color: var(--paper, #FFF9EF);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(16,43,36,.22);
}
.floating-whatsapp:hover { transform: translateY(-2px); }

.split-grid,
.do-dont {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.info-panel,
.checklist-card,
.do-dont article,
.faq-card {
  border: 1px solid var(--border);
  background: rgba(255,253,247,.86);
  box-shadow: 0 18px 54px rgba(16,43,36,.07);
}
.info-panel,
.do-dont article { padding: 32px; border-radius: var(--radius); }
.info-panel ul,
.checklist-grid ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--text);
}
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.checklist-card {
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg,rgba(255,253,247,.9),rgba(220,226,211,.58));
}
.two-column-list {
  columns: 2;
  column-gap: 42px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.faq-card {
  padding: 26px;
  border-radius: 24px;
}
.faq-card h3 { font-size: 21px; }
.pdf-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg,var(--deep),#265B4C);
  color: var(--paper);
}
.pdf-band h2,
.pdf-band h3 { color: var(--paper); }
.pdf-band p {
  color: rgba(255,249,239,.78);
  font-size: 18px;
}
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.smart-form .mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.smart-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: var(--paper);
  font: inherit;
  color: var(--text);
  outline: none;
}
.small-note { font-size: 14px; color: var(--muted); }
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.badge-row span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,249,239,.76);
  font-weight: 900;
  color: var(--deep);
}
.language-notice { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* RTL / Arabic */
.rtl,
[dir="rtl"] { direction: rtl; }
.rtl body,
[dir="rtl"] body { text-align: right; }
.rtl .brand,
.rtl .footer-brand,
.rtl .kicker,
.rtl .eyebrow,
.rtl .hero-actions,
.rtl .badge-row,
[dir="rtl"] .brand,
[dir="rtl"] .footer-brand,
[dir="rtl"] .kicker,
[dir="rtl"] .eyebrow,
[dir="rtl"] .hero-actions,
[dir="rtl"] .badge-row { direction: rtl; }
.rtl .product-content ul,
.rtl .info-panel ul,
.rtl .checklist-grid ul,
.rtl .detail-panel ul,
[dir="rtl"] .product-content ul,
[dir="rtl"] .info-panel ul,
[dir="rtl"] .checklist-grid ul,
[dir="rtl"] .detail-panel ul {
  padding-left: 0;
  padding-right: 20px;
}
.rtl .floating-whatsapp,
[dir="rtl"] .floating-whatsapp { right: auto; left: 22px; }

@media (max-width: 1180px) {
  .hero-grid,
  .detail-grid,
  .location-grid,
  .contact-grid,
  .split-grid,
  .checklist-grid,
  .do-dont,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy { max-width: 820px; }
  .hero-visual {
    width: min(720px, 100%);
    margin: 10px auto 0;
  }
  .floating-card {
    inset-inline-start: 18px;
    bottom: 18px;
  }
  .pdf-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .two-column-list { columns: 1; }
}

@media (max-width: 820px) {
  .hero { padding: 48px 0 44px; }
  h1 {
    font-size: clamp(34px, 9vw, 44px);
    letter-spacing: -1.05px;
  }
  h2 { font-size: clamp(28px, 7vw, 36px); }
  .kicker,
  .eyebrow {
    letter-spacing: 2px;
    font-size: 10.5px;
  }
  .kicker span:first-child,
  .eyebrow::before { width: 42px; }
  .language-switcher { width: 100%; }
  .language-switcher select { width: 100%; }
  .hero-visual > img,
  .detail-visual > img { max-height: 420px; }
  .floating-card {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 14px;
  }
  .smart-form .mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container,
  .narrow { width: min(100% - 28px, 1180px); }
  h1 {
    font-size: clamp(31px, 9.2vw, 36px);
    line-height: 1.08;
  }
  .lead { font-size: 17px; }
  .hero-actions { gap: 10px; }
  .button {
    width: 100%;
    min-height: 50px;
    padding: 13px 18px;
  }
  .kicker,
  .eyebrow {
    align-items: flex-start;
    flex-wrap: nowrap;
  }
  .kicker span:first-child,
  .eyebrow::before {
    width: 34px;
    margin-top: 6px;
  }
  .floating-whatsapp {
    left: 16px;
    right: 16px;
    bottom: 14px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .button,
  .product-card,
  .nav a,
  .floating-whatsapp { transition: none; }
}
