/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --yellow-600: #ca8a04;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.12);

  --container: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-800); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3, h4 { color: var(--gray-900); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: .75rem; }
.section-title p { color: var(--gray-600); max-width: 640px; margin: 0 auto; }

/* ============ BUTTON ============ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; font-weight: 600; font-size: .95rem;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease; text-decoration: none;
  font-family: inherit;
}
.btn-sm { padding: .55rem 1.1rem; font-size: .875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-primary {
  background: var(--green-600); color: var(--white); border-color: var(--green-600);
}
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

.btn-accent {
  background: var(--yellow-400); color: var(--gray-900); border-color: var(--yellow-400);
}
.btn-accent:hover { background: var(--yellow-500); border-color: var(--yellow-500); color: var(--gray-900); }

.btn-outline {
  background: transparent; color: var(--white); border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--green-700); }

.btn-ghost {
  background: var(--white); color: var(--green-700); border-color: var(--gray-200);
}
.btn-ghost:hover { background: var(--green-50); border-color: var(--green-600); color: var(--green-700); }

/* ============ NAVBAR ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.25rem; font-weight: 700; color: var(--gray-900);
}
.brand:hover { color: var(--gray-900); }
.brand-name strong { color: var(--green-600); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: var(--white);
}
.brand-icon { width: 20px; height: 20px; }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu > a { color: var(--gray-700); font-weight: 500; }
.nav-menu > a:hover, .nav-menu > a.active { color: var(--green-700); }
.nav-menu a.btn { color: var(--white); }
.nav-menu a.btn:hover { color: var(--white); }

/* ============ DROPDOWN ============ */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center;
  color: var(--gray-700); font-weight: 500;
  cursor: pointer; padding: .25rem 0;
}
.nav-dropdown-toggle:hover, .nav-dropdown.active .nav-dropdown-toggle { color: var(--green-700); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: -1rem;
  min-width: 260px; padding: .5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 110;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 12px;
}
.nav-dropdown-head {
  display: block; padding: .55rem .85rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--green-700);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: .25rem;
}
.nav-dropdown-head:hover { color: var(--green-800); }
.nav-dropdown-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .85rem; border-radius: 8px;
  font-size: .92rem; font-weight: 500;
  color: var(--gray-700);
  transition: background .15s, color .15s;
}
.nav-dropdown-item:hover { background: var(--green-50); color: var(--green-700); }
.nav-dropdown-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--green-50); color: var(--green-600); flex-shrink: 0;
}
.nav-dropdown-icon svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .5rem; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-800); transition: all .25s;
}

/* ============ HERO SLIDER ============ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white);
  min-height: 600px;
}
.slider { position: relative; min-height: 600px; }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease;
  padding: 5rem 0;
}
.slide.active { opacity: 1; visibility: visible; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .35;
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,83,45,.85), rgba(21,128,61,.6));
}
.slide-content {
  position: relative; z-index: 2;
  max-width: 720px;
}
.slide h1 { color: var(--white); margin-bottom: 1.25rem; }
.slide p {
  font-size: 1.15rem; opacity: .95; margin-bottom: 2rem;
  max-width: 600px;
}
.slide-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.slider-nav {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .75rem; z-index: 5;
}
.slider-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; cursor: pointer;
  transition: all .25s;
}
.slider-dot.active { background: var(--yellow-400); width: 36px; border-radius: 999px; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: var(--white);
  border: 1px solid rgba(255,255,255,.3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: all .2s;
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-arrow.prev { left: 1.5rem; }
.slider-arrow.next { right: 1.5rem; }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all .25s ease; text-align: left;
}
.service-card:hover {
  border-color: var(--green-600); box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--green-50); color: var(--green-600);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--gray-600); font-size: .95rem; margin-bottom: 1rem; }
.service-card .more { color: var(--green-700); font-weight: 600; font-size: .9rem; }

/* ============ WHY US ============ */
.why-section { background: var(--gray-50); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.why-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500));
  color: var(--gray-900); margin-bottom: 1.25rem;
}
.why-icon svg { width: 28px; height: 28px; }
.why-card h3 { margin-bottom: .5rem; }
.why-card p { color: var(--gray-600); font-size: .95rem; }

/* ============ CTA ============ */
.cta-section {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white); text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { opacity: .9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ PAGE HEADER ============ */
.page-header {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white); padding: 4rem 0 3rem;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: .5rem; }
.page-header p { opacity: .9; max-width: 640px; margin: 0 auto; }
.breadcrumb {
  display: flex; gap: .5rem; justify-content: center;
  margin-top: 1rem; font-size: .9rem; opacity: .85;
}
.breadcrumb a { color: var(--yellow-400); }

