/* ============================================
   Color System - Blue-Purple Palette
   ============================================ */
:root {
  /* Primary Colors - Blue-Purple Palette */
  --color-primary-dark: #1a237e;
  --color-primary: #3949ab;
  --color-primary-light: #5c6bc0;
  
  /* Purple Accents */
  --color-purple-dark: #673ab7;
  --color-purple: #7e57c2;
  --color-purple-light: #9575cd;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-light-gray: #f5f5f5;
  --color-gray: #757575;
  --color-dark-gray: #212121;
  
  /* Accent Colors */
  --color-accent: #00acc1;
  --color-accent-light: #64b5f6;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3949ab 0%, #7e57c2 100%);
  --gradient-hero: linear-gradient(135deg, #1a237e 0%, #673ab7 100%);
  --gradient-light: linear-gradient(135deg, #5c6bc0 0%, #9575cd 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.18);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-dark-gray);
  background-color: var(--color-white);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-gray);
}

a {
  text-decoration: none;
  color: var(--color-purple);
  transition: color 0.3s ease;
}

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

/* ============================================
   Header & Navigation
   ============================================ */
header {
  background: var(--color-primary-dark);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  flex: 1;
  min-width: 0;
}

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

.nav-menu a {
  color: var(--color-white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: transparent;
  border: none;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: var(--gradient-hero);
  color: var(--color-white);
  padding: 6rem 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  color: var(--color-white);
}

.hero-image {
  position: relative;
  z-index: 2;
}

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

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

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

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

/* ============================================
   Container & Sections
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-top: 4px solid var(--color-primary);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-purple);
}

.card-icon {
  display: none;
}

.card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 1.5rem;
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-left: 5px solid var(--color-purple);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-left-color: var(--color-primary);
}

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

.service-card ul {
  list-style: none;
  margin-top: 1rem;
}

.service-card ul li {
  padding: 0.5rem 0;
  color: var(--color-gray);
  padding-left: 1.5rem;
  position: relative;
}

.service-card ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-purple);
  font-weight: bold;
}

/* ============================================
   Cases/Strategies Section
   ============================================ */
.case-item {
  background: var(--color-light-gray);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--color-primary);
}

.case-item h3 {
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.case-item .case-meta {
  color: var(--color-purple);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  background: var(--gradient-light);
  color: var(--color-white);
  padding: 2rem;
  border-radius: 10px;
}

.contact-info h3 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.contact-info h4 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--color-white);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.contact-info a:hover {
  opacity: 0.8;
  color: var(--color-white);
}

.contact-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section {
  min-width: 200px;
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 2px solid var(--color-purple);
  padding-bottom: 0.5rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.8rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.6rem;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  padding-left: 0.5rem;
  position: relative;
}

.footer-section a:before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--color-purple-light);
}

.footer-section a:hover {
  color: var(--color-white);
  padding-left: 1rem;
}

.footer-section a:hover:before {
  opacity: 1;
}

.footer-section .footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  border-bottom: none;
  padding-bottom: 0;
}

.footer-section .footer-description {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item strong {
  color: var(--color-white);
  min-width: 80px;
  display: inline-block;
  margin-right: 0.5rem;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-contact-item a:hover {
  color: var(--color-white);
  padding-left: 0;
}

.footer-contact-item a:before {
  display: none;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: all 0.3s ease;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-social a:before {
  display: none;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  padding-left: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.1rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-right: 1rem;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-primary-dark);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow-y: auto;
  }

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

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu a {
    display: block;
    padding: 1rem;
    width: 100%;
    border-radius: 0;
  }

  .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }

  /* Overlay when menu is open */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.active {
    display: block;
    opacity: 1;
  }

  .hero {
    padding: 3rem 1rem;
  }

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

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

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

  .hero h1 {
    font-size: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

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

  .contact-container {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
  }

  h3 {
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .section-title h2 {
    font-size: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .section {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-bottom-links {
    margin-top: 1rem;
  }

  /* About page responsive */
  .why-choose-us-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .card div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Services section responsive */
  .services-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .services-solutions-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .benefits-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Tables responsive */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    margin: 1rem 0;
  }

  table thead {
    display: table-header-group;
  }

  table tbody {
    display: table-row-group;
  }

  table tr {
    display: table-row;
  }

  table th,
  table td {
    display: table-cell;
    min-width: 120px;
    white-space: normal;
    word-wrap: break-word;
  }

  table th {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  table td {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  /* Legal content responsive */
  .legal-content {
    padding: 1rem !important;
    max-width: 100% !important;
  }

  .legal-content h2 {
    font-size: 1.5rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
  }

  .legal-content h3 {
    font-size: 1.2rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .legal-content table {
    font-size: 0.9rem;
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legal-content table thead {
    display: table-header-group;
  }

  .legal-content table tbody {
    display: table-row-group;
  }

  .legal-content table tr {
    display: table-row;
  }

  .legal-content table th,
  .legal-content table td {
    padding: 0.5rem;
    font-size: 0.85rem;
    min-width: 100px;
    word-wrap: break-word;
  }
}

/* Additional styles for legal content tables */
.legal-content {
  overflow-x: auto;
}

.legal-content table {
  min-width: 100%;
}

@media (max-width: 480px) {
  nav {
    padding: 0 0.75rem;
  }

  .logo {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  h3 {
    font-size: 1.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .section-title h2 {
    font-size: 1.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .container {
    padding: 0 0.75rem;
  }

  .legal-content {
    padding: 0.75rem !important;
  }

  .legal-content h2 {
    font-size: 1.3rem !important;
  }

  .legal-content h3 {
    font-size: 1.1rem !important;
  }

  .card {
    padding: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .section-title {
    padding: 0 0.5rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }
}

/* Ensure all headings are visible on mobile */
@media (max-width: 768px) {
  .card h3,
  .service-card h3,
  .case-item h3 {
    font-size: 1.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  .card h3,
  .service-card h3,
  .case-item h3 {
    font-size: 1.1rem;
  }
}

