/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  --primary-blue: #2563eb;
  --primary-teal: #14b8a6;
  --dark-blue: #1e3a8a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===========================
   Utility Classes
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: #0f9488;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-teal);
  border: 2px solid var(--primary-teal);
}

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

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* ===========================
   Header & Navigation
   =========================== */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--gray-700);
  font-weight: 500;
  position: relative;
}

nav a:hover {
  color: var(--primary-teal);
}

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

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gray-800);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===========================
   Footer
   =========================== */
footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 60px 0 20px;
}

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

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

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

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

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

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-teal) 100%);
  color: var(--white);
  padding: 120px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   Features Grid
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

/* ===========================
   Timeline
   =========================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

/* ===========================
   Pricing Cards
   =========================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  border: 2px solid var(--gray-200);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary-teal);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--primary-teal);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.pricing-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-teal);
}

.pricing-price span {
  font-size: 1.25rem;
  color: var(--gray-600);
}

.pricing-features {
  list-style: none;
  padding: 1.5rem 0;
}

.pricing-features li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ===========================
   Form Styles
   =========================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

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

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* ===========================
   Cookie Banner
   =========================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-900);
  color: var(--white);
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

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

/* ===========================
   Back to Top Button
   =========================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-teal);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background: var(--dark-blue);
  transform: translateY(-5px);
}

/* ===========================
   Accordion (FAQ)
   =========================== */
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 1.25rem;
  background: var(--gray-50);
  text-align: left;
  font-weight: 600;
  font-size: 1.125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--gray-100);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 1.25rem;
  color: var(--gray-700);
}

/* ===========================
   Table Styles
   =========================== */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-900);
}

table tr:hover {
  background: var(--gray-50);
}

/* ===========================
   Integration Tiles
   =========================== */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.integration-tile {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.integration-tile:hover {
  border-color: var(--primary-teal);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.integration-tile h3 {
  margin-top: 1rem;
  color: var(--gray-900);
}

/* ===========================
   Case Study Cards
   =========================== */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.case-study-card {
  border-left: 4px solid var(--primary-teal);
}

.case-study-card h3 {
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.case-study-section {
  margin-bottom: 1.5rem;
}

.case-study-section h4 {
  color: var(--primary-teal);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* ===========================
   Values Grid
   =========================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

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

.value-card h3 {
  color: var(--primary-teal);
  margin-bottom: 0.5rem;
}

/* ===========================
   Job Cards
   =========================== */
.jobs-grid {
  display: grid;
  gap: 1.5rem;
}

.job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.job-info h3 {
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.job-meta {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* ===========================
   Map Container
   =========================== */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
  }

  nav ul li {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
  }

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

  .hero p {
    font-size: 1.25rem;
  }

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

  .pricing-card.featured {
    transform: scale(1);
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.875rem;
  }
}
