/*
Theme Name: EIS Botanical Garden
Theme URI: https://botanical-garden.org/
Author: EIS Versilia
Description: Custom theme for the EIS Versilia Botanical Garden.
Version: 2.0
Text Domain: eis-botanical-garden
*/


:root {
  --ink: #17362d;
  --dark: #103127;
  --green: #286a4e;
  --bright: #d8f06c;
  --cream: #f7f3e8;
  --peach: #f4c8aa;
  --blue: #a9d9de;
  --white: #ffffff;
  --muted: #66776f;
  --line: rgba(23, 54, 45, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; }

.header {
  min-height: 84px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 232, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bright);
  background: var(--dark);
  font-size: 19px;
}

.logo strong, .logo small { display: block; }
.logo strong { font-family: "Manrope"; font-size: 14px; }
.logo small { color: var(--muted); font-size: 11px; margin-top: 2px; }

.nav { display: flex; gap: 28px; align-items: center; font-size: 13px; font-weight: 700; }
.nav a { transition: .2s; }
.nav a:hover { color: var(--green); }

.nav-button {
  background: var(--dark);
  color: white !important;
  border-radius: 999px;
  padding: 13px 18px;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 25px;
}

.hero {
  min-height: 760px;
  padding: 80px 7vw;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 6vw;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-shape { position: absolute; border-radius: 50%; filter: blur(1px); }
.shape-one { width: 390px; height: 390px; background: var(--peach); left: -220px; bottom: -160px; }
.shape-two { width: 260px; height: 260px; background: var(--blue); right: -100px; top: -110px; }

.hero-content, .hero-visual { position: relative; z-index: 2; }

.school-pill {
  display: inline-flex;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.55);
}

h1, h2, h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(52px, 7.4vw, 105px);
  line-height: .92;
  margin: 25px 0 30px;
  max-width: 950px;
}

h1 span { color: var(--green); }

.hero-content > p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 670px;
}

.hero-actions { display: flex; gap: 13px; margin-top: 34px; flex-wrap: wrap; }

.button {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.button.primary { background: var(--bright); color: var(--dark); }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.45); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 55px;
  max-width: 650px;
}

.hero-facts div { border-top: 1px solid var(--line); padding-top: 13px; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font-size: 14px; }
.hero-facts span { font-size: 12px; color: var(--muted); margin-top: 3px; }

.hero-visual { min-height: 590px; }

.photo-card {
  border-radius: 48% 48% 25px 25px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(23,54,45,.16);
}

.photo-main {
  width: 82%;
  height: 560px;
  margin-left: auto;
  transform: rotate(2deg);
}

.photo-main img { height: 100%; object-fit: cover; }

.floating-card {
  position: absolute;
  left: 0;
  bottom: 65px;
  width: 290px;
  padding: 18px;
  border-radius: 17px;
  background: white;
  display: flex;
  gap: 13px;
  align-items: center;
  box-shadow: 0 18px 55px rgba(23,54,45,.18);
}

.floating-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: #eef4d2; border-radius: 14px; font-size: 24px;
}

.floating-card strong, .floating-card small { display: block; }
.floating-card small { color: var(--muted); margin-top: 3px; line-height: 1.35; }

.round-label {
  position: absolute;
  right: -18px;
  top: 40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bright);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.45;
  transform: rotate(8deg);
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 17px 0;
  background: var(--dark);
  color: var(--bright);
  font-weight: 800;
  letter-spacing: .15em;
  font-size: 12px;
}

.marquee div { width: max-content; animation: move 28s linear infinite; }
@keyframes move { to { transform: translateX(-50%); } }

.section { padding: 115px 7vw; }
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-weight: 800;
  margin-bottom: 25px;
}
.section-label.light { color: var(--bright); }

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 8vw;
}

h2 {
  font-size: clamp(42px, 5.5vw, 77px);
  line-height: 1.02;
  margin: 0;
}

.about-copy { max-width: 720px; }
.large-copy { font-size: 25px; line-height: 1.45; margin-top: 0; }
.about-copy > p:last-child { color: var(--muted); line-height: 1.75; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 85px;
}

.values-grid article {
  background: white;
  padding: 29px;
  min-height: 290px;
  border-radius: 22px;
  border: 1px solid var(--line);
  position: relative;
}

.values-grid article > span {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  color: var(--muted);
}

.value-icon {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--bright);
  font-size: 22px;
}

.values-grid h3 { font-size: 26px; margin: 50px 0 12px; }
.values-grid p { color: var(--muted); line-height: 1.65; }

.plants-section { background: var(--dark); color: white; }
.section-top {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 6vw;
  align-items: end;
  margin-bottom: 55px;
}
.section-top > p { color: rgba(255,255,255,.65); line-height: 1.7; max-width: 500px; }

.plant-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.plant-card {
  grid-column: span 2;
  border-radius: 23px;
  overflow: hidden;
  background: #f4f1e7;
  color: var(--ink);
  position: relative;
}

.plant-card:nth-child(4), .plant-card:nth-child(5) { grid-column: span 3; }

