:root {
  --ocean-blue: #1f3f4a;
  --sand: #d8ccb8;
  --muted-green: #6f8f72;
  --soft-white: #f6f3ee;
  --clay: #a0785a;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  background: #a0785a 95%;
  color: #2b2b2b;
}

/* HERO LOGO */
.hero-logo {
  position: absolute;
  top: 40px;
  font-family: "Georgia", serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #1b3022;
  letter-spacing: 12px;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
  padding: 10px 20px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid #8a5a44;
  animation: fadeInHero 1.5s ease-out;
  z-index: 10;
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 130vh;
  background:
    linear-gradient(to bottom, rgba(138, 90, 68, 0) 60%, #8a5a44 95%),
    url("images/Hero2.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #8a5a44;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.hero-text-wrapper {
  margin-top: 100vh;
  text-align: center;
  max-width: 800px;
  padding: 40px 20px;
}

.hero-text-wrapper h1 {
  color: #fcf9f0;
  font-size: 2.8rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-text-wrapper p {
  color: #d7c091;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

@keyframes fadeInHero {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* BUTTON */
.cta-button {
  display: inline-block;
  padding: 16px 50px;
  background-color: #849b84;
  color: #fcf9f0;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  cursor: pointer;
  font-family: Georgia, serif;
}

.cta-button:hover {
  background-color: #fcf9f0;
  color: #8a5a44;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* CONTROLS */
.controls {
  background-color: #8a5a44;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 50px 20px;
  flex-wrap: wrap;
}

.controls input,
.controls select {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #d7c091;
  background-color: #fcf9f0;
  color: #3e2b1e;
  min-width: 220px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.controls button {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  background: var(--clay);
  color: #fcf9f0;
  cursor: pointer;
}

.controls button:hover {
  background: #8a5539;
}

#resetBtn {
  background-color: transparent;
  color: #fcf9f0;
  border: 1px solid #fcf9f0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

#resetBtn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #d7c091;
}

/* ORIGIN STORY */
.origin-story {
  background-color: #fcf9f0;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(138, 90, 68, 0.1);
  border-bottom: 1px solid rgba(138, 90, 68, 0.1);
  /* supports the JS collapse animation */
  transition:
    opacity 0.4s ease,
    max-height 0.5s ease,
    padding 0.4s ease,
    margin 0.4s ease;
}

.story-content {
  max-width: 700px;
  text-align: center;
}

.story-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #849b84;
  font-size: 0.8rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.story-content h2 {
  font-family: "Georgia", serif;
  font-size: 2.5rem;
  color: #1b3022;
  margin-bottom: 30px;
}

.story-content p {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3e2b1e;
  margin-bottom: 15px;
}

.story-signature {
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: #8a5a44;
  margin-top: 30px;
}

/* "Read the full story" link inside origin story */
.story-read-more {
  display: inline-block;
  margin-top: 25px;
  color: #8a5a44;
  font-family: "Georgia", serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 90, 68, 0.4);
  transition: all 0.3s ease;
}

.story-read-more:hover {
  color: #849b84;
  border-color: #849b84;
  letter-spacing: 2px;
}

/* PLANT GRID */
#plantContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
  gap: 25px;
  padding: 40px;
  justify-content: center;
  background: #8a5a44;
}

/* PAGINATION controls area */
#paginationControls {
  background: #8a5a44;
  padding: 30px 20px 60px;
}

/* PLANT CARD */
.plant-card {
  background: #e5d9b6;
  color: #2f2f2f;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(71, 45, 33, 0.4);
  border-left: 5px solid var(--muted-green);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.plant-card small {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 15px;
  display: block;
  opacity: 0.8;
  transition: color 0.3s ease;
  color: rgba(62, 43, 30, 0.6);
}

.plant-card:hover small {
  opacity: 1;
  text-decoration: underline;
  color: #849b84;
  letter-spacing: 2px;
}

.plant-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(71, 45, 33, 0.5);
}

.plant-card h3 {
  color: #1b3022;
  margin-bottom: 10px;
  font-weight: 700;
}

/* PLANT IMAGE */
.plant-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  filter: sepia(20%) saturate(110%);
}

/* TIPS */
.tips {
  background: #f2e9dc;
  padding: 10px;
  border-left: 4px solid #6e8b75;
  margin-top: 10px;
  font-style: italic;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 50px 0;
  background-color: rgba(46, 33, 27, 0.8);
  transition: background-color 0.4s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content {
  background-color: #fcf9f0;
  color: #1b3022;
  margin: 40px auto;
  padding: 60px 40px 40px 40px;
  width: 90%;
  max-width: 600px;
  position: relative;
  border: 1px solid #d7c091;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(50, 30, 20, 0.5);
  text-align: center;
  animation: modalFadeIn 0.4s ease-out forwards;
  will-change: transform, opacity;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  color: #8a5a44;
  cursor: pointer;
}

.close-button:hover {
  color: #849b84;
  transform: rotate(90deg);
  transition: all 0.3s ease;
}

#modalDetails p {
  text-align: left;
  line-height: 1.8;
  color: #3e2b1e;
}

#modalDetails h2 {
  margin-top: 15px;
  font-size: 2.2rem;
  color: #2d4f56;
}

/* FOOTER */
footer {
  background-color: #1b3022;
  color: #e5d9b6;
  padding: 60px 20px 30px;
  text-align: center;
  font-family: "Georgia", serif;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.8rem;
  letter-spacing: 6px;
  margin-bottom: 10px;
  color: #fcf9f0;
  font-weight: 700;
}

.footer-tagline {
  font-style: italic;
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #e5d9b6;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #849b84;
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(229, 217, 182, 0.1);
  margin-bottom: 30px;
}

/* ── DOT BUG FIXED: removed the ::after pseudo-element entirely ── */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0;
}

.crafted-text {
  font-style: italic;
  letter-spacing: 1px;
  font-size: 0.85rem;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 14px;
  }
}

/* ZULU NOTE */
.zulu-note {
  display: inline-block;
  font-family: "Georgia", serif;
  font-size: 0.78rem;
  font-style: italic;
  color: #849b84;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin-top: 4px;
  margin-bottom: 12px;
  padding: 6px 12px;
  background-color: rgba(132, 155, 132, 0.08);
  border-left: 3px solid #849b84;
  border-radius: 0 6px 6px 0;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

/* RITUALS SECTION */
.rituals-section {
  margin-top: 30px;
  border-top: 1px solid rgba(138, 90, 68, 0.15);
  padding-top: 25px;
}

.rituals-section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #849b84;
  font-family: "Georgia", serif;
  margin-bottom: 20px;
}

.ritual-card {
  background: linear-gradient(135deg, #f6f1e7 0%, #ede4d0 100%);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-left: 5px solid #8a5a44;
  box-shadow: 0 3px 12px rgba(71, 45, 33, 0.1);
  text-align: left;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ritual-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(71, 45, 33, 0.18);
}

.ritual-card:last-child {
  margin-bottom: 0;
}

.ritual-name {
  font-family: "Georgia", serif;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8a5a44;
  margin-bottom: 8px;
}

.ritual-name::before {
  content: "✦ ";
  color: #849b84;
  font-size: 0.7rem;
}

.ritual-method {
  font-family: "Georgia", serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #3e2b1e;
  font-style: italic;
  margin: 0;
}

@media (max-width: 600px) {
  .ritual-card {
    padding: 14px 16px;
  }
  .ritual-method {
    font-size: 0.88rem;
  }
  .zulu-note {
    font-size: 0.74rem;
  }
}
