/**
 * Theme Name:     Choice
 * Author:         BYTE TO IT
 * Template:       blocksy
 * Text Domain:	   choice
 * Description:    Choice is a fast, modern WordPress theme with advanced WooCommerce support and full compatibility with the block editor.
 */

:root {
	/* Colors */
	--theme-palette-color-1: #00A6CE;
    --theme-palette-color-2: #B7D43B;
    --theme-palette-color-3: #FF5100;
    --theme-palette-color-4: #181510;
    --theme-palette-color-5: #333538;
    --theme-palette-color-6: #54565A;
    --theme-palette-color-7: #C4C7CA;
    --theme-palette-color-8: #F2F3F4;
    --theme-palette-color-9: #FFFFFF;

	/* Shared design tokens. The component stylesheets (comprar.css,
	   artigo.css, …) also set these on their own wrapper; defining them
	   here too means markup outside those wrappers (plugins, Greenshift
	   custom CSS, theme cards reused elsewhere) still resolves them.
	   --cc-bg / --cc-container / --cc-gutter stay per-component. */
	--cc-ink: var(--theme-palette-color-5, #333538);
	--cc-ink-soft: rgba(51, 53, 56, 0.6);
	--cc-border: var(--theme-palette-color-7, #C4C7CA);
	--cc-bg-alt: var(--theme-palette-color-8, #F2F3F4);
	--cc-accent: var(--theme-palette-color-1, #00A6CE);
	--cc-font: 'Montserrat', sans-serif;

}
[data-header*="type-1"] .ct-header [data-transparent-row="yes"] .cc-lang-trigger__btn svg path {
  fill: #fff;
}

@media (hover: hover) {
	[data-header*="type-1"] .ct-header [data-transparent-row="yes"] .cc-lang-trigger__btn:hover svg path {
	  fill: var(--theme-palette-color-5);
	}
}

/**
 *
 * Fluid typography (h1–h6)
 *
 * Scales between the sizes already configured in the WordPress/Blocksy
 * typography settings at a 689px viewport and the site's max container
 * width (1728px). Below 689px and above 1728px, clamp() pins the value
 * to those same configured min/max sizes, so only that range is fluid.
 *
 * Targets the shared `--theme-font-size` custom property (not `font-size`
 * directly) at a `body h1` specificity — just high enough to beat
 * Blocksy's own bare `h1{...}` default, while staying lower than any
 * class-based context override (card titles, widget titles, page
 * headers, etc.), so those keep their own fixed sizes untouched.
 *
 * h6 is omitted: its configured size is already 14px at every
 * breakpoint, so there's nothing to scale.
 *
 */

body h1 {
  --theme-font-size: clamp(30px, 14.75px + 2.2137vw, 53px) !important;
}

body h2 {
  --theme-font-size: clamp(26px, 19.37px + 0.9625vw, 36px) !important;
}

body h3 {
  --theme-font-size: clamp(22px, 18.02px + 0.5775vw, 28px) !important;
}

body h4 {
  --theme-font-size: clamp(18px, 16.67px + 0.1925vw, 20px) !important;
}

body h5 {
  --theme-font-size: clamp(16px, 15.34px + 0.0962vw, 17px) !important;
}

/**
 *
 * Link buttons ("Ver todos os imóveis", "Conhecer a nossa equipa", …)
 *
 * Built in the editor as a Greenshift text block whose own per-block CSS
 * draws the underline as a border-bottom on the block, around a single
 * link. On hover only the link itself changed colour (Blocksy's link hover)
 * while the underline stayed dark — the underline now follows the link.
 * `!important` because the per-block rule sets border-bottom-color itself.
 *
 */

.gspb_text:has(> a:only-child) {
  transition: border-color 200ms ease;
}

.gspb_text:has(> a:only-child:focus-visible) {
  border-bottom-color: var(--theme-palette-color-1) !important;
}

@media (hover: hover) {
	.gspb_text:has(> a:only-child:hover) {
	  border-bottom-color: var(--theme-palette-color-1) !important;
	}
}

/**
 *
 * Secondary (outline) Greenshift button — add the `cc-btn-secondary` class
 * to a Greenshift button block (Advanced → Additional CSS class). Used where
 * a second button sits next to the page's main action (e.g. "Falar no
 * WhatsApp" next to the Contactos form). `!important` beats the block's own
 * per-block colours. The icon is an <img>, so it's recoloured with filters.
 *
 */

.cc-btn-secondary > .gspb-buttonbox {
  background-color: transparent !important;
  color: var(--theme-palette-color-5) !important;
  border: 1px solid var(--theme-palette-color-5) !important;
}

@media (hover: hover) {
	.cc-btn-secondary > .gspb-buttonbox:hover {
	  background-color: var(--theme-palette-color-5) !important;
	  color: var(--theme-palette-color-9) !important;
	}
}

.cc-btn-secondary .gspb-buttonbox-icon img {
  transition: filter 200ms ease;
}

#gspb_button-id-gsbp-505af91 .gspb-buttonbox-icon {
  margin-right: 8px !important;
}

@media (hover: hover) {
	.cc-btn-secondary > .gspb-buttonbox:hover .gspb-buttonbox-icon img {
	  filter: brightness(0) invert(1);
	}
}

/**
 *
 * Focus ring only for keyboard users
 *
 * Browsers also draw :focus-visible after a tap/click in some cases (going
 * back to a page restores focus on the last link; scripts that move focus
 * into a modal), which showed up as stray boxes around menu items,
 * accordion titles and links. `cc-pointer` is set on <html> by a tiny
 * script in functions.php while the visitor is using a mouse or touch, and
 * removed again on Tab — keyboard navigation keeps its focus ring.
 *
 */

html.cc-pointer :focus-visible:not(input):not(textarea):not(select) {
  outline: none !important;
}

/**
 *
 * "Em breve" badge — add the `cc-badge-em-breve` class to an image block
 * (Home › Brevemente photo). Same pill as the listing cards' "Vendido" /
 * "Em destaque" badges (assets/css/comprar.css).
 *
 */

.cc-badge-em-breve {
  position: relative;
}

.cc-badge-em-breve::before {
  content: "Em breve";
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--theme-palette-color-8);
  color: var(--theme-palette-color-4);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

/**
 *
 * "Acesso Antecipado" popup (inc/receber-atualizacoes.php) — the shared
 * .cc-modal dialog (nav.css) dressed like the Off-Market "Pedir acesso"
 * popup (casaschoice-features, offmarket.css): grey square panel, accent
 * eyebrow, large light title. The fields are the site's .custom-cf7-form.
 *
 */

.cc-updates-modal .cc-modal__overlay {
  background: rgba(0, 0, 0, 0.5);
}

.cc-updates-modal .cc-modal__panel {
  max-width: 640px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 48px;
  border-radius: 0;
  background: var(--cc-bg-alt);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.cc-updates-modal .cc-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.cc-updates-modal .cc-modal__close:focus-visible {
  background-color: rgba(0, 0, 0, 0.05);
}

@media (hover: hover) {
	.cc-updates-modal .cc-modal__close:hover {
	  background-color: rgba(0, 0, 0, 0.05);
	}
}

/* Same 14px cross / 1.5px line as the Off-Market popup's close icon. */
.cc-updates-modal .cc-modal__close svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.3;
}

.cc-updates-modal__eyebrow {
  margin: 0 0 8px;
  padding-right: 40px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cc-accent);
}

.cc-updates-modal__title {
  margin: 0 0 20px;
  padding-right: 40px;
  font-family: var(--cc-font);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--cc-ink);
}

.cc-updates-modal__text {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--cc-ink);
}

