/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Color variables for easy updates */
:root {
  --primary-brown: #9c4f1b;
  --accent-brown: #c97a44;
  --brown-dark: #7b3a10;
  --brown-light: #f5e9e0;
  --text-dark: #3b2412;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--brown-light);
  overflow-x: hidden;
}

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

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(245, 233, 224, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 140px;
}

.nav-logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-brown);
  text-decoration: none;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-brown);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(
    135deg,
    var(--primary-brown) 0%,
    var(--accent-brown) 100%
  );
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.hero-placeholder {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-brown);
  color: white;
}

.btn-primary:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(156, 79, 27, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-brown);
  border: 2px solid var(--primary-brown);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(156, 79, 27, 0.06);
}

.btn-secondary:hover {
  background: var(--primary-brown);
  color: white;
  border-color: var(--primary-brown);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(156, 79, 27, 0.12);
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary-brown);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-brown);
  border-radius: 2px;
}

/* About Section */
.about {
  padding: 80px 0;
  background: var(--brown-light);
}

.about-content {
  max-width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
}

.stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-brown);
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--accent-brown);
  font-weight: 500;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: white;
}

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

.service-card {
  padding: 2.5rem;
  text-align: center;
  background: var(--brown-light);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(156, 79, 27, 0.08);
  background: white;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

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

.service-card p {
  color: var(--accent-brown);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--brown-light);
}

.contact-content {
  max-width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
  text-align: center;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary-brown);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: var(--primary-brown);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item p {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

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

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

/* Footer */
.footer {
  background: var(--primary-brown);
  color: white;
  padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #f9fafb;
}

.footer-section p {
  color: #f5e9e0;
  line-height: 1.6;
}

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

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

.footer-section ul li a {
  color: #f5e9e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-brown);
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--brown-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-brown);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #c97a44;
  color: #f5e9e0;
}

/* 404 Page */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-brown) 0%,
    var(--accent-brown) 100%
  );
  color: white;
}

.error-content h1 {
  font-size: 6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.error-content h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.error-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-placeholder {
    width: 200px;
    height: 200px;
    font-size: 3rem;
  }

  .about-content {
    max-width: 100%;
    padding: 0 1rem;
  }

  .contact-content {
    max-width: 100%;
    padding: 0 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .error-content h1 {
    font-size: 4rem;
  }

  .error-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

.site-logo {
  height: 96px;
  width: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  background: #fff;
  padding: 2px;
}

.resources-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(156, 79, 27, 0.06);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}

.resources-section h2 {
  color: var(--primary-brown);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.resources-section p {
  color: var(--text-dark);
  font-size: 1.1rem;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-list li {
  background: var(--brown-light);
  border-left: 6px solid var(--primary-brown);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem 1.25rem 2.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(156, 79, 27, 0.06);
  transition: box-shadow 0.2s;
}

.guide-list li:hover {
  box-shadow: 0 6px 18px rgba(156, 79, 27, 0.13);
}

.guide-list li::before {
  content: "\f05a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-brown);
  position: absolute;
  left: 1rem;
  top: 1.4rem;
  font-size: 1.2rem;
}

.guide-list strong {
  color: var(--primary-brown);
  font-size: 1.08em;
}

/* Add spacing for the Range Mate button */
.resources-section p:has(.btn) {
  margin-top: 1.5rem;
}

/* First Login Page Styles */
.intro-section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--brown-light);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.steps-container {
  margin-bottom: 2.5rem;
}

.setup-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.step-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: rgba(50, 50, 93, 0.05) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.1) 0px 1px 3px -1px;
  border-left: 4px solid var(--primary-brown);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  transform: translateY(-2px);
  box-shadow: rgba(50, 50, 93, 0.15) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.15) 0px 3px 7px -3px;
}

.step-header {
  background: linear-gradient(
    135deg,
    var(--primary-brown) 0%,
    var(--accent-brown) 100%
  );
  color: white;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-number {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.step-content {
  padding: 1.5rem;
}

.step-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.step-content p:last-of-type {
  margin-bottom: 0;
}

.important-note {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.important-note i {
  color: #856404;
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.important-note span {
  color: #856404;
  font-weight: 500;
  line-height: 1.5;
}

.info-note {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-note i {
  color: #0c5460;
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.info-note span {
  color: #0c5460;
  font-weight: 500;
  line-height: 1.5;
}

.back-button-container {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--brown-light);
}

.back-button-container .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  font-size: 1rem;
}

/* Step image styling for guide cards */
.step-image {
  margin: 1.25rem 0 1.5rem 0;
  text-align: center;
}

.step-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: rgba(17, 12, 46, 0.08) 0px 0px 20px 0px;
  border: 1px solid rgba(156, 79, 27, 0.08);
}

.step-caption {
  font-size: 0.98rem;
  color: #555;
  margin-top: 0.5rem;
  text-align: center;
}

/* Responsive adjustments for steps */
@media (max-width: 768px) {
  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .step-header h3 {
    font-size: 1.1rem;
  }

  .step-content {
    padding: 1.25rem;
  }

  .important-note,
  .info-note {
    padding: 0.75rem;
  }
}
