/* Shared controls */
::selection { background: var(--red); color: #fff; }

:where(body) a[href], .masthead-photo-open, .gallery-open {
  text-decoration: none !important;
}

.btn, .icon-btn { border-radius: 12px; }
.btn-primary { padding-inline: 18px; background: var(--red); }
.btn-primary::before { content: none; }
.btn-primary:hover { background: var(--red-hover); }
.btn-primary:disabled { background: var(--stone); }
.btn-glass, .btn-whatsapp { padding-inline: 13px; border: 1px solid transparent; background: #dce6e6; }
.btn-whatsapp { background: #dbe9de; }
.btn-glass:hover { background: #d0dddd; }
.masthead .btn-glass, .calculator-section .btn-glass, .lightbox-actions .btn-whatsapp {
  border-color: #8aa4ac75;
  background: #ffffff0b;
}
.nav-link, .nav-toggle-btn { font: 600 .88rem/1.2 var(--font-body); }
.nav-link[aria-current], .nav-link:hover { color: var(--red-hover); }
.nav-link[aria-current]::after { content: none; }
.nav-toggle-btn { border-radius: 12px; }
.text-link { font-weight: 650; }

.masthead-photo-open { padding: 7px 11px; border-radius: 9px; background: #ffffff0e; }
.masthead-photo-open:hover { background: #ffffff20; }
.gallery-overlay,
.gallery-grid .gallery-item:nth-child(3n + 1 of .gallery-item:not([hidden])) .gallery-overlay { border: 0; }
.gallery-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 11px;
  border-radius: 10px;
  background: #dfeae9;
  color: var(--ink);
  font: 600 .83rem/1.25 var(--font-body);
  white-space: nowrap;
  transition: background-color var(--ease), color var(--ease);
}
.gallery-card-trigger:hover .gallery-open { background: var(--ink); color: var(--light); }
.filter-btn { border: 0; border-radius: 9px; font: 600 .85rem/1.3 var(--font-body); }
.filter-btn.active { background: var(--red-tint); color: var(--red-hover); }

/* Footer */
.footer { padding-top: clamp(38px, 6vw, 76px); }
.footer-layout { display: grid; gap: 28px 40px; padding-bottom: clamp(28px, 4vw, 55px); }
.footer-layout > * { min-width: 0; }
.footer-layout h2 { margin-bottom: 12px; font: 650 1rem/1.3 var(--font-body); }
.footer-identity h2 { font: 700 clamp(1.85rem, 3.5vw, 2.75rem)/.98 var(--font-heading); }
.footer-layout p, .footer-layout a { color: var(--light-muted); overflow-wrap: anywhere; font-size: .93rem; }
.footer-identity > a { display: inline-block; padding-block: 5px; }
.footer-layout a:hover { color: #fff; }
.footer-profiles { display: flex; flex-wrap: wrap; gap: 3px 15px; margin-top: 4px; }
.footer-profiles a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-channels { display: grid; align-content: start; gap: 7px; }
.footer-channels h2 { margin-bottom: 5px; }
.footer-channel {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 14px;
  row-gap: 2px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #ffffff0b;
}
.footer-channel:hover { background: #ffffff17; }
.footer-channel span { font-size: .81rem; }
.footer-channel strong { color: var(--light); font-weight: 620; font-variant-numeric: tabular-nums; }
.footer-channels > p { padding: 2px 0; font-size: .83rem; }
.footer-legal { display: grid; justify-items: start; align-content: start; }
.footer-legal a { padding-block: 5px; }
.footer-credit {
  display: flex;
  align-items: center;
  min-height: 59px;
  border-top: 1px solid var(--dark-line);
  color: var(--light);
  font-weight: 650;
  letter-spacing: .02em;
}

.footer-credit a { color: #ffc6cc; }
.footer-credit a:hover { color: #fff; }

/* Legal pages and notice beside the forms */
.policy-section { padding-block: clamp(35px, 6vw, 84px); }
.policy-layout { display: grid; align-items: start; gap: clamp(20px, 4vw, 58px); }
.policy-nav { display: grid; gap: 11px; min-width: 0; }
.policy-nav > p { color: var(--muted); font-size: .87rem; font-weight: 650; }
.policy-nav nav { display: flex; flex-wrap: wrap; gap: 5px; }
.policy-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  background: #e4eae8;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 600;
}
.policy-nav a[aria-current], .policy-nav a:hover { background: var(--ink); color: var(--light); }
.policy-document {
  min-width: 0;
  padding: clamp(21px, 4.5vw, 59px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  overflow-wrap: anywhere;
}
.policy-document h1 { margin-bottom: 21px; font-size: clamp(2.35rem, 6vw, 5rem); text-wrap: balance; }
.policy-document h2 { margin: 29px 0 10px; font: 650 clamp(1.1rem, 2vw, 1.42rem)/1.25 var(--font-body); }
.policy-document > p { max-width: 73ch; margin-bottom: 12px; color: var(--muted); line-height: 1.62; }
.policy-document a, .form-policy a, .consent-options a { color: var(--red-hover); font-weight: 650; }
.policy-document a:hover, .form-policy a:hover, .consent-options a:hover { color: var(--ink); }
.policy-document .policy-draft { padding: 12px 15px; border-radius: 9px; background: #f6e7cf; color: #503a1e; font-size: .94rem; }
.cookie-facts { display: grid; gap: 5px; margin-block: 14px 19px; }
.cookie-facts div { display: grid; gap: 3px 15px; padding: 8px 11px; border-radius: 7px; background: #e9eeeb; }
.cookie-facts dt { font-weight: 650; }
.cookie-facts dd { margin: 0; }
.contact-form-panel .form-policy, .form-policy {
  margin-block: 12px 16px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #e8eeeb;
  color: var(--ink);
  font-size: .88rem;
}
.form-policy a { display: inline-block; margin-inline-end: 7px; }
.optional-consent { margin-block: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.optional-consent > p { margin-bottom: 4px; color: var(--muted); font-size: .87rem; }
.consent-options { display: flex; flex-wrap: wrap; gap: 7px 14px; align-items: baseline; font-size: .92rem; }
.consent-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.consent-options input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.optional-consent .form-group { margin: 12px 0 0; }
.optional-consent [hidden] { display: none; }
.office-contact { padding: clamp(18px, 4vw, 33px); border-radius: 13px; background: var(--paper); }
.office-contact .btn { margin-top: 12px; }

@media (min-width: 570px) {
  .footer-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .cookie-facts div { grid-template-columns: 7rem minmax(0, 1fr); }
}
@media (min-width: 840px) {
  .footer-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.17fr) minmax(0, .7fr); }
  .policy-layout { grid-template-columns: minmax(175px, .29fr) minmax(0, 1fr); }
  .policy-nav { position: sticky; top: 95px; }
  .policy-nav nav { display: grid; }
}

.contact-code-panel { margin-block: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #e8eeeb; }
.contact-code-panel .form-group { margin: 0 0 9px; }
#contactCode { max-inline-size: 12rem; font-variant-numeric: tabular-nums; letter-spacing: .16em; }
#contactPhoneHelp, #contactCodeHelp { display: block; margin-top: 5px; color: var(--muted); }