.cc-updates-modal .custom-cf7-form label {
  margin-bottom: 8px;
}

@media (max-width: 689px) {
  .cc-updates-modal {
    padding: 16px;
  }

  .cc-updates-modal .cc-modal__panel {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 32px 24px;
  }

  .cc-updates-modal .cc-modal__close {
    top: 12px;
    right: 12px;
  }

  .cc-updates-modal__title {
    font-size: 28px;
  }

  .cc-updates-modal .custom-cf7-form input[type="submit"] {
    width: 100%;
  }
}

/**
 *
 * Legal pages (Política de Privacidade, Cookies, Termos) — body class from
 * functions.php. The text sits in a 720px Greenshift row with no side
 * padding of its own, so on a phone it touched the screen edges; and the
 * section titles (H4) were the same weight as the text, so the page read as
 * one block.
 *
 */

.cc-legal #main h2,
.cc-legal #main h3,
.cc-legal #main h4 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-weight: 600 !important;
}

.cc-legal #main li + li {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .cc-legal #main > .gspb_row > .gspb_row__content {
    padding-inline: 5vw;
  }

  .cc-legal #main h2,
  .cc-legal #main h3,
  .cc-legal #main h4 {
    margin-top: 40px;
  }
}

/**
 *
 * Custom Form
 *
 */

 /* Layout Geral */
.custom-cf7-form {
  font-family: inherit;
  color: #2c2c2c;
  max-width: 100%;
}

.custom-cf7-form br {
  display: none;
}

.custom-cf7-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.custom-cf7-form .form-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.custom-cf7-form .full-width {
  grid-column: 1 / -1;
}

