/* =============================================
   Meet the Maks — main.css
   ============================================= */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-font-smoothing: antialiased; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }
table { border-collapse: collapse; }

/* Base */
body {
  background: #fff;
  color: #333;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  color: #131313;
  margin-bottom: 1.25rem;
}

a { color: #2980b9; }
a:hover, a:focus { color: #2c3e50; }

b, strong { font-weight: 700; }
em, i { font-style: italic; }
small { font-size: 75%; }

/* =============================================
   Layout — Container
   ============================================= */
.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

/* =============================================
   Button
   ============================================= */
.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 40px;
  margin-top: 20px;
  font-family: 'Lato', sans-serif;
}

.btn--rsvp {
  background-color: #AB47BC;
  border: 1px solid #AB47BC;
  color: #fff;
}

.btn--rsvp:hover, .btn--rsvp:focus {
  color: #fff;
  background-color: #9c3aac;
}

/* =============================================
   Header
   ============================================= */
.l-site-header {
  background-color: #eee;
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
  position: relative;
}

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

.header-brand h1 {
  font-size: 1.625rem;
}

.header-brand h1 a {
  color: #333;
}

.js-menu-toggle {
  color: #333;
  position: absolute;
  right: 20px;
  top: 22px;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
}

header nav ul {
  display: none;
  list-style: none;
  padding: 20px 0 0;
}

header nav ul li {
  display: inline-block;
  float: left;
  width: 50%;
  text-align: center;
  padding: 12px 0;
}

header nav ul li a {
  color: #333;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .header-layout {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
  }

  .header-brand h1 {
    font-size: 1.5rem;
  }

  .js-menu-toggle {
    display: none;
  }

  header nav {
    justify-self: end;
  }

  header nav ul {
    display: flex !important; /* override slideToggle inline style */
    gap: 28px;
    padding: 0;
    align-items: center;
  }

  header nav ul li {
    float: none;
    width: auto;
    padding: 0;
  }

  header nav ul li a {
    font-size: 0.75rem;
  }

  .btn--rsvp {
    margin-top: 0;
    padding: 6px 20px;
  }
}

@media (min-width: 992px) {
  .header-brand h1 {
    font-size: 2rem;
  }

  header nav ul {
    gap: 30px;
  }

  header nav ul li a {
    font-size: 0.875rem;
  }
}

/* =============================================
   Home page
   ============================================= */
.l-home {
  background-image: url(../images/hp2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: calc(100vh - 75px);
  display: grid;
  place-items: center;
}

.mantle__home {
  text-align: center;
  padding: 40px 20px;
}

.mantle__home h1,
.mantle__home h2 {
  margin-bottom: 15px;
}

.mantle__home h1 span,
.mantle__home h2 span {
  background: rgba(238, 238, 238, 0.88);
  padding: 10px 20px;
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  line-height: 2;
}

@media (min-width: 768px) {
  .mantle__home h1,
  .mantle__home h2 {
    margin-bottom: 30px;
  }

  .mantle__home h1 span,
  .mantle__home h2 span {
    line-height: 1.2;
  }
}

.l-home ~ .l-site-footer {
  display: none;
}

/* =============================================
   Ceremony / Details
   ============================================= */
.l-ceremony {
  padding-top: 80px;
  text-align: center;
}

.l-ceremony > .container > h1 {
  margin-bottom: 50px;
}

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

.detail-wrap {
  margin-bottom: 35px;
  padding-bottom: 35px;
}

.detail-wrap + .detail-wrap {
  border-top: 1px solid #eee;
}

.detail-wrap h2 {
  font-size: 1.625rem;
  margin-bottom: 15px;
}

.detail-wrap p {
  margin-bottom: 5px;
}

.detail-wrap p span {
  font-weight: 700;
}

.detail-wrap ul {
  margin: 25px 0;
}

.detail-wrap ul li h4 {
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .details-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .detail-wrap {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .detail-wrap + .detail-wrap {
    border-top: none;
    border-left: 1px solid #eee;
    padding-left: 40px;
  }
}

/* =============================================
   Our Story — collage
   ============================================= */
.l-about {
  padding-top: 50px;
}

.l-about h1 {
  text-align: center;
  margin-bottom: 50px;
}

@keyframes collage {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-1800px, 0, 0); }
}

