:root {
  --bg: #f4efe4;
  --panel: rgba(255, 252, 245, 0.82);
  --panel-strong: #fffaf0;
  --text: #213021;
  --muted: #5f6f5f;
  --green: #2f6b3b;
  --green-deep: #1f4d2e;
  --gold: #d8a437;
  --line: rgba(47, 107, 59, 0.12);
  --shadow: 0 20px 50px rgba(33, 48, 33, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 164, 55, 0.25), transparent 32%),
    linear-gradient(135deg, rgba(47, 107, 59, 0.16), transparent 45%),
    linear-gradient(180deg, #f8f4ea 0%, var(--bg) 100%);
  overflow-x: hidden;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.95fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-card,
.panel {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 28px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 59, 0.2), transparent 65%);
}

.eyebrow,
.section-tag,
.card-label,
.job-meta {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow,
.section-tag,
.card-label {
  color: var(--green);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.04;
  margin-bottom: 16px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.hero-text,
.subtitle,
.letter-card p,
.card p,
.card li,
.contact-box p {
  color: var(--muted);
}

.hero-text {
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(47, 107, 59, 0.12);
  box-shadow: 0 8px 18px rgba(33, 48, 33, 0.06);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.trust-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(33, 48, 33, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.trust-link.whatsapp {
  background: rgba(37, 211, 102, 0.12);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #4b8b48);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(47, 107, 59, 0.08);
  color: var(--green-deep);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hero-actions .tab-button {
  flex: 1 1 220px;
}

.download-button {
  background: linear-gradient(135deg, var(--gold), #e1b85d);
  color: #24311f;
}

.download-button:hover {
  background: linear-gradient(135deg, #c79022, var(--gold));
  color: #1d281a;
}

.tab-button:hover,
.tab-button.active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--green), #4b8b48);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 107, 59, 0.24);
}

.hero-card {
  border-radius: 28px;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(247, 241, 228, 0.88)),
    var(--panel);
}

.hero-photo {
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0 auto 20px;
  border-radius: 24px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 34px rgba(33, 48, 33, 0.16);
}

.summary-list,
.card ul {
  margin: 0;
  padding-left: 20px;
}

.summary-list li,
.card li {
  margin-bottom: 10px;
}

.panel {
  border-radius: 30px;
  padding: 30px;
}

.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

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

.profile-photo {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  object-fit: cover;
  border: 3px solid rgba(47, 107, 59, 0.16);
  box-shadow: 0 10px 24px rgba(33, 48, 33, 0.12);
}

.contact-box {
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.contact-box p:last-child,
.card p:last-child,
.letter-card p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.letter-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(33, 48, 33, 0.06);
}

.letter-meta {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.letter-meta p {
  margin-bottom: 6px;
}

.accent-card {
  background:
    linear-gradient(135deg, rgba(216, 164, 55, 0.16), rgba(47, 107, 59, 0.1)),
    var(--panel-strong);
}

.chip-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list li {
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(47, 107, 59, 0.1);
  color: var(--green-deep);
  font-weight: 600;
  word-break: break-word;
}

.job-line {
  margin-bottom: 6px;
}

.job-meta {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
}

.hidden {
  display: none;
}

.site-footer {
  text-align: center;
  padding: 12px 18px 0;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(135deg, var(--green), #4b8b48);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(33, 48, 33, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
}

.scroll-top-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 860px) {
  .hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 24px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 24px;
  }

  .profile-head {
    flex-direction: column;
  }

  .profile-identity {
    align-items: center;
    text-align: center;
  }

  .contact-box {
    width: 100%;
    min-width: auto;
  }

  .hero-photo {
    max-width: 220px;
  }

  .hero-text {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 18px, 1120px);
    padding-top: 18px;
    padding-bottom: 28px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero {
    gap: 16px;
    margin-bottom: 16px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-text {
    margin-bottom: 20px;
    font-size: 1rem;
  }

  .trust-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 10px;
  }

  .tab-button {
    width: 100%;
    padding: 13px 18px;
  }

  .trust-link {
    width: 100%;
    justify-content: center;
    padding: 12px 10px;
  }

  .hero-card {
    padding-top: 18px;
  }

  .hero-photo {
    max-width: 180px;
    margin-bottom: 16px;
    border-radius: 20px;
  }

  .summary-list li,
  .card li {
    margin-bottom: 8px;
  }

  .card,
  .letter-card,
  .contact-box {
    padding: 20px;
    border-radius: 20px;
  }

  .profile-head {
    gap: 16px;
  }

  .profile-photo {
    width: 88px;
    height: 88px;
  }

  .profile-identity {
    align-items: flex-start;
    text-align: left;
  }

  .scroll-top-btn {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    width: min(100% - 12px, 1120px);
  }

  .hero-copy,
  .hero-card,
  .panel,
  .card,
  .letter-card,
  .contact-box {
    padding: 16px;
  }

  h1 {
    font-size: 1.95rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .trust-links {
    grid-template-columns: 1fr;
  }

  .trust-link,
  .tab-button {
    font-size: 0.95rem;
  }

  .chip-list li {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .scroll-top-btn {
    width: 46px;
    height: 46px;
    right: 12px;
    bottom: 12px;
  }

  .scroll-top-btn svg {
    width: 20px;
    height: 20px;
  }
}
