@font-face {
  font-family: 'ItaliannoLocal';
  src: url('../fonts/Italianno-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg: #f7f4ef;
  --fg: #2a2723;
  --muted: #6b6358;
  --accent: #b89866;
  --border: #d9d2c5;
  --shadow-soft: 0 30px 80px -40px rgba(42, 39, 35, .25);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --script: 'Pinyon Script', cursive;
  --arabic: 'Aref Ruqaa', 'Amiri', serif;
  --arabic-calligraphy: 'Aref Ruqaa', 'Amiri', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased
}

:where(h1, h2, h3, h4, h5, h6, p, span, em, small, li, div, button, label, legend) {
  color: inherit
}

:lang(ar),
[lang="ar"],
[dir="rtl"] {
  font-family: var(--arabic);

}

img {
  display: block;
  max-width: 100%
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400
}

a,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  cursor: pointer;
  transition: opacity .7s ease
}

.preloader.closing {
  opacity: 0;
  pointer-events: none
}

.preloader video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1
}

.preloader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247, 244, 239, .1);
  z-index: 3
}

.preloader-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
  padding: 0 1.5rem;
  transition: opacity .5s ease;
  pointer-events: none;
  z-index: 4
}

.preloader.started .preloader-text {
  opacity: 0
}

.preloader-text .ar {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--fg);
  animation: softBob 2.4s ease-in-out infinite
}

.preloader-text .en {
  font-family: var(--arabic);
  font-size: 1.1rem;
  text-transform: none;
  color: rgba(42, 39, 35, .9);
  animation: softBob 2.4s ease-in-out infinite
}

@media(min-width:640px) {
  .preloader-text .ar {
    font-size: 2rem
  }
}

@keyframes softBob {

  0%,
  100% {
    transform: translateY(0);
    opacity: .85
  }

  50% {
    transform: translateY(-6px);
    opacity: 1
  }
}

/* Common */
.label {
  font-family: var(--serif);
  font-size: 1.35rem;
  text-transform: none;
  color: var(--fg);
  font-weight: 400
}

.italic {
  font-style: italic;
  font-size: 2rem;
  margin-top: 1rem
}

@media(min-width:640px) {
  .italic {
    font-size: 2.5rem
  }
}

.body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 2rem
}

.body.small {
  font-size: .875rem
}

.script {
  font-family: var(--script);
  color: var(--accent);
  font-size: 1.875rem;
  margin-top: 2rem
}

.script.big {
  font-size: 2.5rem
}

@media(min-width:640px) {
  .script {
    font-size: 2.25rem
  }

  .script.big {
    font-size: 3rem
  }
}

.center {
  text-align: center
}

.narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem
}

section {
  padding: 0 1.5rem
}

/* Floral divider */
.divider {
  display: flex;
  justify-content: center;
  width: 88%;
  max-width: 640px;
  margin: 1.5rem auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(42, 39, 35, 0), rgba(42, 39, 35, .4), rgba(42, 39, 35, 0));
  position: relative
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(42, 39, 35, .5);
  transform: translateY(-50%) rotate(45deg)
}

.divider::before {
  left: 48%
}

.divider::after {
  right: 48%
}

.section-divider {
  margin: 5rem auto;
  animation: floatSoft 7s ease-in-out infinite
}

@keyframes floatSoft {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 1rem;
  text-align: center
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #ece8e2
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(247, 244, 239, .22), rgba(247, 244, 239, .08), rgba(247, 244, 239, .18))
}

.ken-burns {
  animation: none
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 24rem;
  width: 100%;
  margin: 0 auto;
  animation: fadeIn 1.1s ease-out both;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-14vh);
  padding-bottom: 110px
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.hero-topline {
  font-size: 2rem;
  color: var(--fg);
  margin-bottom: .4rem
}

.hero-event {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--fg)
}

.couple {
  font-weight: 700;
  font-size: 4.1rem;
  line-height: 1.1;
  margin: .2rem 0 0;
  color: #211d19;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65)
}

@media(min-width:640px) {
  .couple {
    font-size: 4.8rem
  }
}

@media(min-width:1024px) {
  .couple {
    font-size: 5.5rem
  }
}

.couple .amp {
  font-family: var(--script);
  color: #2a2723;
  font-weight: 400;
  margin: .05em 0;
  font-size: .62em;
  line-height: 1
}

.hero-blessing {
  font-size: 2rem;
  color: var(--fg);
  margin-top: .4rem
}

.hero-translation {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--muted);
  margin-top: .4rem
}

