/* RepairReviews.org Stylesheet */

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

:root {
  --primary-blue: #1e40af;
  --light-gray: #f3f4f6;
  --dark-text: #111827;
  --border-color: #e5e7eb;
  --star-yellow: #fbbf24;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: #ffffff;
}

/* Header & Navigation */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--dark-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a8a 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.search-bar button {
  padding: 0.75rem 1.5rem;
  background: var(--star-yellow);
  color: var(--dark-text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.search-bar button:hover {
  background: #fcd34d;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
section {
  padding: 3rem 2rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark-text);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

/* Shop Cards */
.shop-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.shop-card:hover {
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
  transform: translateY(-2px);
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.shop-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.shop-rating {
  font-size: 1.1rem;
  color: var(--star-yellow);
}

.review-count {
  font-size: 0.9rem;
  color: #6b7280;
  margin-left: 0.5rem;
}

.shop-info {
  margin: 1rem 0;
  font-size: 0.95rem;
}

.shop-info p {
  margin: 0.5rem 0;
  color: #374151;
}

.shop-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.shop-link:hover {
  background: #1e3a8a;
}

/* Review Card */
.review-card {
  background: var(--light-gray);
  border-left: 4px solid var(--primary-blue);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.review-author {
  font-weight: 600;
  color: var(--dark-text);
}

.review-rating {
  color: var(--star-yellow);
  font-size: 1rem;
}

.review-text {
  color: #374151;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.review-location {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Browse Grid */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.browse-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark-text);
  transition: transform 0.3s, background 0.3s;
}

.browse-item:hover {
  transform: translateY(-4px);
  background: #e5e7eb;
}

.browse-item h3 {
  margin: 0;
  font-size: 1.2rem;
}

/* How It Works */
.how-it-works {
  background: var(--light-gray);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.step {
  padding: 1.5rem;
  text-align: center;
}

.step-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.step h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Town Grid */
.town-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.town-card {
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark-text);
  transition: transform 0.3s, background 0.3s;
}

.town-card:hover {
  transform: translateY(-2px);
  background: #e5e7eb;
}

.town-card h3 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-blue);
}

/* Form Styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.submit-btn {
  background: var(--primary-blue);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #1e3a8a;
}

/* Footer */
footer {
  background: var(--dark-text);
  color: white;
  padding: 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .search-bar {
    flex-direction: column;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .shop-header {
    flex-direction: column;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .browse-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

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

  .nav-links {
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .shop-card {
    padding: 1rem;
  }
}

/* Print Friendly */
@media print {
  header, footer, .search-bar {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
