:root {
  --font-primary: "Segoe UI", Roboto, Arial, sans-serif;

  --color-text: #20271f;
  --color-bg-light: #ffffff;
  --color-bg-light-alt: #f4f6f4;
  --color-bg-dark: #1f2a24;
  --color-text-on-dark: #f4f6f4;

  --color-primary: #2f6f4f;
  --color-primary-dark: #20543a;

  --color-placeholder-1: #cfd9d2;
  --color-placeholder-2: #9fb3a6;

  --max-width-container: 1280px;
  --max-width-narrow: 760px;

  --padding-section-y: 96px;
  --padding-x: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }

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

.container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.container.narrow { max-width: var(--max-width-narrow); }

.hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 640px;
}

.hero-media {
  flex: 1 1 55%;
  min-height: 360px;
  background: linear-gradient(0deg, rgba(20,30,24,0.55), rgba(20,30,24,0.15)), url('/images/hero.jpg') center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.hero-media-text {
  padding: var(--padding-section-y) var(--padding-x);
  color: var(--color-text-on-dark);
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  max-width: 640px;
}

.hero-media-text h1 {
  font-size: 3.2rem;
  margin: 0 0 0.6rem;
  letter-spacing: 0.03em;
}

.hero-media-text p {
  margin: 0;
  font-size: 1.3rem;
  opacity: 0.95;
}

/* ================= FORM PANEL ================= */
.form-panel {
  flex: 1 1 40%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--padding-section-y) var(--padding-x);
}

.form-panel-inner {
  width: 100%;
  max-width: 420px;
}

.form-logo {
  height: 64px;
  width: auto;
  margin: 0 0 1.25rem;
}

.form-panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.form-panel > .form-panel-inner > p {
  margin: 0 0 1.25rem;
  color: #5b6961;
  font-size: 0.95rem;
}

.form-contact-info {
  font-weight: 600;
  color: var(--color-text) !important;
}

.form-contact-info a {
  color: var(--color-primary);
}

label { display: block; margin: 0.9rem 0 0.3rem; font-weight: 600; font-size: 0.85rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccd3cf;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

textarea { resize: vertical; min-height: 90px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.checkbox-row input { margin-top: 0.2rem; }
.checkbox-row label { margin: 0; font-weight: 400; font-size: 0.82rem; }

button.submit-btn {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; display: none; }
.form-message.ok { display: block; background: #e3f2e8; color: #205c3b; }
.form-message.error { display: block; background: #fbe7e7; color: #8a2c2c; }
.form-message ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }

/* ================= SECTIONS ================= */
.section {
  padding: var(--padding-section-y) 0;
}

.section.light { background: var(--color-bg-light); }
.section.light-alt { background: var(--color-bg-light-alt); }
.section.dark { background: var(--color-bg-dark); color: var(--color-text-on-dark); }

.section-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.section-split.flip { flex-direction: row-reverse; }

.section-split > * { flex: 1 1 380px; }

.section-image {
  min-height: 320px;
  border-radius: 16px;
  background-color: var(--color-placeholder-1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-title {
  font-size: 2.2rem;
  margin: 0 0 1rem;
}

.section-text { font-size: 1.15rem; }
.section-text p { margin: 0 0 1rem; }

/* ================= ICONS / FEATURES (decágono) ================= */
.icon-decagon {
  position: relative;
  width: 620px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 3.5rem auto 1rem;
}

.icon-box {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 150px;
  text-align: center;
}

.icon-box .icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: rgba(244,246,244,0.1);
  border: 1px solid rgba(244,246,244,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box .material-symbols-outlined {
  font-size: 30px;
  color: var(--color-text-on-dark);
}

.icon-box h3 { margin: 0; font-size: 0.92rem; font-weight: 600; }

@media (max-width: 760px) {
  .icon-decagon {
    width: auto;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
    margin-top: 2.5rem;
  }
  .icon-box {
    position: static;
    transform: none;
    width: auto;
  }
}

/* ================= GALLERY ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 2.5rem;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background-color: var(--color-placeholder-1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ================= SECTION HEADER ================= */
.section-header { max-width: 760px; margin: 0 auto 1rem; text-align: left; }
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ================= FOOTER ================= */
footer.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 2rem 0;
  font-size: 0.85rem;
}

footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

footer.site-footer a { color: var(--color-text-on-dark); opacity: 0.75; }
footer.site-footer a:hover { opacity: 1; }

/* ================= RESPONSIVE ================= */
@media (max-width: 860px) {
  .hero { flex-direction: column; }
  :root { --padding-section-y: 64px; }
  .section-split.flip { flex-direction: row; }
}
