* { box-sizing: border-box; }
html { background: var(--visit-page); color: var(--visit-ink); }
body { margin: 0; font-family: 'IBM Plex Sans Arabic', Arial, sans-serif; }
a, button { color: inherit; font: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }

.shell {
  width: min(1240px, calc(100% - 72px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  inset-inline-start: 20px;
  top: -100px;
  z-index: 2;
  padding: 12px 18px;
  background: var(--visit-forest);
  color: white;
}
.skip-link:focus { top: 12px; }
.site-header {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--visit-line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 600;
}
.brand svg { width: 29px; height: 29px; flex: none; }
.language-toggle {
  min-width: 52px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--visit-line);
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
}
.language-toggle:hover { background: var(--visit-hover); }
main { padding-block: 22px 32px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  border-radius: 15px;
  overflow: hidden;
  background: var(--visit-forest);
  color: var(--visit-paper);
}
.hero-copy { align-self: center; padding: clamp(22px, 4.2vw, 60px); }
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 4.5vw, 66px);
  line-height: 1.2;
  font-weight: 600;
  text-wrap: balance;
}
.hero-copy > p {
  color: #e0eadf;
  margin: 0;
  max-width: 34ch;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
}
.hero-visual { position: relative; min-width: 0; background: #c8bdac; }
.hero-visual img, .room-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual img { position: absolute; inset: 0; object-position: 48% 53%; }

.classroom-link { min-width: 0; }
.featured {
  display: block;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #ffffff40;
}
.featured:focus-visible { outline-color: var(--visit-gold); }
.classroom-link h2 { margin: 0 0 4px; font-size: 23px; line-height: 1.4; font-weight: 600; }
.classroom-link p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--visit-muted); }
.featured p { color: #e0eadf; }
.room-open {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--visit-forest);
}
.room-open svg { width: 19px; height: 19px; flex: none; transition: translate 160ms ease; }
:dir(ltr) .room-open svg { rotate: 180deg; }
.classroom-link:hover .room-open svg { translate: -3px; }
.classroom-link:dir(ltr):hover .room-open svg { translate: 3px; }
.featured .room-open {
  min-height: 44px;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 6px 13px;
  border-radius: 7px;
  background: var(--visit-gold);
  color: #192f24;
}
.featured:hover .room-open { background: #f0cc93; }

.classrooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-block: 18px 26px;
}
.room-row {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  background: var(--visit-paper);
  border: 1px solid var(--visit-line);
  border-radius: 13px;
  overflow: hidden;
  transition: border-color 160ms ease;
}
.room-row:hover { border-color: #799783; }
.room-visual { min-height: 138px; background: #d9dacf; }
.room-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 18px clamp(13px, 1.7vw, 24px);
}
.room-row .room-open { padding-top: 11px; margin-top: auto; }

.visit-help {
  display: grid;
  grid-template-columns: minmax(0, .7fr) repeat(2, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--visit-line);
  padding-top: 19px;
}
.visit-help h2 { margin: 0; font-size: 19px; font-weight: 600; }
.visit-help p { margin: 0; color: var(--visit-muted); font-size: 14px; line-height: 1.65; }
.visit-help strong { display: block; color: var(--visit-ink); font-weight: 600; }

@media (max-width: 940px) {
  .shell { width: calc(100% - 44px); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-copy { padding: clamp(22px, 4vw, 36px); }
  .classroom-link h2 { font-size: 21px; }
  .room-copy { padding: 14px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); }
  .site-header { min-height: 60px; }
  main { padding-top: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { grid-row: 1; aspect-ratio: 2/1; }
  .hero-copy { padding: 20px; }
  .hero h1 { font-size: clamp(34px, 8vw, 48px); }
  .featured { margin-top: 16px; padding-top: 12px; }
  .featured .room-open { margin-top: 9px; }
  .classrooms { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-block: 12px 19px; }
  .room-row { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); }
  .room-visual { min-height: 126px; }
  .room-copy p { font-size: 13px; }
  .visit-help { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; }
  .visit-help h2 { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) {
  .classroom-link, .room-open svg { transition: none; }
  .classroom-link:hover .room-open svg { translate: none; }
}