@keyframes load4 {
  0%,  100% { box-shadow: 0 -3em 0 .2em #333, 2em -2em 0 0 #333, 3em 0 0 -1em #333, 2em 2em 0 -1em #333, 0 3em 0 -1em #333, -2em 2em 0 -1em #333, -3em 0 0 -1em #333, -2em -2em 0 0 #333; }
  12.5%     { box-shadow: 0 -3em 0 0 #333, 2em -2em 0 .2em #333, 3em 0 0 0 #333, 2em 2em 0 -1em #333, 0 3em 0 -1em #333, -2em 2em 0 -1em #333, -3em 0 0 -1em #333, -2em -2em 0 -1em #333; }
  25%       { box-shadow: 0 -3em 0 -.5em #333, 2em -2em 0 0 #333, 3em 0 0 .2em #333, 2em 2em 0 0 #333, 0 3em 0 -1em #333, -2em 2em 0 -1em #333, -3em 0 0 -1em #333, -2em -2em 0 -1em #333; }
  50%       { box-shadow: 0 -3em 0 -1em #333, 2em -2em 0 -1em #333, 3em 0 0 -1em #333, 2em 2em 0 0 #333, 0 3em 0 .2em #333, -2em 2em 0 0 #333, -3em 0 0 -1em #333, -2em -2em 0 -1em #333; }
  75%       { box-shadow: 0 -3em 0 -1em #333, 2em -2em 0 -1em #333, 3em 0 0 -1em #333, 2em 2em 0 -1em #333, 0 3em 0 -1em #333, -2em 2em 0 0 #333, -3em 0 0 .2em #333, -2em -2em 0 0 #333; }
}

.collage {
  position: relative;
  height: 500px;
  width: 100%;
  overflow: hidden;
}

.collage .photos {
  background-image: url(../images/collage1.jpg);
  background-size: 1800px 500px;
  position: absolute;
  inset: 0;
  width: 5400px;
  animation: collage 60s linear infinite;
}

/* =============================================
   Accommodations
   ============================================= */
.l-accomodations {
  padding-top: 80px;
  text-align: center;
}

.l-accomodations .title__wrap h1 {
  margin-bottom: 15px;
}

.l-accomodations .title__wrap p {
  margin-bottom: 5px;
}

.l-accomodations .title__wrap p span {
  font-weight: 900;
}

.hotel-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  transition: border-color 0.25s ease-in-out;
  color: #333;
}

.hotel-card:hover {
  border-color: #9A9A9A;
  color: #333;
}

.hotel-card img {
  margin-inline: auto;
}

.hotel-card ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: center;
}

.hotel-card ul li p {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .hotel-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: fit-content;
    margin-inline: auto;
  }

  .hotel-card ul {
    text-align: left;
    padding-top: 0;
  }
}

/* =============================================
   Atlanta
   ============================================= */
.l-atlanta {
  padding-top: 88px;
  text-align: center;
}

.l-atlanta h1,
.l-atlanta h3 {
  text-align: center;
}

.l-atlanta h3 {
  margin-top: 50px;
  color: #888;
}

/* =============================================
   RSVP
   ============================================= */
.l-rsvp {
  padding-top: 60px;
  padding-bottom: 80px;
}

.l-rsvp h1 {
  text-align: center;
  margin-bottom: 10px;
}

.l-rsvp .rsvp-intro {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

.rsvp-form {
  max-width: 560px;
  margin-inline: auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #333;
  background: #fff;
  transition: border-color 0.15s ease;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #AB47BC;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  cursor: pointer;
  color: #333;
}

.radio-group input[type="radio"] {
  accent-color: #AB47BC;
  width: 16px;
  height: 16px;
}

.form-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 32px 0;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.btn--submit {
  background-color: #AB47BC;
  border: 1px solid #AB47BC;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 8px;
  padding: 14px 60px;
  transition: background-color 0.15s ease;
}

.btn--submit:hover {
  background-color: #9c3aac;
}

/* =============================================
   Registry
   ============================================= */
.l-registry {
  padding-top: 80px;
  text-align: center;
}

.l-registry h1 {
  margin-bottom: 15px;
}

.l-registry p {
  margin-bottom: 60px;
}

.registry-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

@media (min-width: 600px) {
  .registry-logos {
    flex-direction: row;
    justify-content: center;
  }
}

.logo {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: block;
  height: 50px;
  width: 225px;
}

.logo__ws {
  background-image: url(../images/ws-logo.svg);
}

.logo__pb {
  background-image: url(../images/pb.png);
}

/* =============================================
   Footer
   ============================================= */
.l-site-footer {
  margin-top: 80px;
  padding-bottom: 40px;
  text-align: center;
}

.l-site-footer svg {
  height: 80px;
  width: 80px;
  margin-inline: auto;
  transform: scaleX(-1);
}
