/* ==========================================================================
   Pure Land Supermarket — public site
   Faithful to the approved design at desktop width, with the responsive
   behaviour, hover states and focus styles the original mock-up did not have.
   ========================================================================== */

:root {
  --cream:        #f7f3ea;
  --cream-deep:   #efe9db;
  --ink:          #16291c;
  --ink-soft:     #2b3a2f;
  --body:         #41513f;
  --muted:        #5a6a58;
  --muted-2:      #6c7a6c;
  --muted-3:      #7a887a;
  --muted-4:      #8a978a;
  --green-dark:   #0f3a22;
  --green-deep:   #0b2c1a;
  --green:        #1f9d46;
  /* Darker brand green reserved for small text. The bright --green is only
     3.2:1 on cream, so it is used for fills and borders, never for labels. */
  --green-ink:    #17703a;
  --green-lt:     #5fd07e;
  --green-lt-2:   #7fe3a0;
  --on-dark:      #eaf1ea;
  --on-dark-soft: #cfe0d2;
  --on-dark-mute: #9fc0a6;
  --on-dark-lbl:  #7fb98c;
  --placeholder:  #e8e4da;
  --field-bg:     #fbfaf6;
  --hairline:     rgba(15, 58, 34, .16);
  --whatsapp:     #25d366;
  --danger:       #b3261e;

  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --sans:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
             Roboto, Helvetica, Arial, sans-serif;

  --shell:   1200px;
  --gutter:  24px;
  --section: 96px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

/* Drop browser default margins so every gap below is intentional.
   (Without this, <figure> carries a 40px side margin and <p> a 1em top
   margin, which pulls grid tiles and section labels out of alignment.) */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol, fieldset {
  margin: 0;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; }

a { text-decoration: none; color: inherit; }

::selection { background: var(--green); color: #fff; }

section[id] { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Visible keyboard focus everywhere — the original design had none. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Hidden by moving it up rather than off to one side: a negative `left`
   would extend the scrollable area on the Arabic (right-to-left) page. */
.skip-link {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 200;
  background: var(--green-dark);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  border-end-end-radius: 10px;
  transform: translateY(-130%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

@keyframes pl-fade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Shared type -------------------------------------------------------------- */

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--green-ink);
  margin-bottom: 14px;
}

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.07;
  letter-spacing: -.02em;
  color: var(--green-dark);
  margin: 0 0 14px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-head .h2 { margin-bottom: 14px; }
.section-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  border-radius: 12px;
  padding: 15px 26px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn--primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 22px -8px rgba(31, 157, 70, .7);
}
.btn--primary:hover { background: var(--green-dark); }

.btn--ghost {
  color: var(--green-dark);
  background: #fff;
  border: 1.5px solid var(--hairline);
}
.btn--ghost:hover { border-color: var(--green); }

.btn--light {
  color: var(--green-dark);
  background: #fff;
  padding: 14px 24px;
}
.btn--light:hover { background: var(--green-lt); }

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */

.announce {
  background: var(--green-dark);
  color: #dfe9df;
  font-size: 13px;
  letter-spacing: .02em;
  text-align: center;
  padding: 9px 18px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 58, 34, .1);
}

.header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { display: block; width: 46px; height: 46px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: var(--green-dark);
  letter-spacing: -.01em;
}
.brand__sub {
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--green);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
  align-items: center;
}
.nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .18s ease;
}
.nav a:hover { color: var(--green); }

.header__cta { display: flex; align-items: center; gap: 10px; margin-inline-start: 18px; }

.btn--pill {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.btn--pill:hover { background: var(--green-dark); }

/* Language switch --------------------------------------------------------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 8px 12px;
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-dark);
  background: #fff;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
.lang-switch:hover { border-color: var(--green); color: var(--green-ink); }

/* Mobile menu ------------------------------------------------------------- */

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--hairline);
  border-radius: 11px;
  background: #fff;
  color: var(--green-dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(15, 58, 34, .1);
  background: rgba(247, 243, 234, .98);
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 18px;
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  display: block;
  padding: 13px 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(15, 58, 34, .08);
}
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav .btn--pill {
  display: inline-flex;
  margin-top: 14px;
  padding: 12px 20px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px var(--gutter) 84px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}
