/* Pantau Pangan theme */
:root {
  --green-900: #0b6033;
  --green-700: #1c8241;
  --green-500: #4ea44b;
  --green-300: #9cce58;
  --gold-500: #d69f2a;
  --text-dark: #0f2f1d;
  --text-muted: #4f6a57;
  --bg: #f4f8f2;
  --card: #ffffff;
  --shadow-lg: 0 28px 60px -28px rgba(12, 60, 35, 0.55);
  --radius-xl: 28px;
}

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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100%;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  background-image:
    radial-gradient(at 10% 20%, rgba(76, 164, 75, 0.15), transparent 45%),
    radial-gradient(at 90% 10%, rgba(214, 159, 42, 0.18), transparent 50%),
    linear-gradient(140deg, rgba(11, 96, 51, 0.18) 0%, rgba(76, 164, 75, 0.14) 40%, rgba(156, 206, 88, 0.12) 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.background-ornament {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.background-ornament::before,
.background-ornament::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.65;
  transform: translateZ(0);
}

.background-ornament::before {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -120px;
  background: rgba(76, 164, 75, 0.35);
}

.background-ornament::after {
  width: 540px;
  height: 540px;
  right: -140px;
  bottom: -160px;
  background: rgba(214, 159, 42, 0.32);
}

.content-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
  background: rgba(244, 248, 242, 0.75);
  border-bottom: 1px solid rgba(15, 47, 29, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: clamp(140px, 22vw, 240px);
  height: auto;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 400;
  color: var(--text-muted);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(120deg, var(--green-700), var(--green-500));
  box-shadow: 0 12px 22px -14px rgba(12, 60, 35, 0.54);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px rgba(12, 60, 35, 0.66);
}

/* Main content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: min(6vw, 70px) 0 60px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 6vw, 60px);
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-copy h1 span {
  color: var(--green-700);
}

.hero-copy p {
  margin: 0;
  max-width: 520px;
  font-size: clamp(14px, 2.4vw, 17px);
  color: var(--text-muted);
}

.hero-card {
  justify-self: center;
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 24px);
  text-align: left;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 48px -22px rgba(12, 60, 35, 0.25);
}

.hero-card strong {
  font-size: clamp(18px, 2.8vw, 20px);
  color: var(--green-700);
}

.form-section {
  position: relative;
}

.form-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 47, 29, 0.08);
  overflow: hidden;
}

.form-card__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 4vw, 26px);
  background: linear-gradient(135deg, rgba(11, 96, 51, 0.14), rgba(78, 164, 75, 0.12));
  border-bottom: 1px solid rgba(15, 47, 29, 0.06);
}

.form-card__head h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
}

.form-card__head p {
  margin: 0;
  max-width: 640px;
  font-size: clamp(13px, 2.2vw, 15px);
  color: var(--text-muted);
}

iframe.form-embed {
  display: block;
  width: 100%;
  height: clamp(620px, 80vh, 920px);
  border: 0;
}

.form-note {
  padding: clamp(16px, 3vw, 20px);
  font-size: clamp(12px, 2vw, 13px);
  color: var(--text-muted);
  background: rgba(244, 248, 242, 0.85);
  border-top: 1px solid rgba(15, 47, 29, 0.08);
}

/* Footer */
footer.site-footer {
  padding: 24px 0 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive tweaks */
@media (max-width: 960px) {
  header.site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
    text-align: center;
  }

  .cta-button {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand img {
    width: min(210px, 70vw);
  }

  .brand-meta {
    align-items: flex-start;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  .hero-card {
    align-self: stretch;
  }

  iframe.form-embed {
    height: clamp(540px, 78vh, 860px);
  }
}

@media (max-width: 420px) {
  .header-inner {
    align-items: stretch;
  }

  .brand {
    width: 100%;
  }

  .brand img {
    width: min(180px, 60vw);
  }

  .form-card__head {
    padding: 18px;
  }
}

@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;
  }
}
