/* ===== Medha & Jacob, shared site styles =====
   Palette + type pulled directly from the Save the Date design.
   Edit the variables below to retune colors/fonts across every page. */

:root {
  --sage: #90B58B;
  --sage-deep: #6F9463;
  --mint: #E0FFDB;
  --cream: #FAF8F2;
  --ink: #33422B;
  --ink-soft: #55684A;

  --font-script: 'Homemade Apple', cursive;
  --font-label: 'Josefin Sans', sans-serif;
  --font-body: 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
}

a { color: inherit; }

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  font-weight: 400;
}

/* ---------- Top nav ---------- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 6vw;
  background: var(--cream);
  border-bottom: 1px solid rgba(51, 66, 43, 0.12);
}

.site-nav__mark {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--sage-deep);
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav__links a {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--sage-deep);
  border-color: var(--sage-deep);
}

.site-nav__links a.nav-rsvp {
  color: var(--sage-deep);
  font-weight: 600;
  border-bottom-color: var(--sage-deep);
}

/* ---------- Divider (hand-drawn squiggle, recreated in CSS/SVG) ---------- */
.divider {
  display: block;
  width: min(420px, 70%);
  margin: 2.5rem auto;
  opacity: 0.9;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--sage);
  color: var(--mint);
  text-align: center;
  padding: 4.5rem 6vw 3.5rem;
}

.hero .eyebrow {
  color: var(--mint);
  opacity: 0.85;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
}

.hero__names {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.3vw, 4.2rem);
  line-height: 1;
  margin: 2.25rem 0 0;
}

.hero__illustration {
  max-width: 640px;
  width: 100%;
  height: auto;
  margin: 1.5rem auto 0;
  display: block;
}

.hero__details {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.hero__details strong {
  display: block;
  font-size: 1.3rem;
  letter-spacing: 0.25em;
  margin-bottom: 0.35rem;
}

.btn-rsvp {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2.6rem;
  border: 1px solid var(--mint);
  border-radius: 999px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--mint);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-rsvp:hover {
  background: var(--mint);
  color: var(--sage-deep);
}

/* ---------- Page nav cards (homepage) ---------- */
.page-links {
  padding: 4.5rem 6vw 5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.page-links__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 640px) {
  .page-links__grid { grid-template-columns: 1fr; }
}

.page-card {
  display: block;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(51, 66, 43, 0.18);
  border-radius: 4px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.page-card:hover {
  border-color: var(--sage-deep);
  transform: translateY(-2px);
}

.page-card__title {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  color: var(--sage-deep);
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-card__icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.page-card__desc {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

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

.section-heading h2 {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--sage-deep);
  margin: 0.25rem 0 0;
}

/* ---------- Compact page hero (inner pages) ---------- */
.page-hero {
  background: var(--sage);
  color: var(--mint);
  text-align: center;
  padding: 3.5rem 6vw 3rem;
}

.page-hero .eyebrow { color: var(--mint); opacity: 0.85; }

.page-hero h1 {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 6.5vw, 3.8rem);
  margin: 2rem 0 0;
  line-height: 1;
}

/* ---------- Day timeline (horizontal stepper) ---------- */
.h-timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 6vw 1rem;
}

.h-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.h-row::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 24px;
  height: 2px;
  background: rgba(63, 90, 52, 0.22);
}

.h-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.h-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-deep);
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.h-dot svg { width: 24px; height: 24px; }

.h-time {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--sage-deep);
  margin: 0 0 0.3rem;
}

.h-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.h-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 780px) {
  .h-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .h-row::before { display: none; }
}

/* ---------- Ceremony guide ---------- */
.ceremony-guide {
  background: var(--cream);
  padding: 4rem 6vw 4.5rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(51, 66, 43, 0.12);
}

.ceremony-guide__inner { max-width: 860px; margin: 0 auto; }

.ceremony-guide__intro {
  text-align: center;
  max-width: 580px;
  margin: 1.75rem auto 0.65rem;
  color: var(--ink);
}

.ceremony-guide__baraat {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
  color: var(--ink);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 820px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step { text-align: center; }

.step__num {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--sage-deep);
  opacity: 0.7;
}

.step__icon {
  width: 46px;
  height: 46px;
  margin: 0.5rem auto 0.75rem;
  color: var(--sage-deep);
}

.step__title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.step__desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}


/* ---------- Info rows (transport options etc.) ---------- */
.info-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2.25rem;
}

.info-row:last-child { margin-bottom: 0; }

.info-row__icon {
  width: 40px;
  height: 40px;
  color: var(--sage-deep);
  flex: none;
  margin-top: 0.2rem;
}

.info-row__title {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.info-row__desc {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- 3-up card grid (parking etc.) ---------- */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 760px) {
  .card-grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Secondary button (for use on cream backgrounds) ---------- */
.btn-secondary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--sage-deep);
  border-radius: 999px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--sage-deep);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-secondary:hover {
  background: var(--sage-deep);
  color: var(--cream);
}

.map-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2rem 0;
  display: block;
}

.content-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 6vw;
}

.content-section + .content-section {
  border-top: 1px solid rgba(51, 66, 43, 0.12);
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 6vw 5rem;
}

.faq-item {
  border-bottom: 1px solid rgba(51, 66, 43, 0.15);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-label);
  font-size: 1.4rem;
  color: var(--sage-deep);
}

.faq-item[open] summary::after { content: '\2013'; }

.faq-item p {
  margin: -0.5rem 0 1.75rem;
  color: var(--ink-soft);
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 6vw 5rem;
}

.faq-item {
  border-bottom: 1px solid rgba(51, 66, 43, 0.12);
  padding: 1.5rem 0;
}

.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }

.faq-item summary {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-label);
  color: var(--sage-deep);
  font-size: 1.4rem;
  flex: none;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
}

.faq-item ul {
  margin: 0.6rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

/* ---------- Link lists (dress code buy/hire) ---------- */
.subheading {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--sage-deep);
  margin: 0 0 1rem;
}

.buy-hire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 640px) {
  .buy-hire-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li { margin-bottom: 0.75rem; }

.link-list a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-decoration-color: rgba(111, 148, 99, 0.4);
  text-underline-offset: 3px;
}

.link-list a:hover { text-decoration-color: var(--sage-deep); }

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 6vw 5rem;
}

.page-content h1 {
  font-family: var(--font-script);
  color: var(--sage-deep);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  text-align: center;
  margin-bottom: 0.25rem;
}

/* ---------- Footer ---------- */
/* ---------- Moments strip (photos, own section) ---------- */
.moments-strip {
  background: var(--cream);
  padding: 3.5rem 6vw 4rem;
  text-align: center;
  border-top: 1px solid rgba(51, 66, 43, 0.12);
}

.moments-strip .eyebrow {
  color: var(--sage-deep);
  margin: 0 0 2rem;
}

.moments-photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

.moments-photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid var(--mint);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
  flex: none;
}

@media (max-width: 780px) {
  .moments-photo { width: 130px; height: 130px; }
}

@media (max-width: 480px) {
  .moments-photo { width: 110px; height: 110px; }
  .moments-photos { gap: 1.1rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage);
  color: var(--mint);
  text-align: center;
  padding: 3rem 6vw;
  font-family: var(--font-label);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* ---------- Accessibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