.hero-date {
  font-size: 1.45rem;
  color: #211d19;
  margin-top: 1.05rem;
}

.btn-outline {
  display: inline-block;
  margin-top: 2.5rem;
  border: 1px solid rgba(42, 39, 35, .4);
  background: rgba(247, 244, 239, .4);
  padding: .85rem 2rem;
  font-size: .72rem;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  transition: all .3s ease;
  cursor: pointer
}

.btn-outline:hover {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg)
}

.btn-outline.dark {
  font-family: var(--arabic);
  font-size: 1.05rem;
  text-transform: none;
  background: transparent;
  backdrop-filter: none
}

.scroll-down {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 10;
  color: #fff;
  opacity: .9;
  animation: bounceSoft 2s infinite
}

.scroll-text {
  font-family: var(--arabic);
  font-size: 1.1rem
}

.scroll-arrow {
  font-size: 1.2rem;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
}

@keyframes bounceSoft {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%)
  }

  40% {
    transform: translateY(-10px) translateX(-50%)
  }

  60% {
    transform: translateY(-5px) translateX(-50%)
  }
}

/* Hero Video Section */
.hero-video-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 1.5rem;
  text-align: center;
  color: #4a4238;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.hero-video-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 32rem;
  width: 100%;
  margin-top: -10vh;
}

.hero-bismillah {
  font-family: var(--arabic);
  font-size: 1.5rem;
  color: #5c5346;
  margin-bottom: 0.5rem;
}

.hero-couple-names {
  font-size: 5rem;
  line-height: 1.2;
  margin: 1rem 0;
  color: #fff !important;
}

.hero-heart-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
  color: #fff;
}

.hero-heart-divider .line {
  width: 40px;
  height: 1px;
  background-color: #fff;
}

.hero-heart-divider .heart-icon {
  font-size: 1.2rem;
}

.hero-blessing-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.hero-blessing-text {
  font-family: var(--arabic);
  font-size: 1.8rem;
  color: #fff;
}

.hero-date-text {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: #fff;
  margin-top: 0.5rem;

}

.hero-bottom-text {
  margin-top: 1.5rem;
  text-align: center;
}

.hero-bottom-text p {
  font-family: var(--arabic);
  font-size: 1.4rem;
  line-height: 1.8;
  color: #fff;
}

.hero-bottom-text .heart-icon-small {
  display: inline-block;
  margin-right: 0.3rem;
  color: #fff;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.hero-text-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem auto;
  color: #fff;
}

.hero-text-divider .line {
  width: 70px;
  height: 1.5px;
}

.hero-text-divider .line.left {
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
}

.hero-text-divider .line.right {
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #fff);
}

.hero-text-divider .icon {
  font-size: 0.9rem;
}

/* Countdown */
.countdown {
  text-align: center
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  max-width: 36rem;
  margin: 2.5rem auto 0;
  direction: ltr
}

@media(min-width:640px) {
  .countdown-grid {
    gap: 1.5rem
  }
}

.countdown-grid>div {
  display: flex;
  flex-direction: column;
  align-items: center
}

.countdown-grid span {
  font-family: var(--serif);
  font-size: 2.5rem
}

@media(min-width:640px) {
  .countdown-grid span {
    font-size: 3rem
  }
}

@media(min-width:768px) {
  .countdown-grid span {
    font-size: 3.75rem
  }
}

.countdown-grid em {
  font-style: normal;
  margin-top: .5rem;
  font-size: .65rem;
  text-transform: uppercase;
  color: var(--muted)
}

/* Timeline */
.timeline-center {
  position: relative;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center
}

.timeline-center::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(to bottom, rgba(184, 152, 102, 0), var(--accent), rgba(184, 152, 102, 0));
  opacity: 0.4
}

.t-item {
  position: relative;
  width: 100%;
  max-width: 28rem;
  text-align: center;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center
}

.t-bg-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.07;
  z-index: 0;
  line-height: 1;
  pointer-events: none
}

@media(min-width:640px) {
  .t-bg-num {
    font-size: 11rem
  }
}

.t-content {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 1rem 1.5rem;
  border-radius: 1rem
}

.t-time {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block
}

.t-time::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.5
}

@media(min-width:640px) {
  .t-time {
    font-size: 1.75rem
  }
}

.t-content h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: var(--fg)
}

.t-note {
  font-size: 1rem;
  color: var(--muted)
}

/* Venue */
.venue {
  max-width: 56rem;
  margin: 0 auto
}

.venue-img {
  margin: 2rem auto 1rem;
  max-width: 28rem;
  width: 100%;
  opacity: .9;
  mix-blend-mode: multiply
}

