
/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
  --primary-color: #2980b9;
  --accent-color: #2ecc71;
  --text-color: #333333;
  --background-color: #f4f8fa;
  --surface-color: #ffffff;
  --border-color: #e0e0e0;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

html {
  scroll-padding-top: 140px; /* Offset for sticky header */
}

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #3498db;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.main-header {
  background-color: var(--surface-color);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-header .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.main-nav a {
  margin: 0 1rem;
  font-weight: 500;
  color: var(--text-color);
}

.main-nav a.button-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.main-nav a.button-primary:hover {
  background-color: #3498db;
  color: white;
}


/* ==========================================================================
   Main Content & Cards
   ========================================================================== */
main {
  padding: 2rem 0;
}

.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 7px 14px rgba(0,0,0,0.07);
}

.inquiry-card {
    display: block;
    background-color: var(--surface-color);
}

.inquiry-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.inquiry-meta {
  display: flex;
  gap: 1.5rem;
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.inquiry-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-container {
  max-width: 800px;
  margin: 2rem auto;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box; /* Important for width: 100% */
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.filter-form {
    display: flex;
    flex-wrap: wrap; /* Changed to wrap */
    gap: 1rem;
    align-items: flex-end;
}

.main-header .filter-card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.filter-form .form-group {
    flex: 1 1 180px; /* Flex grow, shrink, and basis */
    margin-bottom: 0;
}

.filter-form .form-group label {
    font-weight: normal;
    margin-bottom: 0;
    white-space: nowrap;
    /* Visually hide labels in the header search */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.filter-form .btn {
    flex-shrink: 0; /* Prevent button from shrinking */
}


/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border: none;
  border-radius: 5px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #3498db;
  color: white;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #27ae60;
}

.btn-block {
    display: block;
    width: 100%;
}


/* ==========================================================================
   Homepage Specifics
   ========================================================================== */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    grid-auto-rows: 120px;
}

.category-tile {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-tile:hover {
    box-shadow: 0 7px 14px rgba(0,0,0,0.07);
}

.category-tile h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumb {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #e9ecef;
    border-radius: 0.25rem;
}

.breadcrumb-item {
    display: inline-block;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ==========================================================================
   Autocomplete
   ========================================================================== */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border: 1px solid #ced4da;
    border-top: none;
    background-color: #fff;
    max-height: 200px;
    overflow-y: auto;
}
.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
}
.autocomplete-item:hover {
    background-color: #e9ecef;
}
