@import url('../fonts/poppins.css');

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Prevent text overflow globally */
p, h1, h2, h3, h4, h5, h6, span, div, li {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Colors */
:root {
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-500: #22c55e;
  --primary-600: #16a34a;
  --primary-700: #15803d;
  
  --contrast-500: #3b82f6;
  --contrast-600: #2563eb;
  --contrast-700: #1d4ed8;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

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

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-between {
  justify-content: space-between;
}

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

.min-h-screen {
  min-height: 100vh;
}

.flex-1 {
  flex: 1;
}

/* Header Styles */
.header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10001;
}

.header-nav {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  text-decoration: none;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s;
}

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

.nav-link.active {
  color: var(--primary-600);
  font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 10002;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 0.5rem 0;
  position: relative;
  z-index: 10002;
  background: white;
}

.mobile-nav.open {
  display: block;
}

/* Desktop: Ensure mobile nav is always hidden */
@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 2rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  background: var(--gray-50);
  color: var(--primary-600);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(59, 130, 246, 0.1) 100%),
              url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

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

.hero-highlight {
  background: linear-gradient(135deg, var(--primary-600), var(--contrast-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--contrast-600));
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
  color: var(--gray-700);
  background: transparent;
}

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

.btn-white {
  background: white;
  color: #2d5862;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

/* Button Shine Effect */
.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn:hover .btn-shine {
  left: 100%;
}

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

.section-gray {
  background: var(--gray-50);
}

.section-dark {
  background: var(--gray-900);
  color: white;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 3rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.card-icon.blue {
  background: linear-gradient(135deg, var(--contrast-500), var(--contrast-600));
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.card-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.card-features li::before {
  content: "✓";
  color: var(--primary-600);
  font-weight: bold;
  margin-right: 0.5rem;
}

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

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

.footer-section h3 {
  font-size: 1.25rem;
  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 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Image Styles */
.image-section img {
  transition: transform 0.3s ease;
}

.image-section img:hover {
  transform: scale(1.02);
}

/* Process Timeline Styles */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  position: relative;
  margin-bottom: 4rem;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-line {
  position: absolute;
  left: 50%;
  top: 5rem;
  width: 2px;
  height: 4rem;
  background: linear-gradient(to bottom, var(--primary-300), var(--contrast-300));
  transform: translateX(-50%);
  z-index: 1;
}

.process-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
}

.process-step.reverse .process-content {
  flex-direction: row-reverse;
}

.process-number {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), var(--contrast-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
  z-index: 2;
  position: relative;
}

.process-card {
  flex: 1;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.process-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.process-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.process-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.process-feature {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  /* Compact header on mobile */
  .header-nav {
    height: 3.5rem;
    padding: 0 1rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Process Timeline Mobile */
  .process-content {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .process-step.reverse .process-content {
    flex-direction: column !important;
  }

  .process-line {
    left: 2rem;
    transform: none;
  }

  .process-features {
    justify-content: center;
  }
}

/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-900);
  background: white;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

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

/* Contact Info Cards */
.contact-info-card {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--gray-200);
}

.why-choose-card {
  background: linear-gradient(135deg, var(--primary-50) 0%, white 50%, #eff6ff 100%);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--gray-200);
}

/* Mobile Form Styles */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 1rem !important;
    overflow-x: hidden !important;
  }

  .section {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Fix text overflow */
  p, h1, h2, h3, h4, h5, h6, li, a {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  /* Ensure divs with max-width don't overflow on mobile */
  div[style*="max-width: 800px"],
  div[style*="max-width: 700px"],
  div[style*="max-width: 600px"],
  div[style*="max-width: 500px"],
  p[style*="max-width: 800px"],
  p[style*="max-width: 700px"],
  p[style*="max-width: 600px"],
  p[style*="max-width: 500px"] {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Fix inline styles that might cause overflow */
  [style*="padding: 3rem"] {
    padding: 1.5rem 1rem !important;
  }

  [style*="padding: 2.5rem"] {
    padding: 1.5rem 1rem !important;
  }

  [style*="padding: 2rem"] {
    padding: 1.5rem 1rem !important;
  }

  /* Override fixed widths on decorative elements */
  div[style*="width: 200px"] {
    width: 100px !important;
  }

  div[style*="width: 150px"] {
    width: 75px !important;
  }

  div[style*="width: 80px"] {
    width: 60px !important;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Global Mobile Typography */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }

  h3 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  h4 {
    font-size: 1.25rem !important;
  }

  h5 {
    font-size: 1.125rem !important;
  }

  p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Grid Systems */
  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Cards */
  .card {
    padding: 1.5rem !important;
  }

  .card h3 {
    font-size: 1.25rem !important;
  }

  .card p {
    font-size: 0.95rem !important;
  }

  /* Buttons */
  .btn {
    width: 100%;
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
    text-align: center;
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
  }

  /* Hero Section */
  .hero {
    padding: 3rem 1rem !important;
    min-height: auto !important;
    background-attachment: scroll !important;
  }

  .hero-content {
    padding: 0 1rem !important;
    max-width: 100% !important;
  }

  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-buttons {
    gap: 1rem !important;
  }

  /* Sections */
  .section {
    padding: 2rem 0 !important;
  }

  .section-title {
    font-size: 1.75rem !important;
  }

  .section-subtitle {
    font-size: 1rem !important;
  }

  /* Lists */
  ul, ol {
    padding-left: 1.25rem !important;
  }

  li {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Tables */
  table {
    font-size: 0.875rem !important;
  }

  /* Images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Logo in header - appropriate size for mobile */
  .header .logo img,
  .header-nav .logo img {
    height: 1.75rem !important;
    width: auto !important;
    max-width: 120px !important;
  }

  /* Mobile navigation links - more compact */
  .mobile-nav-link {
    padding: 0.65rem 1rem !important;
    font-size: 0.95rem !important;
  }

  .mobile-sub-link {
    padding-left: 1.5rem !important;
    font-size: 0.875rem !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  /* Navigation Mobile - Only show when open */
  .mobile-nav.open {
    display: block !important;
  }

  .desktop-nav {
    display: none !important;
  }

  /* Process Steps */
  .process-step {
    padding: 1.5rem !important;
  }

  .process-number {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 1.25rem !important;
  }

  /* Stats */
  .stat-card {
    padding: 1.5rem !important;
  }

  .stat-number {
    font-size: 2rem !important;
  }

  .stat-label {
    font-size: 0.9rem !important;
  }

  /* Contact Info */
  .contact-info-card,
  .why-choose-card {
    padding: 1.5rem !important;
  }

  /* Spacing Utilities */
  .space-y-8 > * + * {
    margin-top: 2rem !important;
  }

  .space-y-6 > * + * {
    margin-top: 1.5rem !important;
  }

  .space-y-4 > * + * {
    margin-top: 1rem !important;
  }

  /* Flex Utilities */
  .flex {
    flex-direction: column !important;
  }

  .flex.items-center {
    align-items: flex-start !important;
  }

  /* Gap Utilities */
  .gap-8 {
    gap: 2rem !important;
  }

  .gap-6 {
    gap: 1.5rem !important;
  }

  .gap-4 {
    gap: 1rem !important;
  }
}

/* Extra optimizations for portrait mode on mobile */
@media (max-width: 768px) and (orientation: portrait) {
  .hero {
    padding: 2.5rem 1rem !important;
  }

  .hero-title {
    font-size: 1.65rem !important;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
  }

  /* Ensure banners don't exceed viewport */
  .cookie-banner {
    max-height: 35vh !important;
  }

  .auto-ad-banner {
    max-height: 80vh !important;
  }
}