@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap");

:root {
  --black: #050505;
  --dark: #151512;
  --white: #fbf8f2;
  --cream: #f1eadf;
  --text: #24211e;
  --muted: rgba(36, 33, 30, 0.56);
  --soft: rgba(36, 33, 30, 0.36);
  --light: rgba(251, 248, 242, 0.72);
  --line: rgba(36, 33, 30, 0.12);
  --green: #82bd42;
  --font: "Manrope", sans-serif;

  --title-size: clamp(1.75rem, 3vw, 2.65rem);
  --title-letter: -0.035em;
  --section-space: 118px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

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

button,
input {
  font-family: inherit;
}

button {
  border: 0;
}

.hidden {
  display: none;
}

/* =========================
   INTRO — არ შევეხეთ ლოგიკას
========================= */

.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  overflow: hidden;
}

.intro-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition:
    opacity 1.25s ease,
    visibility 1.25s ease,
    transform 4.5s ease;
}

.intro-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.black-slide {
  background: #000;
}

.intro-slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 5s ease;
}

.intro-slide.active img {
  transform: scale(1);
}

.shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.shade.strong {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.72)
  );
}

.intro-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: clamp(1.25rem, 3.2vw, 3.2rem);
  font-weight: 600;
}

.intro-copy span,
.intro-copy small {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
  animation: revealIntro 1.25s ease forwards;
}

.intro-copy span {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.intro-copy small {
  font-size: clamp(0.7rem, 1vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.douglas-green {
  color: var(--green);
}

.enter-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: end center;
  padding-bottom: 9vh;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.enter-screen small {
  width: fit-content;
  margin: 0 auto;
  border: 1px solid rgba(251, 248, 242, 0.28);
  border-radius: 999px;
  padding: 13px 25px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  transition: 0.35s ease;
}

.enter-screen:hover small {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}

/* =========================
   GLOBAL
========================= */

.site {
  background: var(--white);
}

.section {
  padding: var(--section-space) 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.center {
  text-align: center;
}

.label {
  margin-bottom: 24px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.site h1,
.site h2,
.section-title {
  font-family: var(--font);
  font-size: var(--title-size);
  font-weight: 300;
  letter-spacing: var(--title-letter);
  line-height: 1.12;
}

.site p {
  font-weight: 300;
}

/* =========================
   HERO / CAMPAIGN
========================= */

.campaign {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: end start;
  padding: 0 7% 8vh;
  color: var(--white);
  overflow: hidden;
}

.campaign::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.66)
  );
}

.campaign img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.campaign-text {
  position: relative;
  z-index: 2;
  max-width: 520px;
  text-align: left;
}

.campaign-text h1 {
  margin: 0 0 22px;
  font-size: clamp(4rem, 8vw, 6.4rem);
  font-weight: 300;
  letter-spacing: -0.08em;
  line-height: 0.9;
  color: var(--white);
}

.hero-meta p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* =========================
   INVITATION
========================= */

.invitation {
  background: var(--white);
}

.invite-layout {
  min-height: 74vh;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(46px, 8vw, 104px);
  align-items: center;
}

.invite-copy {
  max-width: 410px;
}

.invite-text {
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.34rem);
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: -0.018em;
  color: var(--text);
}

.invite-photo {
  overflow: hidden;
}

.invite-photo img {
  height: 620px;
  object-fit: cover;
}

/* =========================
   COUNTDOWN — ცალკე სექცია
========================= */

.countdown {
  background: var(--cream);
  padding: 96px 0;
}

.countdown .label {
  margin-bottom: 34px;
}

.time-grid {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.time-grid div {
  position: relative;
  text-align: center;
}

.time-grid div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: rgba(36, 33, 30, 0.09);
}

.time-grid strong {
  display: block;
  font-size: clamp(2.15rem, 4.8vw, 3.85rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1;
}

.time-grid span {
  display: block;
  margin-top: 9px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================
   DETAILS — ცალკე სექცია
========================= */

.details {
  background: var(--white);
  padding: 126px 0;
}

.details-editorial {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(56px, 8vw, 118px);
  align-items: center;
}

.details-copy {
  max-width: 470px;
}

.details-copy h2 {
  margin-bottom: 24px;
  font-size: var(--title-size);
  font-weight: 300;
  letter-spacing: var(--title-letter);
  line-height: 1.12;
  color: rgba(36, 33, 30, 0.76);
}

.details-copy p:not(.label) {
  max-width: 470px;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.82;
  color: rgba(36, 33, 30, 0.52);
}

.details-table {
  width: 100%;
}

.details-line {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.details-line:first-child {
  border-top: 1px solid var(--line);
}

.details-line span {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(36, 33, 30, 0.38);
}

.details-line strong {
  font-size: clamp(1.04rem, 1.55vw, 1.28rem);
  font-weight: 300;
  letter-spacing: -0.018em;
  color: rgba(36, 33, 30, 0.74);
}

.details-line a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s ease;
}

.details-line a:hover {
  color: var(--green);
}

.calendar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 22px;
  border: 1px solid rgba(36, 33, 30, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(36, 33, 30, 0.72);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  transition: 0.3s ease;
}

.calendar-link:hover {
  background: var(--green);
  border-color: var(--green);
  color: #000;
  transform: translateY(-2px);
}

/* =========================
   PRODUCT MOMENT
========================= */

.product-moment {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: end center;
  padding-bottom: 9vh;
  color: var(--white);
  overflow: hidden;
}

.product-moment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.62)
  );
}

