/* ===========================================================
   Lucky Bags — style.css
   Flat, rectangular, restrained. No gradients, no glow, no pills.
   =========================================================== */

:root {
  --paper:   #F4F1EA;
  --paper-2: #E9E4D8;
  --red:     #C21B24;
  --red-ink: #8E1219;
  --blue:    #12315C;
  --blue-2:  #6E8FBE;
  --ink:     #171514;
  --ink-3:   #5B554E;
  --font: 'Archivo', system-ui, sans-serif;
  --wrap-max: 1240px;
  --pad: 20px;
}

@media (min-width: 768px) { :root { --pad: 40px; } }
@media (min-width: 1200px) { :root { --pad: 56px; } }

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

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

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

.visit :focus-visible {
  outline-color: var(--paper);
}

/* ---------- layout container ---------- */

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- shared type ---------- */

.label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--red);
  margin: 0 0 14px;
}

.label--blue { color: var(--blue-2); }

.h2 {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.9;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--ink);
}

.h2--light { color: var(--paper); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 2px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}
.btn--solid:hover {
  background: var(--red);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(23, 21, 20, 0.28);
}
.btn--outline:hover {
  border-color: var(--ink);
  background: rgba(23, 21, 20, 0.05);
}

.btn--solid-light {
  background: var(--paper);
  color: var(--blue);
}
.btn--solid-light:hover {
  background: var(--red);
  color: var(--paper);
}

.btn--outline-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 241, 234, 0.35);
}
.btn--outline-light:hover {
  border-color: var(--paper);
  background: rgba(244, 241, 234, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===========================================================
   SECTION 1 — HERO
   =========================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 28px 32px;
}

/* top rail */

.rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(23, 21, 20, 0.16);
}

.rail-brand {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.rail-tel {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--red);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.rail-tel:hover {
  border-bottom-color: var(--red);
}

/* hero core */

.hero-core {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  width: 100%;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 48px;
    align-items: end;
  }
}

@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

.mega {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.84;
  /* Capped so "LUCKY" still clears the 320px tag column at ~1000-1100px. */
  font-size: clamp(3.6rem, 14vw, 13rem);
  color: var(--ink);
}

.mega-l { display: block; }
.mega-l--red { color: var(--red); }

.hero-line {
  margin: 28px 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-3);
  border-top: 1px solid rgba(23, 21, 20, 0.18);
  padding-top: 20px;
}

.hero-statement .btn-row {
  margin-top: 28px;
}

/* the tag */

.tag {
  max-width: 300px;
  justify-self: end;
}

@media (max-width: 999px) {
  .tag {
    max-width: 200px;
    justify-self: start;
    margin-top: 8px;
  }
}

.tag-g {
  transform-origin: 130px 76px;
  transform: rotate(-3deg);
  animation: tagSettle 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

/* bottom rail */

.bottom-rail {
  border-top: 1px solid rgba(23, 21, 20, 0.16);
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 700px) {
  .bottom-rail {
    grid-template-columns: repeat(3, 1fr);
  }
  .bottom-rail .meta:nth-child(2) { text-align: center; }
  .bottom-rail .meta:nth-child(3) { text-align: right; }
}

.meta {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

/* ===========================================================
   SECTION 2 — THE COLLECTION
   =========================================================== */

.collection {
  background: var(--paper);
  padding: 100px 0 110px;
}

.col-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 56px;
}

@media (min-width: 900px) {
  .col-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .col-note {
    justify-self: end;
    text-align: left;
  }
}

.col-note {
  margin: 0;
  max-width: 40ch;
  color: var(--ink-3);
  line-height: 1.6;
  font-size: 1.02rem;
}

/* mosaic grid */

.mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .mosaic {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .mosaic {
    grid-template-columns: repeat(12, 1fr);
    gap: 28px;
  }
}

.shot {
  margin: 0;
  align-self: start;
}

.shot-media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid rgba(23, 21, 20, 0.14);
  border-radius: 2px;
}

.shot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.shot:hover .shot-media img {
  transform: scale(1.045);
}

.shot-media::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.shot:hover .shot-media::after {
  width: 100%;
}

