/* =========================================================
   CONTACT.CSS  (v2.4)
   Page-specific styles that mirror the shared theme.
   ========================================================= */

/* ---------------------------------------------------------
   HERO (green gradient + circular accents)
--------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #009933 0%, #003300 100%);
  color: #FFFFFF;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  inset-block-start: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 42px solid rgba(255,255,255,.12);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-18deg);
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  inset-block-end: -120px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 30px solid rgba(255,255,255,.10);
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(24deg);
}

.hero-inner { padding-block: 96px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .75rem; margin-bottom: 1.25rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(15,23,42,.65);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
}

.hero-subtitle { font-size: 1.05rem; margin: .75rem 0 1rem; opacity: .95; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 1rem; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .82rem; opacity: .9; }
.hero-meta-item { display: inline-flex; align-items: center; gap: .35rem; }

/* Illustration card */
.hero-illustration { position: relative; }
.hero-illustration-card {
  background: #fff; color: var(--color-text-main);
  border-radius: 28px; padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}
.hero-illustration-card img { width: 100%; height: auto; border-radius: 12px; }
.hero-illustration-metrics {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem; margin-top: 1rem;
}
.metric-pill {
  padding: .7rem .9rem; border-radius: 12px;
  background: #F5F7FA; font-size: .8rem;
}
.metric-pill strong { display: block; font-size: 1rem; color: #006600; }
.metric-pill span { display: block; margin-top: .15rem; color: #4A4A4A; }

/* ---------------------------------------------------------
   SECTION HEADERS (centered, consistent spacing)
--------------------------------------------------------- */
.section .section-header,
.section.section--soft .section-header {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.section-title { margin-top: .25rem; }
.section-description { margin-top: .5rem; color: #4A4A4A; }

/* ---------------------------------------------------------
   CARDS & ICONS
--------------------------------------------------------- */
.grid-3 { align-items: stretch; } /* equal-height cards */

.card-header {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem;
}

.card-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: #F5F7FA; border: 1px solid #E5E7EB;
}

.card-icon .icon {
  width: 22px; height: 22px;
  stroke: #0F5132; fill: none; stroke-width: 2;
}

.card-tag {
  font-size: .75rem; font-weight: 700; color: #0AA86A;
  background: rgba(10,168,106,.1); padding: .25rem .6rem; border-radius: 999px;
}

/* Soft section lift (same style as others) */
.section--soft .card {
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  border-radius: 18px;
}

/* ---------------------------------------------------------
   LINKS (subtle inline)
--------------------------------------------------------- */
.text-link { color: #0A7D4F; text-decoration: underline; }
.text-link:hover { text-decoration: none; }

/* ---------------------------------------------------------
   CONTACT FORM (grid + polish)
--------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.form-control { display: flex; flex-direction: column; gap: .35rem; }
.form-label { font-weight: 600; }

.input, .select, .textarea {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: .8rem .9rem;
  font: inherit;
  background: #fff;
}

.textarea { min-height: 140px; resize: vertical; }

/* Stretch last rows full width (message + button) handled inline for flexibility,
   but keep safe defaults if inline styles are removed later */
.form-grid .form-control:last-child,
.form-grid .form-control:nth-last-child(2) { grid-column: 1 / -1; }

/* ---------------------------------------------------------
   FAQ (accordion polish)
--------------------------------------------------------- */
.faq-item { border-bottom: 1px solid #E5E7EB; padding: .75rem 0; }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600;
}
.faq-item[open] summary { color: #006600; }
.faq-icon { opacity: .7; }

/* ---------------------------------------------------------
   UTILITIES
--------------------------------------------------------- */
.text-muted { color: #4A4A4A; }
.section--tight { padding-block: 28px; }

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,.9fr); gap: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 768px) {
  .hero-inner { padding-block: 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-illustration { order: -1; margin-bottom: 2rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-badge-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .metric-pill { padding: .55rem .7rem; font-size: .75rem; }
}
