/* Shihab Mart Ltd. – closure notice
   Colours come from the logo: orange #ff6700 and black. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff6700;
  --ink: #1a1a1a;
  --ink-soft: #4d4d4d;
  --paper: #ffffff;
  --line: #e6e6e6;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --maxw: 1180px;
  --cut: clamp(28px, 5.5vw, 84px); /* slanted edge, echoes the bag in the logo */
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
p, h1, dl, dd { margin: 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Navigation ---------- */

.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand img {
  width: 140px;
  height: auto;
}

.nav__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-stretch: 112%;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: right;
}

.nav__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.nav__title-long { display: none; }

@media (min-width: 720px) {
  .nav__brand img { width: 170px; }
  .nav__title { font-size: 1.05rem; }
  .nav__title-long { display: inline; }
  .nav__title-short { display: none; }
}

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

.hero {
  background: var(--orange);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  padding: clamp(40px, 7vw, 96px) 0 calc(var(--cut) + clamp(32px, 5vw, 64px));
}

.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.35rem, 9.2vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero__lead {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2.6vw, 1.3rem);
  line-height: 1.5;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: clamp(24px, 3.5vw, 36px);
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover { background: #fff; color: var(--ink); }
.btn:focus-visible { outline-color: #fff; }

@media (min-width: 560px) {
  .hero h1 { font-size: clamp(3rem, 8vw, 4.6rem); }
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 48px;
  }
  .hero h1 { font-size: clamp(3.2rem, 5.5vw, 5rem); }
}

/* ---------- Hanging door sign ---------- */

.hero__sign { display: flex; justify-content: center; }

.sign {
  width: min(300px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  animation: swing 2.8s cubic-bezier(0.37, 0, 0.63, 1) 0.4s 1 both;
}

.sign__nail {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  z-index: 2;
}

.sign__string {
  width: 3px;
  height: clamp(36px, 7vw, 64px);
  margin-top: -3px;
  background: var(--ink);
  position: relative;
  z-index: 1;
}

.sign__tag {
  width: 100%;
  margin-top: -6px;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.25));
}

.sign__face {
  position: relative;
  background: #fff;
  padding: 46px 26px 30px;
  text-align: center;
  /* slanted corners, echoing the bag outline */
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 7% 100%);
}

.sign__hole {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.sign__icon {
  width: 74px;
  height: auto;
  margin: 0 auto;
}

.sign__word {
  margin-top: 14px;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.3rem, 9vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.sign__meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 4px solid var(--orange);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.sign__meta strong { color: var(--ink); font-weight: 700; }

/* A single swing on page load, then it hangs still */
@keyframes swing {
  0%   { transform: rotate(0deg); }
  14%  { transform: rotate(8deg); }
  34%  { transform: rotate(-6deg); }
  54%  { transform: rotate(3.5deg); }
  74%  { transform: rotate(-1.8deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sign { animation: none; }
  .btn { transition: none; }
}

/* ---------- Notice details ---------- */

.facts {
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px);
}

.facts__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 28px;
}

.fact {
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}

.fact dt {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.fact dd {
  margin-top: 6px;
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.4rem, 4.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.fact:first-child { border-top-color: var(--orange); }

@media (min-width: 760px) {
  .facts__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

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

.footer {
  background: var(--ink);
  color: #fff;
  padding: clamp(40px, 6vw, 64px) 0 calc(24px + env(safe-area-inset-bottom));
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 36px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.footer__name { font-weight: 800; font-stretch: 112%; font-size: 1.15rem; line-height: 1.2; }
.footer__site { color: #bdbdbd; font-size: 0.95rem; }

.footer__ask { color: #bdbdbd; font-size: 1rem; }

.footer__mail {
  display: inline-block;
  margin-top: 4px;
  color: var(--orange);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.3rem, 5.6vw, 2rem);
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.footer__mail:hover { color: #fff; }
.footer__mail:focus-visible,
.footer a:focus-visible { outline-color: #fff; }

.footer__legal {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 18px var(--gutter) 0;
  border-top: 1px solid #333;
  color: #9a9a9a;
  font-size: 0.875rem;
}

@media (min-width: 760px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
  }
  .footer__contact { text-align: right; }
}
