/* ============================================
   Conserv — Greenhouse Glass Website
   Fraunces (display) + DM Sans (body)
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #1a2e1a;
  line-height: 1.6;
  overflow-x: hidden;
  /* Hide default scrollbar — custom stepping stones nav is the scroll indicator */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* --- Fixed Background --- */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    175deg,
    #f0faf0 0%,
    #ddeee0 30%,
    #cddfd0 55%,
    #d8e8d5 75%,
    #eaf0e5 100%
  );
}

.bg-fixed::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(74, 222, 128, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(26, 107, 60, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Background vine border — overgrown edges --- */
.bg-vines {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 0;
}

.bg-vines--left {
  left: 0;
}

.bg-vines--right {
  right: 0;
}

.bg-vines svg {
  width: 100%;
  height: 100%;
}

/* --- Content wrapper --- */
.content {
  position: relative;
  z-index: 1;
}

/* --- Stepping Stones (scroll nav) --- */
.stones {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stone {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 107, 60, 0.15);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.stone::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.stone:hover {
  background: rgba(26, 107, 60, 0.3);
  transform: scale(1.2);
}

.stone.active {
  background: #1a6b3c;
  box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.2), 0 0 12px rgba(26, 107, 60, 0.15);
  transform: scale(1.15);
}

.stone.active:hover {
  transform: scale(1.25);
}

/* --- Glass System --- */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
}

.glass-strong {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* --- Glass Reflection overlay --- */
.glass::before,
.glass-strong::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 40%,
    transparent 70%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

/* --- Sections --- */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
}

/* --- Section 1: Entry Hall --- */
.section--entry {
  min-height: 100vh;
  flex-direction: column;
  gap: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.glass-panel--entry {
  position: relative;
  max-width: 680px;
  width: 100%;
  padding: 60px 48px;
  text-align: left;
  overflow: hidden;
}

.entry-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: 'SOFT' 100, 'wght' 400;
  color: #0f2e0f;
  margin-bottom: 12px;
}

.entry-tagline {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a6b3c;
  opacity: 0.8;
}

.entry-separator {
  width: 48px;
  height: 2px;
  background: #4ade80;
  margin: 20px 0;
  border-radius: 1px;
}

.entry-description {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: rgba(26, 46, 26, 0.65);
  max-width: 420px;
  line-height: 1.7;
}

/* --- Entry vines --- */
.entry-vines {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}

.entry-vines--tl {
  top: -20px;
  left: -20px;
  width: 180px;
  height: 180px;
}

.entry-vines--br {
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  transform: rotate(180deg);
}

/* --- Scroll hint --- */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(26, 107, 60, 0.5);
  animation: float-down 2.4s ease-in-out infinite;
}

.scroll-hint i {
  font-size: 1.2rem;
  color: #4ade80;
  animation: bounce-down 2.4s ease-in-out infinite;
}

/* Hide scroll-hint when entry section is scrolled past */
.scroll-hint.hint-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes float-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* --- Section 2: Display Cases --- */
.section--display {
  flex-direction: column;
  gap: 80px;
  padding: 100px 24px;
  min-height: auto;
}

.section--display-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-variation-settings: 'SOFT' 100;
  color: #0f2e0f;
  text-align: center;
  margin-bottom: 10px;
  opacity: 0.6;
  letter-spacing: -0.02em;
}

.section--display-subtitle {
  font-size: 0.9rem;
  color: rgba(26, 46, 26, 0.45);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

/* --- Individual glass case --- */
.glass-case {
  max-width: 700px;
  width: 100%;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.35, 1.15);
  position: relative;
}

.glass-case[data-side='left'] {
  transform: translateX(-50px);
  align-self: flex-start;
  margin-right: auto;
}

.glass-case[data-side='right'] {
  transform: translateX(50px);
  align-self: flex-end;
  margin-left: auto;
}

.glass-case.visible {
  opacity: 1;
  transform: translateX(0);
}

.glass-panel--case {
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
}

/* --- Botanical specimen label line --- */
.case-label-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.case-label-line span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 107, 60, 0.4);
  font-weight: 500;
}

.case-label-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(26, 107, 60, 0.12);
}

