/* =========================
   Root Variables
   ========================= */
:root {
  --sage: #b2c2a4;
  --lavender: #f6e1f9;
  --pink: #f9c5d1;
  --accent: #a64c79;
  --deep: #5a3e57;
  --text: #333;
  --light: #fff;
}

/* =========================
   Global Background
   ========================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, var(--sage), var(--pink));
  color: var(--text);
}

/* =========================
   Header
   ========================= */
header {
  position: relative;
  background: var(--sage); /* solid sage */
  padding: 40px 20px; /* remove extra bottom padding */
}

/* Keep logo + text side by side */
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Control logo size */
.header-logo {
  max-width: 140px; /* keep it small */
  height: auto;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.25));
  transition: filter 0.4s ease, transform 0.3s ease;
}
.header-logo:hover {
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.6));
  transform: scale(1.05);
}

/* Animated border line at bottom of header */
header::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--sage) 0%,
    var(--lavender) 40%,
    var(--pink) 60%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  background-repeat: no-repeat;
  background-position: 0 0;
  animation: shimmerReverse 8s linear infinite, pulseHeader 5s infinite alternate;
}

/* =========================
   Footer
   ========================= */
#footer {
  position: relative;
  background: var(--pink); /* solid pink */
  padding: 40px 20px 20px;
  text-align: center;
  margin-top: 40px;
}

/* Animated border line at top of footer */
#footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to left,
    var(--sage) 0%,
    var(--lavender) 40%,
    var(--pink) 60%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  background-repeat: no-repeat;
  background-position: 0 0;
  animation: shimmerReverse 8s linear infinite, pulseFooter 5s infinite alternate;
}

/* =========================
   Footer content
   ========================= */
.footer-bottom {
  color: var(--text);
  font-size: 0.95em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-bottom .separator { margin: 0 8px; color: var(--accent); }
.neon-icon { font-size: 1.2em; color: var(--accent); text-shadow: 0 0 6px rgba(166,76,121,0.6); }
.flame-flicker { animation: flicker 2s infinite alternate; }
.brand-link { color: var(--accent); font-weight: bold; text-decoration: none; transition: color 0.3s ease; }
.brand-link:hover { color: var(--deep); text-decoration: underline; }
.neon-tm { font-size: 0.8em; vertical-align: super; color: var(--accent); }

/* =========================
   Animations
   ========================= */
@keyframes shimmerReverse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes pulseHeader {
  from { box-shadow: 0 0 6px rgba(178,194,164,0.5); } /* sage glow */
  to   { box-shadow: 0 0 14px rgba(166,76,121,0.7); } /* floral accent glow */
}
@keyframes pulseFooter {
  from { box-shadow: 0 0 6px rgba(166,76,121,0.5); } /* pink glow */
  to   { box-shadow: 0 0 14px rgba(90,62,87,0.7); }  /* deep accent glow */
}
@keyframes flicker {
  from { opacity: 0.7; text-shadow: 0 0 6px var(--pink); }
  to   { opacity: 1; text-shadow: 0 0 12px var(--accent); }
}

/* =========================
   Section & Services
   ========================= */
section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  text-align: justify;
}

h2 {
  color: #5a3e57;
  border-bottom: 2px solid #f9c5d1;
  display: inline-block;
  margin-bottom: 20px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: left;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  color: #a64c79;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95em;
  color: #555;
}

/* Watermark inside each service card */
.service-card::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  background: url("/assets/images/watermark.png") no-repeat center/contain;
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 0.18;
}

/* Thumbnail stays uniform with other cards */
.flyer-content {
  display: flex;               /* horizontal layout */
  align-items: center;         /* vertical alignment */
  justify-content: space-between; /* text left, image right */
}

.flyer-content p {
  margin: 0;                   /* remove default spacing */
  flex: 1;                     /* let text take available space */
}