.hero__copy { animation: pl-fade .7s ease both; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 157, 70, .12);
  color: var(--green-ink);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero__badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--green-dark);
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 520px;
  margin: 0 0 30px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__media { position: relative; animation: pl-fade .9s ease both; }
.hero__glow {
  position: absolute;
  inset: -6% -4%;
  background: radial-gradient(circle at 60% 40%, rgba(31, 157, 70, .16), transparent 62%);
  pointer-events: none;
}
.hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -30px rgba(15, 58, 34, .45);
  border: 6px solid #fff;
  border-radius: 20px;
  overflow: hidden;
  background: var(--placeholder);
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(1.1) contrast(1.05) brightness(1.03);
}

.hero__card {
  position: absolute;
  bottom: -22px;
  inset-inline-start: -22px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 18px 40px -18px rgba(15, 58, 34, .4);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__card img { width: 40px; height: 40px; object-fit: contain; }
.hero__card-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  color: var(--green-dark);
}
.hero__card-desc { font-size: 12px; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   Highlights strip
   -------------------------------------------------------------------------- */

.facts { background: var(--green-dark); color: var(--on-dark); }
.facts__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fact { display: flex; flex-direction: column; gap: 3px; }
.fact + .fact {
  border-inline-start: 1px solid rgba(255, 255, 255, .12);
  padding-inline-start: 18px;
}
.fact__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  color: #fff;
}
.fact__desc { font-size: 13px; color: var(--on-dark-mute); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about { padding: var(--section) 0; }
.about__inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.about__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  box-shadow: 0 24px 50px -28px rgba(15, 58, 34, .4);
  overflow: hidden;
  background: var(--placeholder);
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05) brightness(1.03);
}
.about__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 26px;
}
.about__body p { margin: 0 0 14px; }
.about__body p:last-child { margin-bottom: 0; }

.points { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.points li { display: flex; align-items: flex-start; gap: 12px; }
.points i {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(31, 157, 70, .14);
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.points span { font-size: 15.5px; color: var(--ink-soft); font-weight: 500; }

/* --------------------------------------------------------------------------
   Grand opening banner
   -------------------------------------------------------------------------- */

.opening { padding: 0 0 var(--section); }
.opening__frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--placeholder);
  box-shadow: 0 26px 60px -34px rgba(15, 58, 34, .5);
}
.opening__frame img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 50% 100%;
}
.opening__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 40px 34px;
  background: linear-gradient(180deg,
    rgba(11, 44, 26, 0) 0%,
    rgba(11, 44, 26, .82) 60%,
    rgba(11, 44, 26, .94) 100%);
}
.opening__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--green-lt-2);
  margin-bottom: 10px;
}
.opening__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 8px;
}
.opening__body {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--on-dark-soft);
  margin: 0;
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   Departments
   -------------------------------------------------------------------------- */

.departments {
  padding: var(--section) 0;
  background: linear-gradient(180deg, var(--cream-deep), var(--cream));
}
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.dept {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px -28px rgba(15, 58, 34, .5);
  border: 1px solid rgba(15, 58, 34, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dept:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -26px rgba(15, 58, 34, .55);
}
.dept__media {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--placeholder);
}
.dept__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05) brightness(1.03);
}
.dept__body { padding: 22px 22px 26px; }
.dept__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  color: var(--green-dark);
  margin: 0 0 8px;
}
.dept__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Gallery mosaic
   -------------------------------------------------------------------------- */

.gallery { padding: var(--section) 0; }
.gallery .section-head { margin-bottom: 48px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 236px;
  grid-auto-flow: row dense;
  gap: 18px;
}
.tile {
  border-radius: 18px;
  overflow: hidden;
  background: var(--placeholder);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05) brightness(1.03);
  transition: transform .5s ease;
}
.tile:hover img { transform: scale(1.05); }

