/* =====================================================================
   Memorable Events by Margaret — Stylesheet
   Colors, fonts, and spacing are controlled by the variables below.
   ===================================================================== */

:root {
  /* Palette — warm, soft, celebratory */
  --cream: #fbf5ef;
  --cream-alt: #f6ece2;
  --blush: #f2dcdf;
  --rose: #d9a7ae;
  --rose-deep: #b9707c;
  --rose-darker: #9c5560;
  --plum: #4a2e3a;
  --plum-soft: #6b4a57;
  --gold: #c9a66b;
  --white: #ffffff;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1140px;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(74, 46, 58, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--plum);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--plum);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

a { color: var(--rose-darker); text-decoration: none; }
a:hover { color: var(--plum); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rose-deep);
  margin: 0 0 0.6rem;
}

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-sub { color: var(--plum-soft); font-size: 1.05rem; margin-top: 0.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--rose-deep);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--rose-darker); color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}
.btn-ghost:hover { background: var(--plum); color: var(--white); }
.btn-small { padding: 0.55rem 1.3rem; font-size: 0.85rem; }
.btn-full { width: 100%; text-align: center; }

/* ============================= HEADER ============================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(74, 46, 58, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.site-nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--plum-soft);
}
.site-nav a:not(.btn):hover { color: var(--rose-darker); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--plum);
  border-radius: 2px;
}

/* ============================= HERO ============================= */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 1.5rem 5.5rem;
  background: radial-gradient(circle at 50% 0%, var(--blush) 0%, var(--cream) 65%);
  overflow: hidden;
}

.hero-decor {
  color: var(--gold);
  opacity: 0.55;
  width: 220px;
  margin: 0 auto 1.5rem;
}

.hero-inner { max-width: 720px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  margin-bottom: 1.1rem;
}

.tagline {
  font-size: 1.2rem;
  color: var(--plum-soft);
  max-width: 560px;
  margin: 0 auto 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================= ABOUT ============================= */
.about { padding: 6rem 0; }

.about-content { max-width: 720px; margin: 0 auto; text-align: center; }

.about-copy p {
  font-size: 1.08rem;
  color: var(--plum-soft);
  margin: 0 0 1.2rem;
}

.about-lead {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem !important;
  color: var(--plum) !important;
  margin-bottom: 1.6rem !important;
}

.about-emphasis {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem !important;
  color: var(--rose-deep) !important;
  line-height: 1.5;
  margin-top: 2rem !important;
  margin-bottom: 0 !important;
}

.about-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  padding: 0;
  margin: 2rem 0 0;
}
.about-tags li {
  background: var(--cream-alt);
  border: 1px solid rgba(201, 166, 107, 0.4);
  color: var(--plum-soft);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
}

/* ============================= PACKAGES ============================= */
.packages { padding: 6rem 0; background: var(--cream-alt); }

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}

.package-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

.package-card-featured {
  border: 2px solid var(--rose-deep);
  transform: translateY(-8px);
}

.package-photo {
  width: calc(100% + 3.6rem);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: -2.2rem -1.8rem 1.5rem;
  display: block;
}

.package-badge {
  display: inline-block;
  align-self: center;
  background: var(--rose-deep);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
}

.package-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.package-tag {
  color: var(--rose-deep);
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 0 1.3rem;
}

.package-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  text-align: left;
  flex-grow: 1;
}
.package-card li {
  color: var(--plum-soft);
  font-size: 0.94rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(74, 46, 58, 0.08);
}
.package-card li:first-child { border-top: none; }

.package-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(74, 46, 58, 0.12);
  margin: 0;
}

.package-note {
  text-align: center;
  max-width: 640px;
  margin: 2.6rem auto 0;
  color: var(--plum-soft);
  font-size: 0.95rem;
}

.package-disclaimer {
  text-align: center;
  max-width: 640px;
  margin: 0.6rem auto 0;
  color: var(--plum-soft);
  font-size: 0.8rem;
  opacity: 0.85;
}
.package-disclaimer a { color: var(--rose-darker); text-decoration: underline; }

.package-cta { text-align: center; margin-top: 1.8rem; }

/* ============================= GALLERY ============================= */
.gallery { padding: 6rem 0; background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blush), var(--cream));
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Shown automatically by script.js when a photo file hasn't been added yet */
.gallery-item.is-missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9707c' stroke-width='1.2'%3E%3Crect x='3' y='6' width='18' height='14' rx='2'/%3E%3Ccircle cx='12' cy='13' r='3.2'/%3E%3Cpath d='M8 6l1.2-2h5.6L16 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: 42px;
}
.gallery-item.is-missing::after {
  content: "Photo coming soon";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--rose-darker);
}
.gallery-item.is-missing img { display: none; }

/* ============================= CONTACT ============================= */
.contact { padding: 6rem 0; background: var(--cream-alt); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h2 { text-align: left; }
.contact-info .eyebrow { text-align: left; }

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--plum-soft);
  margin-bottom: 0.2rem;
}
.contact-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--plum);
  margin: 0;
}
.contact-link:hover { color: var(--rose-darker); }
.contact-static { cursor: default; }

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--rose-deep);
  color: var(--rose-deep);
  transition: background 0.2s ease, color 0.2s ease;
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { background: var(--rose-deep); color: var(--white); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
}

.form-row { margin-bottom: 1.2rem; display: flex; flex-direction: column; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--plum-soft);
}
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(74, 46, 58, 0.18);
  border-radius: 8px;
  background: var(--cream);
  color: var(--plum);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--rose-deep);
  background: var(--white);
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--rose-darker);
  min-height: 1.2em;
  text-align: center;
}

/* ============================= FOOTER ============================= */
.site-footer {
  background: var(--plum);
  color: var(--blush);
  padding: 2.6rem 0;
  text-align: center;
}
.footer-logo {
  height: 64px;
  width: auto;
  margin: 0 0 1rem;
  border-radius: 50%;
}
.footer-contact { margin: 0 0 1.2rem; font-size: 0.95rem; }
.footer-contact a { color: var(--blush); }
.footer-contact a:hover { color: var(--gold); }
.social-links-footer { justify-content: center; margin: 0 0 1.4rem; }
.social-links-footer .social-link { border-color: var(--blush); color: var(--blush); }
.social-links-footer .social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--plum); }
.footer-copy { margin: 0; font-size: 0.8rem; opacity: 0.75; }

/* ============================= RESPONSIVE ============================= */
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .package-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .package-card-featured { transform: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .brand-logo { height: 46px; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(74, 46, 58, 0.08);
  }
  .site-nav.is-open { max-height: 320px; padding: 0.5rem 1.5rem 1.3rem; }
  .site-nav a:not(.btn) { padding: 0.7rem 0; width: 100%; }
  .site-nav .btn { margin-top: 0.6rem; }
}

@media (max-width: 560px) {
  .hero { padding: 4.5rem 1.2rem 3.5rem; }
  .about, .gallery, .contact { padding: 4rem 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .contact-form { padding: 1.6rem; }
}
