:root {
  --navy: #111F4A;
  --ivory: #F5F0E6;
  --brick: #7A2C26;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--navy);
  line-height: 1.7;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

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


.hero {
  position: relative;
  padding: 160px 10%;
}

/* Vertical hero line — restored and long */
.hero::before {
  content: "";
  position: absolute;
  left: 10%;          /* aligns with hero padding */
  top: 60px;          /* longer line */
  bottom: 60px;       /* longer line */
  width: 2px;
  background: var(--brick);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

/* Image column */
.hero-image {
  display: flex;
  justify-content: flex-start;   /* align image left inside column */
  padding-left: 50px;            /* keeps safe distance from line */
}

.hero-image img {
  width: 315px;
  max-width: 90%;
  height: auto;
}

/* Text column */
.hero-text {
  text-align: right;
}

.names {
  margin: 0;
  line-height: 1.05;
  text-align: center;
}

.name-top {
  display: block;
  font-size: 4.3rem;
  transform: translateX(-18px);
}

.amp {
  display: block;
  font-size: 3rem;
  margin: 6px 0;
}

.name-bottom {
  display: block;
  font-size: 4.3rem;
  transform: translateX(42px);
}

.date {
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 40px;
  color: var(--brick);
}

.location {
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 15px;
  line-height: 1.6;
  color: var(--brick);
}


/* ================== SECTIONS ================== */

section {
  padding: 140px 12%;
}

.info.dark {
  background: var(--navy);
  color: var(--ivory);
}

.info.light {
  background: var(--ivory);
  color: var(--navy);
}

.align-center {
  text-align: center;
}

.info h2 {
  font-size: 2.4rem;
  margin-bottom: 30px;
}

/* LEFT */

.section-left .section-wrapper {
  position: relative;
  max-width: 600px;
}

.section-left .section-line {
  position: absolute;
  left: 0;
  top: 78px;
  width: 2px;
  height: calc(100% - 78px);
  background: var(--brick);
}

.section-left .section-content {
  padding-left: 28px;
}

/* RIGHT */

.section-right {
  text-align: right;
}

.section-right .section-wrapper {
  max-width: 600px;
  margin-left: auto;
}

.section-right .section-line {
  display: none; /* disable old absolute line */
}

/* NEW RIGHT LINE SYSTEM */
.section-right .section-content {
  position: relative;
  margin-top: 40px;
  padding-right: 28px;
}

.section-right .section-content::after {
  content: "";
  position: absolute;
  right: 0;
  top: -25px;   /* controls how high above text it starts */
  bottom: 0;
  width: 2px;
  background: var(--brick);
}


.section-right .section-content {
  margin-top: 30px;
}

/* CONTENT */

.section-content {
  margin-top: 30px;
}

.row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  margin-bottom: 8px;
}

.time {
  font-weight: 500;
}

/* MAP */

.map-wrapper {
  margin-top: 40px;
}

.map-wrapper iframe {
  width: 300px;
  height: 220px;
  border: 0;
}

/* RSVP */

.rsvp-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-form input,
.rsvp-form select {
  padding: 12px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.rsvp-form button {
  padding: 14px;
  border: none;
  background: var(--brick);
  color: white;
  cursor: pointer;
}

/* FOOTER */

footer {
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
  padding: 60px 12%;
  font-size: 0.8rem;
  letter-spacing: 2px;
}
