/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}


/* Navbar */
header {
  background: rgba(90, 60, 150, 0.15); /* very faint purple */
  padding: 0.6rem 0;
}

.navbar {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* centers the links horizontally */
  align-items: center;
  padding: 1rem 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem; /* even spacing between links */
  padding: 0;
  margin: 0;
}

.nav-links li {
  text-align: center;
}

.nav-links a {
  text-decoration: none;
  color: #4b2e83; /* soft purple */
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #7c3aed; /* slightly brighter purple on hover */
}


/* Hero Section (Shortened) */
.hero {
  background: linear-gradient(to right, rgba(155, 100, 230, 0.1), rgba(120, 80, 180, 0.05));
  text-align: center;
  padding: 1.5rem 0; /* very compact */
}

.hero h1 {
  font-size: 1.8rem;
  color: #4b2e83;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1rem;
  color: #555;
}

/* Services Section */
.services {
  background: #fff;
  padding: 1.5rem 0;
}

.services h2 {
  text-align: center;
  color: #4b2e83;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

.service-card {
  background: rgba(90, 60, 150, 0.05);
  border: 1px solid rgba(90, 60, 150, 0.1);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  background: rgba(90, 60, 150, 0.08);
}

.service-card h3 {
  color: #4b2e83;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Buttons */
.btn-secondary {
  display: inline-block;
  background: #6a4fb6;
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: #56399d;
}

/* Contact + Footer */
.contact {
  text-align: center;
  padding: 1rem 0;
  background: rgba(90, 60, 150, 0.08);
}

.contact a {
  color: #4b2e83;
  text-decoration: none;
  font-weight: 600;
}

footer {
  text-align: center;
  background: rgba(90, 60, 150, 0.2);
  color: #333;
  padding: 1rem 0;
  font-size: 0.9rem;
}
/* Search Form */
.search-form {
  margin-bottom: 2rem;
}

.search-input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 94, 144, 0.15);
}

.search-button {
  background: var(--primary);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.search-button:hover {
  background: #5a4f7a;
}

.search-results {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--bg-faint);
  border-radius: 8px;
  display: none;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 2rem 0;
}
.navbar {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center; /* center everything */
  position: relative;
  background-color: #f5f0ff; /* faint purple */
  padding: 1rem 0;
  border-radius: 12px;
}

.logo {
  position: absolute;
  left: 0; /* keep logo on the left */
}

.site-title {
  font-size: 1.5rem;
  color: #4b2e83;
  text-align: center;
  font-weight: 700;
}
.navbar {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; /* keeps logo left, items right */
  background-color: #f5f0ff; /* faint purple */
  padding: 0.5rem 1rem;
  border-radius: 12px;
  flex-wrap: wrap; /* allow stacking on mobile */
}

.logo img {
  max-height: 80px;
  height: auto;
  width: auto;
  max-width: 100%;
}
@media (max-width: 600px) {
  .logo img {
    max-height: 60px;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}
/* Ensure logo is in flow and not absolutely positioned */
.logo {
  position: static !important;
  left: auto !important;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Make logo image responsive */
.logo img {
  display: block;           /* prevents inline-image whitespace */
  width: auto;
  height: auto;
  max-height: 80px;        /* desktop max height */
  max-width: 100%;
  object-fit: contain;     /* keeps aspect ratio */
}

/* Ensure navbar grows to content height and uses flexbox properly */
.navbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  flex-wrap: wrap;
  min-height: 64px; /* ensures some vertical space to avoid clipping */
  overflow: visible; /* ensure image isn't clipped by overflow */
}

/* Nav links layout preserved but moves below logo on small screens */
.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* Responsive reductions for small screens */
@media (max-width: 768px) {
  .logo img {
    max-height: 64px;
  }
  .navbar {
    padding: 0.5rem;
    min-height: 56px;
  }
}

@media (max-width: 420px) {
  .logo img {
    max-height: 48px;
  }

  /* Put links under the logo on very small screens */
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    min-height: auto;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }
}

/* Debug helpers — remove after testing */
.navbar.debug { outline: 2px dashed red; }
.logo.debug { outline: 2px dashed blue; }
.logo img.debug { outline: 2px dashed green; }

