@import url("https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@font-face {
  font-family: "Beautifully Delicious";
  src: url("fonts/BDScript-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

:root {
  --font-amatic-bold: "Amatic SC", sans-serif;
  --font-sc-regular: "Courier Prime", monospace;
  --font-sc-bold: "Courier Prime", monospace;
}

.amatic-sc-bold {
  font-family: var(--font-amatic-bold);
  font-weight: 700;
  font-style: normal;
}
.courier-prime-regular {
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-style: normal;
}
.courier-prime-bold {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-style: normal;
}

.reveal {
  opacity: 0;
  transform: translateY(-25px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

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

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

body {
  margin: 0;
  font-family: "EB Garamond", serif;
  background-color: #f6f2e9;
}

.wrapper {
  margin: 0 auto;
}

/* 1. Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 40px 20px 20px 20px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/location-bg.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.2) translateY(8%);
  z-index: -1;
}

.hero__title {
  max-width: 430px;
  margin: 0 auto 20px auto;
}

.hero__title h2 {
  font-family: "Beautifully Delicious", cursive;
  font-size: 64px;
  font-weight: 100;
  line-height: 40px;
  transform: rotate(-5deg);
}

.hero__title img {
  width: 130px;
  height: auto;
  display: block;
  margin: 0px auto 0 auto;
  transform: translateY(2px) translateX(5px) rotate(-2deg);
}

.hero__photo {
  max-width: 380px;
  margin: 10px auto;
}

.hero__photo img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero p {
  font-family: var(--font-amatic-bold);
  font-size: 20px;
  margin-bottom: 20px;
}

.hero__verse {
  margin: 0 auto;
  width: 100%;
  background-color: #f6f2e9;
  padding: 20px;
  font-family: var(--font-sc-regular);
  font-size: 12px;
  letter-spacing: 0.5px;
  max-width: 591px;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* 2. Invite */
.invite {
  position: relative;
  text-align: center;
  padding: 60px 10px;
  color: #333;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.invite::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url("images/invite-bg.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  z-index: -1;
}

.invite__img {
  position: relative;
  max-width: 420px;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.invite__img img {
  width: 90%;
  height: auto;
  display: block;
  transform: rotate(-1deg);
}

.invite__clippy {
  position: absolute;
  top: -7%;
  right: 5%;

  width: 22%;
  aspect-ratio: 1 / 1;

  background-image: url("images/clipy.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  z-index: 2;
}

/* 3. Location */
.location {
  background-image: url("images/location-bg.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 40px 20px 20px;
  color: #333;
}

.location__title {
  margin-bottom: 25px;
}

.location__title h2 {
  font-family: "Beautifully Delicious", cursive;
  font-size: 64px;
  font-weight: 100;
  line-height: 25px;
  transform: rotate(-5deg);
}

.location__title img {
  width: 80px;
  height: auto;
  display: block;
  margin: 0px auto 0 auto;
  transform: translate(2px, 2px) rotate(-2deg);
}

.details {
  font-family: var(--font-amatic-bold);
  font-size: 18px;
  line-height: 20px;
  margin: 0 auto 20px;
}

.location__images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.address {
  font-family: var(--font-amatic-bold);
  font-size: 14px;
}

.location--church img,
.location--venue img {
  width: 100%;
  max-width: 250px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.location__images a:hover img {
  transform: scale(1.02);
}

.location__images a:active img {
  transform: scale(0.97);
  filter: brightness(0.95);
}

.location__extra {
  margin: 20px auto 0;
  width: 100%;
  background-color: #f6f2e9;
  padding: 20px;
  font-family: var(--font-sc-regular);
  font-size: 12px;
  letter-spacing: 0.5px;
  max-width: 591px;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* 4. RSVP */
.rsvp {
  position: relative;
  text-align: center;
  padding: 60px 10px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/rsvp-bg.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1);
  z-index: -1;
}

.rsvp__img {
  position: relative;
  max-width: 420px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.rsvp__card {
  width: 90%;
  height: auto;
  display: block;
  transform: rotate(-1.5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* CLIPPY PRILIPĘS PRIE KORTELĖS */
.rsvp__clippy {
  position: absolute;
  top: -7%;
  left: 0;

  width: 22%;
  aspect-ratio: 1 / 1;

  background-image: url("images/clipy.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  z-index: 2;
}

/* MYGTUKAS */
.rsvp__btn {
  position: absolute;
  bottom: 32.5%;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg) scale(1);

  padding: 14px 30px;
  font-size: 18px;

  --btn-main: #948062;
  --btn-hover: #8a785e;
  --btn-active: #7a6a52;
  --btn-text: #f6f2e9;

  background: var(--btn-main);
  color: var(--btn-text);
  border: none;
  font-family: var(--font-sc-regular, serif);
  letter-spacing: 0.6px;
  border-radius: 999px;
  font-weight: 400;
  cursor: pointer;
  display: inline-block;

  transition:
    transform 0.12s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.12s ease,
    background 0.2s ease;

  box-shadow:
    0 6px 18px rgba(148, 128, 98, 0.35),
    0 3px 6px rgba(0, 0, 0, 0.1);

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Hover – šiek tiek pakyla / padidėja */
.rsvp__btn:hover {
  background: var(--btn-hover);
  transform: translateX(-50%) translateY(-1px) rotate(-1.5deg) scale(1.05);
  box-shadow:
    0 10px 24px rgba(148, 128, 98, 0.45),
    /* ryškesnis hover */ 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Active – švelniai nusileidžia ir truputį padidėja */
.rsvp__btn:active {
  background: var(--btn-active);
  transform: translateX(-50%) translateY(2px) rotate(-1.5deg) scale(0.95);
  box-shadow:
    0 4px 12px rgba(148, 128, 98, 0.3),
    /* švelnesnis aktyvus */ 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* 5. Countdown */
.countdown {
  background-image: url("images/location-bg.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 20px 20px;
  color: #333;
}

.countdown h2 {
  font-family: var(--font-amatic-bold);
  color: #948062;
  margin-bottom: 10px;
  font-weight: 100;
  font-size: 32px;
}

#timer {
  display: flex;
  justify-content: center;
  color: #948062;
  font-size: 24px;
  font-family: var(--font-amatic-bold);
}

.timer-grid {
  display: flex;
  align-items: flex-start; /* svarbu, kad kiekviena sekcija pradėtų nuo viršaus */
  justify-content: center;
  gap: 20px;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-num {
  font-size: 32px;
  font-weight: 100;
  line-height: 1;
  position: relative;
}

.time-label {
  font-size: 12px;
  margin-top: 4px;
  text-align: center;
  font-weight: 300;
}

.time-separator {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center; /* centras pagal skaičių */
}

@media (min-width: 768px) {
  .hero::before {
    transform: scale(1.2) translateY(8%);
  }

  .hero {
    padding-top: 60px;
  }

  .hero p {
    font-size: 24px;
  }

  .hero__title {
    max-width: 550px;
  }

  .hero__title h2 {
    font-family: "Beautifully Delicious", cursive;
    font-size: 120px;
    font-weight: 100;
    line-height: 80px;
  }

  .hero__title img {
    width: 260px;
    height: auto;
    display: block;
    margin: 5px auto 0 auto;
  }

  .hero__verse {
    font-size: 13px;
  }

  .invite {
    padding: 80px 10px;
  }
  .invite__img {
    max-width: 480px;
  }

  .location {
    padding-top: 55px;
  }

  .location__title {
    margin-bottom: 35px;
  }

  .location__title h2 {
    font-size: 100px;
  }

  .location__title img {
    width: 130px;
    transform: translate(2px, 80%) rotate(-2deg);
  }

  .location__images {
    flex-direction: row;
    align-items: end;
    justify-content: center;
  }

  .location--church img,
  .location--venue img {
    width: 100%;
    max-width: 300px;
  }

  .location__extra {
    font-size: 13px;
  }

  .details {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 30px;
    max-width: 600px;
  }
  .rsvp {
    padding: 80px 10px;
  }
  .rsvp__img {
    max-width: 480px;
  }
  .rsvp__btn {
    bottom: 33.5%;
    transform: translateX(-50%) rotate(-1.5deg) scale(1.1);
  }

  .rsvp__btn:hover {
    transform: translateX(-50%) translateY(-1px) rotate(-1.5deg) scale(1.15);
  }

  .rsvp__btn:active {
    transform: translateX(-50%) translateY(2px) rotate(-1.5deg) scale(1.05);
  }
  .countdown h2 {
    font-size: 36px;
  }
  .time-num {
    font-size: 36px;
  }

  .time-label {
    font-size: 14px;
  }

  .time-separator {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .hero::before {
    transform: scale(1.2) translateY(8%);
  }
  .hero__title {
    max-width: 700px;
    margin: 0 auto 24px;
  }

  .hero__title h2 {
    font-size: 140px;
  }

  .hero__title img {
    width: 300px;
    margin: 15px auto 0 auto;
  }

  .hero__photo {
    max-width: 420px;
    margin: 10px auto;
  }
  .hero__verse {
    font-size: 14px;
  }

  .location__extra {
    font-size: 14px;
  }

  .countdown h2 {
    font-size: 40px;
  }
  .time-num {
    font-size: 40px;
  }

  .time-label {
    font-size: 16px;
  }

  .time-separator {
    font-size: 40px;
  }
}

@media (min-width: 1440px) {
  .hero::before {
    transform: scale(1) translateY(0%);
  }
}