/* Fields toggled by assets/js/forms.js (display:flex above would win
 * over the plain `hidden` attribute). */
.custom-cf7-form .form-field[hidden] {
  display: none;
}

.custom-cf7-form label {
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-bottom: 12px;
  color: #333538 !important;
}

.custom-cf7-form .section-label {
  font-size: 16px;
  margin-bottom: 14px;
  display: block;
}

.custom-cf7-form .req {
  color: #ff5500;
  margin-left: 2px;
}

/* Campos de Texto e Textarea */
.custom-cf7-form input[type="text"],
.custom-cf7-form input[type="email"],
.custom-cf7-form input[type="tel"],
.custom-cf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.custom-cf7-form input:focus,
.custom-cf7-form textarea:focus {
  border-color: #333;
}

.custom-cf7-form textarea {
  height: 120px;
  resize: vertical;
}

/* Dropdowns and number fields look like the text fields next to them
 * (white, same border/radius/size) instead of Blocksy's transparent
 * default. background-color only, so Blocksy's dropdown arrow stays. */
.custom-cf7-form select,
.custom-cf7-form input[type="number"] {
  width: 100%;
  height: var(--theme-form-field-height, 40px);
  padding: 0 16px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fff;
  box-sizing: border-box;
}

.custom-cf7-form select {
  padding-right: 40px;
}

.custom-cf7-form select:focus,
.custom-cf7-form input[type="number"]:focus {
  border-color: #333;
}

/* Radio Buttons em Formato de Pilula (Pills)
 *
 * CF7 renders this field's markup with no wrapping <label> — just
 * <span class="wpcf7-list-item"><input>...<span class="wpcf7-list-item-
 * label">...</span></span> — so the old `width:0;height:0;pointer-
 * events:none` input (meant to hide it while relying on a <label> to
 * forward clicks to it) had no way to ever receive a click: nothing wraps
 * it, so clicking the visible pill span never toggled the radio at all.
 * Instead, the (still invisible) input is stretched over the whole pill
 * and takes the click itself. */
.custom-cf7-form .wpcf7-radio {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.custom-cf7-form .wpcf7-radio .wpcf7-list-item {
  margin: 0;
  position: relative;
}

.custom-cf7-form .wpcf7-radio input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.custom-cf7-form .wpcf7-radio .wpcf7-list-item-label {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid #dcdcdc;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 400;
  color: #333;
  background-color: #fff;
  transition: all 0.2s ease;
  user-select: none;
}

.custom-cf7-form .wpcf7-radio input[type="radio"]:checked + .wpcf7-list-item-label {
  background-color: #33383f;
  color: #fff;
  border-color: #33383f;
}

/* Legenda e Checkboxes
 * "* Campo obrigatório" is a neutral note, not an error — only the asterisk
 * keeps the accent colour (same as next to each label). */
.custom-cf7-form .required-note {
  font-size: 13px;
  color: var(--theme-palette-color-6);
  margin-bottom: 12px;
}

/* Checkbox top-aligned with the first line of its (possibly wrapping)
 * text. Blocksy's own `label` rule outranks the plain `.checkboxes label`
 * below, hence the list-item qualifier. */
.custom-cf7-form .checkboxes .wpcf7-list-item label,
.custom-cf7-form .checkboxes .wpcf7-checkbox .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* A plain [checkbox] (e.g. "Subscrever Newsletter") has no <label> of its
 * own, so its text needs the same size/colour as the acceptance one. */
.custom-cf7-form .checkboxes .wpcf7-list-item-label {
  font-size: 14px;
  font-weight: 400;
  color: #444;
}

.custom-cf7-form .checkboxes .wpcf7-list-item input[type="checkbox"] {
  flex: none;
  margin: 3px 0 0;
}

/* The privacy policy is a link — make it look like one. */
.custom-cf7-form .checkboxes a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) {
	.custom-cf7-form .checkboxes a:hover {
	  color: var(--theme-palette-color-1);
	}
}

.custom-cf7-form .checkboxes .wpcf7-list-item,
.custom-cf7-form .checkboxes .wpcf7-acceptance {
  display: block;
  margin: 0 0 10px 0;
}

.custom-cf7-form .checkboxes label {
  font-weight: 400;
  font-size: 14px;
  color: #444;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.custom-cf7-form .checkboxes input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #33383f;
  cursor: pointer;
}

/* Botão de Submissão */
.custom-cf7-form .submit-wrap {
  margin-top: 10px;
}

.custom-cf7-form input[type="submit"] {
  background-color: #33383f;
  color: #fff;
  border: none;
  padding: 12px 38px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
	.custom-cf7-form input[type="submit"]:hover {
	  background-color: #1a1a1a;
	}
}

