/* ============================================
   Cape Cod Mushroom Co. — Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  background-color: #fefaf3;
  color: #1a1a1a;
  font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2d5016;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #1a3a0a;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 250, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s, background 0.3s;
}

.nav.scrolled {
  background: rgba(254, 250, 243, 0.97);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: #1a1a1a;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #2d5016;
}

.nav-cta {
  background: #1a1a1a;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: #333 !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(45, 80, 22, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(45, 80, 22, 0.03) 0%, transparent 60%);
}

.hero-content {
  max-width: 700px;
}

.hero-logo {
  max-width: 500px;
  width: 100%;
  margin: 0 auto 2rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Page Headers (subpages) --- */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(45, 80, 22, 0.04) 0%, transparent 60%);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-header-sub {
  font-size: 1.15rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.btn-primary:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
}

.btn-outline:hover {
  background: #1a1a1a;
  color: #fff;
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: #f5f0e6;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-img {
  border-radius: 12px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* --- Mushroom Varieties --- */
.variety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.variety-card {
  background: #fff;
  border: 1px solid #e8e2d6;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.variety-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.variety-img-wrap {
  height: 280px;
  overflow: hidden;
}

.variety-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variety-info {
  padding: 1.5rem;
}

.variety-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.variety-latin {
  font-style: italic;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.variety-info > p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

.variety-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d5016;
}

.variety-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-img {
  border-radius: 10px;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* --- Ordering --- */
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.order-card {
  background: #fff;
  border: 1px solid #e8e2d6;
  border-radius: 12px;
  padding: 2rem;
}

.order-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.order-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.price-list {
  list-style: none;
  margin-bottom: 1rem;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.price-list li:last-child {
  border-bottom: none;
}

.price-amount {
  font-weight: 700;
  color: #2d5016;
}

.price-note {
  font-size: 0.85rem !important;
  color: #888 !important;
  margin-top: 0.5rem;
}

.order-steps {
  padding-left: 1.25rem;
}

.order-steps li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.order-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e8e2d6;
  border-radius: 12px;
}

.order-cta p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: #fff;
  border: 1px solid #e8e2d6;
  border-radius: 12px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d4cfc5;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fefaf3;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2d5016;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.btn-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.5rem;
}

.form-status.success {
  color: #2d5016;
}

.form-status.error {
  color: #a33;
}

.contact-info {
  padding-top: 1rem;
}

.contact-detail {
  margin-bottom: 2rem;
}

.contact-detail h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.4rem;
}

.contact-detail a,
.contact-detail p {
  font-size: 1rem;
  color: #1a1a1a;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon {
  width: 18px;
  height: 18px;
}

/* --- Partnerships Page --- */
.partner-intro {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.partner-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.opportunity-card {
  background: #fff;
  border: 1px solid #e8e2d6;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.opportunity-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.opportunity-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.opportunity-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

.partner-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.partner-type {
  padding: 2rem;
  background: #f5f0e6;
  border-radius: 12px;
}

.partner-type h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.partner-type p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  max-width: 600px;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* --- Grow Your Own Page --- */
.gyo-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.gyo-hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.gyo-hero-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
}

.gyo-pricing-table {
  background: #f5f0e6;
  border: 1px solid #e8e2d6;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.gyo-pricing-table h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.gyo-pricing-table .price-list {
  margin-bottom: 0;
}

.gyo-pricing-table .price-list li {
  padding: 0.5rem 0;
}

.gyo-variety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.gyo-variety {
  background: #fff;
  border: 1px solid #e8e2d6;
  border-radius: 12px;
  overflow: hidden;
}

.gyo-variety-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gyo-variety h3 {
  padding: 1.25rem 1.5rem 0;
  font-size: 1.2rem;
}

.gyo-variety > p {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
}

.gyo-specs {
  list-style: none;
  padding: 0.75rem 1.5rem 1.5rem;
  border-top: 1px solid #eee;
  margin-top: 0.5rem;
}

.gyo-specs li {
  font-size: 0.85rem;
  padding: 0.3rem 0;
  color: #555;
}

/* --- Tips --- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tip-card {
  padding: 1.5rem;
  background: #f5f0e6;
  border-radius: 12px;
}

.tip-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #2d5016;
}

.tip-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
}

/* --- Footer --- */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  height: 50px;
  width: auto;
  filter: invert(1);
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #aaa;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: #777;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .about-grid,
  .gyo-hero-grid {
    grid-template-columns: 1fr;
  }

  .about-images,
  .gyo-hero-img {
    order: -1;
  }

  .about-img {
    aspect-ratio: 16 / 9;
    max-height: 350px;
  }

  .variety-grid,
  .order-grid,
  .opportunity-grid,
  .partner-types,
  .gyo-variety-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 0;
  }

  .contact-detail {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(254, 250, 243, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid #e8e2d6;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero {
    min-height: 70vh;
    padding: 5rem 1.5rem 3rem;
  }

  .hero-logo {
    max-width: 320px;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .page-header {
    padding: 6rem 0 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-img {
    height: 200px;
  }

  .footer-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .variety-img-wrap {
    height: 220px;
  }
}