.plant-number {
  position: absolute;
  z-index: 2;
  top: 18px; left: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.plant-photo { height: 265px; overflow: hidden; }
.plant-photo img { height: 100%; object-fit: cover; transition: .5s; }
.plant-card:hover .plant-photo img { transform: scale(1.045); }

.plant-content { padding: 25px; }
.plant-content > span {
  color: var(--green);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 800;
}
.plant-content h3 { font-size: 29px; margin: 10px 0 12px; }
.plant-content p { color: var(--muted); line-height: 1.6; min-height: 76px; }
.learn-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.learning {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
}

.learning-visual { position: relative; }
.learning-visual > img {
  height: 690px;
  object-fit: cover;
  border-radius: 28px;
}

.image-note {
  position: absolute;
  right: -30px;
  bottom: 40px;
  padding: 20px;
  background: var(--bright);
  border-radius: 18px;
  width: 230px;
  transform: rotate(-3deg);
}
.image-note strong, .image-note span { display: block; }
.image-note span { font-size: 12px; margin-top: 5px; color: var(--green); }

.learning-content h2 { margin-bottom: 45px; }

.accordion-item {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 23px 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  position: relative;
  color: var(--ink);
}
.accordion-item span { font-family: "Manrope"; font-size: 21px; font-weight: 800; }
.accordion-item b { position: absolute; right: 0; font-size: 23px; font-weight: 500; }
.accordion-item p { display: none; color: var(--muted); line-height: 1.65; padding-right: 35px; }
.accordion-item.open p { display: block; }

.journal { background: #e8efe1; }
.journal-top > p { color: var(--muted); }

.journal-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 20px;
}

.journal-featured {
  background: white;
  border-radius: 24px;
  overflow: hidden;
}

.journal-image { height: 430px; }
.journal-image img { height: 100%; object-fit: cover; }
.journal-copy { padding: 35px; }
.journal-copy > span, .journal-date {
  text-transform: uppercase; letter-spacing: .12em; font-size: 10px;
  font-weight: 800; color: var(--green);
}
.journal-copy h3 { font-size: 37px; margin: 13px 0; }
.journal-copy p { color: var(--muted); line-height: 1.65; }
.journal-copy a { display: inline-block; margin-top: 10px; font-weight: 800; }

.journal-side { display: grid; gap: 18px; }
.journal-side > div {
  border-radius: 22px;
  padding: 28px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.journal-side h3 { font-size: 24px; margin: 13px 0 8px; }
.journal-side p { color: var(--muted); line-height: 1.55; margin: 0; }

.quote-section {
  padding: 120px 12vw;
  background: var(--peach);
  text-align: center;
}
.leaf-symbol { font-size: 40px; margin-bottom: 28px; }
blockquote {
  font-family: "Manrope";
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.13;
  letter-spacing: -.045em;
  margin: 0 auto;
  max-width: 1200px;
}
.quote-section p { margin-top: 30px; font-weight: 700; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--bright);
}
.cta span { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.cta h2 { font-size: clamp(38px, 5vw, 64px); margin-top: 13px; }
.dark-button { background: var(--dark) !important; color: white !important; flex-shrink: 0; }

footer { background: #0b241c; color: white; padding: 75px 7vw 30px; }
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand strong { font-family: "Manrope"; }
.footer-brand p { color: rgba(255,255,255,.55); margin-top: 5px; }
.footer-column { display: flex; flex-direction: column; gap: 12px; }
.footer-column strong { margin-bottom: 8px; }
.footer-column a { color: rgba(255,255,255,.6); font-size: 14px; }
.footer-bottom {
  margin-top: 65px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.45);
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 31, 24, .72);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal.open { display: grid; }
.modal-box {
  width: min(620px, 100%);
  background: var(--cream);
  border-radius: 25px;
  padding: 40px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 15px; right: 17px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  font-size: 24px;
  cursor: pointer;
}
.modal-label {
  color: var(--green);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 800;
}
.modal-box h2 { font-size: 44px; margin: 15px 0; }
.modal-box > p { color: var(--muted); line-height: 1.7; }
.modal-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 25px;
}
.modal-facts div { background: white; border-radius: 14px; padding: 15px; }
.modal-facts strong, .modal-facts span { display: block; }
.modal-facts span { color: var(--muted); font-size: 11px; margin-top: 4px; }

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--cream);
    padding: 25px 5vw;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .menu-button { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 670px; width: 100%; margin: auto; }
  .about-grid, .learning, .journal-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .section-top { grid-template-columns: 1fr; }
  .plant-card { grid-column: span 3; }
  .plant-card:nth-child(5) { grid-column: 2 / span 4; }
  .learning-visual > img { height: 520px; }
  .image-note { right: 20px; }
}

@media (max-width: 650px) {
  .header { min-height: 72px; }
  .logo small { display: none; }
  .nav { top: 72px; }
  .hero { padding: 65px 6vw; min-height: auto; }
  h1 { font-size: 52px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-visual { min-height: 470px; margin-top: 30px; }
  .photo-main { height: 440px; width: 90%; }
  .floating-card { width: 250px; bottom: 18px; }
  .round-label { width: 86px; height: 86px; right: -5px; font-size: 10px; }
  .section { padding: 80px 6vw; }
  .values-grid, .plant-grid { grid-template-columns: 1fr; }
  .plant-card, .plant-card:nth-child(4), .plant-card:nth-child(5) { grid-column: auto; }
  .plant-photo { height: 240px; }
  .learning-visual > img { height: 430px; }
  .journal-image { height: 300px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 9px; }
  .modal-facts { grid-template-columns: 1fr; }
}