/* Form feedback (all CF7 forms). The messages are two lines — a short
 * title, then the detail (set in each form's Messages tab with a line
 * break) — so the first line is set in bold. Replaces CF7's default
 * italic green/red outlined box. */
/* `form.wpcf7-form[data-status]` outranks CF7's own per-state colours
 * (`.wpcf7 form.sent .wpcf7-response-output` etc.). */
.wpcf7 form.wpcf7-form[data-status] .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--theme-palette-color-7);
  border-left: 3px solid var(--theme-palette-color-1);
  border-radius: 6px;
  background: #fff;
  color: var(--theme-palette-color-5);
  font-size: 15px;
  font-style: normal;
  line-height: 1.5;
}

.wpcf7 form.wpcf7-form[data-status] .wpcf7-response-output::first-line {
  font-weight: 600;
}

.wpcf7 form.wpcf7-form.invalid[data-status] .wpcf7-response-output,
.wpcf7 form.wpcf7-form.unaccepted[data-status] .wpcf7-response-output,
.wpcf7 form.wpcf7-form.failed[data-status] .wpcf7-response-output,
.wpcf7 form.wpcf7-form.aborted[data-status] .wpcf7-response-output,
.wpcf7 form.wpcf7-form.spam[data-status] .wpcf7-response-output {
  border-left-color: var(--theme-palette-color-3);
}

.wpcf7 form.wpcf7-form.invalid[data-status] .wpcf7-response-output::first-line,
.wpcf7 form.wpcf7-form.unaccepted[data-status] .wpcf7-response-output::first-line,
.wpcf7 form.wpcf7-form.failed[data-status] .wpcf7-response-output::first-line,
.wpcf7 form.wpcf7-form.aborted[data-status] .wpcf7-response-output::first-line,
.wpcf7 form.wpcf7-form.spam[data-status] .wpcf7-response-output::first-line {
  font-weight: inherit;
}

/* Ajuste Responsivo para Mobile */
@media (max-width: 640px) {
  .custom-cf7-form .form-grid {
    grid-template-columns: 1fr;
  }

  .custom-cf7-form .empty-field {
    display: none;
  }
}

/**
 *
 * Footer
 * 
 */

.ct-footer [data-column=widget-area-2] {
    max-width: 440px;
}

[data-footer*="type-1"] .ct-footer [data-column="widget-area-3"] .gspb_row__content {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 24px;
}

[data-footer*="type-1"] .ct-footer [data-column="widget-area-3"] h6 {
  font-weight: 600;
  color: #F2F3F4 !important;
}

.footer-block {
  padding: 0 !important;
}

.footer-block ul li a {
    font-size: 14px !important;
    line-height: 17px !important;
    transition: 200ms all ease;
}

@media (hover: hover) {
	.footer-block ul li a:hover {
	  color: var(--theme-palette-color-1) !important;
	}
}

.footer-block a {
  color: #ffffff;
}

@media (hover: hover) {
	.footer-block a:hover {
	  color: var(--theme-palette-color-1);
	}
}

.footer-block a:visited {
  color: #ffffff !important;
}

.footer-block ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-newsletter .wpcf7 input[type="email"] {
    background-color: var(--theme-palette-color-9);
    border-radius: 6px;
    border: 1px solid var(--theme-palette-color-7);
    color: var(--theme-palette-color-5);
    height: 44px;
}

/* align-items: the error tip ("Por favor, preencha este campo.") makes the
 * email field's wrapper taller — without it the button stretched to match. */
.footer-newsletter p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-newsletter .wpcf7-form-control-wrap {
    width: calc(100% - 142px) !important;
}

.footer-newsletter .wpcf7-submit {
    height: 44px;
    background-color: var(--theme-palette-color-1);
    color: var(--theme-palette-color-9) !important;
}

@media (hover: hover) {
	.footer-newsletter .wpcf7-submit:hover {
	    background-color: var(--theme-palette-color-9);
	    color: var(--theme-palette-color-5) !important;
	}
}

/* On the dark footer the feedback box is light text on a translucent
 * panel (the default dark text was unreadable there). */
.footer-newsletter .wpcf7 form.wpcf7-form[data-status] .wpcf7-response-output {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    border-left-color: var(--theme-palette-color-1);
    color: var(--theme-palette-color-8);
}

.footer-newsletter .wpcf7-not-valid-tip {
    color: #ffb48f;
}

.social-link,
.social-link svg path {
  transition: 200ms all ease;
}

@media (hover: hover) {
	.social-link:hover {
	  border-color: #ffffff !important;
	}
}

