/* Base theme */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(210 80% 15%);
  --primary: hsl(210 80% 20%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(210 20% 96%);
  --muted: hsl(210 15% 45%);
  --accent: #7FCB47; /* Lighter green for better contrast on blue background */
  --accent-foreground: hsl(0 0% 100%);
  --radius: 12px;
  --shadow-soft: 0 20px 40px rgba(15, 31, 45, 0.08);
  --shadow-card: 0 12px 30px rgba(15, 31, 45, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --hero-overlay: rgba(13, 51, 92, 0.68);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--foreground);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--muted);
}

/* Generic reveal animations (approximate framer-motion fade/slide) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal,
.reveal-visible {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

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

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

.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(15, 31, 45, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 12px 30px rgba(15, 31, 45, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.logo {
  height: 60px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.main-nav .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link {
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
}

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

.phone-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.phone-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.contact-mobile {
  display: none;
}

.btn {
  border-radius: 6px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
  background: rgba(13, 51, 92, 0.08);
  color: var(--foreground);
}

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

.btn-compact {
  padding: 0.55rem 1.3rem;
  font-size: 0.95rem;
}

.btn.accent:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 35px rgba(127, 184, 0, 0.35);
}

.btn.pill {
  padding: 0.85rem 2.75rem;
  font-size: 1rem;
  border-radius: 999px;
}

.btn:focus-visible,
.tab-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Hero */
/* Hero Section - Simplified */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(60vh - 72px);
}

.hero-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  color: #fff;
  margin: 60px 0;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
  color: #fff;
}

.hero-content p {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.4;
  max-width: 820px;
  margin-inline: auto;
}

/* Sections */
.section {
  padding: 3rem 0 5rem 0;
  background: var(--background);
  scroll-margin-top: 90px; /* Account for fixed header (72px) + extra spacing */
}

.section.alt {
  background: var(--secondary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 850px;
  margin: 0 auto 3rem;
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 500;
}


/* Why Us */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.benefit-card h3 {
  font-size: 1.17rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.benefit-card p {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(127, 184, 0, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  transition: transform 0.6s ease;
}

.icon-circle svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  stroke-width: 2;
}

.benefit-card:hover .icon-circle {
  transform: rotate(360deg);
}

.icon-circle.outline {
  border: 2px solid rgba(127, 184, 0, 0.3);
  background: transparent;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.stat-card {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.stat-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

/* Services */
.card-grid {
  display: grid;
  gap: 2rem;
}

.card-grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Services Modern Layout */
.services-modern {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.service-modern-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13, 51, 92, 0.08);
  transition: var(--transition);
  align-items: stretch;
}

.service-modern-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(13, 51, 92, 0.15);
}

.service-modern-reverse {
  grid-template-columns: 1fr 1fr;
}

.service-modern-reverse .service-modern-content {
  order: 1;
}

.service-modern-reverse .service-modern-image {
  order: 2;
}

.service-modern-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.service-modern-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-modern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 51, 92, 0.4) 0%, rgba(13, 51, 92, 0.1) 100%);
  z-index: 1;
}

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

.service-modern-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  position: relative;
}

.service-modern-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
  justify-content: flex-start;
  width: 100%;
}

.service-modern-header .icon-circle {
  margin: 0;
  flex-shrink: 0;
}

.service-modern-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  line-height: 1.2;
  text-align: left;
  width: 100%;
}

.service-modern-description {
  font-size: 1.3rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  font-weight: 500;
  text-align: left;
  width: 100%;
}

.service-modern-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
}

.service-modern-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.service-modern-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.service-modern-card:hover .service-modern-header .icon-circle {
  transform: rotate(360deg);
}

/* Clients */
.client-card {
  border-radius: 18px;
  border: 2px solid transparent;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.client-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
}

.client-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.client-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.client-card:hover .client-media img {
  transform: scale(1.08);
}

.client-body {
  padding: 1.75rem;
}

.client-body h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--foreground);
}

.client-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.client-body ul li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.client-body ul li::before {
  content: "•";
  color: var(--accent);
  font-weight: 700;
}

/* Process */
.tab-controls {
  display: flex;
  gap: 0.5rem;
  margin: 3rem auto 2.5rem;
  max-width: 600px;
  background: rgba(13, 51, 92, 0.06);
  padding: 0.5rem;
  border-radius: 12px;
  justify-content: center;
}