.tile--large { grid-column: span 2; grid-row: span 2; }
.tile--wide  { grid-column: span 2; }

/* --------------------------------------------------------------------------
   Visit
   -------------------------------------------------------------------------- */

.visit {
  padding: var(--section) 0;
  background: var(--green-dark);
  color: var(--on-dark);
}
.visit__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 54px;
  align-items: stretch;
}
.visit .eyebrow { color: var(--green-lt); }
.visit__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.07;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 30px;
}
.visit__blocks { display: flex; flex-direction: column; gap: 22px; }
.visit__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--on-dark-lbl);
  margin-bottom: 6px;
}
.visit__address { font-size: 18px; font-weight: 600; color: #fff; line-height: 1.4; }

.hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 330px;
  margin: 0;
}
.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
}
.hours dt { color: var(--on-dark-soft); }
.hours dd { color: #fff; font-weight: 600; margin: 0; }

.visit__phone {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  transition: color .18s ease;
}
.visit__phone:hover { color: var(--green-lt); }

.visit__directions { align-self: flex-start; margin-top: 4px; }

.visit__map {
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55);
  border: 6px solid rgba(255, 255, 255, .08);
}
.visit__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: saturate(.9);
}

/* --------------------------------------------------------------------------
   Careers form
   -------------------------------------------------------------------------- */

.careers {
  padding: var(--section) 0;
  background: linear-gradient(180deg, var(--cream), var(--cream-deep));
}
.careers__inner { max-width: 980px; margin: 0 auto; padding-inline: var(--gutter); }
.careers .section-head { max-width: 620px; margin-bottom: 44px; }

.apply {
  background: #fff;
  border-radius: 22px;
  padding: 38px;
  box-shadow: 0 24px 60px -34px rgba(15, 58, 34, .55);
  border: 1px solid rgba(15, 58, 34, .06);
}
.apply__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: var(--green-dark);
  margin: 0 0 22px;
}

.apply__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.apply__row + .apply__row,
.apply__block + .apply__block,
.apply__row + .apply__block,
.apply__block + .apply__row { margin-top: 26px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label,
.apply__legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.field__req { color: var(--green); }

.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border: 1.5px solid var(--hairline);
  border-radius: 11px;
  background: var(--field-bg);
  color: var(--ink);
  width: 100%;
  transition: border-color .18s ease, background-color .18s ease;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 157, 70, .16);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field--invalid input,
.field--invalid textarea,
.field--invalid select { border-color: var(--danger); background: #fdf6f5; }

.field__error {
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}

fieldset.apply__block { border: 0; padding: 0; margin: 0; }
fieldset.apply__block legend { padding: 0; }

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 12px;
}
.choices--tight { gap: 14px 24px; }
.choice {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
}
.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  margin: 0;
  flex-shrink: 0;
}
.choice-other {
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1.5px solid var(--hairline);
  border-radius: 9px;
  background: var(--field-bg);
  color: var(--ink);
  width: 170px;
}
.choice-other:focus { outline: none; border-color: var(--green); background: #fff; }

/* Resume upload */
.dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 16px 18px;
  border: 1.5px dashed rgba(15, 58, 34, .28);
  border-radius: 12px;
  background: var(--field-bg);
  transition: border-color .18s ease, background-color .18s ease;
  position: relative;
}
.dropzone:hover,
.dropzone.is-hover { border-color: var(--green); background: #fff; }
/* The real file input is transparent and fills the box, so it can never show
   its own focus ring — put the ring on the box instead. */
.dropzone:focus-within {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green);
  background: #fff;
}
.dropzone__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(31, 157, 70, .14);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}
.dropzone__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dropzone__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.dropzone__name.is-set { color: var(--green-ink); }
.dropzone__hint { font-size: 12.5px; color: var(--muted); }
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.apply__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.apply__submit {
  font-size: 15.5px;
  padding: 15px 30px;
  box-shadow: 0 10px 26px -10px rgba(31, 157, 70, .8);
}
.apply__submit[disabled] { opacity: .65; cursor: progress; }
.apply__note { font-size: 13px; color: var(--muted); max-width: 380px; margin: 0; }
.apply__privacy { font-size: 12.5px; color: var(--muted); margin: 18px 0 0; }

