/* calvin's — rascunho do sítio calvins.pt
   Cores oficiais: Pantone 356 U #00853F, Pantone 382 U #C1D82F */
:root {
  --green: #00853F;
  --green-hover: #007536;
  --green-dark: #006833;
  --green-deep: #062116;
  --green-mid: #0d3a24;
  --lime: #C1D82F;
  --lime-soft: #d4e64a;
  --ink: #142018;
  --ink-soft: #3c4a40;
  --muted: #5b675e;
  --paper: #f3f5ef;
  --paper-2: #e6ebe1;
  --white: #ffffff;
  --line: #d4dcd2;
  --whatsapp: #128c7e;
  --whatsapp-hover: #0f7a6e;
  --warn: #6e5610;
  --warn-bg: #f7f0d6;
  --warn-line: #e4d7a2;
  --shadow: 0 10px 30px rgba(11, 23, 16, 0.08);
  --radius: 16px;
  --header-h: 4.25rem;
  --max: 70rem;
  --font: "Century Gothic", "TeX Gyre Adventor", sans-serif;
}

@font-face {
  font-family: "TeX Gyre Adventor";
  src: url("../fonts/texgyreadventor-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Adventor";
  src: url("../fonts/texgyreadventor-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green-dark); }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--lime);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

/* ---------- draft ribbon ---------- */
.draft-banner {
  background: var(--warn-bg);
  color: var(--warn);
  border-bottom: 1px solid var(--warn-line);
  font-size: 0.92rem;
}
.draft-banner .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.draft-banner strong { font-weight: 700; }
.draft-banner summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.draft-banner summary::-webkit-details-marker { display: none; }
.draft-banner summary::after { content: " ▾"; font-weight: 400; }
.draft-banner ul {
  margin: 0.4rem 0 0.15rem;
  padding-left: 1.15rem;
}
.draft-banner li { margin: 0.2rem 0; }

.flag {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid var(--warn-line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: 0.12em;
  line-height: 1.4;
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--green-deep);
  color: var(--white);
  border-bottom: 1px solid rgba(193, 216, 47, 0.18);
  min-height: var(--header-h);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 3rem;
  height: 2.2rem;
  object-fit: contain;
}
.brand-name {
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--lime);
  text-transform: lowercase;
}

.nav-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 10px;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.nav {
  display: none;
}
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: #072418;
  padding: 0.75rem 1rem 1.1rem;
  gap: 0.15rem;
  border-bottom: 1px solid rgba(193, 216, 47, 0.18);
  box-shadow: 0 16px 30px rgba(0,0,0,0.25);
}
.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 400;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
}
.nav a:hover,
.nav a:focus-visible { background: rgba(255,255,255,0.06); color: var(--lime); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.btn-lime {
  background: var(--lime);
  color: var(--ink);
}
.btn-lime:hover { background: var(--lime-soft); }
.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: var(--green-hover); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--whatsapp-hover); }
.btn-outline {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--paper); }

/* ---------- hero ---------- */
/* Fundo: teto-rasgo-luz.jpg (caixa de escada). */
.hero {
  background:
    linear-gradient(180deg, rgba(6, 33, 22, 0.78) 0%, rgba(6, 33, 22, 0.68) 45%, rgba(13, 58, 36, 0.82) 100%),
    url("../images/obras/teto-rasgo-luz.jpg") center 40% / cover no-repeat,
    linear-gradient(180deg, var(--green-deep) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.hero-logo {
  width: min(11.5rem, 52vw);
  margin: 0 auto 1.35rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.28));
}
.hero h1 {
  margin: 0 auto 0.85rem;
  max-width: 18ch;
  font-size: clamp(1.7rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}
.hero .lead {
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  color: rgba(255,255,255,0.86);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 22rem;
  margin: 0 auto;
}
.hero-actions .btn { width: 100%; }

/* ---------- sections ---------- */
section { padding: 3.4rem 0; }

.section-head {
  max-width: 40rem;
  margin-bottom: 1.8rem;
}
.eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: 0;
}
.section-head p { margin: 0; color: var(--ink-soft); }

.alt { background: var(--white); }

/* ---------- services ---------- */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.alt .card { background: var(--paper); box-shadow: none; }
.icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 12px;
  background: #e7f5eb;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}
