/*
Theme Name: J.M Domingos Vedações
Theme URI: https://jmdomingos.pt/
Author: Codex
Description: Tema WordPress personalizado para J.M Domingos Unipessoal LDA, com landing page, botões WhatsApp e galeria editável de trabalhos.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: jm-domingos
*/

:root {
  --green-950: #0f261b;
  --green-900: #153624;
  --green-850: #183d2b;
  --green-800: #1f4a31;
  --green-700: #2d6840;
  --green-500: #5b9a3f;
  --wood: #9a6a35;
  --soil: #5b3c25;
  --paper: #f6f3ea;
  --mist: #eef2ec;
  --white: #ffffff;
  --ink: #17211b;
  --muted: #5d685e;
  --line: rgba(23, 33, 27, 0.12);
  --shadow: 0 24px 64px rgba(23, 33, 27, 0.16);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 16px;
  color: var(--green-950);
  background: var(--white);
  border-radius: 4px;
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 56px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
}

.site-header.is-scrolled {
  position: fixed;
  background: rgba(15, 38, 27, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled .topbar {
  display: none;
}

.site-header.is-scrolled .navbar__inner {
  min-height: 74px;
}

.site-header.is-scrolled .brand img {
  width: 170px;
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 26, 18, 0.28);
  backdrop-filter: blur(16px);
}

.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.topbar p {
  margin: 0;
}

.topbar strong {
  color: var(--white);
}

.topbar__phones {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.topbar a {
  transition: color 180ms ease;
}

.topbar a:hover {
  color: #d8edc8;
}

.navbar__inner {
  min-height: 94px;
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 214px;
  max-height: 78px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.24));
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--green-500);
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), #74a844);
  box-shadow: 0 14px 34px rgba(42, 111, 62, 0.34);
}

.btn--primary:hover {
  box-shadow: 0 18px 42px rgba(42, 111, 62, 0.42);
}

.btn--secondary {
  color: var(--green-950);
  background: var(--white);
}

.btn--outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 880px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 24, 16, 0.92) 0%, rgba(14, 37, 24, 0.78) 34%, rgba(14, 37, 24, 0.34) 64%, rgba(14, 37, 24, 0.18) 100%),
    linear-gradient(0deg, rgba(9, 24, 16, 0.34), rgba(9, 24, 16, 0.08)),
    url("assets/hero-rural-fencing.webp") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 243, 234, 0) 0%, var(--paper) 88%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 690px) 1fr;
  gap: 56px;
  padding-top: 212px;
}

.hero__content {
  min-width: 0;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #d8edc8;
}

.eyebrow::before {
  content: "";
  width: 46px;
  height: 2px;
  background: var(--green-500);
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.98;
}

.hero__lead {
  max-width: 640px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
}

.proof-card {
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.proof-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
}

.proof-card span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.hero-card {
  align-self: end;
  justify-self: end;
  width: min(360px, 100%);
  margin: 250px 0 0;
  padding: 24px;
  border-radius: var(--radius);
  color: var(--green-950);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.hero-card img {
  width: 240px;
  margin-bottom: 18px;
}

.hero-card h2 {
  margin-bottom: 8px;
  color: var(--green-950);
  font-size: 22px;
  line-height: 1.15;
}

.hero-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
}

.mini-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-500);
}

.trust-strip {
  position: relative;
  z-index: 4;
  margin-top: -54px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 22px 54px rgba(23, 33, 27, 0.12);
}

.trust-grid article {
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.trust-grid article:last-child {
  border-right: 0;
}

.trust-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-grid strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.section {
  padding: 104px 0;
}

.section--paper {
  background: var(--paper);
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

h2 {
  margin-bottom: 16px;
  color: var(--green-950);
  font-size: clamp(34px, 3.3vw, 44px);
  line-height: 1.06;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 58px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media > img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-badge {
  position: absolute;
  left: 28px;
  bottom: 28px;
  max-width: 270px;
  padding: 20px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, rgba(21, 54, 36, 0.96), rgba(44, 100, 58, 0.94));
}

.about-badge strong {
  display: block;
  margin-bottom: 6px;
  font-size: 26px;
  line-height: 1;
}

.about-badge span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.about-copy p {
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
}

.check {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-700);
  font-weight: 950;
}

.feature-list strong {
  display: block;
  color: var(--green-950);
}

.feature-list span:not(.check) {
  display: block;
  color: var(--muted);
}

.services {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(91, 154, 63, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(15, 38, 27, 0.98), rgba(15, 38, 27, 0.98));
}

.services .section-label,
.services h2 {
  color: var(--white);
}

.services .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 278px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.service-card--featured {
  background: linear-gradient(135deg, rgba(63, 128, 62, 0.56), rgba(255, 255, 255, 0.08));
}

.service-card > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #d9efc8;
  font-weight: 950;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 23px;
  line-height: 1.16;
}

.service-card p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.service-card a {
  color: #d8edc8;
  font-size: 14px;
  font-weight: 950;
}

.process-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: stretch;
}

.process-panel {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 42px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(15, 38, 27, 0.84), rgba(15, 38, 27, 0.3)),
    url("assets/gallery-caminho.webp") center / cover no-repeat;
}

.process-panel .section-label,
.process-panel h2 {
  color: var(--white);
}

.process-panel p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.step > span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-800);
  font-size: 22px;
  font-weight: 950;
}

.step h3 {
  margin-bottom: 6px;
  color: var(--green-950);
  font-size: 22px;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery {
  background: var(--mist);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-900);
}

.gallery-item--large {
  grid-column: span 7;
  min-height: 430px;
}

