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

:root {
  /* Colors matching Ambar logo navy blue theme */
  --background: #ffffff;
  --foreground: #1e3a5f;
  --card: #f8fafc;
  --card-foreground: #1e3a5f;
  --primary: #1e3a5f;
  --primary-foreground: #ffffff;
  --secondary: #2563eb;
  --secondary-foreground: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f59e0b;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --radius: 0.75rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem; /* Reduced padding for mobile */
}

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-check {
  color: var(--secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.btn-full {
  width: 100%;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover {
  background-color: #d97706;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: #1d4ed8;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid rgba(30, 58, 95, 0.2);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-outline-secondary {
  background-color: transparent;
  color: var(--secondary);
  border: 2px solid rgba(37, 99, 235, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

.btn-outline-secondary:hover {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.95); /* Increased opacity for better mobile visibility */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem; /* Reduced padding for mobile */
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Reduced gap for mobile */
  text-decoration: none; /* Added for clickable logo */
}

.logo-img {
  height: 2.5rem; /* Reduced size for mobile */
  width: auto;
}

.logo-text {
  font-size: 1.125rem; /* Reduced font size for mobile */
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(30, 58, 95, 0.8);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 1rem;
}

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

.nav-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.email-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-desktop {
  display: none;
}

.btn-mobile-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon,
.close-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-menu {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.mobile-nav {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  color: rgba(30, 58, 95, 0.8);
  font-weight: 500;
  padding: 0.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 1rem;
}

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

.mobile-contact {
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.mobile-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

.mobile-email:hover {
  color: var(--primary);
}

.btn-mobile-full {
  width: 100%;
  margin-top: 1rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, rgba(30, 58, 95, 0.05) 100%);
  padding: 3rem 0 4rem; /* Reduced padding for mobile */
}

.hero-grid {
  display: grid;
  gap: 2rem; /* Reduced gap for mobile */
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Reduced gap for mobile */
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Reduced gap for mobile */
}

.hero-title {
  font-size: 2rem; /* Reduced font size for mobile */
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.hero-title-accent {
  display: block;
  color: var(--secondary);
}

.hero-description {
  font-size: 1rem; /* Reduced font size for mobile */
  color: var(--muted-foreground);
  line-height: 1.6;
}

.language-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(37, 99, 235, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  width: fit-content;
}

.language-badge-large {
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
}

.language-badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
}

.language-badge-large .language-badge-text {
  font-size: 1rem;
}

.hero-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem; /* Reduced gap for mobile */
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-item span {
  color: rgba(30, 58, 95, 0.8);
  font-weight: 500;
  font-size: 0.875rem; /* Added smaller font for mobile */
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Reduced gap for mobile */
  padding-top: 1rem;
}

.hero-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.1), transparent);
}

/* Services Section */
.services-section {
  padding: 3rem 0; /* Reduced padding for mobile */
  background-color: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem; /* Reduced margin for mobile */
}

.section-title {
  font-size: 1.875rem; /* Reduced font size for mobile */
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-description {
  font-size: 1rem; /* Reduced font size for mobile */
  color: var(--muted-foreground);
  line-height: 1.6;
  padding: 0 1rem; /* Added padding for mobile */
}

.services-grid {
  display: grid;
  gap: 1.5rem; /* Reduced gap for mobile */
}

.service-card {
  background-color: rgba(248, 250, 252, 0.5);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.service-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.2), transparent);
}

.service-content {
  padding: 1.5rem; /* Reduced padding for mobile */
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-icon {
  padding: 0.75rem;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--secondary);
}

.service-title {
  font-size: 1.25rem; /* Reduced font size for mobile */
  color: var(--primary);
  font-weight: 600;
}

.service-description {
  font-size: 0.9375rem; /* Reduced font size for mobile */
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.service-details {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(37, 99, 235, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.details-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.details-list li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--secondary);
  border-radius: 9999px;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.icon-chevron {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.icon-chevron.rotated {
  transform: rotate(180deg);
}

/* Commitment Section */
.commitment-section {
  padding: 3rem 0; /* Reduced padding for mobile */
  background-color: rgba(241, 245, 249, 0.3);
}

.commitment-wrapper {
  max-width: 72rem;
  margin: 0 auto;
}

.commitment-grid {
  display: grid;
  gap: 2rem; /* Reduced gap for mobile */
  align-items: flex-start; /* Changed from center to flex-start for better mobile layout */
  margin-top: 2rem; /* Reduced margin for mobile */
  grid-template-columns: 1fr; /* Explicitly set single column for mobile */
}

.commitment-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Reduced gap for mobile */
  order: 1; /* Ensure content comes first */
}

.commitment-text {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  padding: 1.5rem; /* Reduced padding for mobile */
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.commitment-text p {
  font-size: 0.9375rem; /* Reduced font size for better mobile fit */
  line-height: 1.7; /* Increased line height for better readability */
  color: rgba(30, 58, 95, 0.9);
  word-wrap: break-word; /* Added word wrapping */
  overflow-wrap: break-word; /* Added overflow wrapping */
}

.commitment-features {
  display: grid;
  grid-template-columns: 1fr; /* Single column for mobile */
  gap: 1rem; /* Reduced gap for mobile */
}

.feature-card {
  display: flex;
  align-items: flex-start; /* Changed to flex-start for better alignment */
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.3);
}

.feature-icon {
  padding: 0.75rem;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.feature-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--secondary);
}

.feature-title {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem; /* Slightly smaller for mobile */
}

.feature-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem; /* Add small margin for spacing */
}

.commitment-image {
  position: relative;
  order: 2; /* Ensure image comes second */
}

/* Quote Section */
.quote-section {
  padding: 3rem 0; /* Reduced padding for mobile */
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.quote-wrapper {
  max-width: 42rem;
  margin: 0 auto;
}

.quote-card {
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  overflow: hidden;
  margin: 0 0.5rem; /* Added margin for mobile */
}

.quote-header {
  text-align: center;
  background: linear-gradient(to right, rgba(37, 99, 235, 0.05), rgba(30, 58, 95, 0.05));
  padding: 2rem 1rem; /* Reduced padding for mobile */
}

.quote-title {
  font-size: 1.5rem; /* Reduced font size for mobile */
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quote-subtitle {
  color: var(--muted-foreground);
  font-size: 0.9375rem; /* Added font size for mobile */
}

.quote-content {
  padding: 1.5rem; /* Reduced padding for mobile */
}

.form-row {
  display: grid;
  gap: 1rem; /* Reduced gap for mobile */
  margin-bottom: 1rem; /* Reduced margin for mobile */
}

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

.form-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.form-input,
.form-select {
  border: 2px solid rgba(226, 232, 240, 0.5);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--secondary);
}

.form-note {
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(37, 99, 235, 0.05);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

.success-card {
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.success-content {
  padding: 3rem;
  text-align: center;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  color: #10b981;
  margin: 0 auto 1.5rem;
}

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

.success-text {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 0 2rem; /* Reduced padding for mobile */
}

.footer-grid {
  display: grid;
  gap: 2rem; /* Reduced gap for mobile */
  margin-bottom: 2rem; /* Reduced margin for mobile */
}

.footer-brand {
  grid-column: span 1; /* Single column for mobile */
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 2.5rem;
  width: auto;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 1rem; /* Reduced font size for mobile */
}

.footer-language {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  margin-top: 1.5rem;
  font-weight: 500;
}

.footer-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-link-item .icon {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-link-item a,
.footer-link-item span {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link-item a:hover {
  color: var(--accent);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-list-link {
  color: rgba(255, 255, 255, 0.8);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
  font-size: 1rem;
  padding: 0;
}

.footer-list-link:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-legal-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--accent);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Responsive Design */
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem; /* Increased padding for tablets */
  }

  .logo-img {
    height: 3rem; /* Larger logo for tablets */
  }

  .logo-text {
    font-size: 1.5rem; /* Larger text for tablets */
  }

  .hero-title {
    font-size: 2.5rem; /* Larger title for tablets */
  }

  .hero-description {
    font-size: 1.125rem; /* Larger description for tablets */
  }

  .hero-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-buttons {
    flex-direction: row;
  }

  .commitment-features {
    grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
  }

  /* Added larger font for commitment text on tablets */
  .commitment-text p {
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2.25rem; /* Larger title for tablets */
  }
}

@media (min-width: 768px) {
  .header-content {
    padding: 1.5rem; /* Increased padding for desktop */
  }

  .hero-section {
    padding: 4rem 0 5rem; /* Increased padding for desktop */
  }

  .services-section {
    padding: 4rem 0; /* Increased padding for desktop */
  }

  .section-header {
    margin-bottom: 3.5rem; /* Increased margin for desktop */
  }

  .commitment-section {
    padding: 4rem 0; /* Increased padding for desktop */
  }

  .quote-section {
    padding: 4rem 0; /* Increased padding for desktop */
  }

  .quote-card {
    margin: 0; /* Removed margin for desktop */
  }

  .quote-header {
    padding: 3rem 2rem; /* Increased padding for desktop */
  }

  .quote-content {
    padding: 2rem; /* Increased padding for desktop */
  }

  .nav-desktop {
    display: flex;
  }

  .btn-desktop {
    display: inline-flex;
  }

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

  .footer {
    padding: 4rem 0; /* Increased padding for desktop */
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 6rem 0 8rem; /* Increased padding for large screens */
  }

  .services-section {
    padding: 6rem 0; /* Increased padding for large screens */
  }

  .section-header {
    margin-bottom: 5rem; /* Increased margin for large screens */
  }

  .commitment-section {
    padding: 6rem 0; /* Increased padding for large screens */
  }

  .commitment-grid {
    margin-top: 4rem; /* Increased margin for large screens */
    grid-template-columns: repeat(2, 1fr); /* Two columns for desktop */
  }

  .quote-section {
    padding: 6rem 0; /* Increased padding for large screens */
  }

  .hero-title {
    font-size: 3.5rem; /* Larger title for large screens */
  }

  .hero-description {
    font-size: 1.25rem; /* Larger description for large screens */
  }

  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2.5rem; /* Larger title for large screens */
  }

  .section-description {
    font-size: 1.125rem; /* Larger description for large screens */
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .commitment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 4.5rem; /* Extra large title for extra large screens */
  }

  .section-title {
    font-size: 3rem; /* Extra large title for extra large screens */
  }

  .section-description {
    font-size: 1.25rem;
  }

  .commitment-text p {
    font-size: 1.125rem;
  }

  .footer-description {
    font-size: 1.125rem;
  }
}