#menu-legal {
  gap: 16px
}

/* No "Fale Connosco" call to action on the Contactos page itself — see
 * functions.php (body_class). */
.cc-no-footer-cta .ct-footer [data-row="top"] {
  display: none;
}

/* The "Fale Connosco" band's top half continues the page's last section:
 * grey by default (Customizer → Footer → Top Row background). Pages that
 * end in a white section carry .cc-footer-light on that last block
 * (Greenshift → Advanced → Additional CSS class) to switch it to white.
 * Templates set it too: template-parts/imovel/offmarket.php (ficha) and
 * template-parts/lp-local/faqs.php (LP pages). */
body:has(.cc-footer-light)[data-footer*="type-1"] .ct-footer [data-row*="top"] {
  background-image: linear-gradient(0deg, rgb(24, 21, 16) 0%, rgb(24, 21, 16) 49%, var(--theme-palette-color-9, #FFFFFF) 49%, var(--theme-palette-color-9, #FFFFFF) 100%);
}

/**
 *
 * Page hero photo (Greenshift column gsbp-12b3d98, copied onto Sobre Nós,
 * Serviços, Vender, Investir, Off-Market, …): a full-width background photo
 * 620px tall. On screens wider than 1920px a fixed height crops more and
 * more off the top and bottom of the photo (heads cut off on Sobre Nós on a
 * 4K screen) — from there on it grows with the width instead, keeping the
 * 1920px framing (620 / 1920 = 32.3vw). `html` prefix: outranks
 * Greenshift's own `body.gspb-bodyfront #…` height rule.
 *
 */

@media (min-width: 1921px) {
  html body.gspb-bodyfront #gspb_col-id-gsbp-12b3d98.gspb_row__col--12 {
    height: 32.3vw;
  }
}

/**
 *
 * No hover look on touch screens. A phone keeps the last tapped element in
 * :hover — also after going back to the page — so links and buttons stayed
 * in their hover colour. Blocksy's hover rules all read these variables:
 * on a screen that can't hover, each one equals the element's normal colour
 * (`*`, not :root, so every element resolves its own normal colour — e.g.
 * the footer's white links stay white). Greenshift's rules are handled in
 * inc/greenshift-touch-hover.php, the theme's own with @media (hover: hover).
 *
 */

@media (hover: none) {
  * {
    --theme-link-hover-color: var(--theme-link-initial-color);
    --theme-button-background-hover-color: var(--theme-button-background-initial-color);
    --theme-button-text-hover-color: var(--theme-button-text-initial-color);
    --theme-icon-hover-color: var(--theme-icon-color, var(--theme-text-color));
  }

  /* Links/buttons that take their colour from a class instead of those
   * variables: their own :hover rules are hover-devices-only now, so on a
   * phone Blocksy's generic `a:hover` (more specific than `.class`) took
   * over and recoloured them — the footer's white links went dark on the
   * dark footer. Restate their normal colour. (The footer menus' links,
   * `li > a`, take theirs from the link variables above — left alone.) */
  .footer-block a:not(li > a):hover {
    color: #ffffff;
  }

  .imv-btn:hover {
    color: #fff;
  }

  .imv-btn--secondary:hover {
    color: #333538;
  }

  .imv-bar-btn--primary:hover {
    color: #fff;
  }

  .cc-lp-btn:hover {
    color: var( --cc-bg-alt );
  }

  .cc-listing-empty__btn:hover {
    color: var( --cc-bg-alt );
  }
}

/**
 *
 * Cookie settings button (Lightweight Cookie Notice's fixed bottom-left
 * "revisit consent" button). The plugin gives it z-index 999999, so it
 * floated over the mobile menu, every popup, the filters drawer and the
 * bottom CTA bars. 44 puts it under all of those — supermenu 45, header 50,
 * gallery lightbox 100, filters drawer 1000, .cc-modal 9999, Off-Market
 * modals 100000, Blocksy's off-canvas menu 999999 — and still above page
 * content. The plugin's "force CSS specificity" option adds !important to
 * its rules, hence `body` + !important.
 *
 */

body #daextlwcnf-revisit-cookie-consent-container {
  z-index: 44 !important;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

/* The button steps aside (and comes back when the reason goes away):
 * - just before the footer scrolls into view (`cc-footer-near`, set by
 *   assets/js/nav.js), so it never sits on top of the footer;
 * - while a bottom CTA bar is on screen (ficha "Agendar Visita"; Off-Market
 *   "Pedir Acesso", shown below 1000px only). */
html.cc-footer-near #daextlwcnf-revisit-cookie-consent-container,
body:has(.imv-sticky-bar.is-visible) #daextlwcnf-revisit-cookie-consent-container {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

@media (max-width: 999px) {
  body:has(.ccf-om-sticky.is-visible) #daextlwcnf-revisit-cookie-consent-container {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
}

.ccf-om-card {
	margin: 0 auto !important;
}

.imv-offmarket__code {
  padding: 0 !important;
}

@media (max-width: 1000px) {

  .ccf-om-card {
    max-width: 100% !important;
  }
  
  [data-footer*="type-1"] .ct-footer [data-column="widget-area-3"] .gspb_row__content {
    flex-wrap: wrap !important;
  }

  .footer-menus .footer-block__panel li:last-child {
    margin-bottom: 12px;
  }

  .footer-block {
    row-gap: 0 !important;
  }

  .footer-block.not-accordion {
    margin-top: 24px;
    row-gap: 24px !important;
  }
  
  .footer-menus .gspb_row__content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
  }

  .footer-menus .gspb_row__content .wp-block-greenshift-blocks-row-column {
    width: 100%;
    flex: 0 0 100%;
  }

}

