/* Custom CSS Variables */
:root {
  --primary: #E67E22;
  --primary-dark: #cf6d1a;
  --secondary: #F39C12;
  --accent: #FFF4E6;
  --muted: #f8f9fa;
  --foreground: #1a1a1a;
  --muted-foreground: #6c757d;
  --input-background: #f8f9fa;
  --primary-foreground: #ffffff;
  --border: #e5e7eb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background-color: #ffffff;
}

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

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.navbar-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 80px;
  display: flex;
  align-items: center;
  background: transparent;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 300ms;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 300ms;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

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

.mobile-nav-link {
  display: block;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: color 300ms;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--accent), white);
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-content {
  text-align: center;
}

.hero-logo {
  width: 28rem;
  height: 28rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  overflow: hidden;
  background: transparent;
}

.hero-logo span {
  color: white;
  font-weight: bold;
  font-size: 4rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: all 300ms;
}

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

.trust-indicators {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.trust-item {
  text-align: center;
}

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

.trust-label {
  color: var(--muted-foreground);
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-line {
  width: 6rem;
  height: 0.25rem;
  background: var(--primary);
  margin: 0 auto 1.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

/* About Section */
.about {
  background: white;
}

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

.feature-card {
  background: var(--accent);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(230, 126, 34, 0.2);
  text-align: center;
  transition: all 300ms;
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.feature-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Services Section */
.services {
  background: linear-gradient(to bottom, var(--muted), white);
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  transition: all 300ms;
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all 300ms;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: white;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.service-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.bullet {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--secondary);
  border-radius: 50%;
}

/* Testimonials Section */
.testimonials {
  background: white;
}

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

.testimonial-card {
  background: var(--accent);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(230, 126, 34, 0.2);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(230, 126, 34, 0.2);
  font-size: 3rem;
}

.rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  color: var(--secondary);
}

.star.empty {
  color: #d1d5db;
}

.testimonial-content {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: var(--foreground);
}

.author-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact Section */
.contact {
  background: linear-gradient(to bottom, var(--muted), white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

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

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--input-background);
  transition: all 300ms;
  font-family: inherit;
  font-size: 1rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}

.form-textarea {
  resize: none;
  min-height: 5rem;
}

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.info-item {
  display: flex;
  gap: 1rem;
}

.info-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.info-content h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.info-content p {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.info-content span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.response-time {
  background: var(--accent);
  padding: 1.5rem;
  border-radius: 1rem;
}

.response-time h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.response-time ul {
  list-style: none;
}

.response-time li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.office-hours {
  background: var(--primary);
  color: white;
  padding: 1.5rem;
  border-radius: 1rem;
}

.office-hours h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.office-hours p {
  margin-bottom: 0.5rem;
}

.office-hours p:last-child {
  opacity: 0.9;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background: var(--foreground);
  color: white;
  padding: 3rem 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-icon {
  width: 4rem;
  height: 4rem;
  background: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-description {
  color: #d1d5db;
  line-height: 1.6;
}

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

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background-color 300ms;
}

.social-link:hover {
  background: var(--primary);
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 300ms;
}

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

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
}

.flash-message {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.flash-success {
  background: #10b981;
  color: white;
}

.flash-error {
  background: #ef4444;
  color: white;
}

/* Form Error States */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feedback Section */
.feedback {
  background: linear-gradient(to bottom, white, var(--muted));
}

.feedback-content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
}

.feedback-form {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feedback-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.feedback-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feedback-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.feedback-stats {
  background: var(--accent);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.feedback-stats h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

/* Star Rating */
.rating-input {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.star-rating {
  display: flex;
  gap: 0.25rem;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating .star {
  font-size: 2rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color 200ms;
  display: inline-block;
}

.star-rating .star:hover {
  color: var(--secondary);
}

.star-rating input[type="radio"]:checked ~ .star {
  color: var(--secondary);
}

.star-rating input[type="radio"]:checked ~ .star:hover,
.star-rating .star:hover {
  color: var(--primary);
}

.rating-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Tally Form Styling */
.tally-form-wrapper {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--border);
  transition: all 300ms ease;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.tally-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 0.75rem 0.75rem 0 0;
}

.tally-form-wrapper:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 25px -5px rgba(230, 126, 34, 0.15);
  transform: translateY(-2px);
}

.contact-form iframe[data-tally-src] {
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  box-shadow: none;
  transition: all 300ms ease;
  margin: 0;
  width: 100% !important;
  height: 694px !important;
}

/* Style Tally form inputs and buttons inside iframe */
.contact-form iframe[data-tally-src]::-webkit-scrollbar {
  width: 8px;
}

.contact-form iframe[data-tally-src]::-webkit-scrollbar-track {
  background: var(--accent);
  border-radius: 4px;
}

.contact-form iframe[data-tally-src]::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.contact-form iframe[data-tally-src]::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero h1 {
    font-size: 3.75rem;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
  
  .trust-indicators {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feedback-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}