.shot-cap {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 2px;
  padding-top: 14px;
  margin: 0;
}

.shot-idx {
  grid-row: 1 / 3;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  padding-top: 3px;
  transition: color 0.2s;
}

.shot:hover .shot-idx {
  color: var(--red);
}

.shot-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}

.shot-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* Each slot is set to its photo's NATIVE ratio, so object-fit: cover has
   nothing to crop. These never change per breakpoint — only placement does.
     43/24 = 1376x768   56/75 = 896x1200   1/1 = 1024x1024                */
.shot--1 .shot-media,
.shot--6 .shot-media { aspect-ratio: 43 / 24; }

.shot--2 .shot-media,
.shot--4 .shot-media,
.shot--5 .shot-media { aspect-ratio: 56 / 75; }

.shot--3 .shot-media { aspect-ratio: 1 / 1; }

/* mobile: single column */
.shot { grid-column: 1 / -1; margin-top: 0; }

/* tablet: panoramas run full width, portraits pair up */
@media (min-width: 640px) and (max-width: 1023px) {
  .shot { grid-column: span 3; margin-top: 0; }
  .shot--1, .shot--6 { grid-column: span 6; }
  .shot--3, .shot--5 { margin-top: 40px; }
}

/* desktop: feature -> triptych -> full-width closing spread */
@media (min-width: 1024px) {
  .shot--1 { grid-column: 1 / 9;  margin-top: 0; }
  .shot--2 { grid-column: 9 / 13; margin-top: 72px; }

  .shot--3 { grid-column: 1 / 5;  margin-top: 0; }
  .shot--4 { grid-column: 5 / 9;  margin-top: 48px; }
  .shot--5 { grid-column: 9 / 13; margin-top: 96px; }

  .shot--6 { grid-column: 1 / 13; margin-top: 0; }
}

/* ===========================================================
   SECTION 3 — VISIT
   =========================================================== */

.visit {
  background: var(--blue);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1000px) {
  .visit-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.visit-body {
  padding: 90px 0;
}

@media (min-width: 1000px) {
  .visit-body {
    padding-right: 64px;
  }
}

.visit-sub {
  margin: 24px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.78);
  max-width: 34ch;
}

.phone {
  display: block;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 241, 234, 0.22);
}

.phone-label {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--blue-2);
  margin-bottom: 10px;
}

.phone-num {
  display: block;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1;
  color: var(--paper);
  transition: color 0.2s;
}

.phone:hover .phone-num {
  color: var(--blue-2);
}

.visit-body .btn-row {
  margin-top: 34px;
}

.visit-map {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
}

@media (min-width: 1000px) {
  /* Bleed to the right viewport edge: clear the centred wrap's outer gutter
     plus its own padding. 50% would resolve against the grid column, not the
     viewport, and overshoot badly. */
  .visit-map {
    margin-right: calc(-1 * (max(0px, (100vw - var(--wrap-max)) / 2) + var(--pad)));
    width: auto;
    aspect-ratio: auto;
  }
}

.visit-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

.visit-foot {
  border-top: 1px solid rgba(244, 241, 234, 0.16);
  padding: 22px 0;
}

.visit-foot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.visit-foot-row p {
  font-size: 0.8rem;
  color: rgba(244, 241, 234, 0.55);
  margin: 0;
}

/* ===========================================================
   MOBILE CALL FAB
   =========================================================== */

.fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: var(--red);
  color: var(--paper);
  align-items: center;
  justify-content: center;
  z-index: 50;
}

@media (max-width: 719px) {
  .fab {
    display: flex;
  }
}

/* ===========================================================
   MOTION
   =========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.24em);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 -10% 0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The tilt lives on .tag-g; keep it out of tagIn or the two rotations stack. */
@keyframes tagIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes tagSettle {
  from { transform: rotate(-9deg); }
  to   { transform: rotate(-3deg); }
}

.mega-l {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.mega-l:nth-child(2) {
  animation-delay: 0.1s;
}

.hero-line {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.22s both;
}

.hero-statement .btn-row {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

.rail {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.bottom-rail {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both;
}

.tag {
  animation: tagIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .tag-g {
    transform: rotate(-3deg);
  }
}
