/* Base Styles */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #f8fafc;
  --text-color: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --border-color: #e2e8f0;
  --success-color: #22c55e;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 0.375rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  background-color: #f8fafc;
}

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

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

ul {
  list-style: none;
}

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

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  font-size: 0.875rem;
  height: 2.5rem;
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  padding: 0.25rem 0.75rem;
  height: 2rem;
  font-size: 0.75rem;
}

.btn-secondary {
  background-color: white;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-full {
  width: 100%;
}

/* Header Styles */
.header {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.desktop-nav {
  display: none;
}

.desktop-actions {
  display: none;
}

.nav-link {
  margin-left: 2rem;
  color: var(--text-light);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.icon-button {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: background-color 0.2s;
}

.icon-button:hover {
  background-color: var(--secondary-color);
}

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

.mobile-menu-button button {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-color);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background-color: white;
  border-top: 1px solid var(--border-color);
}

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

.mobile-menu-item {
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.mobile-menu-item:hover {
  background-color: var(--secondary-color);
}

.mobile-menu-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  min-width: 10rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 1;
  margin-top: 0.5rem;
  border: 1px solid var(--border-color);
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: var(--secondary-color);
}

.dropdown.active .dropdown-content {
  display: block;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: white;
  padding: 4rem 0;
}

.hero-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.search-box {
  background-color: white;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.search-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input-wrapper i {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  color: var(--text-lighter);
}

.search-input-wrapper input {
  width: 100%;
  height: 3rem;
  padding-left: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background-color: white;
}

.search-btn {
  height: 3rem;
}

/* Categories Section */
.categories {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.view-all {
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.view-all i {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.view-all:hover {
  text-decoration: underline;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.category-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 4rem;
  height: 4rem;
  background-color: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.category-card h3 {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Available Now Section */
.available-now {
  padding: 3rem 0;
  background-color: white;
}

.tabs-list {
  display: flex;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.tab-button {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-light);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.providers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.provider-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: white;
  transition: box-shadow 0.2s;
}

.provider-card:hover {
  box-shadow: var(--shadow-md);
}

.provider-info {
  display: flex;
  padding: 1rem;
}

.provider-image-container {
  position: relative;
  margin-right: 1rem;
}

.provider-image {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.status-indicator {
  position: absolute;
  bottom: -0.25rem;
  right: -0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
}

.status-indicator.available {
  background-color: var(--success-color);
}

.status-indicator.busy {
  background-color: var(--error-color);
}

.status-indicator.soon {
  background-color: var(--warning-color);
}

.provider-details {
  flex: 1;
}

.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.provider-header h3 {
  font-weight: 600;
  font-size: 1.125rem;
}

.provider-category {
  font-size: 0.875rem;
  color: var(--text-light);
}

.rating {
  display: flex;
  align-items: center;
}

.rating i {
  color: #f59e0b;
  margin-right: 0.25rem;
}

.provider-location,
.provider-rate {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.provider-location i,
.provider-rate i {
  margin-right: 0.25rem;
  font-size: 0.75rem;
}

.provider-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  background-color: #dbeafe;
  border: 1px solid #bfdbfe;
}

.provider-actions {
  display: flex;
  border-top: 1px solid var(--border-color);
}

.action-button {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 500;
  transition: background-color 0.2s;
}

.action-button:hover {
  background-color: #f0f9ff;
}

.action-button.book-now {
  color: var(--success-color);
}

.action-button.book-now:hover {
  background-color: #f0fdf4;
}

.divider {
  width: 1px;
  background-color: var(--border-color);
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 0;
  background-color: var(--secondary-color);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.step {
  text-align: center;
}

.step-number {
  width: 5rem;
  height: 5rem;
  background-color: #dbeafe;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--text-light);
}

/* Join Provider Section */
.join-provider {
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.join-provider h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.join-provider p {
  font-size: 1.25rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 24rem;
  margin: 0 auto;
}

/* Footer Styles */
.footer {
  background-color: #1e293b;
  color: #cbd5e1;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-column h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-column p {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.social-link:hover {
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom p:first-child {
  margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-inputs {
    flex-direction: row;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .desktop-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .mobile-menu-button {
    display: none;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .providers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