/* Gallery */
.gallery-wrap {
  max-width: 72rem;
  margin: 0 auto
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 3rem
}

@media(min-width:640px) {
  .gallery {
    gap: 1.25rem
  }
}

@media(min-width:768px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr)
  }

  .gallery .offset {
    transform: translateY(2rem)
  }
}

.gallery figure {
  overflow: hidden;
  box-shadow: var(--shadow-soft)
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s ease-out
}

.gallery figure:hover img {
  transform: scale(1.05)
}

/* RSVP */
.rsvp {
  max-width: 32rem;
  margin: 0 auto
}

.rsvp-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: right
}

.rsvp-form label>span,
.rsvp-form legend {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  color: var(--muted)
}

.rsvp-form input[type=text],
.rsvp-form input[type=email] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: .5rem 0;
  margin-top: .5rem;
  font: inherit;
  color: var(--fg);
  outline: none;
  transition: border-color .2s
}

.rsvp-form input:focus {
  border-color: var(--fg)
}

.rsvp-form fieldset {
  border: 0;
  padding: 0
}

.radios {
  display: flex;
  gap: .75rem;
  margin-top: .75rem
}

.radio {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  padding: .85rem 1rem;
  font-size: .75rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s
}

.radio:hover {
  border-color: var(--fg)
}

.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.radio input:checked+span {
  font-weight: 500
}

.btn-solid {
  margin-top: 1.5rem;
  width: 100%;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  padding: 1rem 2rem;
  font-size: .72rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s
}

.btn-solid:hover {
  background: transparent;
  color: var(--fg)
}

.hidden {
  display: none
}

/* Music toggle */
.music-toggle {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(183, 110, 121, .35);
  border-radius: 999px;
  background: #ffefc9;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 120;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
}

.music-toggle.is-playing {
  background: #ffefc9;
  color: #000
}

/* Footer */
.foot {
  padding: 0 1.5rem 4rem
}

/* Reveal */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s cubic-bezier(.2, .7, .2, 1), transform 1.2s cubic-bezier(.2, .7, .2, 1)
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0)
}

/* Special Arabic calligraphy headings requested */
.cali-title {
  font-family: var(--arabic-calligraphy) !important;
  color: #000 !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

.venue-subtitle {
  display: block;
  font-size: 0.55em;
  color: var(--muted);
  margin-top: 0.25rem;
  font-family: var(--serif);
}

/* Calendar Section */
.calendar-card {
  max-width: 320px;
  margin: 3rem auto;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-grid .day-name {
  font-size: 0.65rem;
  text-transform: uppercase;

  color: var(--muted);
  font-weight: 500;
  padding-bottom: 1.25rem;
}

.calendar-grid .day {
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 0.6rem 0;
  color: var(--fg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-grid .marked {
  color: #fff;
  font-weight: 700;
  z-index: 1;
}

.calendar-grid .marked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  background-color: grey;
  border-radius: 50%;
  z-index: -1;
  animation: pulseCircle 2s ease-in-out infinite;
}

@keyframes pulseCircle {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Time Section */
.time-section {
  padding: 1rem 1.5rem;
}

.time-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.time-value {
  font-size: 4rem;
  color: #000 !important;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.time-value .am-pm {
  font-size: 1.5rem;
  font-family: var(--arabic);
}

.time-label {
  font-size: 0.9rem;
  color: #000;

}

.time-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 0.5;
  color: #000;
}

.time-separator .line {
  width: 30px;
  height: 0.5px;
  background-color: #000;
}

.time-separator .star {
  font-size: 1rem;
  color: #000;
}

/* Branding */
.branding {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.branding p {
  font-family: var(--serif);
  font-size: 0.85rem;
  text-transform: uppercase;

  color: var(--muted);
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  font-size: 1.4rem;
  color: #000;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  color: var(--accent);
}

/* Falling Hearts */
.heart {
  position: fixed;
  top: -10vh;
  color: #947d69;
  user-select: none;
  pointer-events: none;
  z-index: 90;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

/* Featured Photo Section */
.featured-photo-section {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.featured-photo-frame {
  position: relative;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: 12px;
  margin: 0 auto;
  width: min(100%, 34rem);
  display: inline-block;
}

.featured-photo-frame::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  border: 1px dashed var(--accent);
  pointer-events: none;
  z-index: 1;
  border-radius: 8px;
  opacity: 0.6;
}

.featured-photo-frame img {
  border-radius: 6px;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  display: block;
}