.flyer-thumb {
  max-height: 210px;
  max-width: 120px;
  object-fit: cover;
  border: 2px solid #f9c5d1;
  border-radius: 8px;
  margin-left: 10px;           /* spacing between text and image */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.flyer-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Modal overlay fixed on top */
.modal {
  display: none;           /* hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  overflow: auto;
}

/* Centered flyer inside modal */
.modal-content {
  display: block;
  margin: 10px auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #f9c5d1;
}

/* Download button inside modal */
.download-btn {
  text-align: center;
  margin-top: 20px;
}

.download-btn a {
  background: #a64c79;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.download-btn a:hover {
  background: #8b3c65;
}

/* =========================
   Social Card
   ========================= */
.social-card {
  grid-column: 1 / -1;              /* span full row of grid */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  height: 80px;
}

.social-left img {
  height: 60px;
  width: auto;
}

.social-right {
  flex: 1;
  display: flex;
  justify-content: space-evenly;    /* evenly distribute links */
  align-items: center;
}

.social-links {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #a64c79;
  font-weight: bold;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #5a3e57;
  text-decoration: underline;
}

.social-icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
}

/* =========================
   Call-to-Action
   ========================= */
.cta {
  text-align: center;
  margin-top: 40px;
}

.cta a {
  background: #a64c79;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta a:hover {
  background: #8b3c65;
}

/* =========================
   Logo Banner
   ========================= */
.logo-banner {
  text-align: center;
  margin: 40px 0 20px;
}

.logo-banner img {
  max-width: 120px;
  height: auto;
  opacity: 0.95;
}

/* =========================
   Price Cards
   ========================= */
.price-card {
  background: #f6e1f9;
  border: 2px solid #a64c79;
  text-align: center;
}

.price-card h3 {
  color: #5a3e57;
  margin-bottom: 10px;
}

.price-card p {
  font-size: 1.1em;
  color: #333;
}

/* =========================
   Contact Section
   ========================= */
.contact {
  position: relative;
  background: url("/assets/images/hydrangea.jpg") center/cover no-repeat;
  border-radius: 12px;
  padding: 40px 20px;
  margin-top: 50px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: #fff;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    rgba(246, 225, 249, 0.85),
    rgba(90, 62, 87, 0.55)
  );
  border-radius: 12px;
  z-index: 0;
}

.contact::after {
  content: "✝";
  font-size: 2em;
  color: #fff;
  position: absolute;
  top: 15px;
  left: 20px;
  z-index: 1;
  text-shadow: 
    0 0 6px #fff,
    0 0 12px #a64c79,
    0 0 18px #a64c79;
}

.contact-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-info, .contact-form {
  flex: 1;
}

.contact h2 {
  border: none;
  color: #fff;
  font-family: 'Georgia', serif;
  margin-bottom: 15px;
}

.contact p {
  margin: 8px 0;
  font-size: 1.05em;
}

.contact a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.contact a:hover {
  text-decoration: underline;
}

/* Scripture box */
.scripture {
  margin-top: 25px;
  font-style: italic;
  font-size: 0.95em;
  line-height: 1.5em;
  background: rgba(255,255,255,0.7);
  color: #5a3e57;
  padding: 15px;
  border-radius: 10px;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact form styling */
.contact-form form {
  background: rgba(255, 255, 255, 0.75);
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1em;
  background: rgba(255, 255, 255, 0.9);
}

.contact-form ::placeholder {
  color: #666;
  font-style: italic;
}

.contact-form button {
  background: #a64c79;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #8b3c65;
}

/* =========================
   Animations
   ========================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   Mobile Adjustments
   ========================= */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .header-logo { max-width: 90px; }
  .header-text h1 { font-size: 2em; }
  .header-text p { font-size: 1em; }
  .service-card { padding: 15px; min-height: 220px; }
  .contact { padding: 25px 15px; }

  .social-card {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 15px;
  }

  .social-right {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
  }

  .social-links {
    flex-direction: column;
    gap: 12px;
  }

  .social-links a {
    justify-content: center;
  }
}