/* ============ SERVICE DETAIL ============ */
.service-detail { padding: 4rem 0; border-bottom: 1px solid var(--gray-200); }
.service-detail:last-child { border-bottom: none; }
.service-detail-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem;
  align-items: start;
}
.service-detail .service-icon {
  width: 80px; height: 80px;
}
.service-detail .service-icon svg { width: 40px; height: 40px; }
.service-detail h2 { margin-bottom: 1rem; }
.service-detail .lead { font-size: 1.1rem; color: var(--gray-700); margin-bottom: 1rem; }
.service-detail p { color: var(--gray-600); margin-bottom: 1rem; }

/* ============ PAGE CONTENT (WYSIWYG output) ============ */
.page-featured {
  padding: 2rem 0 0;
}
.page-featured img {
  width: 100%; max-height: 480px; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.page-content {
  padding: 3rem 0 4rem;
}
.page-body {
  max-width: 800px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.8;
  color: var(--gray-700);
}
.page-body h1, .page-body h2, .page-body h3, .page-body h4 {
  margin: 2rem 0 .75rem;
  color: var(--gray-900);
}
.page-body h2 { font-size: 1.6rem; }
.page-body h3 { font-size: 1.3rem; }
.page-body h4 { font-size: 1.1rem; }
.page-body p { margin-bottom: 1.15rem; }
.page-body ul, .page-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.page-body li { margin-bottom: .4rem; }
.page-body a { color: var(--green-700); text-decoration: underline; }
.page-body img {
  max-width: 100%; height: auto;
  border-radius: 10px;
  margin: 1.25rem 0;
}
.page-body table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
}
.page-body table th, .page-body table td {
  border: 1px solid var(--gray-200);
  padding: .75rem 1rem;
  text-align: left;
}
.page-body table th { background: var(--gray-50); font-weight: 600; }
.page-body blockquote {
  border-left: 4px solid var(--green-600);
  background: var(--green-50);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-style: italic;
  color: var(--gray-700);
  border-radius: 0 8px 8px 0;
}
.page-body code {
  background: var(--gray-100); padding: 2px 6px; border-radius: 4px;
  font-size: .9em;
}
.page-body pre {
  background: var(--gray-900); color: var(--gray-100);
  padding: 1rem 1.25rem; border-radius: 8px;
  overflow-x: auto; margin: 1.25rem 0;
}
.page-cta {
  max-width: 800px; margin: 3rem auto 0;
  padding: 2rem; text-align: center;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.page-cta h3 { margin-bottom: .5rem; }
.page-cta p { color: var(--gray-600); }

/* ============ KONTAK ============ */
.kontak-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}
.kontak-info h3 { margin-bottom: 1.5rem; }
.kontak-list { list-style: none; }
.kontak-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--gray-200);
}
.kontak-list li:last-child { border: none; }
.kontak-list .icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-50); color: var(--green-600); flex-shrink: 0;
}
.kontak-list h4 { font-size: 1rem; margin-bottom: .25rem; }
.kontak-list a { color: var(--gray-700); }
.kontak-list a:hover { color: var(--green-700); }
.kontak-list small { color: var(--gray-500); }

.kontak-form {
  background: var(--gray-50); padding: 2rem;
  border-radius: var(--radius-lg);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: .5rem;
  color: var(--gray-700); font-size: .9rem;
}
.form-control {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--gray-300); border-radius: 10px;
  font-family: inherit; font-size: .95rem;
  background: var(--white); transition: border-color .2s;
}
.form-control:focus {
  outline: none; border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }

.alert {
  padding: 1rem 1.25rem; border-radius: 10px;
  margin-bottom: 1.5rem; font-size: .95rem;
}
.alert-success { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-200, #bbf7d0); }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--gray-900); color: var(--gray-300);
  padding-top: 4rem; margin-top: 0;
}
.site-footer .brand-name { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem; padding-bottom: 3rem;
}
.footer-tag { margin-top: 1rem; font-size: .95rem; }
.site-footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--gray-300); font-size: .95rem; }
.site-footer a:hover { color: var(--yellow-400); }

.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 1.5rem 0; text-align: center;
}
.footer-bottom small { color: var(--gray-500); }

/* ============ WA FLOAT ============ */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: var(--white); }
.wa-icon { width: 28px; height: 28px; }

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kontak-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--gray-200);
    flex-direction: column; gap: 0; padding: 1rem 0;
    transform: translateY(-150%); transition: transform .3s;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu > a, .nav-dropdown-toggle { padding: .85rem 1.25rem; width: 100%; }
  .nav-menu a.btn { margin: .5rem 1.25rem; width: calc(100% - 2.5rem); justify-content: center; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { display: flex; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0;
    margin: 0 1.25rem 0;
    padding: 0 0 .5rem .5rem;
    background: var(--gray-50);
    border-left: 2px solid var(--green-600);
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-item { padding: .55rem .75rem; }

  .hero, .slider, .slide { min-height: 520px; }
  .slide p { font-size: 1rem; }
  .slider-arrow { display: none; }

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

  .wa-float { width: 50px; height: 50px; bottom: 1rem; right: 1rem; }
  .wa-icon { width: 24px; height: 24px; }
}
