:root {
  --primary-color: #c2410c;
  --primary-light: #f97316;
  --primary-dark: #9a3412;
  --text-color: #1a1a1a;
  --bg-light: #f3f4f6;
  --white: #ffffff;
  --border-color: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", "Segoe UI", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--primary-light);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover {
  background-color: #fff7ed;
  color: var(--primary-color);
}

.nav-link i {
  font-size: 0.8em;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  min-width: 200px;
  padding: 10px 0;
  display: none;
  flex-direction: column;
  z-index: 1010;
}

.nav-item:hover .dropdown {
  display: flex;
}

.dropdown a {
  text-decoration: none;
  color: var(--text-color);
  padding: 10px 20px;
  transition: background 0.2s;
}

.dropdown a:hover {
  background-color: #f9fafb;
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Sections */
.hero {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.hero p {
  font-size: 20px;
  color: #666;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.features,
.section {
  padding: 60px 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Home Project Cards */
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.project-card i {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.project-card p {
  font-weight: 600;
  margin: 0;
}

/* Check Lists */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list li i {
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: #1f2937;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  color: var(--primary-light);
  font-size: 1.1em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
  z-index: 1002;
  padding: 10px;
}

@media (min-width: 993px) {
  /* Desktop fixes */
  .container {
    max-width: 1200px;
  }
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin-left: 40px;
  }
  .nav-menu {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }
  .mobile-menu-btn {
    display: none;
  }
}

@media (max-width: 992px) {
  /* Tablet & Mobile Styles */
  .mobile-menu-btn {
    display: block;
  }

  header .container {
    position: relative;
  }

  nav {
    justify-content: space-between;
    width: 100%;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-container.active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #f3f4f6;
  }

  .nav-link {
    padding: 15px 0;
    justify-content: space-between;
    font-size: 1.1em;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: none; /* JS toggles this */
    background-color: #f9fafb;
    width: 100%;
  }

  .nav-item.active .dropdown {
    display: flex;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin-top: 30px;
  }

  .nav-actions .btn {
    width: 100%;
    text-align: center;
    margin: 0 !important;
  }

  /* Grids & Typography */
  .grid {
    grid-template-columns: 1fr !important;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section .grid {
    gap: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .top-bar {
    display: none;
  }
}

/* Hero Simulator Widget */
.hero-widget {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  max-width: 450px;
  margin-left: auto; /* Push to right on desktop */
}

.hero-widget h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-control,
.form-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.hero-widget .btn {
  width: 100%;
  padding: 15px;
  font-size: 1.2rem;
}

@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }
  .hero-widget {
    margin: 40px auto 0;
    width: 100%;
  }

  .hero {
    text-align: center;
  }
}

/* Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.review-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-card .stars {
  color: #f59e0b;
  margin-bottom: 10px;
}

.review-card .name {
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.review-card .text {
  font-size: 0.9em;
  color: #4b5563;
}

/* Steps Section */
.steps-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-badge {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(194, 65, 12, 0.3);
}

.steps-container::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

/* Floating Simulation Bar */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  border-top: 3px solid var(--primary-color);
  display: flex;
  justify-content: center;
  transition: transform 0.3s;
}

.floating-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.floating-bar-info {
  display: flex;
  gap: 40px;
}

.floating-bar .item {
  display: flex;
  flex-direction: column;
}

.floating-bar .label {
  font-size: 0.75em;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.floating-bar .value {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--text-color);
}

@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .steps-container {
    flex-direction: column;
    gap: 30px;
  }
  .steps-container::before {
    display: none;
  }
  .floating-bar {
    display: none;
  }
}