/* --- Case header row --- */
.case-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.case-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 222, 128, 0.1);
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.15);
}

.case-icon-wrap i {
  font-size: 1.6rem;
  color: #1a6b3c;
}

.case-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-variation-settings: 'SOFT' 85;
  color: #0f2e0f;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.case-desc {
  font-size: 0.95rem;
  color: rgba(26, 46, 26, 0.6);
  margin-bottom: 16px;
  font-weight: 400;
}

/* --- Ingredients pills --- */
.case-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-ingredient {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1a6b3c;
  background: rgba(26, 107, 60, 0.08);
  backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(26, 107, 60, 0.1);
  letter-spacing: 0.02em;
}

/* --- Overgrown vines on product cases --- */
.case-vines {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}

.case-vines--bl {
  bottom: -20px;
  left: -15px;
  width: 200px;
  height: 200px;
}

.case-vines--tr {
  top: -20px;
  right: -15px;
  width: 200px;
  height: 200px;
}

.case-vines--tl {
  top: -20px;
  left: -15px;
  width: 200px;
  height: 200px;
}

.case-vines--br {
  bottom: -20px;
  right: -15px;
  width: 200px;
  height: 200px;
}

.case-vines--left {
  bottom: -20px;
  left: -20px;
  width: 200px;
  height: 200px;
}

.case-vines--right {
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
}

/* --- Section 3: Greenhouse Exit --- */
.section--exit {
  min-height: 100vh;
  flex-direction: column;
  gap: 0;
  padding: 60px 24px 80px;
}

/* --- Glass arch structure --- */
.glass-arch {
  max-width: 600px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Arch roof — greenhouse pitched roof via clip-path */
.glass-arch-roof {
  width: 100%;
  padding-bottom: 28%;
  position: relative;
  margin-bottom: -8px;
  clip-path: polygon(
    2% 100%,
    12% 8%,
    25% 2%,
    50% 0%,
    75% 2%,
    88% 8%,
    98% 100%
  );
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: none;
}

.glass-arch-roof::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 40%,
    transparent 70%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

/* Roof frame lines */
.glass-arch-roof-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glass-arch-roof-frame svg {
  width: 100%;
  height: 100%;
}

/* Arch body */
.glass-arch-body {
  position: relative;
  width: 100%;
  padding: 48px 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 0 20px 20px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.glass-arch-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 40%,
    transparent 70%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

.exit-statement {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-variation-settings: 'SOFT' 100;
  color: #0f2e0f;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.exit-sub {
  font-size: 0.95rem;
  color: rgba(26, 46, 26, 0.55);
  max-width: 360px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* --- Social links --- */
.exit-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.exit-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 107, 60, 0.08);
  border: 1px solid rgba(26, 107, 60, 0.1);
  color: #1a6b3c;
  text-decoration: none;
  transition: all 0.25s ease;
}

.exit-link i {
  font-size: 1.3rem;
}

.exit-link:hover {
  background: rgba(26, 107, 60, 0.15);
  border-color: rgba(26, 107, 60, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 107, 60, 0.1);
}

.exit-link:active {
  transform: scale(0.95);
}

/* --- Exit vines --- */
.exit-vines {
  position: absolute;
  pointer-events: none;
  opacity: 0.25;
}

.exit-vines--l {
  bottom: 20px;
  left: -30px;
  width: 120px;
  height: 180px;
  transform: rotate(30deg);
}

.exit-vines--r {
  top: 40px;
  right: -30px;
  width: 100px;
  height: 160px;
  transform: rotate(200deg);
}

/* --- Floating leaf decorations (background) --- */
.floating-leaf {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  animation: drift 20s ease-in-out infinite;
}

.floating-leaf--1 {
  top: 8%;
  left: 5%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 22s;
}

.floating-leaf--2 {
  top: 35%;
  right: 3%;
  width: 45px;
  height: 45px;
  animation-delay: -6s;
  animation-duration: 18s;
}

.floating-leaf--3 {
  bottom: 20%;
  left: 8%;
  width: 50px;
  height: 50px;
  animation-delay: -12s;
  animation-duration: 25s;
}

.floating-leaf--4 {
  top: 60%;
  right: 6%;
  width: 35px;
  height: 35px;
  animation-delay: -3s;
  animation-duration: 20s;
}

.floating-leaf--5 {
  bottom: 5%;
  right: 15%;
  width: 40px;
  height: 40px;
  animation-delay: -9s;
  animation-duration: 23s;
}

.floating-leaf--6 {
  top: 12%;
  right: 12%;
  width: 30px;
  height: 30px;
  animation-delay: -15s;
  animation-duration: 19s;
}

.floating-leaf--7 {
  bottom: 35%;
  left: 2%;
  width: 48px;
  height: 48px;
  animation-delay: -2s;
  animation-duration: 26s;
}

.floating-leaf--8 {
  top: 50%;
  left: 12%;
  width: 34px;
  height: 34px;
  animation-delay: -18s;
  animation-duration: 21s;
}

@keyframes drift {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -15px) rotate(5deg);
  }
  50% {
    transform: translate(-5px, -8px) rotate(-3deg);
  }
  75% {
    transform: translate(8px, -12px) rotate(4deg);
  }
}