.tab-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--foreground);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
}

.tab-btn:hover {
  color: var(--primary);
  background: rgba(13, 51, 92, 0.08);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 2px 8px rgba(13, 51, 92, 0.15);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Modern Stepper Design - Horizontal Scrollable */
.process-stepper {
  width: 100%;
  margin: 0 auto;
}

.stepper-progress {
  margin-bottom: 2.5rem;
}


.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 10px;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(13, 51, 92, 0.08);
  z-index: 0;
}

.progress-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(13, 51, 92, 0.2);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.progress-step.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-foreground);
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(127, 184, 0, 0.15);
}

.stepper-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem;
  margin: 0 -0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stepper-container::-webkit-scrollbar {
  display: none;
}

.stepper-card {
  min-width: 360px;
  max-width: 420px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 20px;
  padding: 2rem;
  border: 1.5px solid rgba(13, 51, 92, 0.08);
  box-shadow: 0 4px 20px rgba(13, 51, 92, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stepper-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(127, 184, 0, 0.6) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stepper-card:hover::before,
.stepper-card.active::before {
  transform: scaleX(1);
}

.stepper-card:hover,
.stepper-card.active {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(13, 51, 92, 0.12);
  transform: translateY(-4px);
}

.card-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(127, 184, 0, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  opacity: 0.15;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.stepper-card:hover .card-number,
.stepper-card.active .card-number {
  opacity: 1;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--accent);
  background-clip: unset;
  color: var(--accent);
}

.stepper-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.stepper-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.stepper-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(13, 51, 92, 0.15);
  background: #fff;
  color: var(--foreground);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-foreground);
  transform: scale(1.1);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}

.nav-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(13, 51, 92, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent);
  width: 32px;
  border-radius: 5px;
  box-shadow: 0 0 0 3px rgba(127, 184, 0, 0.15);
}

.dot:hover {
  background: rgba(127, 184, 0, 0.6);
}


/* CTA Section */
.cta-section {
  background: rgba(127, 184, 0, 0.12);
  color: var(--foreground);
  padding: 4rem 0;
}

.cta-block {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.cta-block h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.cta-block p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 2.5rem 0 0;
  position: relative;
}

.footer-main {
  position: relative;
  padding-bottom: 1.5rem;
}

.footer-main::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 0.5fr 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

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

.footer-about {
  max-width: 100%;
}

