@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");
@import url("https://unpkg.com/leaflet@1.9.4/dist/leaflet.css");

/* Tailwind Base Directives - technically handled by CDN but good to have if processed provided we use the CDN script properly */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 20%;
    --primary: 178 46% 32%; /* #2B7A78 */
    --primary-foreground: 0 0% 100%;
    --secondary: 0 0% 96%; /* #F5F5F5 */
    --secondary-foreground: 178 46% 32%;
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 40%;
    --accent: 178 46% 32%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 90%;
    --input: 0 0% 90%;
    --ring: 178 46% 32%;
    --radius: 0.75rem;
    --success: 122 39% 49%;
    --warning: 36 100% 50%;
    --info: 207 90% 54%;
  }
  body {
    background-color: white;
    color: #333333;
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    letter-spacing: -0.025em;
    font-weight: 700;
    color: #1f5f5d;
  }
}

@layer utilities {
  .glass {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
      0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
  .text-balance {
    text-wrap: balance;
  }
}

/* Custom Animations from Tailwind Config - simplified for CSS if CDN config doesn't catch them, 
   but we will configure them in the HTML head script too. 
   Adding here as fallback or for specific custom classes */

@keyframes accordion-down {
  from {
    height: 0;
  }
  to {
    height: var(--radix-accordion-content-height);
  }
}
@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height);
  }
  to {
    height: 0;
  }
}
.animate-accordion-down {
  animation: accordion-down 0.2s ease-out;
}
.animate-accordion-up {
  animation: accordion-up 0.2s ease-out;
}

/* Contact Form 7 in Careers Modal */
#form-body .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

#form-body span[data-name="applicant-resume"] {
  display: none !important;
}

#form-body textarea {
  display: flex;
  width: 100%;
  min-height: 120px;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.15s ease-in-out;
  resize: vertical;
}

#form-body textarea:focus {
  border-color: #16803C;
  box-shadow: 0 0 0 1px #16803C;
}

#form-body .wpcf7-submit,
#form-body input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #16803C;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

#form-body .wpcf7-submit:hover,
#form-body input[type="submit"]:hover {
  background-color: rgba(22, 128, 60, 0.9);
}

#form-body .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

#form-body .wpcf7-spinner {
  margin-left: 0.5rem;
  vertical-align: middle;
}
