:root {
  --primary: #173d73;
  --primary-deep: #0d2345;
  --accent: #2f9a51;
  --accent-light: #e3f6e8;
  --slate-50: #f5f8fc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(13, 35, 69, .06);
  --shadow-md: 0 18px 50px rgba(13, 35, 69, .11);
  --shadow-lg: 0 28px 80px rgba(13, 35, 69, .16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-700);
  background: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
a:visited { text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(47,154,81,.45); outline-offset: 3px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- NAV --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(226,232,240,.7);
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: box-shadow .3s, padding .3s, background .3s;
  padding: .9rem 0;
}
nav.scrolled { background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); padding: .7rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img {
  width: 148px;
  height: auto;
  display: block;
  image-rendering: auto;
  filter: drop-shadow(0 1px 1px rgba(13,35,69,.08));
}
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a:not(.btn) { position: relative; font-size: .9rem; font-weight: 600; color: var(--slate-600); transition: color .2s; text-decoration: none; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.55rem; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
a.btn, a.btn:visited, a.btn:hover, a.btn:focus, a.btn:active { text-decoration: none !important; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:visited { color: var(--white) !important; background: var(--primary); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.45rem; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: transform .2s ease, background .2s, color .2s, box-shadow .2s, opacity .2s; cursor: pointer; border: none; text-decoration: none; line-height: 1.4; letter-spacing: 0; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:visited { color: var(--white); text-decoration: none; }
.btn-primary:hover { background: #102e5a; color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,61,115,.22); }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 10px 24px rgba(47,154,81,.2); }
.btn-accent:hover { background: #278344; color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(47,154,81,.28); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--accent); }
.btn-white:hover { background: #f1f5f9; color: var(--primary); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,35,69,.18); }
.btn-lg { padding: 1rem 1.8rem; font-size: .96rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 32px; padding: .4rem; }
.hamburger span { display: block; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .25rem;
  background: var(--white);
  padding: 1rem 1.5rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-weight: 500;
  color: var(--slate-700);
  padding: .75rem 0;
  border-bottom: 1px solid var(--slate-100);
}
.mobile-menu .btn { margin-top: .5rem; text-align: center; }

/* --- HERO --- */
#hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 6.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.02);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 25%, rgba(47,154,81,.22), transparent 28%),
    linear-gradient(110deg, rgba(13,35,69,.96) 0%, rgba(23,61,115,.82) 54%, rgba(23,61,115,.62) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block;
  padding: .45rem 1rem;
  background: rgba(47,154,81,.18);
  color: #6ee88a;
  border: 1px solid rgba(110,232,138,.35);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.75rem;
}
.hero-content h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin-bottom: 1.5rem;
}
.hero-content h1 span { color: #6ee88a; }
.hero-content p { font-size: 1.08rem; color: rgba(255,255,255,.8); margin-bottom: 2.25rem; max-width: 590px; line-height: 1.8; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- STATS BAR --- */
#stats {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
  background: transparent;
  border: none;
  padding: 0 0 5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.8);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  padding: 1.65rem 0;
}
.stat-item { padding: .25rem 1rem; border-right: 1px solid var(--slate-100); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.25rem; font-weight: 800; color: var(--primary); letter-spacing: -.04em; margin-bottom: .25rem; }
.stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); font-weight: 600; }

/* --- SECTION SHARED --- */
section { padding: 6.5rem 0; }
.section-eyebrow { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .75rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 800; color: var(--slate-900); margin-bottom: 1.25rem; line-height: 1.08; letter-spacing: -.04em; }
.section-subtitle { font-size: 1.05rem; color: var(--slate-600); max-width: 620px; }
.section-header { text-align: center; margin: 0 auto 4rem; max-width: 700px; }

/* --- SERVICES --- */
#services { background: linear-gradient(180deg, var(--slate-50) 0%, #eef4fb 100%); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(226,232,240,.85);
  border-radius: 1.1rem;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(47,154,81,.3); }
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #edf5ff, #e4f6e9);
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform .25s, background .25s;
}
.service-card:hover .service-icon { background: var(--accent); transform: rotate(-4deg) scale(1.05); }
.service-icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.service-card:hover .service-icon svg { stroke: var(--white); }
.service-card h4 { font-size: 1.02rem; font-weight: 700; color: var(--slate-900); margin-bottom: .6rem; }
.service-card p { font-size: .9rem; color: var(--slate-600); line-height: 1.6; }

/* --- WHY US --- */
#why-us { background: var(--white); overflow: hidden; }
.why-grid { display: flex; align-items: center; gap: 4rem; }
.why-img-wrap {
  flex: 1; position: relative;
}
.why-img-wrap img { border-radius: 1.35rem; box-shadow: var(--shadow-lg); position: relative; z-index: 1; width: 100%; }
.why-badge {
  position: absolute;
  bottom: 2rem; left: -2rem;
  z-index: 2;
  background: var(--white);
  border-radius: .75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.why-badge-icon { background: #d4edda; color: var(--accent); border-radius: 50%; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-badge-icon svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-badge-num { font-size: 1.6rem; font-weight: 800; color: var(--slate-900); line-height: 1; }
.why-badge-label { font-size: .8rem; color: var(--slate-500); font-weight: 500; }
.why-blob-1, .why-blob-2 { position: absolute; border-radius: 50%; z-index: 0; }
.why-blob-1 { width: 220px; height: 220px; background: #eff6ff; bottom: -40px; right: -40px; }
.why-blob-2 { width: 110px; height: 110px; background: rgba(46,139,66,.1); top: -30px; left: -30px; }
.why-text { flex: 1; }
.why-features { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.why-feature { display: flex; gap: 1rem; align-items: flex-start; }
.why-feature-icon { width: 40px; height: 40px; border-radius: 50%; background: #eff6ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.why-feature-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-feature h4 { font-size: 1.05rem; font-weight: 700; color: var(--slate-900); margin-bottom: .25rem; }
.why-feature p { font-size: .9rem; color: var(--slate-600); line-height: 1.6; }

/* --- PROCESS --- */
#process { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: var(--white); }
#process::before { content: ''; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -180px; top: -260px; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
#process .section-title { color: var(--white); }
#process .section-subtitle { color: rgba(255,255,255,.75); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.process-line {
  position: absolute;
  top: 3rem; left: 15%; right: 15%;
  height: 2px; background: rgba(255,255,255,.2);
  display: none;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.process-num {
  width: 90px; height: 90px; margin: 0 auto 1.5rem;
  background: rgba(255,255,255,.08);
  border: 4px solid #6ee88a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800;
  box-shadow: 0 0 30px rgba(110,232,138,.2);
}
.process-step h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.process-step p { color: rgba(255,255,255,.75); font-size: .92rem; line-height: 1.6; }

/* --- CLIENTS --- */
#clients { background: var(--white); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.client-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .25s ease, box-shadow .25s, border-color .25s;
}
.client-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: rgba(47,154,81,.25); }
.client-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: background .25s;
}
.client-card:hover .client-icon { background: rgba(46,139,66,.1); }
.client-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.client-name { font-size: .88rem; font-weight: 700; color: var(--slate-900); line-height: 1.3; margin-bottom: .25rem; }
.client-cat { font-size: .75rem; color: var(--slate-400); }

/* --- CTA --- */
#cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--accent), #237b43); color: var(--white); text-align: center; padding: 6rem 0; }
#cta::before { content: ''; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; left: -190px; top: -240px; box-shadow: 0 0 0 50px rgba(255,255,255,.035), 0 0 0 100px rgba(255,255,255,.025); }
#cta .section-title { color: var(--white); }
#cta p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* --- CONTACT --- */
#contact { background: var(--white); }
.contact-grid { display: flex; gap: 4rem; align-items: flex-start; }
.contact-info { flex: 1; }
.contact-info h3.section-title { font-size: 2rem; }
.contact-info > p { font-size: 1rem; color: var(--slate-600); margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon { width: 48px; height: 48px; border-radius: 50%; background: #eff6ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-item h4 { font-size: .9rem; font-weight: 700; color: var(--slate-900); margin-bottom: .25rem; }
.contact-item a { color: var(--slate-600); font-size: .95rem; display: block; transition: color .2s; }
.contact-item a:hover { color: var(--accent); }
.contact-form-wrap { flex: 1; background: var(--white); border: 1px solid rgba(226,232,240,.9); border-radius: 1.25rem; padding: 2.25rem; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--slate-700); margin-bottom: .4rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: .75rem;
  background: #fbfdff;
  font-family: inherit; font-size: .95rem; color: var(--slate-900);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,154,81,.12); background: var(--white); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-alert { padding: .75rem 1rem; border-radius: .5rem; font-size: .9rem; font-weight: 500; margin-bottom: 1rem; display: none; }
.form-alert.show { display: block; }
.form-alert.success { background: #d4edda; border: 1px solid #b8dfc4; color: #1b5e20; }
.form-alert.error { background: #fde8e8; border: 1px solid #f5c6c6; color: #7f1d1d; }
.btn-submit { width: 100%; padding: 1rem; font-size: .95rem; border-radius: .75rem; }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; }

/* --- FOOTER --- */
footer { background: #091a33; color: rgba(255,255,255,.6); padding: 4.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-about p { font-size: .9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.8); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: 1rem; font-size: .95rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; text-align: center; font-size: .82rem; }

/* --- FADE-IN ANIMATION --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: .1s; }
.fade-up-delay-2 { transition-delay: .2s; }
.fade-up-delay-3 { transition-delay: .3s; }
.fade-up-delay-4 { transition-delay: .4s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: .75rem 0; }
  .nav-logo img { width: 128px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  #hero { min-height: auto; padding: 8.5rem 0 7rem; }
  .hero-content h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-content p { font-size: 1rem; line-height: 1.7; }
  #stats { margin-top: -2.2rem; padding-bottom: 4rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { padding: .75rem 0; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--slate-100); padding: 1rem; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { flex-direction: column; }
  .why-badge { left: 0; bottom: -1rem; }
  .process-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  section { padding: 5rem 0; }
  .section-header { margin-bottom: 3rem; }
  .contact-form-wrap { padding: 1.5rem; }
}
@media (min-width: 769px) {
  .process-line { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
