/* =========================================================
   Farmácia Saúde Farma — landing page
   ========================================================= */

:root {
  --red: #ED163A;
  --red-dark: #C80F2E;
  --blue: #0873BB;
  --blue-dark: #065C96;
  --navy: #123D70;
  --pink: #F7DEE5;
  --sky: #EAF4FB;
  --ice: #F8FAFC;
  --white: #FFFFFF;
  --text: #4B5E73;
  --muted: #6C7C8F;
  --line: rgba(18, 61, 112, 0.09);
  --green: #16A34A;
  --wa: #25D366;
  --radius: 20px;
  --shadow-sm: 0 6px 20px rgba(18, 61, 112, 0.08);
  --shadow-md: 0 18px 45px rgba(18, 61, 112, 0.13);
  --shadow-lg: 0 30px 70px rgba(18, 61, 112, 0.2);
  --container: 1180px;
  --header-h: 78px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
}

/* ---------- base ---------- */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul,
ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--pink);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid rgba(8, 115, 187, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn--whats {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 26px rgba(237, 22, 58, 0.28);
}

.btn--whats:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(237, 22, 58, 0.34);
}

.btn--outline {
  background: #fff;
  color: var(--blue);
  border: 2px solid rgba(8, 115, 187, 0.55);
}

.btn--outline:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--red);
  box-shadow: 0 10px 24px rgba(80, 0, 10, 0.18);
}

.btn--white:hover {
  background: var(--ice);
  transform: translateY(-2px);
}

.btn--ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ---------- topbar ---------- */

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}

