/*
Theme Name: Talho Martins React Theme
Theme URI: https://talhomartins.pt
Author: Agilstore
Author URI: https://agilstore.pt
Description: Tema WordPress customizado e ultra veloz desenvolvido em React Standalone para o Talho Martins Amarante.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: talhomartins-react
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  font-family: var(--font-display);
}

.ph-img {
  background: linear-gradient(135deg, #F5F0ED, #E7E5E4);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

@media (max-width: 920px) {
  .hero-content-text {
    max-width: 100% !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Hero Background Slider styles */
.hero-slider-container {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slider-container .wp-slider,
.hero-slider-container .swiper,
.hero-slider-container .swiper-container {
  width: 100% !important;
  height: 100% !important;
  position: relative;
}

.hero-slider-container .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Pseudo-elemento de overlay em cada slide para escurecer a imagem de fundo sem afetar setas e dots */
.hero-slider-container .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.88) 0%, rgba(28, 25, 23, 0.6) 50%, rgba(28, 25, 23, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-slider-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: relative;
  z-index: 0;
}

/* Garantir que as setas e os dots de navegação fiquem acima da overlay do slide e clicáveis */
.hero-slider-container .swiper-pagination,
.hero-slider-container .swiper-button-prev,
.hero-slider-container .swiper-button-next,
.hero-slider-container .wp-slider-navigation,
.hero-slider-container .wp-slider-pagination,
.hero-slider-container .swiper-pagination-bullet {
  z-index: 30 !important;
  pointer-events: auto !important;
}

/* Alinhamento e posicionamento dos dots para garantir que fiquem no centro e bem posicionados */
.hero-slider-container .swiper-pagination {
  bottom: 32px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  margin: 0 !important;
}

#contactos {
  padding-block: clamp(64px, 10vw, 120px);
}

/* Testemunhos Section Styles */
.testemunhos-section {
  padding-block: clamp(56px, 4vw, 96px);
  background: var(--color-dark);
  scroll-margin-top: 72px;
}

.testimonials-swiper {
  margin-inline: auto;
  overflow: hidden !important;
}

.testimonials-swiper .swiper-slide {
  text-align: center;
}

.testimonials-swiper .quote-icon {
  text-align: center;
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 0.7;
  color: var(--color-accent);
  opacity: 0.2;
  margin-bottom: -28px;
  user-select: none;
  pointer-events: none;
}

.testimonials-swiper .testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #ffffff;
  max-width: 45ch;
  margin-inline: auto;
}

.testimonials-swiper .testimonial-author {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 24px;
}

/* Customização dos Dots do Swiper de Testemunhos */
.testimonials-swiper .testimonials-pagination {
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  bottom: 0px !important;
}

.testimonials-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3) !important;
  opacity: 1 !important;
  width: 8px !important;
  height: 8px !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
}

.testimonials-swiper .swiper-pagination-bullet-active {
  background: var(--color-accent) !important;
  width: 24px !important;
  border-radius: 4px !important;
}

/* Customização dos botões Next e Prev do Swiper de Testemunhos */
.testimonials-swiper .swiper-button-prev,
.testimonials-swiper .swiper-button-next {
  color: var(--color-accent) !important;
}

.testimonials-swiper .swiper-button-prev::after,
.testimonials-swiper .swiper-button-next::after {
  font-size: 20px !important;
}

/* --- ESTILOS DE SEÇÃO GENÉRICOS --- */
.section-padding-standard {
  padding-block: clamp(64px, 10vw, 120px);
}

.section-padding-warm {
  padding-block: clamp(64px, 10vw, 120px);
  background: var(--color-warm);
}

.section-header-margin {
  margin-bottom: 56px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.section-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 55ch;
}

/* --- SITE HEADER & NAVEGAÇÃO --- */
.site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header .header-inner {
  height: 72px;
}

.site-header .nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header .nav-link:hover {
  color: #fff;
}

.site-header .nav-cta {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.site-header .nav-cta:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Estado Ativo (Scrolled / Solid) do Header */
.site-header.scrolled {
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.site-header.scrolled .nav-logo {
  color: var(--color-fg);
}

.site-header.scrolled .nav-link {
  color: var(--color-muted);
}

.site-header.scrolled .nav-link:hover {
  color: var(--color-accent);
}

.site-header.scrolled .nav-cta {
  background: var(--color-accent);
  color: #fff;
  border: 1px solid transparent;
}

.site-header.scrolled .nav-cta:hover {
  background: var(--color-accent-hover);
}

/* --- HERO SECTION --- */
.hero-content-text {
  max-width: 60%;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 50ch;
}

.hero-btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: none;
  text-decoration: none;
}

.hero-btn-primary:hover {
  background: var(--color-accent-hover);
}

.hero-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* --- SOBRE SECTION --- */
.sobre-image-wrapper {
  aspect-ratio: 4/5;
  border-radius: 16px;
}

.sobre-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 55ch;
  margin-bottom: 20px;
}

.sobre-description-last {
  margin-bottom: 36px;
}

.sobre-stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-fg);
}

.sobre-stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 8px;
  font-weight: 500;
}


.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.product-image-wrapper {
  aspect-ratio: 1/1;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
}

.product-card-body {
  padding: 24px;
}

.product-card-header {
  margin-bottom: 8px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.005em;
  margin: 0;
}

.product-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-accent-light);
  color: var(--color-accent);
  white-space: nowrap;
}

.product-card-footer {
  padding: 0 24px 24px 24px;
  margin-top: auto;
}

.product-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  font-family: var(--font-body);
}

.no-products-msg {
  color: var(--color-muted);
  font-size: 16px;
}


.service-card {
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.service-icon-wrapper {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--color-accent-light);
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}

.service-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}

/* --- CONTACTOS SECTION --- */
.contact-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.contact-value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-fg);
  margin: 0;
}

/* --- LOGOTIPOS & IMAGENS DO CUSTOMIZER --- */
.site-header .nav-logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

/* --- SITE FOOTER --- */
.site-footer {
  background-color: #1C1917;
  padding-block: 80px 32px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.site-footer .footer-title {
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.site-footer .footer-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer .footer-badge {
  max-width: 227px;
  height: auto;
  opacity: 0.9;
  display: block;
}

.site-footer .footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer .footer-link-item {
  font-size: 15px;
  line-height: 1.5;
}

.site-footer .footer-bottom {
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-bottom-text {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer .footer-logo img {
  max-height: 50px;
  width: auto;
  display: block;
}

/* --- PAGINAS RAL (LITÍGIOS) --- */
.ral-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ral-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.ral-logo-wrapper {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ral-logo {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.ral-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.ral-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 16px;
  max-width: 40ch;
  flex-grow: 1;
}

.ral-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  text-decoration: underline;
  text-transform: uppercase;
}

.ral-link:hover {
  color: var(--color-accent-hover);
}

/* --- DETALHE DO PRODUTO (SINGLE PRODUTO) --- */
.single-product-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  width: 100%;
}

.single-product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-product-img-wrapper .ph-img {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border: none;
}