/* --- Footer --- */
.footer {
  background:
    linear-gradient(135deg, rgba(26, 107, 60, 0.12), transparent 34%),
    linear-gradient(to bottom, var(--bg, #eaf0e5), #c8d8c5);
  padding: 7rem 5vw 3rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(26, 107, 60, 0.1);
}

.footer-bg-mark {
  position: absolute;
  bottom: -35px;
  right: 4%;
  font-family: 'Fraunces', serif;
  font-size: clamp(9rem, 30vw, 28rem);
  font-style: italic;
  line-height: 1;
  color: #1a6b3c;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(2, minmax(190px, 0.6fr));
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 0.9;
  color: #1a6b3c;
  margin-bottom: 1.25rem;
}

.footer-note {
  max-width: 620px;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  line-height: 1.2;
  color: #2a4a2a;
  opacity: 0.88;
}

.footer-note strong {
  color: #1a6b3c;
  font-weight: 600;
}

.footer-kicker,
.footer-links h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  opacity: 0.5;
  color: #1a2e1a;
}

.footer-links p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  color: #2a4a2a;
  opacity: 0.72;
}

.footer-links a {
  color: #1a6b3c;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 107, 60, 0.3);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-links a:hover {
  color: #0d4a28;
  border-color: #0d4a28;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 107, 60, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: #3a5a3a;
  opacity: 0.6;
}

/* --- Demo Badge --- */
.demo-badge {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1.5rem;
  z-index: 1000;
  max-width: 320px;
  border: 1px solid rgba(26, 107, 60, 0.25);
  transform: translateY(150%);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.demo-badge.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(26, 107, 60, 0.2);
}

.demo-badge.visible {
  transform: translateY(0);
}

.demo-badge .badge-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #1a2e1a;
  opacity: 0.6;
  margin-bottom: 0.5rem;
  display: block;
}

.demo-badge .studio-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: #1a6b3c;
  display: block;
  margin-bottom: 0.8rem;
}

.demo-badge .fiverr-link {
  font-family: 'DM Sans', sans-serif;
  color: #2a4a2a;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.demo-badge .fiverr-link:hover {
  border-color: #1a6b3c;
  color: #0d4a28;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .stones {
    right: 14px;
    gap: 8px;
  }

  .stone {
    width: 10px;
    height: 10px;
  }

  .glass-panel--entry {
    padding: 40px 28px;
  }

  .glass-panel--case {
    padding: 28px 24px;
  }

  .glass-case[data-side='left'],
  .glass-case[data-side='right'] {
    align-self: center;
    margin: 0;
  }

  .section--display {
    gap: 48px;
    padding: 60px 16px;
  }

  .case-header {
    flex-direction: column;
    gap: 12px;
  }

  .glass-arch-body {
    padding: 36px 24px;
  }

  .entry-description {
    max-width: 100%;
  }

  .footer {
    padding-top: 5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-badge {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 16px;
  }

  .glass-panel--entry {
    padding: 32px 20px;
  }

  .glass-panel--case {
    padding: 24px 18px;
  }

  .case-ingredient {
    font-size: 0.72rem;
    padding: 3px 10px;
  }
}
