/* ═══════════════════════════════════════════════════════════════
   K&P Service – Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: #0f1b2d;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ─── Variables ──────────────────────────────────────────────── */
:root {
  --navy:   #162040;
  --navy-2: #1e2d52;
  --green:  #3a8c3f;
  --green-l:#4ba051;
  --gray-1: #f4f6f9;
  --gray-2: #e8ecf2;
  --gray-3: #9ba8bc;
  --white:  #ffffff;
  --text-2: #3f4f67;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(22,32,64,.10);
  --ease:   cubic-bezier(.4,0,.2,1);
}

/* ─── Scroll Progress Bar ────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), #7bc97e);
  z-index: 200;
  will-change: width;
}

/* ─── Custom Cursor (desktop only) ──────────────────────────── */
.c-dot, .c-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  will-change: transform;
}
.c-dot {
  width: 8px; height: 8px;
  background: var(--green);
  transform: translate(-50%, -50%);
  transition: width .2s var(--ease), height .2s var(--ease), background .2s;
}
.c-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(58,140,63,.5);
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .2s, opacity .3s;
}
body.cur-hover .c-dot  { width: 14px; height: 14px; background: var(--green-l); }
body.cur-hover .c-ring { width: 60px; height: 60px; border-color: rgba(58,140,63,.25); }
body.cur-click .c-dot  { width: 5px; height: 5px; }
@media (pointer: coarse) { .c-dot, .c-ring { display: none; } }

