:root {
  --bg-color: #F9F7F3;
  --text-color: #2B2B2B;
  --accent-color: #C6A45C;
  --light-section: #ffffff;
  --font-heading: "Playfair Display", sans-serif;
  --font-body: "Inter", serif;
}

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

body {
  margin: 0;
  background-color: var(--bg-color);
  background-color: #f1ebdf ; 
  color: var(--text-color);
  font-family: "Lato" !important;
  font-size: 0.9rem;
  scroll-behavior: smooth;
  padding-top: 80px;
}


h1, h2, h3 {
  font-family: 'Milkshake', cursive !important;
  letter-spacing: 1px;
}

button {
  font-family: "Helvetica";
}

.container {
  width: 90%;
  margin: 0 auto;
}

.section-container {
  width: 95%;
  margin: 0 auto;
}

.section {
  padding: 100px 5%;
}

.light-bg {
  background-color: var(--light-section);
}

.center {
  text-align: justify;
}

/* ===== HERO SECTION ===== */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  margin-bottom: 0 !important;
}

/* Slides */
.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Overlay positioning */
.hero-overlay {
  position: absolute;
  bottom: 10px;
  left: 5px;
  z-index: 2;
  color: white;
}

.hero-overlay h1 {
  font-size: 2rem;
  font-weight: 700 !important;
  margin: 0;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: 700 !important;
}

/* ===== TWO COLUMN LAYOUT ===== */

.two-column {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.image-placeholder {
  flex: 1;
  height: 300px;
  background: #ddd;
}

/* ===== CARDS ===== */

.cards {
  display: flex;
  gap: 40px;
  margin-top: 2rem;
  margin-bottom: 40px;
  border-radius: 22px;
  background: #f1ebdf;
  width: 100%;
  
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.12),
    0 30px 60px rgba(0, 0, 0, 0.08);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card {
  flex: 1;
  padding: 2rem;
  background: #f1ebdf;
  text-align: center;
  border-radius: 22px;
  max-width: 1500px;
  width: 100%;
  
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.12),
    0 35px 60px rgba(0, 0, 0, 0.08);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#details .card:nth-child(1) {
  box-shadow:
    -8px 18px 35px rgba(0, 0, 0, 0.12),
    -15px 30px 60px rgba(0, 0, 0, 0.08);
}


/* ===== SLIDESHOW ===== */

.slideshow {
  position: relative;
  height: 400px;
  margin-top: 2rem;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #ccc;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* ===== BUTTONS ===== */

.btn {
  padding: 0.8rem 2rem;
  border: 1px solid var(--accent-color);
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: var(--accent-color);
  color: white;
}

.registry-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.wedding-btn {
  display: inline-block;
  align-items: center;
  gap: 10px;
  

  padding: 16px 40px;
  border-radius: 40px;

  font-size: 1rem;
  letter-spacing: 1px;
  text-decoration: none;

  background: #f1ebdf; 
  color: #6a5a4d;

  border: 1px solid rgba(0, 0, 0, 0.08);

  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.10),
    0 20px 40px rgba(0, 0, 0, 0.06);

  transition: all 0.3s ease;
}

.wedding-btn:hover {
  transform: translateY(-5px);

  box-shadow:
    0 20px 35px rgba(0, 0, 0, 0.15),
    0 40px 70px rgba(0, 0, 0, 0.10);

  background: #ffffff;
}

