html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

img,
svg,
video {
  max-width: 100%;
}

@supports (overflow: clip) {
  html,
  body { overflow-x: clip; }
}

.old {
  color: #4d524f;
}

.casa-case {
  background-image: linear-gradient(180deg, rgba(20, 28, 24, .1), rgba(20, 28, 24, .62));
}

.casa-case.asset-visible {
  background-image: linear-gradient(180deg, rgba(20, 28, 24, .1), rgba(20, 28, 24, .62)), url('casa-alba-real-estatev5/assets/villa-dusk.webp');
}

.teplo-case {
  background-image: none;
}

.teplo-case.asset-visible {
  background-image: url('teplo-bakery/assets/images/cakes.webp');
}

.form-note {
  font-size: 12px;
  line-height: 1.5;
}

#lead-form > label:not(.form-consent) {
  margin-bottom: -15px;
}

.portfolio-card:focus-visible .portfolio-visual {
  box-shadow: 0 0 0 4px var(--acid), 0 16px 28px rgba(23, 34, 31, .15);
}

@media (max-width: 1100px) {
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .review-controls button {
    width: 44px;
    height: 44px;
  }

  .header {
    padding-left: max(5vw, env(safe-area-inset-left));
    padding-right: max(5vw, env(safe-area-inset-right));
  }

  .nav.open {
    padding-left: max(5vw, env(safe-area-inset-left));
    padding-right: max(5vw, env(safe-area-inset-right));
  }
}

@media (max-width: 360px) {
  .hero h1,
  h2 {
    font-size: clamp(36px, 12vw, 43px);
    overflow-wrap: anywhere;
  }

  .hero-facts {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    align-items: center;
  }

  .hero-facts {
    justify-content: center;
  }

  .cases .section-heading {
    text-align: center;
  }

  .cases .section-heading .eyebrow {
    text-align: left;
  }

  .services .section-intro h2 {
    text-align: center;
  }

  .process .section-heading h2,
  .process .section-note {
    text-align: center;
  }

  .process .section-note {
    display: block;
    margin: 25px auto 0;
  }

  .pricing .section-heading h2,
  .pricing .section-note {
    text-align: center;
  }

  .pricing .section-note {
    display: block;
    margin: 25px auto 0;
  }

  .reviews .section-intro,
  .reviews .review-wrap {
    text-align: center;
  }

  .reviews .review-person,
  .reviews .review-controls {
    justify-content: center;
  }

  .reviews .quote-mark {
    text-align: left;
  }

  .risk-copy h2 {
    text-align: center;
  }

  .faq .section-intro h2 {
    text-align: center;
  }

  .hero-art .art-label {
    z-index: 2;
  }

  .hero-art .browser {
    transform: translateY(32px) rotate(4deg);
  }
}

.header-contacts,
.header-socials {
  display: flex;
  align-items: center;
}

.header .brand-header {
  order: 1;
}

.header .nav {
  order: 2;
}

.header-contacts {
  order: 3;
  gap: 12px;
}

.header .header-cta {
  order: 4;
}

.header-socials {
  gap: 7px;
}

.header-socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.header-socials a:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.header-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header-socials .social-max,
.header-socials .social-whatsapp {
  font-size: 0;
}

.header-socials .social-max::before,
.header-socials .social-whatsapp::before {
  display: block;
  width: 18px;
  height: 18px;
  content: '';
  background: center / contain no-repeat;
}

.header-socials .social-max::before {
  background-image: url('assets/max-icon.png');
  transform: translate(1px, 1px);
}

.header-socials .social-whatsapp::before {
  width: 23px;
  height: 23px;
  background-image: url('assets/whatsapp-icon.png');
}

.header-socials .social-max:hover::before,
.header-socials .social-whatsapp:hover::before {
  filter: invert(1);
}

@media (max-width: 900px) {
  .header .menu-toggle {
    order: 3;
  }

  .header-contacts {
    order: 2;
    display: flex;
  }

  .header .header-contact {
    display: block;
  }
}

@media (max-width: 560px) {
  .header {
    height: 120px;
    align-items: flex-start;
    gap: 8px;
    padding-top: 15px;
    padding-right: 4vw;
    padding-left: 4vw;
  }

  .header-contacts {
    position: absolute;
    top: 57px;
    right: calc(4vw + 9px);
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .header-socials {
    flex-direction: row;
    gap: 4px;
  }

  .header-socials a {
    width: 26px;
    height: 26px;
  }

  .header-socials svg,
  .header-socials .social-max::before {
    width: 14px;
    height: 14px;
  }

  .header-socials .social-whatsapp::before {
    width: 18px;
    height: 18px;
  }

  .header .header-contact {
    font-size: 10px;
  }
}

/* iOS can render ↗ as a coloured emoji. Force a text glyph inside buttons. */
@supports (-webkit-touch-callout: none) {
  .button b {
    font-size: 0;
    line-height: 1;
  }

  .button b::before {
    content: '↗︎';
    font: 700 17px / 1 Arial, sans-serif;
    font-variant-emoji: text;
  }
}