.notice {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
}
.notice--ok {
  background: rgba(31, 157, 70, .12);
  border: 1px solid rgba(31, 157, 70, .3);
  color: var(--green-ink);
}
.notice--bad {
  background: rgba(179, 38, 30, .08);
  border: 1px solid rgba(179, 38, 30, .28);
  color: var(--danger);
}
.notice__ref {
  display: block;
  margin-top: 6px;
  font-weight: 800;
  letter-spacing: .04em;
}

.apply--sent { text-align: center; padding: 44px 38px; }
.apply--sent .notice { margin-top: 0; text-align: start; }

/* --------------------------------------------------------------------------
   Contact cards
   -------------------------------------------------------------------------- */

.contact { padding: var(--section) 0 80px; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 16px 40px -30px rgba(15, 58, 34, .5);
  border: 1px solid rgba(15, 58, 34, .06);
}
.card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--green-ink);
  margin-bottom: 12px;
}
.card__lead {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  color: var(--green-dark);
  transition: color .18s ease;
}
a.card__lead:hover { color: var(--green); }
.card__address {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--green-dark);
  line-height: 1.3;
}
.card p { font-size: 14px; color: var(--muted-2); margin: 10px 0 0; }

.socials { display: flex; flex-direction: column; gap: 12px; }
.socials a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: var(--green-dark);
  transition: color .18s ease;
  overflow-wrap: anywhere;
}
.socials a:hover { color: var(--green); }
.socials svg { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--green-deep);
  color: var(--on-dark-soft);
  padding: 54px 0 34px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__brand { max-width: 320px; }
.footer__brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand-row img {
  width: 48px; height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
}
.footer__brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: #fff;
}
.footer__tagline { font-size: 14px; line-height: 1.6; color: var(--on-dark-mute); margin: 0; }

