@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');

@font-face {
  font-family: 'StellaAesta';
  src: url('../fonts/Stella Aesta Italic.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Color Palette */
  --weathered-sage: #9CAF88;
  --rosewood-veil: #9B6A6C;
  --harvest-ochre: #C68E58;
  --fired-clay: #C26E60;
  --autumn-sky: #B5C2C7;
  --velvet-cadet-blue: #4A6B7C;
  --aurora-sand: #F2EFE9;

  --dark-text: #2A2F2A;
  --light-text: #F9F8F6;
  
  /* Typography */
  --font-primary: 'StellaAesta', serif;
  --font-body: 'StellaAesta', sans-serif;
  --font-decorative: 'Parisienne', cursive;
}

body {
  font-family: var(--font-body);
  background-color: var(--aurora-sand);
  color: var(--dark-text);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--dark-text);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: 0.05em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: 0.05em;
}

.decorative-text {
  font-family: var(--font-decorative);
  color: var(--rosewood-veil);
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Global Navbar */
.navbar {
  background-color: rgba(242, 239, 233, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  color: var(--dark-text) !important;
  letter-spacing: 0.1em;
}

.nav-link {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: var(--velvet-cadet-blue) !important;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--rosewood-veil) !important;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--weathered-sage);
  color: var(--aurora-sand);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  border: 1px solid var(--weathered-sage);
  border-radius: 0; /* Boxy elegant look */
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: transparent;
  color: var(--weathered-sage);
}

.btn-secondary-custom {
  background-color: transparent;
  color: var(--velvet-cadet-blue);
  border: 1px solid var(--velvet-cadet-blue);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
  background-color: var(--velvet-cadet-blue);
  color: var(--aurora-sand);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
  /* Mobile Default */
  min-height: 50vh;
  background-image: url('../images/custom_hero.jpeg');
  background-attachment: scroll;
  background-position: center top;
  background-size: cover;
}

.hero > .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(42, 47, 42, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero h1 {
  color: var(--light-text);
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

@media (min-width: 992px) {
  .hero {
    height: 100vh;
    background-attachment: fixed;
  }
  .hero h1 {
    font-size: 6rem;
  }
}

/* Details Timeline */
.details-section {
  padding: 6rem 2rem;
  background-color: var(--aurora-sand);
  text-align: center;
}

.timeline {
  max-width: 800px;
  margin: 4rem auto;
  position: relative;
}

/* Cards & Registry */
.registry-card {
  border: none;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.registry-card:hover {
  transform: translateY(-5px);
}

.registry-card img {
  height: 250px;
  object-fit: cover;
}

.registry-card .card-body {
  padding: 2rem;
}

.registry-card .card-title {
  font-family: var(--font-primary);
  color: var(--velvet-cadet-blue);
  font-size: 1.8rem;
}

.progress {
  height: 8px;
  border-radius: 4px;
  margin: 1.5rem 0;
  background-color: var(--aurora-sand);
}

.progress-bar {
  background-color: var(--harvest-ochre);
}

/* RSVP Form */
.rsvp-section {
  padding: 6rem 2rem;
  background-color: var(--aurora-sand);
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rsvp-form-container {
  background-color: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  max-width: 600px;
  width: 100%;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-control, .form-select {
  border-radius: 0;
  border: 1px solid #ddd;
  padding: 0.8rem;
  font-family: var(--font-body);
}

.form-control:focus, .form-select:focus {
  border-color: var(--weathered-sage);
  box-shadow: 0 0 0 0.2rem rgba(156, 175, 136, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--velvet-cadet-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Admin Dashboard */
.admin-section {
  padding: 6rem 2rem;
}

.login-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background-color: var(--aurora-sand);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.login-box {
  background: white;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  border-radius: 8px;
}
