/* Gudes – melhorias visuais (complementa o style.css do tema) */

/* Páginas que saíram do Elementor: usam a largura toda da grelha */
.gs-wide .g-prose { max-width: none; }

/* ---------- Contactos ---------- */
.gs-contact { color: var(--text); }
.gs-lead { max-width: 62ch; margin: 0 0 36px; font-size: 18px; line-height: 1.6; color: var(--muted); }

.gs-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }

.gs-contact__info { display: grid; gap: 12px; }
.gs-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.gs-card:hover { border-color: var(--navy); box-shadow: 0 10px 24px -16px rgba(14, 56, 86, .45); transform: translateY(-1px); }
.gs-card__ico { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--mist); color: var(--navy); }
.gs-card__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.gs-card__value { display: block; font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.gs-card__text { display: block; font-size: 15px; line-height: 1.5; color: var(--ink); }
.gs-card small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.gs-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.gs-social span { margin-right: 4px; }
.gs-social a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-weight: 600; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.gs-social a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.gs-contact__form { padding: 32px; border-radius: 16px; background: var(--mist); }
.gs-contact__form h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.gs-contact__form > p { margin: 0 0 22px; color: var(--muted); }

.gs-quote-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin: 40px 0 32px; padding: 26px 30px; border-radius: 16px; background: var(--navy); color: #fff; }
.gs-quote-band strong { display: block; font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.gs-quote-band span { color: rgba(255, 255, 255, .8); }
.gs-quote-band__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.gs-quote-band .g-btn { text-decoration: none; }

.gs-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.gs-map iframe { display: block; width: 100%; height: 380px; border: 0; filter: saturate(.85); }

/* ---------- Contact Form 7 (todas as páginas) ---------- */
.wpcf7 form p { margin: 0 0 16px; }
.wpcf7 label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
	font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14, 56, 86, .12); }
.wpcf7 input[type="submit"] {
	appearance: none; border: 0; cursor: pointer; padding: 14px 28px; border-radius: 8px;
	background: var(--yellow); color: var(--ink); font: inherit; font-weight: 700; font-size: 16px; transition: background .2s;
}
.wpcf7 input[type="submit"]:hover { background: var(--yellow-2); }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
.wpcf7 .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 14px !important; border-radius: 8px; font-size: 14px; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }

/* ---------- Política de privacidade e textos longos ---------- */
.gs-wide .g-prose h2, .gs-wide .g-prose h3 { margin: 32px 0 10px; font-size: 21px; line-height: 1.3; color: var(--ink); }
.page-id-4442 .g-prose { max-width: 78ch; }
.page-id-4442 .g-prose p, .page-id-4442 .g-prose li { line-height: 1.7; }

/* ---------- Ficha de produto ---------- */
.gs-price-note { margin: -4px 0 18px; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 42ch; }