/* Footer accordion (.footer-menus, everything except .not-accordion) —
 * assets/js/footer-accordion.js builds the .footer-block__title/__panel
 * structure and the open/close state unconditionally, but it's only ever
 * visually an accordion below 1000px: the arrow icon it inserts is hidden
 * by default here and only shown inside the same max-width:1000px query as
 * the collapse animation, so above that breakpoint every menu just renders
 * as the plain, always-expanded column it already was. */

.footer-menus .footer-block__title svg {
  display: none;
}

/* The toggle inside each heading looks like the heading's own text. */
.footer-menus .footer-block__title > .footer-block__toggle {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: default;
}

.footer-menus .footer-block__title > .footer-block__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 1000px) {

  .footer-menus .footer-block:not(.not-accordion) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .footer-menus .footer-block:not(.not-accordion):last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .footer-menus .footer-block__title {
    margin: 0;
    padding: 16px 0;
  }

  .footer-menus .footer-block__title > .footer-block__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
  }

  /* The icon's chevron points up as drawn: turned down while the group is
   * closed, back up once it's open. */
  .footer-menus .footer-block__title svg {
    display: block;
    flex: none;
    transform: rotate(180deg);
    transition: transform 0.35s ease;
  }

  .footer-menus .footer-block.is-open .footer-block__title svg {
    transform: none;
  }

  /* CSS Grid's 0fr → 1fr trick animates straight to the content's natural
   * height with no JS measuring/writing a pixel value; min-height:0 on the
   * <ul> is required for the 0fr track to actually reach zero (a grid item
   * defaults to min-height:auto, which would otherwise floor the row at
   * the list's own intrinsic height) — same technique assets/css/
   * accordion.css uses for the ".accordion-container" component. */
  .footer-menus .footer-block__panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.35s ease;
  }

  .footer-menus .footer-block__panel > ul {
    min-height: 0;
    overflow: hidden;
  }

  .footer-menus .footer-block.is-open .footer-block__panel {
    grid-template-rows: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  .footer-menus .footer-block__panel,
  .footer-menus .footer-block__title svg {
    transition: none;
  }
}

