/* Myplant - custom base styles
   Tailwind CSS utilities are loaded via CDN.
   These styles provide a few app-specific defaults. */

:root {
  --mp-green: #3d7a4e;
  --mp-green-light: #86c796;
  --mp-cream: #fafaf7;
  --mp-stone: #f5f2ec;
  --mp-dark: #1f2937;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--mp-cream);
  color: var(--mp-dark);
}

/* Accessible focus ring for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--mp-green-light);
  outline-offset: 2px;
}

/* Smooth image rendering */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Form input base styling used alongside Tailwind */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  background-color: #fff;
  color: var(--mp-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:hover {
  border-color: #d1d5db;
}

.input-field:focus {
  border-color: var(--mp-green);
  box-shadow: 0 0 0 3px rgba(61, 122, 78, 0.15);
  outline: none;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: var(--mp-green);
  color: #fff;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: #2f6140;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Secondary button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: #fff;
  color: var(--mp-green);
  border: 1.5px solid var(--mp-green);
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-secondary:hover {
  background-color: #f0fdf4;
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Card shadow utility */
.card-soft {
  background-color: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(31, 41, 55, 0.08);
}
