/* Pet Pack's front page. The brand's own kit only: its six colours and white, Mohr Rounded with FF Shamel Rounded
   for Arabic, its marks, and photos from the trucks. Colour carries meaning (the four walls of the Pack, each
   service's yellow badge); everything else is navy on white. */

@font-face { font-family: "Mohr Rounded"; src: url("fonts/MohrRounded-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mohr Rounded"; src: url("fonts/MohrRounded-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
/* Arabic letters only, so Latin words and numbers keep Mohr in both languages. */
@font-face { font-family: "FF Shamel Rounded"; src: url("fonts/FFShamelRounded-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "FF Shamel Rounded"; src: url("fonts/FFShamelRounded-Normal.woff2") format("woff2"); font-weight: 300; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --white: #FFFFFF;
  --navy: #417CBF;
  --yellow: #FEC54E;
  --cyan: #89D0C7;
  --pink: #F17FB1;
  --orange: #F58B6E;
  --gutter: clamp(16px, 4.5vw, 64px);
  --width: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: "Mohr Rounded", "FF Shamel Rounded", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
:lang(ar) { line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.foot :focus-visible { outline-color: var(--yellow); }

/* The brand's marks are drawn from their own pictures, in whichever colour they sit. */
.mark {
  display: inline-block; flex-shrink: 0; background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat;
}
.mark-bath { --mark: url("assets/bath.png"); }
.mark-scissors { --mark: url("assets/scissors.png"); }
.mark-yarn { --mark: url("assets/yarn.png"); }
.mark-bowl { --mark: url("assets/bowl.png"); }
.mark-comb { --mark: url("assets/comb.png"); }
.mark-paw { --mark: url("assets/paw.png"); }

/* ---------- actions ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px;
  border-radius: 999px; background: var(--navy); color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 1.1875rem; line-height: 1.2; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--yellow); }
.pill-line { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.pill-line:hover { box-shadow: inset 0 0 0 2px var(--navy), 0 6px 0 var(--yellow); }
.pill-small { min-height: 44px; padding: 0 20px; font-size: 1.0625rem; }
.lang {
  font: inherit; font-weight: 700; color: var(--navy); background: none; border: 0; cursor: pointer;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
}
.lang:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- the page ---------- */
.top, main > section:not(.pack), .pack-text {
  max-width: var(--width); margin-inline: auto; padding-inline: var(--gutter);
}
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px 0; }
.logo { display: block; background: var(--navy); border-radius: 18px; padding: 12px 18px; }
.logo img { display: block; height: 40px; width: auto; }
.top-actions { display: flex; align-items: center; gap: 8px; }

/* The welcome: the brand's line, and a pet just groomed on one of the trucks. */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 88px);
}
.photo { display: block; width: 100%; height: auto; background: var(--yellow); }
.hero-photo { border-radius: clamp(28px, 3.5vw, 44px); aspect-ratio: 3 / 4; object-fit: cover; }
h1 { font-size: clamp(3.25rem, 6.6vw, 6.5rem); line-height: .95; letter-spacing: -.02em; }
h1 span { display: block; }
:lang(ar) h1 { line-height: 1.15; letter-spacing: 0; }
.lede { font-size: clamp(1.3125rem, 2vw, 1.625rem); max-width: 30ch; margin-block: clamp(20px, 3vw, 32px) clamp(28px, 4vw, 44px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

h2 { font-size: clamp(2.375rem, 5.2vw, 4.25rem); line-height: 1; letter-spacing: -.01em; margin-bottom: 20px; }
:lang(ar) h2 { line-height: 1.25; letter-spacing: 0; }
section > p, .store-text p, .pack-text p { max-width: 38ch; font-size: 1.375rem; }

/* ---------- grooming ---------- */
.grooming { padding-block: clamp(40px, 6vw, 96px) clamp(56px, 8vw, 112px); }
.truck { border-radius: 32px; aspect-ratio: 1200 / 732; object-fit: cover; margin-top: clamp(28px, 4vw, 48px); }
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 20px clamp(32px, 5vw, 56px); }
.plate {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: clamp(18px, 2.4vw, 28px); row-gap: 6px;
  border-radius: 32px; box-shadow: inset 0 0 0 2px var(--navy); padding: clamp(24px, 3vw, 36px);
}
/* Each service's mark sits on yellow, as the pods' nameplates put navy on yellow. */
.badge {
  grid-row: span 2; display: grid; place-items: center; width: clamp(84px, 8.6vw, 112px); aspect-ratio: 1;
  border-radius: 50%; background: var(--yellow); color: var(--navy);
}
.badge .mark { width: 62%; aspect-ratio: 1; }
.plate h3 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.05; }
.plate h3 span + span { font-size: .62em; }
:lang(ar) .plate h3 [lang="en"] { order: 2; font-size: .62em; }
:lang(ar) .plate h3 [lang="ar"] { font-size: 1em; order: 1; }
.plate p { font-size: 1.3125rem; }
.ask { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; max-width: none; }
.ask > span { max-width: 36ch; }

/* ---------- the store: two floors ---------- */
.store {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 112px);
}
.floors { display: grid; gap: 12px; }
.floor {
  display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center;
  border-radius: 26px; box-shadow: inset 0 0 0 2px var(--navy); padding: 22px 28px;
}
.floor-up { border-start-start-radius: 72px; border-start-end-radius: 72px; padding-top: 34px; }
.floor .mark { grid-row: span 2; width: 60px; aspect-ratio: 1; }
.floor-where { font-size: 1.0625rem; }
.floor-name { font-weight: 700; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.15; }

/* ---------- the Pack: its four walls ---------- */
.pack { padding-top: clamp(40px, 6vw, 80px); }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wall li {
  min-height: clamp(300px, 36vw, 480px); display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-start; padding: clamp(20px, 2.6vw, 36px); color: var(--white);
}
.wall .mark { width: clamp(72px, 9vw, 132px); aspect-ratio: 1; }
.wall .label {
  background: var(--white); color: var(--navy); font-weight: 700; border-radius: 16px;
  padding: 8px 18px 10px; font-size: clamp(1.375rem, 2.6vw, 2.25rem); line-height: 1.1;
}
.wall-toy { background: var(--pink); }
.wall-treat { background: var(--cyan); }
.wall-care { background: var(--yellow); }
.wall-surprise { background: var(--orange); }
.pack-text {
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 128px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.pack-photo { border-radius: 32px; aspect-ratio: 1; object-fit: cover; }
.pack-text h2 span { display: block; }
.pack-line { font-weight: 300; margin-top: .12em; }
.pack-text p + p { margin-top: 18px; }
.pack-text .ask { margin-top: clamp(28px, 4vw, 44px); }

/* One moment of motion: the four walls rise into place once. Without script, or with reduced motion, they simply stand. */
@media (prefers-reduced-motion: no-preference) {
  .wall.is-ready li { transform: translateY(32px); opacity: 0; transition: transform .8s cubic-bezier(.2, .75, .2, 1), opacity .6s ease; }
  .wall.is-in li { transform: none; opacity: 1; }
  .wall.is-in li:nth-child(2) { transition-delay: .08s; }
  .wall.is-in li:nth-child(3) { transition-delay: .16s; }
  .wall.is-in li:nth-child(4) { transition-delay: .24s; }
}

/* ---------- the foot ---------- */
.foot {
  background: var(--navy); color: var(--white); padding: clamp(48px, 7vw, 88px) var(--gutter) 36px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: start;
}
.foot-brand img { width: clamp(160px, 18vw, 220px); }
.foot-brand p { margin-top: 12px; font-size: 1.25rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 1.1875rem; }
.foot-links a { text-decoration: none; display: inline-flex; gap: 10px; min-height: 44px; align-items: center; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.foot-links span { font-weight: 700; }
.foot-small { grid-column: 1 / -1; font-size: 1rem; padding-top: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }

/* The smallest phones: the line still reads as two sentences, one to a line. */
@media (max-width: 359px) {
  h1 { font-size: 2.6rem; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body { font-size: 1.1875rem; }
  .hero { grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 32px; }
  .hero-photo { aspect-ratio: 4 / 3; object-position: 50% 40%; border-radius: 28px; }
  .grooming, .store { padding-block: 40px; }
  .pack { padding-top: 24px; }
  .logo { padding: 10px 14px; border-radius: 14px; }
  .logo img { height: 32px; }
  .plates, .store, .pack-text { grid-template-columns: 1fr; }
  .truck { border-radius: 24px; }
  .pack-photo { border-radius: 24px; }
  .plate { padding: 22px; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall li { min-height: 210px; }
  .foot { grid-template-columns: 1fr; }
  .pill { width: 100%; }
  .top .pill { width: auto; }
  .ask { gap: 18px; }
}
