/* --- CSS VARIABLES & RESET --- */
:root {
  /* Brand Gradient Colors extracted from Logo */
  --brand-orange: #ff5e4d;
  --brand-purple: #8b45fa;
  --brand-gradient: linear-gradient(135deg, #ff5e4d 0%, #8b45fa 100%);

  --primary: #8b45fa;
  /* Main action color */
  --secondary: #2b2d42;
  /* Dark Text/Headings */
  --text-dark: #1a1a1a;
  --text-gray: #555555;
  --bg-light: #f9fafb;
  --white: #ffffff;

  --shadow: 0 10px 30px rgba(139, 69, 250, 0.15);
  /* Purple-tinted shadow */
  --radius: 12px;
  --container-width: 1200px;
}

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  color: var(--secondary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- UTILITY CLASSES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Gradient Button Style */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  /* Pill shape matches logo curves */
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 94, 77, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 69, 250, 0.4);
}

.btn-outline {
  border: 2px solid var(--brand-purple);
  color: var(--brand-purple);
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand-purple);
  color: var(--white);
}

.section-padding {
  padding: 100px 0;
}

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

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Utility for gradient text */
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  transition: 0.3s ease;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}

header.scrolled {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #f0f0f0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* Logo Styling */
.header-logo img {
  height: 50px;
  /* Adjust based on visual preference */
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--brand-purple);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 90vh;
  min-height: 700px;
  /* Background: Dark overlay + Image */
  background: linear-gradient(rgba(20, 20, 30, 0.5), rgba(20, 20, 30, 0.6)),
    url("https://images.unsplash.com/photo-1565123409695-7b5ef63a2efb?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: 400;
}

/* Search Bar Component */
.search-box {
  background: var(--white);
  padding: 12px;
  border-radius: 50px;
  /* Pill shape container */
  display: flex;
  gap: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
  max-width: 850px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group {
  flex: 1;
  min-width: 180px;
  position: relative;
  border-right: 1px solid #eee;
}

.input-group:last-of-type {
  border-right: none;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  outline: none;
  color: var(--text-dark);
}

/* Custom Date Input Styling */
.input-group input[type="date"] {
  color: var(--text-gray);
}

.search-btn {
  padding: 12px 40px;
  font-size: 1rem;
  border-radius: 40px;
  margin: 4px;
  /* Slight spacing from container edge */
}

/* --- HOW IT WORKS --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.step-card {
  text-align: center;
  padding: 20px;
  position: relative;
}

/* Connector Line (Desktop Only) */
.step-card::after {
  content: "";
  position: absolute;
  top: 50px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #eee;
  z-index: -1;
  display: none;
  /* Complex to implement perfectly in pure CSS, hiding for clean MVP */
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 25px;
  position: relative;
  z-index: 2;
}

/* Use gradient text for icons */
.step-icon i {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* --- WHY CHOOSE --- */
.bg-gray {
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-item {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s;
  border: 1px solid transparent;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 69, 250, 0.2);
}

.feature-item i {
  color: var(--brand-purple);
  font-size: 1.5rem;
  margin-top: 4px;
}

.feature-text h4 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--text-gray);
}

.cta-block {
  margin-top: 60px;
  text-align: center;
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid #f0f0f0;
  padding: 40px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow);
}

.quote-icon {
  font-size: 3rem;
  color: rgba(139, 69, 250, 0.05);
  /* Very subtle brand color */
  position: absolute;
  top: 20px;
  right: 30px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-gray);
  margin-bottom: 25px;
  display: block;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-avatar {
  width: 50px;
  height: 50px;
  /* Gradient background for avatar placeholders */
  background: var(--brand-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
}

.client-details h5 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.client-details span {
  font-size: 0.85rem;
  color: var(--brand-purple);
  font-weight: 500;
}

/* --- FOOTER --- */
footer {
  background: var(--white);
  color: var(--secondary);
  padding: 80px 0 30px;
  border-top: 1px solid #eee;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

/* Footer Logo */
.footer-logo-img {
  height: 40px;
  /* Wordmark height */
  margin-bottom: 15px;
}

.footer-col h4 {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--brand-purple);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: 0.3s;
}

.social-icons a:hover {
  background: var(--brand-gradient);
  color: var(--white);
}

.copyright {
  border-top: 1px solid #eee;
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-gray);
}

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

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: none;
    border-bottom: 1px solid #eee;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  /* Stack Search Bar */
  .search-box {
    flex-direction: column;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
  }

  .input-group {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .input-group:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
  }

  .search-btn {
    width: 100%;
    margin: 0;
  }

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