:root {
  --bg-cream: #faf6f0;
  --bg-warm: #f2eadf;
  --surface: #ffffff;
  --surface-muted: #fcf9f5;
  --ink-primary: #2c1a0e;
  --ink-secondary: #5c4433;
  --ink-muted: #7a6555;
  --palm-green: #166534;
  --palm-green-dark: #114e27;
  --whatsapp-green: #1ea952;
  --whatsapp-green-hover: #178d43;
  --messenger-blue: #0078ff;
  --messenger-blue-hover: #0062d1;
  --amber-gold: #c6832c;
  --amber-soft: #fdf3e3;
  --border-subtle: #e7ddd0;
  --border-focus: #166534;
  --error-red: #b91c1c;
  --success-green: #15803d;
  --shadow-sm: 0 2px 8px rgba(44, 26, 14, 0.05);
  --shadow-md: 0 12px 32px rgba(44, 26, 14, 0.08);
  --shadow-lg: 0 20px 50px rgba(44, 26, 14, 0.11);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background-color: var(--bg-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(22, 101, 52, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(198, 131, 44, 0.11) 0%, transparent 45%),
    radial-gradient(circle at 50% 95%, rgba(44, 26, 14, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
}

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

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

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

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-logo-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 4px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-primary);
}

.brand-division {
  font-size: clamp(0.72rem, 1.4vw, 0.82rem);
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: #ecf7ef;
  color: var(--palm-green);
  border: 1px solid #cce7d4;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--palm-green);
  outline-offset: 2px;
}

.btn-sm {
  padding: 0.52rem 0.9rem;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(30, 169, 82, 0.24);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-green-hover);
}

.btn-messenger {
  background: var(--messenger-blue);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 120, 255, 0.2);
}

.btn-messenger:hover {
  background: var(--messenger-blue-hover);
}

.btn-primary {
  background: linear-gradient(135deg, var(--palm-green) 0%, var(--palm-green-dark) 100%);
  color: #ffffff;
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(22, 101, 52, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Main Grid */
.main-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(1.75rem, 4vw, 3.5rem);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

/* Left Hero Column */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid #eed2a6;
  color: #8b5413;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber-gold);
  box-shadow: 0 0 0 0 rgba(198, 131, 44, 0.65);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 131, 44, 0.65);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(198, 131, 44, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 131, 44, 0);
  }
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  line-height: 1.15;
  color: var(--ink-primary);
  letter-spacing: -0.015em;
}

.accent-text {
  display: block;
  color: var(--palm-green);
}

.hero-description {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--ink-secondary);
  max-width: 58ch;
}

.highlights-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-primary);
  box-shadow: var(--shadow-sm);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chip-green {
  background: var(--palm-green);
}

.chip-amber {
  background: var(--amber-gold);
}

.chip-brown {
  background: var(--ink-primary);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.cta-group .btn {
  flex: 1 1 220px;
}

/* Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.35rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.info-card:hover {
  border-color: var(--amber-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card-wide {
  grid-column: 1 / -1;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-warm);
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 19px;
  height: 19px;
}

.info-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.info-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--ink-muted);
}

.info-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-primary);
  overflow-wrap: anywhere;
}

/* Right Form Column */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}

.form-header {
  margin-bottom: 1.25rem;
}

.form-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  color: var(--ink-primary);
}

.form-subtitle {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.req {
  color: var(--error-red);
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-primary);
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9e8c7e;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--error-red);
}

.field textarea {
  resize: vertical;
  min-height: 108px;
}

.field-error {
  font-size: 0.78rem;
  color: var(--error-red);
  min-height: 1em;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Technical Metadata Drawer */
.tech-details {
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
}

.tech-details summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ink-secondary);
  list-style: none;
}

.tech-details summary::-webkit-details-marker {
  display: none;
}

.meta-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #e9f5ed;
  color: var(--palm-green);
}

.tech-grid {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tech-k {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  font-weight: 700;
}

.tech-v {
  font-size: 0.8rem;
  color: var(--ink-primary);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.btn-submit {
  width: 100%;
  margin-top: 0.15rem;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.form-status.is-success {
  background: #ecfdf3;
  border: 1px solid #b7ebc9;
  color: var(--success-green);
}

.form-status.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--error-red);
}

.form-status a {
  text-decoration: underline;
  font-weight: 700;
}

.mailto-fallback-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.inline-link {
  color: var(--palm-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.75);
  padding-block: 1.1rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.footer-copy {
  margin: 0;
}

.footer-link,
.footer-links a {
  color: var(--ink-primary);
  font-weight: 600;
}

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

.footer-links a:hover,
.footer-link:hover {
  color: var(--palm-green);
  text-decoration: underline;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  background: var(--whatsapp-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(23, 141, 67, 0.36);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.floating-whatsapp:hover {
  background: var(--whatsapp-green-hover);
  transform: translateY(-2px);
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    gap: 1.05rem;
  }
}

@media (max-width: 640px) {
  .cert-pill {
    display: none;
  }

  .brand-logo-wrap {
    width: 46px;
    height: 46px;
  }

  .contact-cards,
  .form-row,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .floating-wa-label {
    display: none;
  }

  .floating-whatsapp {
    padding: 0.85rem;
  }

  .site-footer {
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 380px) {
  .header-actions .btn-sm span {
    display: none;
  }

  .btn-lg {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pulse-dot {
    animation: none;
  }
  .btn,
  .info-card,
  .floating-whatsapp {
    transition: none;
  }
}