.footer__cols { display: flex; gap: 54px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--on-dark-lbl);
}
.footer__col a,
.footer__col span { font-size: 14px; color: var(--on-dark-soft); }
.footer__col a { transition: color .18s ease; }
.footer__col a:hover { color: #fff; }
.footer__phone { margin-top: 4px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
}
.footer__bottom span,
.footer__bottom a { font-size: 13px; color: var(--on-dark-lbl); }
.footer__bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   WhatsApp float
   -------------------------------------------------------------------------- */

.wa {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px 12px 14px;
  box-shadow: 0 16px 34px -14px rgba(37, 211, 102, .75);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.wa:hover { background: #1eb85a; }
.wa svg { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Responsive — the design was desktop-only, so everything below is new
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root { --section: 76px; }

  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 56px var(--gutter) 68px;
  }
  .hero__frame { aspect-ratio: 4 / 3; }
  .hero__media { max-width: 560px; }
  .hero__card { inset-inline-start: auto; inset-inline-end: 16px; bottom: -20px; }

  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__media { aspect-ratio: 4 / 3; max-height: 420px; }

  .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 14px; }
  .tile--wide { grid-column: span 2; }

  .visit__inner { grid-template-columns: 1fr; gap: 36px; }
  .visit__map { min-height: 340px; }
  .visit__map iframe { min-height: 340px; }

  .contact__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .opening__frame img { height: 400px; }
  .opening__caption { padding: 32px 28px 26px; }
}

@media (max-width: 700px) {
  :root { --gutter: 18px; --section: 60px; }

  .facts__inner { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .fact + .fact { border-inline-start: 0; padding-inline-start: 0; }
  .fact__title { font-size: 18px; }

  .hero__sub { font-size: 16.5px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .dept-grid { grid-template-columns: 1fr; }
  .dept__media { height: 200px; }

  .contact__grid { grid-template-columns: 1fr; }

  .mosaic { grid-auto-rows: 150px; gap: 12px; }

  .apply { padding: 24px 20px 28px; border-radius: 18px; }
  .apply__row { grid-template-columns: 1fr; gap: 18px; }
  .apply__actions { gap: 14px; }
  .apply__submit { width: 100%; }
  .apply__note { max-width: none; }
  .choice-other { width: 100%; }

  .opening__frame img { height: 300px; }
  .opening__caption { padding: 24px 20px 20px; }

  .footer__cols { gap: 32px; width: 100%; }
  .footer__col { min-width: 140px; }

  .wa { inset-inline-end: 14px; bottom: 14px; padding: 11px 16px 11px 12px; font-size: 13.5px; }
}

@media (max-width: 420px) {
  .mosaic { grid-auto-rows: 128px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 16px; }
  .card { padding: 24px 20px; }
  .card__lead { font-size: 21px; }
}

/* --------------------------------------------------------------------------
   Arabic / right-to-left
   Most of the layout already uses logical properties (margin-inline-start,
   inset-inline-end, border-inline-start), so it mirrors on its own. What is
   left is typography: Arabic needs its own face, no letter-spacing, and a
   little more line-height to stay readable.
   -------------------------------------------------------------------------- */

[dir="rtl"] {
  --sans: "IBM Plex Sans Arabic", "Plus Jakarta Sans", -apple-system,
          BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "IBM Plex Sans Arabic", "Bricolage Grotesque", system-ui, sans-serif;
}

/* Letter-spacing pulls Arabic glyphs apart and breaks their joins. */
[dir="rtl"] .eyebrow,
[dir="rtl"] .brand__sub,
[dir="rtl"] .hero__badge,
[dir="rtl"] .fact__title,
[dir="rtl"] .opening__eyebrow,
[dir="rtl"] .visit__label,
[dir="rtl"] .card__label,
[dir="rtl"] .footer__col-title,
[dir="rtl"] .announce {
  letter-spacing: 0;
}

[dir="rtl"] .hero__title,
[dir="rtl"] .h2,
[dir="rtl"] .visit__title,
[dir="rtl"] .opening__title,
[dir="rtl"] .dept__title,
[dir="rtl"] .apply__title {
  letter-spacing: 0;
  line-height: 1.25;
}

[dir="rtl"] .hero__sub,
[dir="rtl"] .about__body,
[dir="rtl"] .section-head p,
[dir="rtl"] .dept__desc {
  line-height: 1.8;
}

/* The brand wordmark stays Latin even on the Arabic page. */
[dir="rtl"] .brand__name,
[dir="rtl"] .brand__sub,
[dir="rtl"] .footer__brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -.01em;
}
[dir="rtl"] .brand__sub { letter-spacing: .26em; }

/* Numbers, times and the address read left-to-right inside Arabic text. */
[dir="rtl"] .visit__address,
[dir="rtl"] .card__address,
[dir="rtl"] .visit__phone,
[dir="rtl"] .card__lead,
[dir="rtl"] .footer__phone,
[dir="rtl"] .hours dd,
[dir="rtl"] .footer__col span,
[dir="rtl"] .notice__ref {
  direction: ltr;
  text-align: end;
  unicode-bidi: isolate;
}
[dir="rtl"] .hours dt { text-align: start; }

/* The upload arrow points the other way when the page is mirrored. */
[dir="rtl"] .dropzone__icon { transform: scaleX(-1); }

/* --------------------------------------------------------------------------
   Error / maintenance page
   -------------------------------------------------------------------------- */

.error-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 96px 0 120px;
  text-align: center;
}
.error-page img { width: 72px; height: 72px; object-fit: contain; }
.error-page h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--green-dark);
  margin: 22px 0 12px;
}
.error-page p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .header, .announce, .wa, .nav-toggle, .mobile-nav, .visit__map, .apply { display: none; }
  body { background: #fff; }
  .hero__inner, .about__inner { display: block; }
}
