/* PuzziGeo – brand colors taken from the logo */
:root {
  --orange: #d1831a;
  --orange-dark: #b06b0f;
  --teal: #2aad94;
  --teal-dark: #1f8a76;
  --forest: #0f2e28;
  --forest-2: #163d35;
  --gray: #9a9a9a;
  --ink: #1d2523;
  --muted: #5b6764;
  --line: #e3e8e6;
  --bg: #ffffff;
  --tint: #f4f7f6;
  --radius: 14px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--orange-dark); }

/* Language switching: show only the spans for the active language */
html[lang="en"] [data-lang="pt"],
html[lang="pt"] [data-lang="en"] { display: none !important; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.kicker, .eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: .6em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { width: 168px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--teal-dark); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: none; cursor: pointer;
  font: 600 .8rem var(--font-body); color: var(--muted);
  padding: 5px 11px; border-radius: 999px;
}
html[lang="en"] [data-set-lang="en"],
html[lang="pt"] [data-set-lang="pt"] { background: var(--forest); color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--forest);
  color: #fff;
  padding: 128px 0 136px;
}
/* Aerial photo with a dark green overlay so the text stays readable */
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 33, 29, .88) 0%, rgba(15, 46, 40, .7) 50%, rgba(15, 46, 40, .35) 100%),
    url("assets/hero.jpg") center / cover no-repeat;
}
@media (max-width: 900px) {
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(10, 33, 29, .82), rgba(10, 33, 29, .72)),
      url("assets/hero-small.jpg") center / cover no-repeat;
  }
}
.hero-inner { position: relative; }
.hero h1 { color: #fff; max-width: 800px; overflow-wrap: break-word; }
.hero .eyebrow { color: #f0b25c; }
.hero .lead { font-size: 1.2rem; color: rgba(255, 255, 255, .82); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-block; text-decoration: none;
  font: 600 .98rem var(--font-body);
  padding: 13px 24px; border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-lg { font-size: 1.1rem; padding: 16px 30px; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-intro { max-width: 760px; color: var(--muted); margin-bottom: 40px; }

.grid { display: grid; gap: 20px; }
.services { grid-template-columns: repeat(4, 1fr); margin-top: 36px; }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.service p { color: var(--muted); font-size: .95rem; margin: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(42, 173, 148, .12);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Projects */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project { display: flex; flex-direction: column; border-top: 4px solid var(--teal); padding: 32px; }
.project:nth-child(2) { border-top-color: var(--orange); }
.project-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .85rem; }
.year { font: 700 .85rem var(--font-head); background: var(--forest); color: #fff; padding: 3px 10px; border-radius: 6px; }
.client { color: var(--muted); font-weight: 500; }
.project h3 { font-size: 1.4rem; }
.project > p { color: var(--muted); }
.deliverables { padding: 0; margin: 0 0 20px; list-style: none; }
.deliverables li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: .95rem; }
.deliverables li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: auto 0 0; list-style: none; }
.tags li { font-size: .78rem; font-weight: 500; color: var(--teal-dark); background: rgba(42, 173, 148, .1); padding: 4px 10px; border-radius: 999px; }
.more { margin-top: 18px; font-weight: 600; font-size: .92rem; text-decoration: none; }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.role { font-family: var(--font-head); color: var(--teal-dark); font-weight: 500; font-size: 1.1rem; margin-top: -.3em; }
.about-text p { color: #34403d; }
.links a { font-weight: 600; text-decoration: none; }
.about-facts { background: var(--tint); border-radius: var(--radius); padding: 8px 28px; }
.fact { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.fact:last-child { border-bottom: 0; }
.fact-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--orange-dark); font-weight: 600; }
.fact-value { font-size: .95rem; }

/* Contact */
.contact { background: var(--forest); color: #fff; padding: 72px 0; }
.contact h2 { color: #fff; }
.contact p { color: rgba(255, 255, 255, .75); margin: 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #0a211d; color: rgba(255, 255, 255, .65); padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer img { width: 220px; }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 4px; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #f0b25c; }
.copy { opacity: .7; }

/* Responsive */
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr 1fr; }
  .projects, .about { grid-template-columns: 1fr; }
  .about { gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav { display: none; }
  .lang-switch { margin-left: auto; }
  .brand img { width: 140px; }
  .hero { padding: 72px 0 80px; }
  .section { padding: 64px 0; }
  .services { grid-template-columns: 1fr; }
  .card, .project { padding: 22px; }
  .footer-meta { text-align: left; }
}