@media (max-width: 1728px) {

  .home-invest_block .gspb_row__content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .home-invest_block .gspb_row__content .wp-block-greenshift-blocks-row-column {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}
/* ---------------------------------------------------------------------- *
 * Utility: edge-to-edge on mobile
 *
 * Add `cc-bleed-mobile` to any element (Gutenberg/Greenshift block →
 * Advanced → "Additional CSS class(es)", or a class="" in a template/PHP
 * shortcode) that sits inside a centered, padded container (.ct-container,
 * Greenshift rows, …) and should span the full screen width on mobile
 * (≤767px). From 768px up it does nothing.
 *
 *   cc-bleed-mobile          full-bleed, content touches the screen edges
 *   cc-bleed-mobile--pad     full-bleed background/box, but its own
 *                            content keeps a 20px side gutter (text blocks,
 *                            coloured sections…)
 *
 * Sliders inside a (non --pad) bleed block stay edge to edge, but their
 * counter + arrows row gets the same side padding as a .ct-container
 * (var(--cc-edge)) — covers the site's slider footers; give a custom one
 * the `cc-slider-foot` class to opt in.
 *
 * How: width:100vw + a negative side margin of (50vw − 50% of the parent)
 * pulls the box out to both viewport edges, so it works at any nesting
 * depth as long as the parent is horizontally centered in the viewport
 * (which every .ct-container is). 100vw includes a classic scrollbar, so
 * --cc-sbw (the scrollbar's width, measured by a tiny inline script in
 * <head> — see functions.php; 0 on phones, which use overlay scrollbars)
 * is subtracted to make the bleed exact on a narrow desktop window too.
 * `overflow-x: clip` on <body> is the final safety net.
 * ---------------------------------------------------------------------- */

@media (max-width: 767px) {
  body {
    overflow-x: clip;
  }

  .cc-bleed-mobile {
    box-sizing: border-box;
    width: calc(100vw - var(--cc-sbw, 0px)) !important;
    max-width: calc(100vw - var(--cc-sbw, 0px)) !important;
    margin-left: calc(50% - 50vw + var(--cc-sbw, 0px) / 2) !important;
    margin-right: calc(50% - 50vw + var(--cc-sbw, 0px) / 2) !important;
  }

  .cc-bleed-mobile--pad {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* --cc-edge: the side gutter a .ct-container leaves on this viewport
   * (the same formula Blocksy uses for its container width, so it tracks
   * the theme's 88vw/90vw edge-spacing automatically). */
  .cc-bleed-mobile {
    --cc-edge: calc((100vw - var(--cc-sbw, 0px) - var(--theme-container-width-base, 90vw)) / 2);
  }

  /* A slider inside a full-bleed block keeps its photos/cards edge to edge,
   * but its controls row (counter + prev/next) lines up with the rest of
   * the site's content — same side padding as .ct-container. Not needed on
   * --pad blocks, which already carry their own gutter. */
  .cc-bleed-mobile:not(.cc-bleed-mobile--pad) .cc-gcard-grid__foot,
  .cc-bleed-mobile:not(.cc-bleed-mobile--pad) .cc-testimonials__foot,
  .cc-bleed-mobile:not(.cc-bleed-mobile--pad) .cc-equipa__foot,
  .cc-bleed-mobile:not(.cc-bleed-mobile--pad) .imv-gallery__foot,
  .cc-bleed-mobile:not(.cc-bleed-mobile--pad) .cc-slider-foot {
    padding-left: var(--cc-edge);
    padding-right: var(--cc-edge);
  }

  /* The plantas slider's counter/arrows are direct grid items of the same
   * box as the image, so they get margins instead of padding. */
  .cc-bleed-mobile:not(.cc-bleed-mobile--pad) .imv-plantas__counter {
    margin-left: var(--cc-edge);
  }

  .cc-bleed-mobile:not(.cc-bleed-mobile--pad) .imv-plantas__nav--next {
    margin-right: var(--cc-edge);
  }

  /* Keep the full-bleed element's own media from re-introducing a gutter. */
  .cc-bleed-mobile > img,
  .cc-bleed-mobile > figure,
  .cc-bleed-mobile > .wp-block-image,
  .cc-bleed-mobile img.cc-bleed-mobile__img {
    width: 100%;
    max-width: 100%;
  }
}

/* Smooth scroll (Lenis, inc/smooth-scroll.php + assets/js/smooth-scroll.js) */
html.lenis,
html.lenis body {
  height: auto;
}

/* Lenis does the smoothing, so the browser's own (Blocksy turns it on for <html>) must be off while Lenis runs */
html.lenis {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

/**
 * "Continue a explorar" — the SEO master's internal links at the end of a
 * page (inc/seo/links.php): a quiet row of pills, like the article's
 * "Explorar temas relacionados" (.cc-article__topics-row, artigo.css).
 * White, so it also turns the "Fale Connosco" band's top half white
 * (.cc-footer-light).
 */
.cc-seo-links {
	background: var(--theme-palette-color-9, #FFFFFF);
	padding: 40px 0 56px;
}

.cc-seo-links__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
}

.cc-seo-links__title {
	margin: 0;
	font-family: var(--cc-font);
	font-size: 14px;
	line-height: 1.4;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: var(--cc-muted, #54565A);
}

.cc-seo-links__title::after {
	content: ":";
}

/* Wraps as one group: when the pills don't fit beside the label they move
 * to the line below together, centred, instead of leaving one behind. */
.cc-seo-links__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-seo-links__list li {
	margin: 0;
}

/* Same pill as .cc-article__topic-chip. */
.cc-seo-links__list a,
.cc-seo-links__list a:hover,
.cc-seo-links__list a:focus {
	display: inline-flex;
	align-items: center;
	min-height: 33px;
	padding: 0 19px;
	border: 1px solid var(--cc-ink-soft);
	border-radius: 999px;
	font-family: var(--cc-font);
	font-size: 13px;
	line-height: 1.3;
	font-weight: 400;
	letter-spacing: 0.26px;
	color: var(--cc-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
	.cc-seo-links__list a:hover {
		background: var(--cc-ink);
		border-color: var(--cc-ink);
		color: #FFFFFF;
	}
}

/* Mobile: label, then one pill per line, centred (as the topics row). Long
 * anchors may wrap inside their pill rather than overflow narrow phones. */
@media (max-width: 689.98px) {
	.cc-seo-links {
		padding: 40px 0 48px;
	}

	.cc-seo-links__row,
	.cc-seo-links__list {
		flex-direction: column;
	}

	.cc-seo-links__list {
		align-items: center;
	}

	.cc-seo-links__list a,
	.cc-seo-links__list a:hover,
	.cc-seo-links__list a:focus {
		padding-block: 7px;
		text-align: center;
		white-space: normal;
	}
}

/* Right after another white section (LP FAQ, a page's last white block):
 * a hairline instead of a second run of white padding. */
.cc-footer-light + .cc-seo-links {
	padding-top: 0;
}

.cc-footer-light + .cc-seo-links .cc-seo-links__row {
	padding-top: 40px;
	border-top: 1px solid var(--cc-border);
}

/* Footer: "Subscreva a nossa newsletter" links to /newsletter/ (SEO master
 * IL-150) but keeps the heading's look. */
.ct-footer .gspb_heading a,
.ct-footer .gspb_heading a:hover,
.ct-footer .gspb_heading a:focus {
	color: inherit;
	text-decoration: none;
}

@media (hover: hover) {
	.ct-footer .gspb_heading a:hover {
		text-decoration: underline;
		text-underline-offset: 4px;
	}
}

/**
 * A Choice hub — cards to Sobre Nós, Serviços and Perspectivas
 * ([cc_subpaginas], inc/seo/pages.php). Same card language as the
 * Perspectivas grid.
 */
.cc-subpages {
	padding: 96px 0;
}

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

.cc-subpages__card,
.cc-subpages__card:hover,
.cc-subpages__card:focus {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	color: var(--cc-ink);
	text-decoration: none;
}

.cc-subpages__img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--cc-bg-alt);
}

.cc-subpages__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-subpages__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
	padding: 24px;
}

.cc-subpages__title {
	margin: 0;
	font-family: var(--cc-font);
	font-size: 24px;
	line-height: 1.3;
	font-weight: 400;
	color: var(--cc-ink);
}

.cc-subpages__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--cc-ink);
}

.cc-subpages__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cc-ink);
}

