/* Czarnecki Wedding — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500&display=swap');

:root {
  --blush: #EDABD8;
  --blush-light: #F5D4E8;
  --blush-dark: #D892C4;
  --green: #A4CBA6;
  --green-light: #C8E0C9;
  --green-dark: #7BA87D;
  --cream: #FDFAF8;
  --ivory: #FFFEFC;
  --charcoal: #3A3634;
  --charcoal-soft: #5C5653;
  --overlay: rgba(58, 54, 52, 0.45);
  --overlay-light: rgba(253, 250, 248, 0.88);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, sans-serif;

  --shadow-soft: 0 4px 24px rgba(58, 54, 52, 0.08);
  --shadow-card: 0 8px 32px rgba(58, 54, 52, 0.12);
  --radius: 2px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blush-dark);
}

/* ── Navigation ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 250, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blush-light);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  white-space: nowrap;
}

.nav-logo span {
  color: var(--blush-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blush-dark);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(237, 171, 216, 0.55) 0%,
    var(--overlay) 45%,
    rgba(164, 203, 166, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--blush-light);
  margin-bottom: 2rem;
}

.hero-date {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.hero-venue {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* Page hero (shorter) */

.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  margin-top: 56px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(237, 171, 216, 0.5),
    var(--overlay)
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--ivory);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.page-hero p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--blush-light);
  margin-top: 0.5rem;
}

/* ── Sections ── */

.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--blush), var(--green));
  margin: 1rem auto 0;
}

.divider {
  width: 100%;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--blush), var(--green), transparent);
  margin: 0 auto 2.5rem;
  border: none;
}

/* ── Cards & grids ── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--ivory);
  padding: 2rem;
  border: 1px solid var(--blush-light);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.card p {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

/* ── Timeline (details page) ── */

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--blush-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 6px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ivory);
  box-shadow: 0 0 0 2px var(--blush-light);
}

.timeline-time {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blush-dark);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

/* ── Gallery ── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--blush-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(58, 54, 52, 0.7));
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ── Forms (RSVP) ── */

.form-section {
  background: var(--ivory);
  border: 1px solid var(--blush-light);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--blush-light);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--charcoal);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blush), var(--blush-dark));
  color: var(--ivory);
  width: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blush-dark), var(--blush));
  transform: translateY(-1px);
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin-top: 1.5rem;
  font-style: italic;
}

/* ── Two-column layout ── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-image {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--blush-light);
}

.split-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.split-text p {
  margin-bottom: 1rem;
  color: var(--charcoal-soft);
}

.split-text p:last-child {
  margin-bottom: 0;
}

/* ── Info blocks (travel) ── */

.info-block {
  background: var(--ivory);
  border-left: 3px solid var(--green);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.info-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.info-block p,
.info-block li {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

.info-block ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

/* ── Footer ── */

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-names {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--blush-light);
  margin-bottom: 0.5rem;
}

.footer-date {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: var(--blush);
}

.footer-credit {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
}

/* ── Utility ── */

.text-center {
  text-align: center;
}

.bg-blush {
  background: linear-gradient(180deg, var(--blush-light) 0%, var(--cream) 100%);
}

.bg-green {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--cream) 100%);
}

.cta-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--green-dark);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-dark);
  transition: all var(--transition);
}

.cta-link:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--ivory);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(253, 250, 248, 0.98);
    border-bottom: 1px solid var(--blush-light);
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1.5rem;
  }

  .hero {
    background-attachment: scroll;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split-image {
    aspect-ratio: 16 / 10;
    order: -1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }
}
