/*
 * Custom styles for Prairie Management & Development, Inc.
 * This stylesheet provides a minimal utility set to replace the Tailwind CSS CDN.
 * It is designed to work offline and provide a clean, responsive layout.
 */

/* Reset & base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  color: #1f2937; /* dark grey */
  line-height: 1.6;
  background-color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: inherit;
}

/* Utility classes */
/*
 * Container
 * Replicates Tailwind's responsive paddings (px-4 sm:px-6 lg:px-8)
 * Provides a centered layout with side padding that increases
 * at larger breakpoints. This helps give content breathing
 * room on the left and right sides of the page.
 */
.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem; /* px-4 */
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem; /* sm:px-6 */
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem; /* lg:px-8 */
    padding-right: 2rem;
  }
}

/* Basic color classes to mirror Tailwind defaults used in our HTML */
.bg-white {
  background-color: #ffffff;
}
.bg-gray-900 {
  background-color: #111827;
}
.bg-gray-50 {
  background-color: #f9fafb;
}
.text-gray-900 {
  color: #1f2937;
}
.text-gray-700 {
  color: #374151;
}
.text-gray-600 {
  color: #4b5563;
}
.text-blue-700 {
  color: #1d4ed8;
}
.text-blue-800 {
  color: #1e40af;
}
.text-white {
  color: #ffffff;
}

.text-center {
  text-align: center;
}

/* Text decoration helpers */
.underline {
  text-decoration: underline;
}

/* Typography sizes and weights
 * These utilities mimic a small subset of Tailwind's typography
 * classes used in our HTML. They provide sensible defaults for
 * headings and paragraphs without relying on the full Tailwind
 * framework. Feel free to expand this list if additional sizes
 * are needed.
 */
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

/* Small text size utility */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

/* Flex alignment helpers */
.items-start {
  align-items: flex-start;
}

.mt-8 { margin-top: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }

/* Padding utility for page bottom spacing */
.pb-16 {
  padding-bottom: 4rem;
}

/* Navigation styles */
.nav-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: #fff;
}

.nav-hero .logo {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1;
}

.nav-hero .menu {
  display: none;
}

.nav-hero .menu a {
  margin-left: 1rem;
  color: #fff;
  transition: color 0.2s ease-in-out;
}

.nav-hero .menu a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .nav-hero .menu {
    display: flex;
    gap: 1.5rem;
  }
}

/* Standard navigation (about, careers, contact) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  color: #1f2937;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.nav .logo {
  font-size: 1.25rem;
  font-weight: bold;
  white-space: nowrap;
}

.nav .menu {
  display: none;
  gap: 1.5rem;
}

.nav .menu a {
  color: #1f2937;
  transition: color 0.2s ease-in-out;
}

.nav .menu a:hover {
  color: #1d4ed8;
}

.nav .menu a.active {
  color: #1d4ed8;
  font-weight: 500;
}

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: inherit;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  color: #1f2937;
  transition: background-color 0.2s ease-in-out;
}

.mobile-menu a:hover {
  background-color: #f3f4f6;
}

.mobile-menu a.active {
  color: #1d4ed8;
  font-weight: 500;
}

.mobile-menu.show {
  display: block;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
  .nav .menu {
    display: flex;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  padding: 0 1rem;
  max-width: 960px;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: bold;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: 1.25rem;
  color: #d1d5db;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-weight: 500;
  background-color: #ffffff;
  color: #1f2937;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.hero-button:hover {
  background-color: #e5e7eb;
}

/* Section (mission, content) */
.section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.section.center {
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .section h2 {
    font-size: 2.5rem;
  }
}

.section p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  max-width: 800px;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .button-group {
    flex-direction: row;
    justify-content: center;
  }
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.button.primary {
  background-color: #1e40af;
  color: #ffffff;
}

.button.primary:hover {
  background-color: #1d4ed8;
}

.button.secondary {
  background-color: #f3f4f6;
  color: #1f2937;
}

.button.secondary:hover {
  background-color: #e5e7eb;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: #d1d5db;
  padding: 2rem 1rem;
}

.footer-content {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-content .links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-content .links a {
  color: #d1d5db;
  transition: color 0.2s ease-in-out;
}

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

/* Layout helpers */
.pt-nav {
  padding-top: 4rem; /* ensure content sits below fixed nav */
}

.grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Forms */
form .form-group {
  margin-bottom: 1rem;
}

/* ZipRecruiter jobs widget styles */
.jobs-widget {
  margin-top: 1rem;
}

.jobs-widget table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.jobs-widget th,
.jobs-widget td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.jobs-widget th {
  background-color: #f9fafb;
  font-weight: 600;
}

#jobs_widget_link_split {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151; /* gray-700 */
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: inherit;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #3b82f6; /* blue-500 */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

form button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: none;
  background-color: #1e40af;
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

form button:hover {
  background-color: #1d4ed8;
}

/* Address section */
address {
  font-style: normal;
  line-height: 1.6;
}

/* Responsive images and text */
.img-responsive {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Additional utility classes for sizing and decoration
 * These mirror some of the Tailwind classes used in the HTML,
 * allowing our pages to work without the Tailwind CDN. They
 * ensure images and elements can be sized consistently.
 */
.rounded {
  border-radius: 0.375rem;
}

.shadow {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.w-full {
  width: 100%;
}

.h-auto {
  height: auto;
}
