/* NuGrow site styles that sit alongside Tailwind utilities */
:root {
  --eucalypt: #2F6B3A;
  --eucalypt-700: #245530;
  --eucalypt-50: #EDF4EC;
  --harvest: #C98A2B;
  --harvest-300: #E2B266;
  --harvest-700: #9C6A1E;
  --soil: #2A2118;
  --soil-600: #5B5346;
  --soil-700: #4A4034;
  --straw: #F5F1E8;
  --straw-200: #EAE2D0;
  --sage: #8A8F7E;
}

html { scroll-padding-top: 4.75rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body.modal-open { overflow: hidden; }

/* Focus fallback for anything without its own ring */
:focus-visible { outline: 3px solid var(--harvest-700); outline-offset: 2px; }
.bg-soil :focus-visible, footer :focus-visible { outline-color: var(--harvest-300); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: var(--soil);
  color: var(--straw);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

/* Navigation */
.nav-link {
  position: relative;
  padding: 0.25rem 0;
  border-radius: 0.25rem;
  color: var(--soil-700);
  transition: color 0.15s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--harvest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover { color: var(--soil); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

.mobile-link {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: 0.75rem;
  color: var(--soil);
}
.mobile-link:hover { background: rgba(42, 33, 24, 0.05); }

/* Section headings */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eucalypt);
}
.eyebrow-light { color: var(--harvest-300); }

.section-title {
  margin-top: 0.75rem;
  font-family: Archivo, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--soil);
}
.section-title-light { color: var(--straw); }

/* Services */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: var(--straw);
  border: 1px solid rgba(42, 33, 24, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: 0 18px 40px -24px rgba(42, 33, 24, 0.45); transform: translateY(-2px); }
@media (min-width: 640px) { .service-card { padding: 2.25rem; } }

.icon-tile {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
}

.check-list { display: grid; gap: 0.6rem; color: var(--soil-700); }
.check-list li { position: relative; padding-left: 1.75rem; line-height: 1.5; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 9999px;
  background: var(--eucalypt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.3 6.8 11 12 5.5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

.product-chip {
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(42, 33, 24, 0.08);
  line-height: 1.3;
}

/* Facilities */
.facility-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(245, 241, 232, 0.06);
  border: 1px solid rgba(245, 241, 232, 0.12);
}
.facility-region {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--harvest-300);
}
.facility-name {
  margin-top: 0.4rem;
  font-family: Archivo, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--straw);
}
.facility-list { margin-top: 1.1rem; display: grid; align-content: start; gap: 0.75rem; font-size: 0.925rem; flex-grow: 1; }
.facility-list dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9CCC0;
}
.facility-list dd { margin-top: 0.15rem; color: rgba(245, 241, 232, 0.92); line-height: 1.5; }
.facility-list a {
  font-weight: 600;
  color: var(--straw);
  text-decoration: underline;
  text-decoration-color: rgba(226, 178, 102, 0.6);
  text-underline-offset: 4px;
}
.facility-list a:hover { color: var(--harvest-300); }

.map-link {
  margin-top: 1.25rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--harvest-300);
  border-radius: 0.25rem;
  text-underline-offset: 4px;
}
.map-link::after { content: "\2197"; font-size: 0.9em; }
.map-link:hover { text-decoration: underline; }

/* Why section */
.why-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(42, 33, 24, 0.06);
}
.why-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  border-radius: 0.85rem;
  background: var(--eucalypt-50);
  color: var(--eucalypt);
}
.why-title {
  margin-top: 1rem;
  font-family: Archivo, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--soil);
}
.why-text { margin-top: 0.4rem; line-height: 1.6; color: var(--soil-700); }

.tag {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: var(--straw);
  border: 1px solid rgba(42, 33, 24, 0.1);
  color: var(--soil);
  font-weight: 500;
}

/* Form */
.field-label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--soil); }
.field-input {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  border: 1.5px solid #CFC5AE;
  background: #ffffff;
  color: var(--soil);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-input::placeholder { color: #7A7264; }
.field-input:hover { border-color: var(--sage); }
.field-input:focus { outline: none; border-color: var(--eucalypt); box-shadow: 0 0 0 3px rgba(47, 107, 58, 0.25); }
.field-input[aria-invalid="true"] { border-color: #A3361F; }
.field-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(163, 54, 31, 0.2); }
.field-error { margin-top: 0.35rem; font-size: 0.85rem; font-weight: 500; color: #A3361F; }

.form-ok { padding: 0.9rem 1rem; border-radius: 0.75rem; background: var(--eucalypt-50); color: var(--eucalypt-700); border: 1px solid rgba(47, 107, 58, 0.25); }
.form-bad { color: #A3361F; }

.contact-link {
  font-family: Archivo, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--straw);
  border-radius: 0.25rem;
  text-underline-offset: 5px;
}
.contact-link:hover { color: var(--harvest-300); text-decoration: underline; }

/* Footer */
.footer-link {
  border-radius: 0.25rem;
  color: rgba(245, 241, 232, 0.85);
  text-underline-offset: 4px;
  cursor: pointer;
}
.footer-link:hover { color: var(--harvest-300); text-decoration: underline; }

/* Legal dialogs */
.legal-dialog {
  width: min(92vw, 46rem);
  max-height: 88vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: var(--straw);
  color: var(--soil);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}
.legal-dialog::backdrop { background: rgba(30, 24, 17, 0.72); }
.legal-inner { display: flex; flex-direction: column; max-height: 88vh; }
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(42, 33, 24, 0.1);
}
.legal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: var(--soil);
}
.legal-close:hover { background: rgba(42, 33, 24, 0.08); }
.legal-body { overflow-y: auto; padding: 1.25rem 1.5rem 1.75rem; line-height: 1.65; color: var(--soil-700); }
.legal-body h3 {
  margin-top: 1.5rem;
  font-family: Archivo, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--soil);
}
.legal-body p { margin-top: 0.6rem; }
.legal-body ul { margin-top: 0.6rem; padding-left: 1.2rem; list-style: disc; }
.legal-body li { margin-top: 0.3rem; }
.legal-body a { color: var(--eucalypt-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) {
  .legal-head { padding: 1.5rem 2rem; }
  .legal-body { padding: 1.5rem 2rem 2rem; }
}