.gs-trust { margin-top: 24px; padding: 18px 20px; border-radius: 12px; background: var(--mist); font-size: 14px; }
.gs-trust ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.gs-trust li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.gs-trust li .gs-ico { width: 18px; height: 18px; color: var(--yellow-2); flex: 0 0 18px; }
.gs-trust p { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.gs-trust a { color: var(--navy); font-weight: 700; }

/* Descrição importada dos fornecedores: alinhada à esquerda, leitura confortável */
.woocommerce-Tabs-panel--description { max-width: 78ch; }
.woocommerce-Tabs-panel--description * { text-align: left !important; }
.woocommerce-Tabs-panel--description h1, .woocommerce-Tabs-panel--description h2,
.woocommerce-Tabs-panel--description h3, .woocommerce-Tabs-panel--description h4 { font-size: 19px; margin: 8px 0 12px; color: var(--ink); }
.woocommerce-Tabs-panel--description p, .woocommerce-Tabs-panel--description li { font-weight: 400; line-height: 1.65; }
.woocommerce-Tabs-panel--description li strong, .woocommerce-Tabs-panel--description p strong { font-weight: inherit; }
.woocommerce-Tabs-panel--description ul { list-style: none; padding-left: 0; margin: 0 0 18px; }
.woocommerce-Tabs-panel--description ul li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.woocommerce-Tabs-panel--description ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.woocommerce-Tabs-panel--description p:last-child strong { font-weight: 700; color: var(--navy); }

/* Campos da ficha com a mesma altura */
.single-product form.cart select, .single-product form.cart .qty { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; }
.single-product form.cart .qty { width: 84px; }

/* ---------- Blog: capa de marca quando o artigo não tem imagem ---------- */
.g-post__img:empty {
	background:
		url("/wp-content/uploads/2022/12/gudes_branco-02.png") center / 34% auto no-repeat,
		radial-gradient(circle at 85% 15%, rgba(255, 138, 31, .45), transparent 42%),
		linear-gradient(135deg, var(--navy), var(--navy-2));
}

/* ---------- Página de pedido de orçamento ---------- */
.gs-wide #yith-ywraq-form, .gs-wide #yith-ywraq-mail-form { max-width: none; }
.gs-wide .ywraq-form-table-wrapper, .gs-wide .yith-ywraq-mail-form-wrapper { margin-top: 8px; }
.gs-wide .yith-ywraq-mail-form-wrapper { padding: 32px; border-radius: 16px; background: var(--mist); margin-top: 32px; }
.gs-wide .yith-ywraq-mail-form-wrapper h3 { margin-top: 0; font-size: 24px; color: var(--ink); }
.gs-wide #yith-ywraq-mail-form input.input-text, .gs-wide #yith-ywraq-mail-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 16px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
	.gs-contact__grid { grid-template-columns: 1fr; }
	.gs-contact__form { padding: 24px; }
	.gs-quote-band { padding: 22px; }
	.gs-map iframe { height: 300px; }
	.gs-lead { font-size: 16px; margin-bottom: 24px; }
}

/* ---------- Acabamentos (1.0.1) ---------- */
.gs-card__value { font-family: var(--font); font-weight: 700; letter-spacing: -.005em; }
.wpcf7 textarea { height: 170px; }

/* Botões do pedido de orçamento */
.gs-wide #yith-ywraq-mail-form [type="submit"], .gs-wide #yith-ywraq-mail-form .raq-send-request {
	appearance: none; border: 0; cursor: pointer; padding: 14px 28px; border-radius: 8px; min-height: 48px;
	background: var(--yellow); color: var(--ink); font: inherit; font-weight: 700; font-size: 16px; transition: background .2s;
}
.gs-wide #yith-ywraq-mail-form [type="submit"]:hover { background: var(--yellow-2); }
.gs-wide #yith-ywraq-form [name="update_raq"] {
	appearance: none; cursor: pointer; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line);
	background: #fff; color: var(--navy); font: inherit; font-weight: 600; font-size: 14px;
}
.gs-wide #yith-ywraq-form [name="update_raq"]:hover { border-color: var(--navy); }
/* Num pedido de orçamento o "Total" não faz sentido */
.gs-wide #yith-ywraq-form .product-subtotal { display: none; }
.gs-wide #yith-ywraq-form .product-thumbnail img { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: var(--mist); }
.gs-wide #yith-ywraq-form .product-name a { color: var(--ink); font-weight: 700; text-decoration: none; }
.gs-wide #yith-ywraq-form .product-name a:hover { color: var(--navy); text-decoration: underline; }

/* Capa do blog mais limpa */
.g-post__img:empty {
	background:
		url("/wp-content/uploads/2022/12/gudes_branco-02.png") center / 30% auto no-repeat,
		radial-gradient(circle at 92% 8%, rgba(255, 138, 31, .32), transparent 30%),
		linear-gradient(135deg, var(--navy), var(--navy-2));
}

/* Imagem de destaque dos artigos: altura contida, produto centrado */
.single-post .g-single__img { background: var(--mist); max-width: 860px; }
.single-post .g-single__img img { width: 100%; max-height: 420px; object-fit: contain; }

/* Logótipos dos clientes: a imagem tem logótipos brancos (feita para o fundo roxo antigo).
   Passam a cinzento sobre o fundo branco, e ficam a cor plena ao passar o rato. */
.g-sec--clients img { filter: brightness(0); opacity: .55; transition: opacity .25s; }
.g-sec--clients img:hover { opacity: .85; }

/* Os artigos antigos tinham a opção "esconder título" do Elementor, que o esconde por JavaScript. */
.single-post .g-title { display: block !important; }