.topbar__hours,
.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar .icon {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar__links a {
  transition: color 0.2s ease;
}

.topbar__links a:hover {
  color: #fff;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 34px rgba(18, 61, 112, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  border-radius: 10px;
  transition: transform 0.25s ease;
}

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

.brand img {
  height: 50px;
  width: auto;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a:not(.btn) {
  position: relative;
  padding: 6px 0;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s ease;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav a:not(.btn):hover,
.nav a:not(.btn).is-active {
  color: var(--red);
}

.nav a:not(.btn):hover::after,
.nav a:not(.btn).is-active::after {
  width: 100%;
}

.nav__cta {
  padding: 11px 20px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--sky);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 92px;
  background:
    radial-gradient(760px 430px at 94% 2%, rgba(247, 222, 229, 0.92), transparent 64%),
    radial-gradient(620px 400px at 0% 100%, rgba(8, 115, 187, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--ice) 48%, var(--sky) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(8, 115, 187, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(520px 320px at 6% 26%, #000 0%, transparent 72%);
  mask-image: radial-gradient(520px 320px at 6% 26%, #000 0%, transparent 72%);
  opacity: 0.7;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(237, 22, 58, 0.14);
  box-shadow: var(--shadow-sm);
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow .icon {
  width: 14px;
  height: 14px;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
}

.text-red {
  color: var(--red);
}

.hero__lead {
  max-width: 540px;
  font-size: 1.05rem;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 26px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
}

.hero__chips > li:not(.status) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__chips .icon {
  width: 17px;
  height: 17px;
  color: var(--red);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  flex: none;
}

.status.is-open {
  color: #0f7a3d;
}

.status.is-open .status__dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.status.is-closed .status__dot {
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}

.hero__media {
  position: relative;
}

.hero__media::before {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -26px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--pink);
  z-index: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  top: -16px;
  left: -20px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px dashed rgba(8, 115, 187, 0.4);
  z-index: 0;
}

.hero__photo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 540px;
  border: 6px solid #fff;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.hero__photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(18, 61, 112, 0.08);
  pointer-events: none;
}

.hero__address {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  max-width: calc(100% - 36px);
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: 0 10px 26px rgba(9, 30, 60, 0.16);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero__address:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(9, 30, 60, 0.22);
}

.hero__address .icon {
  width: 20px;
  height: 20px;
  color: var(--red);
}

.hero__address strong {
  display: block;
  font-size: 0.83rem;
}

/* ---------- sections ---------- */

.section {
  padding: 92px 0;
}

.section--white {
  background: #fff;
}

.section--sky {
  background: linear-gradient(180deg, var(--sky) 0%, #f2f9fe 100%);
}

.section-head {
  max-width: 660px;
  margin: 0 auto 54px;
  text-align: center;
}

.kicker {
  display: block;
  margin-bottom: 6px;
  font-family: var(--script);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--red);
}

.section-head h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
}

.section-head p {
  max-width: 580px;
  margin-inline: auto;
  font-size: 0.98rem;
  color: var(--muted);
}

/* ---------- serviços ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service {
  padding: 28px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: var(--ice);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.service:hover {
  transform: translateY(-4px);
  border-color: rgba(237, 22, 58, 0.18);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--pink);
  color: var(--red);
  transition: background 0.3s ease, color 0.3s ease;
}

.service__icon .icon {
  width: 28px;
  height: 28px;
}

.service:hover .service__icon {
  background: var(--red);
  color: #fff;
}

.service h3 {
  margin-bottom: 7px;
  font-size: 1.06rem;
}

.service p {
  font-size: 0.92rem;
  color: var(--muted);
}

.services__note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: #8a97a6;
}

/* ---------- categorias ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 16px;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 128px;
  padding: 20px 14px;
  border: 1px solid rgba(18, 61, 112, 0.06);
  border-radius: 18px;
  background: #fff;
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.category .icon {
  width: 28px;
  height: 28px;
  padding: 13px;
  box-sizing: content-box;
  border-radius: 16px;
  background: var(--sky);
  color: var(--blue);
  transition: background 0.28s ease, color 0.28s ease;
}

.category span {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.category:hover {
  transform: translateY(-3px);
  border-color: rgba(237, 22, 58, 0.22);
  box-shadow: var(--shadow-sm);
}

.category:hover .icon {
  background: var(--pink);
  color: var(--red);
}

.cat-extra {
  display: contents;
}

.category--cta {
  background: var(--pink);
  border-color: rgba(237, 22, 58, 0.12);
}

.category--cta .icon {
  background: #fff;
  color: var(--red);
}

.category--cta small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #7c5b65;
}

.category--cta:hover {
  background: #fff;
  border-color: rgba(237, 22, 58, 0.28);
}

.category--cta:hover .icon {
  background: var(--red);
  color: #fff;
}

/* ---------- galeria ---------- */

.gallery__page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  animation: gallery-fade 0.4s ease both;
}

.gallery__page[hidden] {
  display: none;
}

@keyframes gallery-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.gallery__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.gallery__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery__arrow:hover {
  background: var(--blue);
  color: #fff;
}

.gallery__arrow:active {
  transform: scale(0.96);
}

.gallery__arrow .icon {
  width: 20px;
  height: 20px;
}

.gallery__dots {
  display: flex;
  gap: 8px;
}

.gallery__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 61, 112, 0.18);
  transition: width 0.25s ease, background 0.25s ease;
}

.gallery__dot.is-active {
  width: 26px;
  background: var(--red);
}

.gallery__count {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .gallery__page {
    animation: none;
  }
}

.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: var(--sky);
  box-shadow: var(--shadow-sm);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 55%;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery__item:hover img {
  transform: scale(1.07);
}

.gallery__tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(to top, rgba(9, 30, 60, 0.78), transparent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
}

.gallery__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery__zoom .icon {
  width: 17px;
  height: 17px;
}

.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom {
  opacity: 1;
  transform: none;
}

/* ---------- farmácia no Mangalô + FAQ ---------- */

.local__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.contact .local__grid {
  margin-bottom: 44px;
}

.local__text p {
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.local__text p:last-child {
  margin-bottom: 0;
}

.local__text strong {
  color: var(--navy);
}

.local__text a,
.faq__item a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.local__text a:hover,
.faq__item a:hover {
  color: var(--red);
}

.faq {
  padding: 26px 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.faq h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  font-size: 1rem;
  font-weight: 500;
}

.faq__item[open] summary::after {
  content: "−";
  background: var(--pink);
  color: var(--red);
}

.faq__item p {
  padding: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- contato ---------- */

.contact {
  background:
    radial-gradient(680px 380px at 100% 0%, rgba(247, 222, 229, 0.65), transparent 65%),
    linear-gradient(180deg, var(--ice), var(--sky));
}

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

.info-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 13px;
  background: var(--sky);
  color: var(--blue);
}

.info-card__icon .icon {
  width: 22px;
  height: 22px;
}

.info-card h3 {
  font-size: 1rem;
}

.info-card p {
  font-size: 0.87rem;
  color: var(--muted);
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #e3ebf3;
  font-size: 0.83rem;
  color: var(--muted);
}

.hours li:last-child {
  border-bottom: 0;
}

.hours strong {
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}

.info-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue);
  word-break: break-word;
  transition: color 0.2s ease;
}

.info-link:hover {
  color: var(--red);
}

.info-link--muted {
  font-weight: 500;
  color: var(--muted);
}