.cc-subpages__cta svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

@media (hover: hover) {
	.cc-subpages__card:hover .cc-subpages__img img {
		transform: scale(1.03);
	}

	.cc-subpages__card:hover .cc-subpages__cta svg {
		transform: translateX(4px);
	}
}

@media (max-width: 999.98px) {
	.cc-subpages__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 689.98px) {
	.cc-subpages {
		padding: 64px 0;
	}
}

/* "Gerir preferências" on /preferencias-de-cookies/ ([cc_preferencias_cookies]):
 * the site's own button (.wp-element-button), as on the Greenshift pages. */
.cc-cookie-prefs {
	margin: 24px 0 8px;
}

/* /newsletter/ — the footer's newsletter form (CF7 "Newsletter") in a white
 * box on the page, email and button on one row (inc/seo/pages.php). */
.cc-newsletter-page {
	padding: 8px 0 96px;
}

.cc-newsletter-page__box {
	max-width: 640px;
	padding: 32px;
	background: var(--theme-palette-color-9, #FFFFFF);
}

.cc-newsletter-page .wpcf7-form > p {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
}

.cc-newsletter-page .wpcf7-form > p br {
	display: none;
}

.cc-newsletter-page .wpcf7-form-control-wrap {
	flex: 1;
	min-width: 0;
}

.cc-newsletter-page .wpcf7 input[type="email"] {
	width: 100%;
	height: 48px;
	border: 1px solid var(--cc-border);
	border-radius: 6px;
	background: var(--theme-palette-color-9, #FFFFFF);
	color: var(--cc-ink);
}

.cc-newsletter-page .wpcf7-submit {
	height: 48px;
}

.cc-newsletter-page__note {
	margin: 16px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--cc-ink-soft);
}

.cc-newsletter-page__note a {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 689.98px) {
	.cc-newsletter-page {
		padding-bottom: 64px;
	}

	.cc-newsletter-page__box {
		padding: 24px 16px;
	}

	.cc-newsletter-page .wpcf7-form > p {
		flex-direction: column;
		align-items: stretch;
	}
}

/* Page H1s (SEO master wording, 2026-10) wrap on their own: balanced lines
 * rather than a short orphan line under a long one. */
main h1 {
	text-wrap: balance;
}
