/* Just4Pets.gr: coming soon
   Όλες οι θέσεις είναι σε «μονάδες αφίσας»: 1u = 1px της αρχικής εικόνας
   (1672 × 941). Το --u κλιμακώνει ολόκληρη τη σύνθεση. */

@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url("assets/fonts/montserrat-900-latin.woff2") format("woff2"); }
@font-face { font-family: "Geologica"; font-weight: 400; font-display: swap; src: url("assets/fonts/geologica-400-greek.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "Geologica"; font-weight: 400; font-display: swap; src: url("assets/fonts/geologica-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Geologica"; font-weight: 600; font-display: swap; src: url("assets/fonts/geologica-600-greek.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "Geologica"; font-weight: 600; font-display: swap; src: url("assets/fonts/geologica-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --red: #e60508;
  --ink: #0b0b0b;
  --navy: #1b2350;
  --blush: #f8e9e5;
  --display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --text: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --spring: cubic-bezier(.3, 1.16, .5, 1);
  --settle: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--navy); font-family: var(--text); -webkit-font-smoothing: antialiased; }
h1, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
.defs { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Αφίσα ---------- */
.poster {
  --u: min(100vw / 1672, 100svh / 941);
  --lift: 0px;                    /* ανεβάζει όλη την παρέα από τον πάτο */
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 75% at 50% 52%, #fff 40%, transparent 100%),
    #f7f7fb;
}

.intro {
  flex: 1 0 auto;
  max-height: calc(520 * var(--u));
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: calc(16 * var(--u)) 20px 0;
  text-align: center;
  min-height: calc(412 * var(--u));
}

.domain {
  display: flex; align-items: center; gap: calc(36 * var(--u));
  color: var(--red); font: 900 max(.75rem, calc(26 * var(--u)))/1.2 var(--display);
  letter-spacing: .26em; text-transform: uppercase;
}
.domain span { margin-right: -.26em; }
.domain::before, .domain::after { content: ""; width: calc(70 * var(--u)); height: 2px; background: currentColor; opacity: .75; }

h1 { font: 900 calc(93 * var(--u))/.89 var(--display); letter-spacing: -.012em; text-transform: uppercase; color: var(--ink); }
h1 .line { display: block; }
h1 .red { font-size: 1.1em; line-height: .83; position: relative; width: max-content; margin-inline: auto; color: var(--red); }
.sparks { position: absolute; left: calc(100% + .24em); top: .01em; width: .41em; height: .52em; fill: currentColor; }

.lead { font-size: max(1rem, calc(29 * var(--u))); line-height: 1.18; letter-spacing: .008em; text-wrap: balance; }
.lead .keep { display: block; }
.lead strong { color: var(--ink); font-weight: 600; }
.lead b { color: var(--red); }

.places { display: flex; align-items: center; font-size: max(.9375rem, calc(22 * var(--u))); line-height: 1.2; }
.places li { display: flex; align-items: center; }
.places li + li::before { content: ""; width: .3em; height: .3em; border-radius: 50%; background: var(--red); margin-inline: .72em; }
.places .strong { font-weight: 600; }
.pin { width: .82em; height: 1.1em; fill: var(--red); margin-right: .55em; }

.soon { display: flex; align-items: center; gap: calc(23 * var(--u)); }
.soon::before, .soon::after { content: ""; width: calc(112 * var(--u)); height: 2px; background: linear-gradient(90deg, transparent, var(--red) 25%); }
.soon::after { scale: -1 1; }
.pill { position: relative; display: grid; place-items: center; font-size: max(1.125rem, calc(31 * var(--u))); font-weight: 600; line-height: 1; color: #fff; padding: .36em 1.28em .4em; }
.pill svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pill span { position: relative; }

/* ---------- Φόντο ---------- */
.backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.print { position: absolute; fill: var(--blush); width: calc(var(--w) * var(--u)); height: calc(var(--w) * .912 * var(--u)); rotate: var(--r); left: calc(50% + (var(--x) - 836) * var(--u)); bottom: calc((941 - var(--y)) * var(--u)); }
.print-1 { --w: 128; --x: 140; --y: 282; --r: -8deg; }
.print-2 { --w: 76;  --x: 251; --y: 360; --r: -6deg; }
.print-3 { --w: 110; --x: 1406; --y: 336; --r: 12deg; }
.print-4 { --w: 67;  --x: 1319; --y: 404; --r: 10deg; }

.wave-mobile { display: none; }
.wave { position: absolute; pointer-events: none; }
.wave-left  { left: 0; bottom: 0; width: calc(50% - 491 * var(--u)); height: calc(381 * var(--u)); }
.wave-right { right: 0; bottom: 0; width: calc(50% - 424 * var(--u)); height: calc(351 * var(--u)); }
.wave-front { right: 0; bottom: 0; width: calc(50% - 424 * var(--u)); height: calc(141 * var(--u)); }

/* ---------- Η παρέα ---------- */
.stage { position: relative; flex: none; margin-top: auto; height: calc(529 * var(--u)); }
.back, .peek { position: absolute; inset: 0; pointer-events: none; }

/* Τα σώματα κόβονται πίσω από την πινακίδα, ώστε να «ξεπροβάλλουν» */
.peek { clip-path: inset(-60vh -10vw calc(110 * var(--u) + var(--lift)) -10vw); }

.layer {
  position: absolute; display: block; max-width: none; user-select: none;
  left: calc(50% + (var(--x) - 836) * var(--u));
  bottom: calc((941 - var(--y) - var(--h)) * var(--u) + var(--lift));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
}
.tall, .body { pointer-events: auto; transform-origin: 50% 100%; }
.paws { pointer-events: none; filter: drop-shadow(0 calc(5 * var(--u)) calc(4 * var(--u)) rgb(60 10 20 / .22)); }

.dog           { --x: 197;  --y: 407; --w: 303; --h: 534; }
.calico        { --x: 1165; --y: 429; --w: 271; --h: 512; }
.bulldog       { --x: 472;  --y: 450; --w: 216; --h: 287; }
.labrador      { --x: 672;  --y: 417; --w: 312; --h: 303; }
.ginger        { --x: 971;  --y: 469; --w: 232; --h: 271; }
.bulldog-paws  { --x: 519;  --y: 675; --w: 157; --h: 40; }
.labrador-paws { --x: 707;  --y: 660; --w: 256; --h: 60; }
.ginger-paws   { --x: 996;  --y: 673; --w: 203; --h: 44; }

.sign {
  --b: calc(12 * var(--u));
  position: absolute;
  left: calc(50% + (445 - 836) * var(--u));
  bottom: calc(7 * var(--u) + var(--lift));
  width: calc(784 * var(--u)); height: calc(237 * var(--u));
  border: var(--b) solid transparent; border-radius: calc(70 * var(--u));
  background:
    linear-gradient(160deg, #f4f2f4, #fff 22% 78%, #f7f4f5) padding-box,
    linear-gradient(100deg, #ff3148, #f5142f 45%, #d30021) border-box;
  box-shadow:
    inset 0 calc(2 * var(--u)) calc(5 * var(--u)) rgb(90 10 20 / .16),
    0 calc(5 * var(--u)) calc(9 * var(--u)) rgb(40 10 20 / .22);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(4 * var(--u)); padding-top: calc(8 * var(--u));
  text-align: center;
}
.logo { width: calc(444 * var(--u)); height: auto; display: block; }
.divider { display: flex; align-items: center; gap: calc(36 * var(--u)); }
.divider::before, .divider::after { content: ""; width: calc(134 * var(--u)); height: max(1px, calc(2 * var(--u))); background: var(--red); opacity: .85; }
.divider svg { width: calc(34 * var(--u)); height: calc(31 * var(--u)); fill: var(--red); }
.sign p { font-size: calc(26.5 * var(--u)); line-height: 1.2; text-wrap: balance; }
/* ---------- Είσοδος: ξεπροβάλλουν, μετά ακουμπούν τις πατούσες ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tall { animation: arrive .9s var(--settle) both; }
  .dog { animation-delay: .1s; }
  .calico { animation-delay: .2s; }
  .body { animation: pop .62s var(--spring) both; }
  .labrador { animation-delay: .45s; }
  .bulldog { animation-delay: .62s; }
  .ginger { animation-delay: .76s; }
  .paws { animation: plop .28s var(--spring) both; }
  .labrador-paws { animation-delay: .78s; }
  .bulldog-paws { animation-delay: .95s; }
  .ginger-paws { animation-delay: 1.09s; }

  /* Μετά την είσοδο, μικρό σκίρτημα όταν τα «χαϊδεύεις» */
  .ready .layer { animation: none; }
  .ready .layer.hop { animation: hop .55s var(--settle); }
}
@keyframes arrive { from { transform: translateY(105%); } }
@keyframes pop { from { transform: translateY(102%); } }
@keyframes plop { from { transform: translateY(calc(-14 * var(--u))) scale(.86); opacity: 0; } 40% { opacity: 1; } }
@keyframes hop {
  30% { transform: translateY(calc(-9 * var(--u))) rotate(var(--tilt, 1.2deg)); }
  65% { transform: translateY(calc(2 * var(--u))) rotate(calc(var(--tilt, 1.2deg) * -.4)); }
}
.calico, .ginger { --tilt: -1.2deg; }

/* ---------- Κινητό και όρθια οθόνη: ομαδική φωτογραφία σε δύο σειρές ---------- */
@media (max-width: 720px), (max-aspect-ratio: 1/1) {
  .poster { --u: min(100vw / 806, 57svh / 778, 1.15px); --lift: calc(34 * var(--u)); }

  .intro { justify-content: center; max-height: none; gap: clamp(10px, 1.9svh, 22px); padding: max(22px, env(safe-area-inset-top)) 18px 14px; min-height: 0; }
  .domain { font-size: .8125rem; gap: 14px; }
  .domain::before, .domain::after { width: 34px; }
  h1 { font-size: clamp(2.125rem, min(12.2vw, 6.6svh), 5rem); line-height: .95; }
  h1 .red { line-height: .92; }
  h1 .word { display: block; }
  .sparks { left: calc(100% + .06em); }
  .lead { font-size: clamp(1.0625rem, 4.5vw, 1.75rem); line-height: 1.32; max-width: 24em; }
  .lead .keep { display: inline-block; }
  .places { font-size: clamp(1rem, 4vw, 1.4rem); }
  .pill { font-size: clamp(1.125rem, 5vw, 1.75rem); }
  .soon { gap: 14px; }
  .soon::before, .soon::after { width: min(15vw, 110px); }

  .stage { height: calc(744 * var(--u) + var(--lift)); }
  /* 60u παραπάνω ύψος πινακίδας, ώστε το κείμενο να διαβάζεται */
  .layer { bottom: calc((941 + 60 - var(--y) - var(--h)) * var(--u) + var(--lift)); }
  .peek { clip-path: inset(-60vh -10vw calc(170 * var(--u) + var(--lift)) -10vw); }
  .dog    { --x: 520; --y: 264; }
  .calico { --x: 873; --y: 278; }
  .sign { height: calc(297 * var(--u)); gap: calc(10 * var(--u)); padding-inline: calc(40 * var(--u)); }
  .logo { width: calc(520 * var(--u)); }
  .divider { display: none; }
  .sign p { font-size: max(.9375rem, calc(37 * var(--u))); line-height: 1.25; }

  .wave-left, .wave-right, .wave-front { display: none; }
  .wave-mobile { display: block; left: 0; bottom: 0; width: 100%; height: calc(230 * var(--u)); }
  .print-1 { left: -34px; bottom: auto; top: 46%; width: 84px; height: 77px; }
  .print-3 { left: auto; right: -26px; bottom: auto; top: 41%; width: 78px; height: 71px; }
  .print-2, .print-4 { display: none; }
}

/* Κοντά κινητά: να χωρά όσο γίνεται χωρίς κύλιση */
@media (max-width: 599px) and (max-height: 700px) {
  .intro { gap: 8px; padding-top: 14px; padding-bottom: 6px; }
  h1 { font-size: min(10.8vw, 6svh); }
  .lead { font-size: 1.0625rem; line-height: 1.25; }
}

/* Tablet σε όρθια θέση: ο τίτλος χωράει σε δύο γραμμές */
@media (min-width: 600px) and (max-aspect-ratio: 1/1) {
  h1 { font-size: min(8.4vw, 7svh); }
  h1 .word { display: inline; }
  .sparks { left: calc(100% + .24em); }
}

/* Κινητό σε πλάγια θέση: μεγαλύτερη κλίμακα και κύλιση */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .poster { --u: calc(100vw / 1500); }
  .intro { gap: 8px; padding-block: 18px 8px; }
}