.product-moment img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.moment-text {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  text-align: center;
}

.moment-text p {
  font-size: var(--title-size);
  font-weight: 300;
  letter-spacing: var(--title-letter);
  line-height: 1.08;
  color: var(--white);

  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px);
  transition:
    opacity 1s ease,
    filter 1s ease,
    transform 1s ease;
}

.moment-text.visible p {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* RSVP */

.rsvp {
  background: var(--dark);
  color: var(--white);
  padding: 130px 0;
}

.rsvp-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(54px, 8vw, 110px);
  align-items: start;
}

.rsvp-copy {
  max-width: 420px;
}

.rsvp-copy .label {
  color: var(--green);
}

.rsvp-copy h2 {
  margin-bottom: 22px;
  font-size: var(--title-size);
  font-weight: 300;
  letter-spacing: var(--title-letter);
  line-height: 1.12;
  color: var(--white);
}

.rsvp-copy p:not(.label) {
  max-width: 340px;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--light);
}

.rsvp-form {
  width: 100%;
}

.choice {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.choice label {
  flex: 1;
  cursor: pointer;
}

.choice input {
  display: none;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(251, 248, 242, 0.22);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.62);
  transition: 0.3s ease;
}

.choice input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="number"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(251, 248, 242, 0.22);
  background: transparent;
  color: var(--white);
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 300;
  outline: none;
}

.rsvp-form input::placeholder {
  color: rgba(251, 248, 242, 0.42);
}

.rsvp-form button {
  width: auto;
  margin-top: 34px;
  padding: 13px 26px;
  border: 1px solid rgba(251, 248, 242, 0.26);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.35s ease;
}

.rsvp-form button:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
  transform: translateY(-2px);
}

.form-message {
  min-height: 26px;
  margin-top: 22px;
  color: var(--light);
}
/* =========================
   REVEAL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes revealIntro {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* =========================
   LANGUAGE SWITCH
========================= */

.lang-switch {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 16px;

  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.lang-btn {
  background: transparent;
  border: 0;
  cursor: pointer;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.55);
  transition: all 0.25s ease;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  color: #ffffff;
  font-weight: 800;
}

.lang-switch span {
  color: rgba(255, 255, 255, 0.35);
}

/* =========================
   PICTURE
========================= */

picture {
  display: block;
  width: 100%;
  height: 100%;
}

picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* =========================
   FOOTER
========================= */

.footer {
  padding: 28px 20px 36px;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer {
    padding: 24px 16px 30px;
  }

  .footer p {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  :root {
    --title-size: clamp(1.65rem, 7vw, 2.35rem);
    --section-space: 86px;
  }

  .container,
  .form-wrap {
    width: calc(100% - 32px);
  }

  .section {
    padding: 86px 0;
  }

  .intro-copy {
    font-size: clamp(1rem, 6vw, 2rem);
    letter-spacing: 0.22em;
    gap: 14px;
  }

  .intro-copy span {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

  .intro-copy small {
    font-size: 0.68rem;
  }

  .lang-switch {
    top: 18px;
    right: 18px;
    padding: 9px 14px;
  }

  .lang-btn {
    font-size: 0.66rem;
  }

  .campaign {
    min-height: 100svh;
    padding: 0 24px 72px;
  }

  .campaign-text {
    max-width: 100%;
  }

  .campaign-text h1 {
    font-size: clamp(3.8rem, 18vw, 5.2rem);
  }

  .hero-meta p {
    font-size: 0.62rem;
    line-height: 1.7;
    letter-spacing: 0.17em;
  }

  .invite-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .invite-copy {
    max-width: 100%;
  }

  .invite-text {
    font-size: 1.12rem;
    line-height: 1.65;
  }

  .invite-photo img {
    height: 460px;
  }

  .countdown {
    padding: 72px 0;
  }

  .countdown .label {
    margin-bottom: 26px;
  }

  .time-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .time-grid div:not(:last-child)::after {
    display: block;
    top: 18%;
    height: 62%;
  }

  .time-grid strong {
    font-size: clamp(1.65rem, 8vw, 2.45rem);
    letter-spacing: -0.05em;
  }

  .time-grid span {
    margin-top: 7px;
    font-size: 0.46rem;
    letter-spacing: 0.1em;
  }

  .details {
    padding: 86px 0;
  }

  .details-editorial {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .details-copy {
    max-width: 100%;
  }

  .details-copy p:not(.label) {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .details-line {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .calendar-link {
    margin-top: 24px;
  }

  .product-moment {
    min-height: 100svh;
  }

  .rsvp {
    padding: 74px 0;
  }

  .rsvp-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rsvp-copy h2 {
    font-size: 1.65rem;
    margin-bottom: 16px;
  }

  .rsvp-copy p:not(.label) {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .choice {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .choice span {
    min-height: 42px;
    padding: 11px 14px;
    font-size: 0.6rem;
    letter-spacing: 0.11em;
  }

  .rsvp-form input[type="text"],
  .rsvp-form input[type="email"],
  .rsvp-form input[type="number"] {
    padding: 15px 0;
    font-size: 0.9rem;
  }

  .rsvp-form button {
    width: 100%;
    margin-top: 24px;
    padding: 13px 20px;
    font-size: 0.62rem;
  }
}