.registry-button::before {
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Message */
.message::before {
  content: "💌";
}

/* ===== NAVBAR ===== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: #f1ebdf; 
  backdrop-filter: blur(6px);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.navbar a {
  text-decoration: none;
  color: var(--text-color);
  font-family: var(--font-body);
  font-weight: 500;
}

.navbar a:hover {
  color: var(--accent-color);
}

/* Navbar brand (Macbeth & Sarah) */
.navbar-brand {
  font-family: 'Lati' !important;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

/* Navbar links */
.nav-link {
  font-family: 'Milkshake' !important;  
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* ===== REMOVE QUARTO COLUMN LAYOUT ===== */

.page-columns {
  grid-template-columns: 1fr !important;
}

main.content {
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.page-columns > div:first-child {
  border: none !important;
}

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

@media (max-width: 1500px) {

  .two-column {
    flex-direction: column;
  }

  .cards {
    flex-direction: column;
  }

  .hero {
    width: 100%;
    margin: 0;
    border-radius: 0;
    height: 85vh;
  }
}


/* ===== OUR STORY SECTION ===== */

.story-section {
  background: #feffea;/* soft beige tone */
  padding: 0.5rem 0.5rem 1rem 0.5rem; /* top, right, bottom, left */
  position: relative;
  
}

.story-wrapper {
  position: relative;
  max-width: 1500px;
  margin: auto;
}

/* Background image layer */
.story-image {
  height: 60vh;
  width: 85%;
  background-image: url("assets/images/ma1.JPG");
  background-size: cover;
  background-position: center;
}

/* Content layout */
.story-card {
  position: relative;
  background: #f1ebdf; 
  padding: 70px 80px;
  margin: 12%;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* Title */
.story-card h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #6f5a4c;
}

.story-card {
  background: #f1ebdf;
  padding: 30px 5px;
  margin: -120px auto -60px auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  position: relative;
  z-index: 3;
}

.story-text {
  width: 100%;
  color: #6f5a4c;
  line-height: 1.8;
  text-align: justify;
  flex: 1;
}


/* Button area */
.story-action {
  flex: 1;
  text-align: center;
}

.story-btn {
  padding: 12px 30px;
  border: 1px solid #b9a28f;
  text-decoration: none;
  color: #6f5a4c;
  transition: 0.3s ease;
}

.story-btn:hover {
  background: #b9a28f;
  color: white;
}


@media (max-width: 1300px) {

  .story-image {
    position: relative;
    width: 100%;
    height: 300px;
    border: none;
    top: 0;
  }

  .story-card {
    margin-left: 0;
    padding: 40px 25px;
  }

  .story-content {
    flex-direction: column;
  }
}


.story-slider {
  position: relative;
  width: 100%;
}

.story-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.story-slide.active {
  width: 100%;
  display: block;
  opacity: 1;
}

.story-controls {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  max-width: 1850px;
}

.story-controls button {
  background: none;
  border: 1px solid var(--accent-color);
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.story-controls button:hover {
  background: var(--accent-color);
  color: white;
}

.story-card {
  position: relative;
  background: #f1ebdf; 
  border-radius: 25px;
  padding: 50px;

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.28),
    0 40px 80px rgba(0, 0, 0, 0.22);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* ===== GALLERY SECTION ===== */
/* decorative border */
.gallery-section {
  padding: 3rem 0;
  background: #d9d9dc; /* soft muted background */
  display: flex;
  justify-content: center;
}

.gallery-wrapper {
  background: #f1ebdf;  
  padding: 1rem 1rem 1rem 1rem; /* top, right, bottom, left */
  width: 90%;
  max-width: 900px;
  text-align: center;
  position: relative;

  /* Scalloped border effect */
  border-radius: 40px;
  
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.28),
    0 40px 80px rgba(0, 0, 0, 0.22);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-wrapper::before,
.gallery-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;  
  height: 20px;
  background: radial-gradient(circle at 10px -10px, transparent 20px, #f1ebdf 21px);
  background-size: 40px 40px;
}  

.gallery-wrapper::before {
  top: -20px;
}

.gallery-wrapper::after {
  bottom: -20px;
  transform: rotate(180deg);
  
  
}

/* image+caption */
.gallery-slide {
  display: none;
  flex-direction: column;
  align-items: center;
}

.gallery-slide.active {
  display: flex;
}

.gallery-slide img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.gallery-slide p {
  font-size: 1.1rem;
  color: #6a5a4d;
}

/* arrow buttons */

.gallery-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.gallery-controls button {
  background: transparent;
  border: 1px solid #c8bfb5;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.gallery-controls button:hover {
  background: #e7ded3;
}

/* dots */
.gallery-dots {
  margin-top: 1rem;
}

.gallery-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #c8bfb5;
  border-radius: 50%;
  margin: 0 4px;
}

.gallery-dot.active {
  background: #6a5a4d;
}

/* gallery slide */
.gallery-slide {
  opacity: 0;
  transition: opacity 0.6s ease;
  position: absolute;
  width: 100%;
}

.gallery-slide.active {
  opacity: 1;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 320px;       
  object-fit: cover;   
  border-radius: 20px;
}


/* SECTION BETWEEN HERO & STORY - deleted from main website */
.love-bridge {
  background: white;
  text-align: center;
  padding: 30px 0 40px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  box-sizing: border-box;
}

/* BUTTON */
.love-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  background: white;
  border: 1px solid #e6e0d6;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  margin-top: 0 !important;
  
}

/* RED HEART */
.love-heart {
  color: #c04646;  /* romantic red */
  font-size: 20px;
  animation: heartbeat 1.6s infinite ease-in-out;
}

/* TEXT */
.love-label {
  color: #5a4a42;
  text-transform: uppercase;
}

/* HOVER */
.love-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* HEART ANIMATION - deleted from main website*/
@keyframes heartbeat {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* footer copyright */
.site-footer {
  text-align: center;
  padding: 30px 0;
  font-size: 0.8rem;
  color: #8a7f75;
  letter-spacing: 1px;
}

/* SAVE THE DATE */
.save-date-section {
  padding: 40px 0px;
  background: #ffffff;
  display: flex;
  justify-content: center;
}

.save-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 25%; 
}

.save-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.save-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.save-item:hover img {
  transform: scale(1.05);
}

#save-date .slideshow {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.save-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

#save-date .save-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.save-slide.active {
  opacity: 1;
}

#save-date .save-grid > * {
  aspect-ratio: 5 / 7;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {

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

  .save-item {
    aspect-ratio: 4 / 5;  
  }

}

@media (max-width: 768px) {

  #save-date .save-grid {
    grid-template-columns: 1fr 1fr;
    width: 95%;
    gap: 18px;
    margin: 0 auto;
  }

}

@media (max-width: 768px) {
  #save-date .slideshow {
    aspect-ratio: 4 / 5;
  }
}

