/* Plants page styles - builds on base.css */

/* Hero section */
.plants-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0b1411 0%, #0e1b16 100%);
  overflow: hidden;
}

.plants-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.15;
  background: url('/assets/images/botanical-specimens.webp') center/cover no-repeat;
}

.plants-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1rem;
}

.plants-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0.5rem 0 1rem;
  color: #e6f4ec;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6ee7b7;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: #bcd4cc;
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* In-page navigation */
.inpage-nav {
  margin-top: 2rem;
}

.inpage-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.inpage-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.2);
  border-radius: 0.375rem;
  color: #e6f4ec;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.inpage-link:hover,
.inpage-link:focus {
  background: rgba(110, 231, 183, 0.15);
  border-color: rgba(110, 231, 183, 0.4);
  color: #6ee7b7;
}

/* Section styles */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(14, 27, 22, 0.4) 0%, transparent 100%);
}

.section--cta {
  background: rgba(110, 231, 183, 0.05);
  border-top: 1px solid rgba(110, 231, 183, 0.1);
  border-bottom: 1px solid rgba(110, 231, 183, 0.1);
}

.section__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.section__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #e6f4ec;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section__header p {
  font-size: 1.125rem;
  color: #bcd4cc;
  line-height: 1.6;
}

.section__body {
  max-width: 75rem;
  margin: 0 auto;
}

.section__tips {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(110, 231, 183, 0.05);
  border-radius: 0.5rem;
  border: 1px solid rgba(110, 231, 183, 0.1);
}

.section__tips h3 {
  color: #6ee7b7;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2rem;
}

/* Plant cards */
.plants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2rem;
}

.plant-card {
  background: rgba(14, 27, 22, 0.6);
  border: 1px solid rgba(110, 231, 183, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(110, 231, 183, 0.3);
}

.plant-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.plant-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.plant-card:hover .plant-card__image img {
  transform: scale(1.05);
}

.plant-card__content {
  padding: 1.5rem;
}

.plant-card__content h3 {
  color: #6ee7b7;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.plant-card__content p {
  color: #bcd4cc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.plant-card__traits {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
}

.plant-card__traits li {
  color: #9ab5a8;
  padding: 0.375rem 0;
  border-top: 1px solid rgba(110, 231, 183, 0.1);
}

.plant-card__traits strong {
  color: #6ee7b7;
}

/* Cards */
.card {
  background: rgba(14, 27, 22, 0.4);
  border: 1px solid rgba(110, 231, 183, 0.15);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(110, 231, 183, 0.3);
}

.card h3 {
  color: #6ee7b7;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: #bcd4cc;
  line-height: 1.6;
}

/* Lists */
.bullet {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.bullet li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: #bcd4cc;
  line-height: 1.6;
}

.bullet li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #6ee7b7;
  font-weight: 700;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  color: #bcd4cc;
  line-height: 1.6;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(110, 231, 183, 0.15);
  border: 1px solid rgba(110, 231, 183, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6ee7b7;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Figures */
.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid rgba(110, 231, 183, 0.15);
}

.figure--wide {
  margin: 2rem 0;
}

.figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: #9ab5a8;
  font-style: italic;
  text-align: center;
}

/* Accordion */
.accordion {
  background: rgba(14, 27, 22, 0.4);
  border: 1px solid rgba(110, 231, 183, 0.15);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.accordion__summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  color: #e6f4ec;
  font-weight: 600;
  transition: color 0.2s ease;
  user-select: none;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.75rem;
  color: #6ee7b7;
  transition: transform 0.2s ease;
}

.accordion[open] .accordion__summary::before {
  transform: rotate(90deg);
}

.accordion__summary:hover {
  color: #6ee7b7;
}

.accordion__content {
  padding: 0 1.25rem 1.25rem;
  color: #bcd4cc;
  line-height: 1.6;
}

.accordion__content p {
  margin: 0;
}

/* Callout */
.callout {
  background: rgba(110, 231, 183, 0.08);
  border-left: 4px solid #6ee7b7;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.callout h3 {
  color: #6ee7b7;
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.callout p {
  color: #bcd4cc;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.tip {
  background: rgba(110, 231, 183, 0.05);
  border: 1px solid rgba(110, 231, 183, 0.2);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

.tip strong {
  color: #6ee7b7;
}

/* CTA section */
.cta-row {
  text-align: center;
  padding: 2rem 0;
}

.cta-row p {
  font-size: 1.125rem;
  color: #bcd4cc;
  margin-bottom: 1.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #6ee7b7, #5cbf9a);
  color: #0b1411;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.button:hover,
.button:focus {
  background: linear-gradient(135deg, #7ffac4, #6dd0a8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(110, 231, 183, 0.3);
}

.button--ghost {
  background: transparent;
  color: #6ee7b7;
  border: 1px solid #6ee7b7;
}

.button--ghost:hover,
.button--ghost:focus {
  background: rgba(110, 231, 183, 0.1);
  border-color: #7ffac4;
  color: #7ffac4;
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.margin-top {
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .plants-hero {
    min-height: 50vh;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .inpage-nav ul {
    gap: 0.5rem;
  }
  
  .inpage-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  .grid-2,
  .grid-3 {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .plants-hero__content {
    padding: 2rem 1rem;
  }
  
  .section__header {
    margin-bottom: 2rem;
  }
  
  .section__tips {
    padding: 1.5rem;
  }
  
  .plant-card__content {
    padding: 1.25rem;
  }
}
