/*
  The text-first pages of the public site: the hubs (/invitatii, /organizare), the
  organising and tool pages, the free invitations page, the blog by event type and
  the home page. They sit inside .ip and reuse invitation-page.css (colours, type,
  sections, buttons, FAQ, price, final call); this file only adds what those pages
  have and the invitation pages do not: a text header, tiles, a breadcrumb and a
  first-screen product picture.
*/

.sp-head {
  padding: 132px max(20px, calc((100% - 1200px) / 2)) 56px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 69, 134, 0.12), transparent 70%),
    radial-gradient(700px 380px at 0% 0%, rgba(255, 116, 82, 0.1), transparent 70%),
    var(--cream);
}

/* The same header over a looping video (home page and organising pages): the
   video, a dark wash so the text reads, then the text in white. */
.sp-head--video {
  position: relative;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 96px;
  border-radius: 0 0 30px 30px;
  background: #0f2239;
  color: #fff;
}

.sp-head__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-head--video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(15, 34, 57, 0.88) 0%, rgba(15, 34, 57, 0.72) 50%, rgba(15, 34, 57, 0.4) 100%);
}

.sp-head--video .sp-head__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.sp-head--video .sp-head__title {
  color: #fff;
}

.sp-head--video .sp-head__lead {
  color: rgba(255, 255, 255, 0.82);
}

.sp-head--video .sp-head__note,
.sp-head--video .sp-crumbs,
.sp-head--video .ip-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.sp-head--video .sp-crumbs a {
  color: rgba(255, 255, 255, 0.9);
}

.ip .sp-head--video .sp-button-outline {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 767px) {
  .sp-head--video {
    padding-top: 120px;
    padding-bottom: 64px;
    border-radius: 0 0 18px 18px;
  }
}

.sp-head__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .sp-head__inner--split {
    grid-template-columns: 1.05fr 1fr;
  }
}

.sp-head__title {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sp-head__lead {
  max-width: 640px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.12rem;
  line-height: 1.6;
}

.sp-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.sp-head__note {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 0.9rem;
}

.sp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--ink-3);
  font-size: 0.86rem;
}

.sp-crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.sp-crumbs a:hover {
  color: var(--pink);
}

.sp-crumbs span[aria-hidden] {
  opacity: 0.6;
}

/* A product screenshot on the first screen: a laptop frame, a phone beside it. */
.sp-shot {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 620px;
}

.sp-shot__laptop {
  overflow: hidden;
  border: 10px solid var(--frame);
  border-bottom-width: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(15, 34, 57, 0.55);
  aspect-ratio: 16 / 10;
}

.sp-shot__laptop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.sp-shot__phone {
  position: absolute;
  right: -10px;
  bottom: -26px;
  width: 30%;
  overflow: hidden;
  border: 6px solid var(--frame);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(15, 34, 57, 0.6);
  aspect-ratio: 9 / 19;
}

.sp-shot__phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Tiles: the events and the tools of the hubs and the home page. */
.sp-tiles {
  display: grid;
  gap: 14px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.sp-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

a.sp-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 69, 134, 0.35);
  box-shadow: 0 22px 44px -30px rgba(15, 34, 57, 0.45);
}

.sp-tile__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 69, 134, 0.14), rgba(255, 116, 82, 0.14));
  color: var(--pink);
}

.sp-tile__title {
  font-size: 1.08rem;
  font-weight: 700;
}

.sp-tile__text {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sp-tile__doors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.sp-tile__door {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.sp-tile__door:hover {
  background: rgba(255, 69, 134, 0.12);
  color: var(--pink);
}

.sp-tile__more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--pink);
  font-size: 0.9rem;
  font-weight: 700;
}

/* A list of facts or steps under a heading. */
.sp-points {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .sp-points {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sp-point h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.sp-point p {
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* A short list of links: related articles, the other tools. */
.sp-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.sp-links a {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}

.sp-links a:hover {
  border-color: rgba(255, 69, 134, 0.4);
  color: var(--pink);
}

/* Articles in a list: the blog and its event type pages. */
.sp-articles {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.sp-article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.sp-article:hover {
  border-color: rgba(255, 69, 134, 0.35);
}

.sp-article__about {
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-article__title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.sp-group + .sp-group {
  margin-top: 56px;
}

.sp-group__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sp-group__more {
  display: inline-block;
  margin-top: 6px;
  color: var(--pink);
  font-weight: 700;
  text-decoration: none;
}

/* The flow in one line: invitation, answers, guest list, seating, photos. */
.sp-flow {
  display: grid;
  gap: 12px;
  margin-top: 40px;
  counter-reset: flow;
}

@media (min-width: 900px) {
  .sp-flow {
    grid-template-columns: repeat(5, 1fr);
  }
}

.sp-flow li {
  position: relative;
  padding: 20px 18px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  counter-increment: flow;
}

.sp-flow li::before {
  content: counter(flow);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.sp-flow b {
  display: block;
  font-size: 1rem;
}

.sp-flow small {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* A second button on a light background (the invitation pages' glass button is for photos). */
.ip .sp-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1.5px solid rgba(15, 34, 57, 0.18);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.ip .sp-button-outline:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* The organising pages show two event types (nuntă, botez): two wider cards, centred. */
@media (min-width: 900px) {
  .ip .ip-occasions.sp-occasions--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }
}