.contact__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 26px;
  padding: 32px 36px;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--red) 0%, #d81036 55%, #b90c2c 100%);
  color: #fff;
  box-shadow: 0 22px 48px rgba(237, 22, 58, 0.24);
}

.contact__cta h3 {
  margin-bottom: 5px;
  font-size: 1.35rem;
  color: #fff;
}

.contact__cta p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}

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

/* ---------- footer ---------- */

.site-footer {
  padding: 60px 0 26px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand img {
  height: 62px;
  width: auto;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
}

.footer-brand p {
  max-width: 250px;
  margin-top: 16px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.footer-social .icon {
  width: 19px;
  height: 19px;
}

.rdc {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.rdc__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 88px;
  height: 88px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}

.rdc__logo img {
  width: 100%;
  height: auto;
}

.rdc h3 {
  margin-bottom: 7px;
  font-size: 0.98rem;
  color: #fff;
}

.rdc p {
  font-size: 0.78rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.66);
}

.rdc strong {
  color: #fff;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 32px;
  padding: 34px 0 30px;
  margin: 0;
}

.legal-item dt {
  margin-bottom: 2px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.legal-item dd {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.48);
}

/* ---------- floating actions ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.42);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: waPulse 2.6s ease-out infinite;
  pointer-events: none;
}

.wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.5);
}

.wa-float .icon {
  width: 31px;
  height: 31px;
}

.wa-float__label {
  display: none;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  75% {
    transform: scale(1.42);
    opacity: 0;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 98px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top .icon {
  width: 19px;
  height: 19px;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 22, 42, 0.93);
  backdrop-filter: blur(4px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1000px, 100%);
  max-height: 85vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .topbar__links {
    gap: 16px;
  }

  .nav {
    gap: 22px;
  }

  .hero__photo {
    height: 490px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 72px;
  }

  .topbar {
    display: none;
  }

  .header__inner {
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px rgba(18, 61, 112, 0.14);
  }

  .nav.is-open {
    display: flex;
    animation: navIn 0.22s ease;
  }

  .nav a:not(.btn) {
    padding: 14px 4px;
    border-bottom: 1px solid #eef3f8;
    font-size: 0.98rem;
  }

  .nav a:not(.btn)::after {
    display: none;
  }

  .nav__cta {
    margin-top: 16px;
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  @keyframes navIn {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero__content {
    max-width: 640px;
  }

  .hero__lead {
    max-width: 600px;
  }

  .hero__media {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }

  .hero__photo {
    height: 430px;
  }

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

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

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

  .local__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand img {
    height: 56px;
  }

  .footer-brand p {
    max-width: none;
  }

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

@media (max-width: 720px) {
  .container {
    width: calc(100% - 36px);
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .contact__cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .contact__cta-actions {
    width: 100%;
  }

  .contact__cta-actions .btn {
    flex: 1 1 200px;
  }

  .faq {
    padding: 20px 22px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .brand img {
    height: 40px;
  }

  .hero {
    padding: 42px 0 60px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(1.95rem, 8.4vw, 2.4rem);
  }

  .hero__lead {
    font-size: 0.98rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin: 26px 0 22px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__chips {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero__photo {
    height: 320px;
  }

  .hero__address {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .kicker {
    font-size: 1.55rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-head p {
    font-size: 0.92rem;
  }

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

  .service {
    padding: 22px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category {
    min-height: 118px;
    padding: 16px 10px;
    gap: 11px;
  }

  .category .icon {
    width: 25px;
    height: 25px;
    padding: 11px;
  }

  .category span {
    font-size: 0.78rem;
  }

  .gallery__page {
    gap: 12px;
  }

  .gallery__tag {
    padding: 26px 12px 11px;
    font-size: 0.74rem;
  }

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

  .contact__cta {
    padding: 24px;
  }

  .contact__cta h3 {
    font-size: 1.2rem;
  }

  .contact__cta-actions {
    flex-direction: column;
  }

  .contact__cta-actions .btn {
    width: 100%;
    flex: none;
  }

  .footer-top {
    gap: 26px;
  }

  .rdc {
    flex-direction: column;
    gap: 14px;
  }

  .rdc__logo {
    width: 74px;
    height: 74px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .wa-float .icon {
    width: 29px;
    height: 29px;
  }

  .to-top {
    right: 16px;
    bottom: 84px;
    width: 40px;
    height: 40px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 380px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .wa-float {
    width: auto;
    height: 56px;
    padding: 0 22px 0 16px;
    border-radius: 999px;
  }

  .wa-float__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