.icon svg { width: 1.55rem; height: 1.55rem; }
.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  letter-spacing: 0;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card .note {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- why ---------- */
.reasons {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.reason {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.reason .num {
  display: inline-block;
  font-weight: 700;
  color: var(--green-dark);
  background: #e7f5eb;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}
.reason h3 { margin: 0 0 0.35rem; font-size: 1.08rem; }
.reason p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}
.gallery-filters button {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--green-dark);
  background: var(--white);
  border: 1.5px solid #c9d6c6;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}
.gallery-filters button:hover,
.gallery-filters button:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}
.gallery-filters button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 1;
  column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 1rem;
}
.gallery-item.featured { column-span: all; }
.gallery-item.is-hidden { display: none; }
.gallery-link {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(6, 33, 22, 0.06);
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.gallery-link img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.gallery-link .caption {
  display: block;
  padding: 0.7rem 0.9rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.gallery-link:hover .caption,
.gallery-link:focus-visible .caption {
  color: var(--green-dark);
}
.gallery-link:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 33, 22, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox-inner {
  position: relative;
  width: min(96vw, 1100px);
  max-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox figure {
  margin: 0;
  max-width: 100%;
  text-align: center;
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(96vh - 4.2rem);
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.lightbox figcaption {
  margin: 0.7rem 2.5rem 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  font-family: inherit;
  color: var(--white);
  background: rgba(0,0,0,0.35);
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
}
.lightbox-close {
  top: 0;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.6rem;
  z-index: 2;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.8rem;
}
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  background: var(--green);
  outline: none;
}

/* ---------- zone ---------- */
.zone-grid {
  display: grid;
  gap: 1rem;
}
.places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.places li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin: 0 0 0.8rem; font-size: 1.15rem; }
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.contact-list a { font-weight: 700; text-decoration: none; color: var(--green-dark); }
.contact-list a:hover { text-decoration: underline; }
.contact-list span.label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.contact-hint,
.contact-list a.contact-hint {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
}
.contact-list a.contact-hint:hover { text-decoration: underline; }
.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

form { display: grid; gap: 0.8rem; }
label { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.95rem; }
input, textarea, select {
  font: inherit;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: 3px solid rgba(0, 133, 63, 0.28);
  border-color: var(--green);
}
textarea { min-height: 8.5rem; resize: vertical; }
.form-note { margin: 0; font-size: 0.88rem; color: var(--muted); }
.form-status[hidden] { display: none; }
.form-status {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #e7f5eb;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.82);
  padding: 2.2rem 0 2.4rem;
  font-size: 0.95rem;
}
.site-footer strong { color: var(--lime); font-weight: 700; }
.site-footer p { margin: 0.35rem 0; }
.site-footer a { color: var(--lime-soft); }

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  .hero { padding: 4.2rem 0 5rem; }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }
  .hero-actions .btn { width: auto; min-width: 10.5rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .gallery { column-count: 2; }
  .gallery-item.featured { margin-bottom: 1rem; }
  .contact-actions { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 0.15rem;
  }
  .nav a { padding: 0.4rem 0.7rem; font-size: 0.95rem; }
  .hero { padding: 5rem 0 5.6rem; text-align: left; }
  .hero .wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
  }
  .hero-logo { margin: 0; width: 15.5rem; }
  .hero h1 { margin-left: 0; max-width: 22ch; }
  .hero .lead { margin-left: 0; }
  .hero-actions { justify-content: flex-start; margin: 0; }
  .gallery { column-count: 3; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .reasons { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
  section { padding: 4.4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

section[id],
#topo {
  scroll-margin-top: calc(var(--header-h) + 0.6rem);
}

.hero-note {
  margin: -1.15rem auto 1.5rem;
  max-width: 38rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
}
.contact-actions { margin-top: auto; padding-top: 1.5rem; }

.card-cta .note a {
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
}
.card-cta .note a:hover { text-decoration: underline; }

@media (min-width: 980px) {
  .hero-note { margin-left: 0; }
}

.hero-badges {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 36rem;
  margin-inline: auto;
}
.hero-badges li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-align: left;
  border: 1px solid rgba(193, 216, 47, 0.32);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.65rem 0.9rem 0.7rem;
}
.hero-badges .badge-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}
.hero-badges .badge-num {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.01em;
}

.creds {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}
.cred {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.25rem;
}
.cred h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  letter-spacing: 0;
  color: var(--white);
  font-weight: 700;
}
.cred p {
  margin: 0;
  color: var(--lime);
  font-weight: 700;
  font-size: 1.05rem;
}

@media (min-width: 720px) {
  .hero-badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }
  .hero-badges li { flex: 1 1 16rem; max-width: 24rem; }
  .creds { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .hero-badges { justify-content: flex-start; margin-left: 0; margin-right: 0; }
}