.gallery-item--medium {
  grid-column: span 5;
  min-height: 430px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 38, 27, 0) 42%, rgba(15, 38, 27, 0.84) 100%);
}

.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: var(--white);
  font-size: 18px;
  font-weight: 950;
}

.cta-band {
  padding: 82px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 38, 27, 0.96), rgba(28, 74, 48, 0.9)),
    url("assets/gallery-floresta.webp") center / cover no-repeat;
}

.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 46px;
  align-items: center;
}

.cta-band h2 {
  max-width: 760px;
  color: var(--white);
}

.cta-band p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.why-grid article {
  min-height: 222px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(23, 33, 27, 0.06);
}

.why-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--green-700);
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.why-grid h3 {
  margin-bottom: 8px;
  color: var(--green-950);
  font-size: 20px;
}

.why-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.contact {
  padding: 108px 0 74px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 24%, rgba(91, 154, 63, 0.16), transparent 26%),
    var(--green-950);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 56px;
  align-items: start;
}

.contact .section-label {
  color: #98c978;
}

.contact h2 {
  color: var(--white);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.phone-stack {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}

.phone-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  transition: background 180ms ease, transform 180ms ease;
}

.phone-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.phone-card strong {
  font-size: 22px;
}

.phone-card span {
  color: #d8edc8;
  font-size: 13px;
  font-weight: 950;
}

.company-info {
  font-size: 14px;
}

.contact-form {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.25);
}

.contact-form h2 {
  margin-bottom: 22px;
  color: var(--green-950);
  font-size: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.contact-form label span {
  display: block;
  margin-bottom: 7px;
  color: #405047;
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 33, 27, 0.16);
  border-radius: 4px;
  color: var(--green-950);
  background: #f8faf7;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 54px;
  padding: 0 16px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 128px;
  padding: 15px 16px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(45, 104, 64, 0.74);
  box-shadow: 0 0 0 4px rgba(45, 104, 64, 0.12);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.consent input {
  width: 18px;
  min-height: auto;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-700);
}

.consent span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  color: rgba(255, 255, 255, 0.74);
  background: #0a1912;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.footer img {
  width: 180px;
  max-height: 80px;
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--white);
  background: #1f8f45;
  box-shadow: 0 14px 34px rgba(15, 38, 27, 0.32);
  font-size: 14px;
  font-weight: 950;
}

.admin-bar .site-header.is-scrolled {
  top: 32px;
}

.brand .custom-logo {
  width: 214px;
  height: auto;
}

.site-header.is-scrolled .brand .custom-logo {
  width: 170px;
}

.footer-links {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-item {
  appearance: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gallery-item__caption,
.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: var(--white);
  font-size: 18px;
  font-weight: 950;
}

.gallery-play {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--green-950);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  font-size: 18px;
  font-weight: 950;
}

.lightbox-open {
  overflow: hidden;
}

.jm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.jm-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.jm-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 14, 0.86);
  backdrop-filter: blur(10px);
}

.jm-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(86vh, 860px);
  display: grid;
  gap: 14px;
}

.jm-lightbox__media {
  overflow: hidden;
  border-radius: var(--radius);
  background: #07110c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.jm-lightbox__media img,
.jm-lightbox__media video,
.jm-lightbox__media iframe {
  width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: contain;
  border: 0;
}

.jm-lightbox__media iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

.jm-lightbox__caption {
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.jm-lightbox__close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--green-950);
  background: var(--white);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 1120px) {
  .hero__inner,
  .about-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-self: start;
    margin-top: 16px;
  }

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

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

@media (max-width: 900px) {
  .admin-bar .site-header.is-scrolled {
    top: 46px;
  }

  .container {
    width: min(100% - 36px, var(--container));
  }

  .topbar {
    display: none;
  }

  .site-header {
    position: absolute;
  }

  .navbar {
    padding-top: 12px;
  }

  .navbar__inner {
    min-height: 74px;
    grid-template-columns: 190px auto;
    justify-content: space-between;
  }

  .brand img {
    width: 174px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 40;
  }

  .nav-panel {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 92px 28px 28px;
    background: rgba(15, 38, 27, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu-open .nav-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 18px;
    font-size: 24px;
  }

  .btn--nav {
    width: min(100%, 320px);
  }

  .hero {
    min-height: auto;
    background-position: 58% center;
  }

  .hero__inner {
    padding-top: 134px;
    padding-bottom: 96px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-card {
    width: 100%;
  }

  .trust-strip {
    margin-top: 0;
  }

  .trust-grid {
    transform: translateY(-36px);
  }

  .section {
    padding: 76px 0;
  }

  .about-media > img {
    height: 430px;
  }

  .gallery-item,
  .gallery-item--large,
  .gallery-item--medium {
    grid-column: span 12;
    min-height: 320px;
  }

  .cta-band__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .btn {
    width: 100%;
    min-height: 52px;
    white-space: normal;
  }

  .hero__actions {
    gap: 10px;
  }

  .trust-grid,
  .service-grid,
  .why-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-grid article:last-child {
    border-bottom: 0;
  }

  .about-media > img {
    height: 360px;
  }

  .about-badge {
    position: static;
    max-width: none;
    margin-top: -88px;
    margin-right: 16px;
    margin-left: 16px;
  }

  .feature-list li,
  .step {
    grid-template-columns: 1fr;
  }

  .process-panel {
    min-height: 360px;
    padding: 28px;
  }

  .phone-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .contact-form {
    padding: 24px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer nav {
    flex-wrap: wrap;
  }

  .floating-whatsapp {
    display: none;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-card img {
    width: 210px;
  }
}