/* ─── Utility ────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.tag {
  display: inline-block;
  font-size: .73rem; font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.section-sub {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 520px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: .95rem; font-weight: 600;
  cursor: pointer; border: none;
  position: relative; overflow: hidden;
  will-change: transform;
  transition: background .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover {
  background: var(--green-l);
  box-shadow: 0 8px 24px rgba(58,140,63,.38);
  transform: translateY(-2px);
}
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Ripple */
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.35);
  pointer-events: none;
  transform: scale(0);
  animation: ripple-anim .55s linear forwards;
}
@keyframes ripple-anim { to { transform: scale(4.5); opacity: 0; } }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 0 24px;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(22,32,64,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .logo-mark {
  width: 42px; height: 42px;
  background: var(--green); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #fff;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.nav-logo:hover .logo-mark {
  transform: rotate(-5deg) scale(1.08);
  box-shadow: 0 4px 14px rgba(58,140,63,.4);
}
.nav-logo .logo-text span:first-child { font-size: 1.1rem; font-weight: 800; color: #fff; line-height: 1; }
.nav-logo .logo-text span:last-child  { font-size: .58rem; font-weight: 500; color: var(--gray-3); letter-spacing: .1em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.7);
  position: relative;
  transition: color .22s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 100%;
  height: 2px; background: var(--green); border-radius: 2px;
  transition: right .3s var(--ease);
}
.nav-links a:hover          { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after  { right: 0; }
.nav-links a.active         { color: #fff; }

.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 7px !important;
}
.nav-cta::after     { display: none !important; }
.nav-cta:hover      { background: var(--green-l) !important; }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(22,32,64,.97);
  backdrop-filter: blur(16px);
  z-index: 99;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: 1.6rem; font-weight: 700; color: rgba(255,255,255,.75);
  transform: translateY(20px); opacity: 0;
  transition: color .22s, transform .4s var(--ease), opacity .4s var(--ease);
}
.mobile-menu.open a { transform: none; opacity: 1; }
.mobile-menu.open a:nth-child(1) { transition-delay: .05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .10s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .20s; }
.mobile-menu a:hover { color: var(--green-l); }
.mobile-close {
  position: absolute; top: 24px; right: 28px;
  font-size: 1.8rem; color: rgba(255,255,255,.6);
  cursor: pointer; background: none; border: none;
  transition: color .2s, transform .2s;
}
.mobile-close:hover { color: #fff; transform: rotate(90deg); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-spotlight {
  position: absolute; inset: 0;
  pointer-events: none;
  transition: background .05s linear;
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(58,140,63,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(30,45,82,.8) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  position: relative; z-index: 1;
  padding: 120px 0 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(58,140,63,.15);
  border: 1px solid rgba(58,140,63,.35);
  color: #7bc97e;
  padding: 6px 14px; border-radius: 100px;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 24px;
  animation: badge-pulse 3s ease-in-out infinite;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px;
  background: #7bc97e; border-radius: 50%;
  animation: dot-blink 1.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(58,140,63,.0); }
  50%      { box-shadow: 0 0 0 6px rgba(58,140,63,.0); }
}
@keyframes dot-blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--green-l); }
.hero-lead { font-size: 1.1rem; color: rgba(255,255,255,.6); margin-bottom: 36px; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 420px; }
.hero-service-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 20px 16px;
  backdrop-filter: blur(8px);
  transition: background .25s, transform .3s var(--ease), border-color .25s;
  cursor: default;
}
.hero-service-card:hover { background: rgba(255,255,255,.12); border-color: rgba(58,140,63,.4); transform: translateY(-4px) scale(1.02); }
.hero-service-card .icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.hero-service-card span  { display: block; font-size: .8rem; font-weight: 600; color: #fff; line-height: 1.3; }

.hero-stats {
  display: flex;
  margin-top: 20px;
  background: #fff;
  border-radius: 14px; box-shadow: var(--shadow);
  overflow: hidden; white-space: nowrap;
}
.stat-item { padding: 16px 24px; border-right: 1px solid var(--gray-2); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.stat-item small  { font-size: .75rem; color: var(--text-2); font-weight: 500; }

/* ─── Services ───────────────────────────────────────────────── */
.services { padding: 120px 0 80px; background: var(--gray-1); }
.services-header { margin-bottom: 56px; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.service-card {
  background: #fff; border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(22,32,64,.07);
  position: relative; overflow: hidden;
  will-change: transform;
  transition: box-shadow .3s var(--ease);
  transform-style: preserve-3d;
  cursor: default;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.service-card:hover { box-shadow: 0 16px 40px rgba(22,32,64,.14); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  background: rgba(58,140,63,.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
  transition: transform .3s var(--ease), background .3s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); background: rgba(58,140,63,.17); }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.service-card p  { font-size: .9rem; color: var(--text-2); line-height: 1.6; }

/* ─── Why Us ─────────────────────────────────────────────────── */
.why { padding: 100px 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-features { margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }
.why-feature   { display: flex; gap: 16px; align-items: flex-start; }

.feat-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(58,140,63,.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform .3s var(--ease), background .3s;
}
.why-feature:hover .feat-icon { transform: scale(1.12) rotate(-5deg); background: rgba(58,140,63,.18); }
.why-feature h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.why-feature p  { font-size: .87rem; color: var(--text-2); }

.why-visual {
  background: var(--navy); border-radius: 20px;
  padding: 44px 36px; position: relative; overflow: hidden;
}
.why-visual::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(58,140,63,.12); border-radius: 50%;
}
.promise-list { display: flex; flex-direction: column; gap: 14px; }
.promise-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: rgba(255,255,255,.06);
  border-radius: 10px; border: 1px solid rgba(255,255,255,.08);
  transition: background .25s, transform .25s var(--ease);
}
.promise-item:hover { background: rgba(255,255,255,.1); transform: translateX(4px); }
.promise-item .check {
  width: 28px; height: 28px; min-width: 28px;
  background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: #fff;
}
.promise-item span { font-size: .9rem; font-weight: 500; color: #fff; }
.why-visual-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-l); margin-bottom: 20px; }

/* ─── Team ───────────────────────────────────────────────────── */
.team { padding: 100px 0; background: var(--gray-1); }
.team-header { margin-bottom: 56px; }
.team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; max-width: 680px; }

.team-card {
  background: #fff; border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: 0 2px 12px rgba(22,32,64,.07);
  text-align: center;
  transition: box-shadow .3s var(--ease);
  transform-style: preserve-3d;
}
.team-card:hover { box-shadow: 0 16px 40px rgba(22,32,64,.12); }

.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border: 3px solid var(--green);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.team-card:hover .team-avatar { transform: scale(1.08) translateY(-3px); box-shadow: 0 8px 20px rgba(58,140,63,.3); }
.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-card p  { font-size: .85rem; color: var(--text-2); }

/* ─── Contact ────────────────────────────────────────────────── */
.contact { padding: 100px 0; background: var(--navy); position: relative; overflow: hidden; }
.contact::before {
  content: ''; position: absolute; top: -80px; left: -80px;
  width: 350px; height: 350px; background: rgba(58,140,63,.08); border-radius: 50%;
}
.contact::after {
  content: ''; position: absolute; bottom: -60px; right: -60px;
  width: 250px; height: 250px; background: rgba(58,140,63,.06); border-radius: 50%;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; position: relative; z-index: 1; }
.contact .section-title { color: #fff; }
.contact .section-sub   { color: rgba(255,255,255,.6); }

.contact-items { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-item  { display: flex; align-items: center; gap: 16px; }
.ci-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(255,255,255,.08); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: background .25s, transform .25s var(--ease);
}
.contact-item:hover .ci-icon { background: rgba(58,140,63,.2); transform: scale(1.08); }
.ci-text strong { display: block; font-size: .83rem; color: rgba(255,255,255,.5); font-weight: 500; margin-bottom: 2px; }
.ci-text a,
.ci-text span   { font-size: .95rem; font-weight: 600; color: #fff; }

/* ─── Form ───────────────────────────────────────────────────── */
.contact-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 36px;
  backdrop-filter: blur(10px);
}
.form-group    { margin-bottom: 16px; position: relative; }
.form-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px; letter-spacing: .05em; text-transform: uppercase;
  transition: color .2s;
}
.form-group:focus-within label { color: #7bc97e; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: #fff; font-size: .93rem; font-family: inherit;
  transition: border-color .22s, background .22s, box-shadow .22s;
  outline: none; appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.28); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  background: rgba(255,255,255,.11);
  box-shadow: 0 0 0 3px rgba(58,140,63,.15);
}
.form-group.is-valid input,
.form-group.is-valid textarea { border-color: #4ba051; }
.form-group.is-error input,
.form-group.is-error textarea { border-color: #e05858; box-shadow: 0 0 0 3px rgba(224,88,88,.12); }
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; min-height: 100px; }

.field-hint { font-size: .73rem; color: rgba(255,255,255,.35); margin-top: 4px; display: none; }
.form-group.is-error .field-hint { display: block; color: #e07878; }

.form-submit { margin-top: 8px; width: 100%; justify-content: center; }
.btn-loading { pointer-events: none; opacity: .75; }
.btn-loading .btn-spinner { display: inline-block !important; }
.btn-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Scroll Reveal ──────────────────────────────────────────── */
[data-fade] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
[data-fade].visible       { opacity: 1; transform: none; }
[data-fade][data-delay="1"] { transition-delay: .08s; }
[data-fade][data-delay="2"] { transition-delay: .16s; }
[data-fade][data-delay="3"] { transition-delay: .24s; }
[data-fade][data-delay="4"] { transition-delay: .32s; }
[data-fade][data-delay="5"] { transition-delay: .40s; }
[data-fade][data-delay="6"] { transition-delay: .48s; }

/* ─── Back to Top ────────────────────────────────────────────── */
#back-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  box-shadow: 0 4px 16px rgba(58,140,63,.4);
  opacity: 0; transform: translateY(16px) scale(.8);
  transition: opacity .3s, transform .3s var(--ease), background .2s;
  z-index: 90;
}
#back-top.visible { opacity: 1; transform: none; }
#back-top:hover   { background: var(--green-l); transform: translateY(-2px); }
#back-top svg     { transition: transform .2s; }
#back-top:hover svg { transform: translateY(-2px); }

/* ─── Footer ─────────────────────────────────────────────────── */
footer { background: #0b1528; padding: 32px 24px; }
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-mark {
  width: 36px; height: 36px; background: var(--green); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: #fff;
}
.footer-logo .logo-text span:first-child { font-size: 1rem; font-weight: 800; color: #fff; }
.footer-logo .logo-text span:last-child  { display: block; font-size: .55rem; color: var(--gray-3); text-transform: uppercase; letter-spacing: .1em; }
footer p { font-size: .82rem; color: var(--gray-3); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .hero-grid  { grid-template-columns: 1fr; text-align: center; padding: 100px 0 60px; }
  .hero-visual { display: none; }
  .hero-lead  { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid   { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-grid  { max-width: 100%; }
}
@media (max-width: 580px) {
  .services-grid { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .hero-stats    { flex-wrap: wrap; justify-content: center; border-radius: 12px; }
  .footer-inner  { flex-direction: column; text-align: center; }
  #back-top      { bottom: 16px; right: 16px; }
}