#save-date .slideshow,
#save-date .save-slide {
  width: 100%;
  height: 100%;
}

#save-date .save-slide {
  position: absolute;
  inset: 0;
}

#save-date .save-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================
   STORY & GALLERY ARROWS
========================= */

.story-prev,
.story-next,
.gallery-prev,
.gallery-next {

  box-shadow: 0 6px 18px rgba(80, 60, 40, 0.18);
  transition: all 0.3s ease;
  transform: translateY(1px);
}


/* =========================
   SAVE THE DATE — OFFSET GRID
========================= */

.save-grid {
  width: 92%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Push left column slightly lower */
.save-grid .save-card:nth-child(1),
.save-grid .save-card:nth-child(3) {
  margin-top: 40px;
}

/* Slideshow container */
.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Each slide fills ONLY the inner area */
.save-slide {
  position: absolute;
  inset: 0;
  display: none;
  background: #ffffff;     /* white frame */
  padding: 7px;           /* thickness of frame */
  border-radius: 12px;
}

.save-slide.active {
  display: block;
}

/* Ensure slideshow images respect frame */
.slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px; /* same as other images */
}

/* =========================
   SAVE THE DATE — FRAMED 3D TILE
========================= */

.save-card {
  position: relative;
  aspect-ratio: 4 / 5;

  background: #ffffff;     /* white frame */
  padding: 7px;           /* thickness of frame */
  border-radius: 12px;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.32),
    0 25px 50px rgba(0,0,0,0.28);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image fills inside frame */
.save-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;  /* slightly smaller than outer */
}

/* Subtle lift */
.save-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.28),
    0 35px 70px rgba(0,0,0,0.22);
}

/* background colors */

#hero {
  background: linear-gradient(to bottom, #ededed 0%,#f9f9f9 100%); 
}

.love-bridge {
  background: linear-gradient(to right, #ededed 0%, #f9f9f9 100%);
  padding: 60px 0;
}

#story {
  background: linear-gradient(to bottom, #ededed 0%, #f9f9f9 100%);
}

#details {
  background: linear-gradient(to bottom, #ededed 0%, #f9f9f9 100%); 
}

#save-date {
  background: linear-gradient(to bottom, #ededed 0%, #ededed 100%); 
}

#gallery {
  background: linear-gradient(to bottom, #ededed 0%, #f9f9f9 100%); 
}

#registry {
  background: linear-gradient(to bottom, #ededed 0%, #f9f9f9 100%); 
}