.footer-logo {
  width: 150px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-trust {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.footer-contact h3,
.footer-services h3 {
  margin: 0;
}

.footer-contact {
  gap: 1rem;
}

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

.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-icon.flag-icon {
  width: 32px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

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

.social-link:hover .contact-icon {
  transform: scale(1.1);
}

.footer-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-services-list li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  padding-left: 1rem;
}

.footer-services-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-copyright {
  background: #041f3a;
  padding: 1.5rem 0;
}

.footer-copyright-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-links a:hover {
  color: rgba(255, 255, 255, 1);
}

.footer-links span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  z-index: 60;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--accent-foreground);
  outline-offset: 2px;
}

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

  .contact-mobile {
    display: inline-flex;
    background: var(--accent);
    color: var(--accent-foreground);
  }

  .hero {
    min-height: 60vh;
  }

  .hero-container {
    min-height: calc(60vh - 72px);
  }

  .hero-content {
    max-width: 850px;
    margin: 50px 0;
  }

  .hero-content p {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.4;
  }

  .container {
    padding-inline: clamp(1rem, 3vw, 2rem);
  }

  /* Footer tablet */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0 4rem 0;
  }

  .client-card {
    padding: 1.5rem;
  }

  /* Services modern responsive */
  .service-modern-card {
    grid-template-columns: 1fr;
  }

  /* On mobile, both cards have same layout: image first, then content */
  .service-modern-image {
    min-height: 280px;
    order: 1 !important;
  }

  .service-modern-content {
    order: 2 !important;
    padding: 1.75rem;
  }

  /* Override reverse order on mobile */
  .service-modern-reverse .service-modern-content {
    order: 2 !important;
  }

  .service-modern-reverse .service-modern-image {
    order: 1 !important;
  }

  .service-modern-content h3 {
    font-size: 1.75rem;
  }

  .service-modern-header {
    margin-bottom: 0.875rem;
  }

  .service-modern-description {
    margin-bottom: 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .logo {
    height: 48px;
  }

  .hero {
    min-height: 55vh;
  }

  .hero-container {
    min-height: calc(55vh - 72px);
    padding-inline: clamp(1rem, 3vw, 2rem);
  }

  .hero-content {
    margin: 40px 0;
  }

  .hero-content p {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    line-height: 1.4;
  }

  /* Stepper responsive */
  .tab-controls {
    max-width: 100%;
    padding: 0.4rem;
  }

  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .stepper-card {
    min-width: 280px;
    padding: 1.5rem;
  }

  .card-number {
    font-size: 3rem;
  }

  .stepper-card h3 {
    font-size: 1.15rem;
  }

  .stepper-card p {
    font-size: 0.9rem;
  }

  .stepper-container {
    gap: 1.25rem;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }

  .nav-btn svg {
    width: 18px;
    height: 18px;
  }

  /* CTA Section responsive */
  .cta-section {
    padding: 3rem 0;
  }

  .cta-block {
    max-width: 100%;
  }

  .cta-block h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }

  /* Footer responsive */
  .site-footer {
    padding: 2rem 0 0;
  }

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

  .footer-col h3 {
    font-size: 1.15rem;
  }

  .footer-copyright-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2rem 0 3.5rem 0;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .tab-controls {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.4rem;
  }

  .tab-btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  /* Stepper mobile */
  .stepper-progress {
    margin-bottom: 2rem;
  }

  .progress-step {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .stepper-card {
    min-width: 85vw;
    max-width: 85vw;
    padding: 1.5rem 1.25rem;
  }

  .card-number {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .stepper-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  .stepper-card p {
    font-size: 0.85rem;
  }

  .stepper-container {
    gap: 1rem;
    padding: 1rem 0.25rem;
  }

  .stepper-nav {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
  }

  .nav-btn svg {
    width: 16px;
    height: 16px;
  }

  .nav-dots {
    gap: 0.4rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 24px;
  }

  .benefit-grid,
  .stats-grid,
  .card-grid.three-col {
    grid-template-columns: 1fr;
  }

  /* Services modern mobile */
  .services-modern {
    gap: 2rem;
    margin-top: 2rem;
  }

  .service-modern-content {
    padding: 1.5rem;
  }

  .service-modern-content h3 {
    font-size: 1.5rem;
  }

  .service-modern-header {
    margin-bottom: 0.75rem;
    gap: 0.75rem;
  }

  .service-modern-description {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .service-modern-list {
    gap: 0.6rem;
  }

  .service-modern-list li {
    font-size: 0.9rem;
  }

  .service-modern-image {
    min-height: 220px;
    order: 1 !important;
  }

  .service-modern-content {
    order: 2 !important;
  }

  /* Ensure both cards have same layout on mobile */
  .service-modern-reverse .service-modern-content {
    order: 2 !important;
  }

  .service-modern-reverse .service-modern-image {
    order: 1 !important;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-top: 0;
  }

  .hero {
    min-height: 50vh;
  }

  .hero-container {
    min-height: calc(50vh - 72px);
  }

  .hero-content {
    margin: 30px 0;
  }

  .hero-content h1 {
    line-height: 1.2;
  }

  .hero-content p {
    font-size: clamp(0.9rem, 3vw, 1.05rem);
    line-height: 1.35;
    margin-bottom: 1.5rem;
  }

  /* CTA Section mobile */
  .cta-section {
    padding: 2.5rem 0;
  }

  .cta-block h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.3;
  }

  .cta-block p {
    font-size: 1rem;
  }

  /* Footer mobile */
  .site-footer {
    padding: 2rem 0 0;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .footer-col {
    gap: 0.875rem;
  }

  .footer-logo {
    width: 120px;
    height: 64px;
  }

  .footer-description,
  .footer-trust {
    font-size: 0.9rem;
  }

  .footer-col h3 {
    font-size: 1.1rem;
  }

  .footer-services-list li {
    font-size: 0.9rem;
  }

  .footer-copyright {
    padding: 1.25rem 0;
  }

  .footer-copyright-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-copyright p {
    font-size: 0.85rem;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-links span {
    font-size: 0.85rem;
  }
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Contact Form Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 31, 45, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  background: var(--background);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(15, 31, 45, 0.2);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  color: var(--foreground);
}

.modal-close:hover {
  background: var(--muted);
  color: var(--background);
  transform: rotate(90deg);
}

.modal-close i {
  width: 20px;
  height: 20px;
}

.modal-content {
  padding: 2.5rem;
}

.modal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modal-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.required {
  color: #ef4444;
  font-weight: 700;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--foreground);
  background: var(--background);
  border: 2px solid hsl(210 20% 85%);
  border-radius: calc(var(--radius) - 2px);
  transition: var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(127, 203, 71, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown) {
  border-color: var(--accent);
}

.form-input.error {
  border-color: #ef4444;
  border-width: 2px;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}


.checkbox-group {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin-top: 0.1rem;
  padding: 1.25rem;
  border: 2px solid hsl(210 20% 85%);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  transition: var(--transition);
}

.checkbox-group:hover {
  border-color: var(--accent);
}

.checkbox-group.error {
  border-color: #ef4444;
  border-width: 2px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0;
  border: none;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  flex: 1;
  white-space: nowrap;
}

.checkbox-label:hover .checkbox-text {
  color: var(--accent);
}

.checkbox-label:has(.checkbox-input:checked) .checkbox-text,
.checkbox-label.checked .checkbox-text {
  color: var(--foreground);
  font-weight: 500;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid hsl(210 20% 75%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  background: var(--background);
  position: relative;
}

.checkbox-custom::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 10px;
  border: solid var(--background);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
  top: 2px;
}

.checkbox-input:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
  border-width: 2px;
}

.checkbox-input:checked + .checkbox-custom::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-input:checked ~ .checkbox-text {
  color: var(--foreground);
  font-weight: 500;
}

.checkbox-text {
  font-size: 1rem;
  color: var(--foreground);
  transition: var(--transition);
  user-select: none;
}

.form-error {
  font-size: 0.875rem;
  color: #ef4444;
  min-height: 1.25rem;
  display: block;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.form-submit {
  flex: 1;
  min-width: 140px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
}

.form-cancel {
  flex: 1;
  min-width: 140px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  background: hsl(210 20% 96%);
  color: var(--foreground);
  border: 2px solid hsl(210 20% 90%);
}

.form-cancel:hover {
  background: hsl(210 20% 92%);
  border-color: hsl(210 20% 85%);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    padding: 2rem 1.5rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-subtitle {
    font-size: 0.9375rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-submit,
  .form-cancel {
    width: 100%;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .checkbox-label {
    flex: none;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem 1.25rem;
  }

  .modal-title {
    font-size: 1.375rem;
  }

  .contact-form {
    gap: 1.25rem;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 0.875rem;
    padding: 1rem;
  }

  .checkbox-label {
    flex: none;
    white-space: normal;
  }
}


/* Form Success Message */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  min-height: 400px;
  width: 100%;
  margin: 0 auto;
}

.success-icon-wrapper {
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto;
}

.success-checkmark-circle {
  stroke: var(--accent);
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  stroke-linecap: round;
  stroke-width: 3;
  fill: none;
}

.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 35;
  stroke-dashoffset: 35;
  stroke-linecap: round;
  stroke-width: 3;
  stroke: var(--accent);
  fill: none;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.success-message {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.success-message p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: center;
  width: 100%;
}

.success-message-line1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.4;
}

.success-message-line2 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.5rem;
}

.success-close-btn {
  margin-top: 2.5rem;
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Form fade out transition */
#contactForm {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-subtitle {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Responsive Success Message */
@media (max-width: 768px) {
  .form-success {
    padding: 2.5rem 1.5rem;
    min-height: 350px;
  }

  .success-checkmark {
    width: 70px;
    height: 70px;
  }

  .success-message p {
    font-size: 1.125rem;
  }

  .success-message-line1 {
    font-size: 1.375rem;
  }

  .success-message-line2 {
    font-size: 1.125rem;
  }

  .success-close-btn {
    margin-top: 2rem;
    padding: 0.75rem 2rem;
  }
}

@media (max-width: 480px) {
  .form-success {
    padding: 2rem 1.25rem;
    min-height: 300px;
  }

  .success-checkmark {
    width: 60px;
    height: 60px;
  }

  .success-message {
    gap: 0.5rem;
  }

  .success-message p {
    font-size: 1rem;
  }

  .success-message-line1 {
    font-size: 1.25rem;
  }

  .success-message-line2 {
    font-size: 1rem;
  }

  .success-close-btn {
    margin-top: 1.75rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
  }
}
