/* ScanseQR Static Site Styles */

:root {
  --primary-color: #ff6900;
  --primary-dark: #e55a00;
  --text-color: #ffffff;
  --bg-dark: #0a0e27;
  --bg-darker: #050812;
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background-color: var(--bg-darker);
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-section img {
  height: 48px;
  width: auto;
}

.logo-section h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0;
}

.logo-section a {
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

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

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

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

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

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

/* Main Content */
main {
  flex: 1;
  padding: 2rem 0;
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  min-height: 60vh;
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Footer */
/* Footer */
footer {
  background-color: var(--bg-darker);
  padding: 3rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-section h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: normal;
}

.footer-section h3 a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
}

.footer-section h3 img {
  height: 32px;
  width: auto;
}

.footer-section nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.footer-section a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--primary-color);
}

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

.social-links a {
  display: block;
}

.social-links img {
  width: 32px;
  height: 32px;
  display: block;
}

/* Content Pages */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.tradie-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.content-page h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.content-page h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.content-page ul,
.content-page ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-page li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* Forms */
form {
  max-width: 600px;
  margin: 2rem 0;
}

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

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 1rem;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--primary-color);
}

form select option {
  background-color: var(--bg-dark);
  color: var(--text-color);
  padding: 0.5rem;
}

form select option:hover,
form select option:focus {
  background-color: var(--primary-color);
}

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

/* Blog */
.blog-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.blog-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-item h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.blog-item a {
  color: var(--text-color);
  text-decoration: none;
}

.blog-item a:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--text-color);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Utility Classes */
.contact-info {
  margin-top: 3rem;
}

/* HTMX Indicator */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline;
}

/* Partner Map */
.partner-map-container {
  margin: 2rem 0;
}

#partner-map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-search {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.location-search input {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 1rem;
}

.location-search input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.location-result {
  font-size: 0.9rem;
  opacity: 0.9;
}

.partner-popup {
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0.5rem 0.75rem;
  max-width: 220px;
}

.partner-popup-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--primary-color);
  word-break: break-word;
}

.partner-popup-row {
  margin-top: 0.2rem;
  word-break: break-word;
}

.partner-popup-row a {
  color: #007aff;
  text-decoration: none;
  word-break: break-all;
}

.partner-popup-row a:hover {
  text-decoration: underline;
}

/* Form Response Messages */
#form-response {
  margin-top: 1rem;
}

#form-response .error {
  padding: 1rem;
  background-color: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  border-radius: 4px;
  color: #ff6b6b;
}

#form-response .success {
  padding: 1rem;
  background-color: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.5);
  border-radius: 4px;
  color: #51cf66;
}

/* Tradie Page Styles */
.subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

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

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  margin-bottom: 1.5rem;
}

.section-list {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.section-list li {
  margin-bottom: 0.75rem;
}

.section-cta {
  margin-top: 3rem;
}

/* Extra breathing room after final CTA on homepage */
main .section:last-of-type {
  margin-bottom: 4.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.feature-item p {
  margin-bottom: 0;
  opacity: 0.9;
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  margin-top: 1.5rem;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.testimonial-author {
  font-weight: 500;
  margin-bottom: 0;
  opacity: 0.8;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.pricing-description {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.step p {
  margin-bottom: 0;
  opacity: 0.9;
}

/* Tradie Hero Section */
.tradie-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.tradie-hero-image {
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tradie-hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(255, 105, 0, 0.2);
}

.tradie-hero-content {
  order: 1;
}

.tradie-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.tradie-hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.tradie-hero-content .lead {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .tradie-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .tradie-hero-image {
    order: 1;
  }

  .tradie-hero-image img {
    max-width: 300px;
  }
  
  .tradie-hero-content {
    order: 2;
  }

  .tradie-hero-content h1 {
    font-size: 2rem;
  }

  .tradie-hero-content .subtitle {
    font-size: 1.125rem;
  }

  .tradie-hero-content .lead {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  .features-grid,
  .pricing-grid,
  .how-it-works {
    grid-template-columns: 1fr;
  }
}

