/* ============================================================================
   VIANNA'S — css/viannas-sections.css
   Estilos das SECÇÕES renderizadas pelos templates de Menu de Custom Page
   (menu_template.php): grelha 2×2, valores, CTA urgência, fecho/contacto.
   Baseada no conceito modular 2×2 — sem sombras iguais, blocos planos.
============================================================================ */

/* --- shells de secção ------------------------------------------------ */
.v-section { position: relative; } /* padding: .section (valores/fecho) e .v-sec-urgencia (CTA) */
.v-sec-urgencia { padding: clamp(4rem, 9vw, 7rem) 0; } /* = .cta-band da landing */
.v-section > .container { position: relative; }

.v-sec-head { max-width: 860px; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.v-sec-title-row .v-sec-title {
  font-size: var(--fs-h2, clamp(1.85rem, 4vw, 3.05rem));
  margin: 0 0 1rem;
  letter-spacing: -0.012em;
}
.v-sec-title em { color: var(--v-slate); font-style: normal; }
.v-sec-intro { max-width: 640px; margin: 0; color: var(--v-slate); }

/* eyebrow (mesma linguagem da landing) */
.eyebrow { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.1rem; }
.eyebrow .eyebrow-sq { width: 10px; height: 10px; background: var(--v-taupe); flex: none; }
.eyebrow.eyebrow-light { color: var(--v-slate); }
.eyebrow .eyebrow-txt, .eyebrow { font-family: var(--font-disp, "League Spartan", Arial, sans-serif); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }

/* --- 1 · GRELHA 2×2 (nav serviços) ------------------------------------ */
.v-sec-sistema { background: var(--v-mist); }
.v-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 2vw, 1.4rem);
}
.v-tile {
  position: relative;
  min-height: clamp(150px, 20vw, 220px);
  border: 1px solid rgba(16, 36, 80, 0.18);
  background: #fff;
  display: flex;
}
.v-tile a.v-tile-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: clamp(1.2rem, 3vw, 2rem);
  text-decoration: none;
  color: inherit;
}
.v-tile-num { font-family: var(--font-disp, "League Spartan", Arial, sans-serif); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.2em; opacity: 0.85; }
.v-tile-name { font-family: var(--font-disp, "League Spartan", Arial, sans-serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0.4rem 0 0.9rem; line-height: 1.1; }
.v-tile-line { display: block; width: 44px; height: 2px; background: currentColor; opacity: 0.5; margin-bottom: 0.8rem; transition: width 0.35s var(--ease, ease); }
.v-tile-go { font-size: 1.4rem; align-self: flex-end; transition: transform 0.35s var(--ease, ease); }
.v-tile a:hover .v-tile-go, .v-tile a:focus-visible .v-tile-go { transform: translateX(6px); }
.v-tile a:hover .v-tile-line, .v-tile a:focus-visible .v-tile-line { width: 70px; }

/* tons = as 4 cores do logótipo */
.v-tile--navy  { background: var(--v-navy);  color: var(--v-creme); border-color: var(--v-navy); }
.v-tile--slate { background: var(--v-slate); color: #fff;            border-color: var(--v-slate); }
.v-tile--taupe { background: var(--v-taupe); color: var(--v-navy);   border-color: var(--v-taupe); }
.v-tile--creme { background: var(--v-creme); color: var(--v-navy);   border-color: var(--v-creme); }
.v-tile--creme .v-tile-num, .v-tile--taupe .v-tile-num { opacity: 0.65; }

@media (hover: hover) {
  .v-tile { transition: transform 0.3s var(--ease, ease), box-shadow 0.3s var(--ease, ease); }
  .v-tile:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0 rgba(16, 36, 80, 0.1); }
}

/* --- 2 · VALORES ------------------------------------------------------ */
.v-sec-valores { background: #fff; }
.v-grid-valores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.v-pilar {
  border-top: 2px solid var(--v-navy);
  padding: 1.6rem 0.4rem 0.4rem 0;
}
.v-pilar-num { display: block; font-family: var(--font-disp, "League Spartan", Arial, sans-serif); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.24em; color: var(--v-taupe); margin-bottom: 0.9rem; }
.v-pilar-title { font-size: 1.25rem; margin-bottom: 0.6rem; }
.v-pilar-text { color: var(--v-slate); margin: 0; }

/* --- 3 · CTA URGÊNCIA (faixa navy) ------------------------------------ */
.v-sec-urgencia { background: var(--v-navy); color: var(--v-creme); }
.v-sec-urgencia .v-sec-urgencia::before { /* reservado */ }
.v-urgencia {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.v-urgencia-copy { max-width: 640px; }
.v-urgencia .eyebrow { color: var(--v-taupe); }
.v-urgencia-title { color: #fff; font-size: var(--fs-h2, clamp(1.85rem, 4vw, 3.05rem)); margin: 0 0 1rem; }
.v-urgencia-text { margin: 0; color: rgba(232, 227, 206, 0.85); }
.v-urgencia-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.v-urgencia-actions .v-btn-creme { background: var(--v-creme); color: var(--v-navy); }
.v-urgencia-actions .v-btn-ghost { border-color: rgba(232, 227, 206, 0.55); color: var(--v-creme); }
.v-urgencia-actions .btn-cmenu { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.6rem; border-radius: 4px; font-weight: 700; text-decoration: none; }

/* --- 4 · FECHO + CONTACTO --------------------------------------------- */
.v-sec-fecho { background: var(--v-mist); }
.v-fecho {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 2.6vw, 2.5rem);
  align-items: start;
}
.v-fecho-title { font-size: var(--fs-h2, clamp(1.85rem, 4vw, 3.05rem)); margin: 0 0 1.2rem; }
.v-fecho-note { font-size: 1.12rem; color: var(--v-slate); max-width: 46ch; }
.v-fecho-copy .v-btn-navy { margin-top: 1.4rem; }
.v-fecho-panel {
  background: var(--v-creme);
  color: var(--v-navy);
  border: 1px solid var(--v-navy);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
}
.v-fecho-panel .logo-sq { display: inline-grid; grid-template-columns: repeat(2, 10px); grid-template-rows: repeat(2, 10px); gap: 2px; margin-bottom: 1.2rem; }
.v-fecho-panel .eyebrow { color: var(--v-navy); }
.v-fecho-panel .sq { display: block; }
ul.v-cont-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.v-cont-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--v-navy); }
.v-cont-list .v-cont-ic { flex: none; width: 22px; height: 22px; color: var(--v-slate); }
.v-cont-list .v-cont-ic svg { width: 22px; height: 22px; }

/* --- responsive -------------------------------------------------------- */
@media (max-width: 991.98px) {
  .v-grid-2x2 { grid-template-columns: 1fr; }
  .v-grid-valores { grid-template-columns: 1fr; gap: 1.6rem; }
  .v-fecho { grid-template-columns: 1fr; }
  .v-urgencia { flex-direction: column; align-items: flex-start; }
}

/* ============================================================================
   VIANNA'S — PÁGINA DE SERVIÇO (page_template svc-*)
============================================================================ */
.v-spage-hero {
  background: linear-gradient(150deg, var(--v-navy) 0%, #17305f 62%, var(--v-slate) 130%);
  color: var(--v-creme);
  padding: clamp(8.5rem, 16vw, 12rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.v-spage-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(232,227,206,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(232,227,206,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.v-spage-hero .container { position: relative; }
.v-spage-hero .hero-eyebrow { color: var(--v-taupe); }
.v-spage-title {
  color: #fff;
  font-size: var(--fs-h1, clamp(2.3rem, 5.6vw, 4.35rem));
  margin: 0 0 0.6rem;
  max-width: 16ch;
}
.v-spage-region { color: rgba(232,227,206,.75); font-weight: 500; margin: 0; letter-spacing: 0.06em; }

.v-svc-wrap { background: var(--v-mist); padding: clamp(3rem, 7vw, 5rem) 0; }
.v-svc-paragraph { font-size: 1.12rem; color: var(--v-slate); max-width: 56ch; }
ul.v-destaques { margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.v-destaque { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--v-navy); font-weight: 500; }
.v-destaque .v-dq-sq { flex: none; width: 12px; height: 12px; margin-top: 0.42rem; background: var(--v-taupe); }
.v-destaque .v-dq-sq::after { content: ""; display:block; margin:3px; width:6px; height:6px; background: var(--v-navy); }

.v-svc-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.v-btn-line {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-disp, "League Spartan", Arial, sans-serif);
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.85rem 1.6rem; border-radius: 4px; border: 1px solid rgba(16,36,80,.35);
  color: var(--v-navy); text-decoration: none;
  transition: background-color .3s var(--ease, ease), border-color .3s var(--ease, ease);
}
.v-btn-line:hover { background: var(--v-navy); color: var(--v-creme); border-color: var(--v-navy); }

.v-svc-visual svg.svc-art { width: 100%; height: auto; display: block; }
@media (max-width: 991.98px) {
  .v-spage-hero { padding-top: 7rem; }
  .v-svc-visual { margin-top: 2rem; }
}

/* ============================================================================
   VIANNA'S — SECÇÕES-SERVIÇO NA HOME (menus svc, espelham a landing)
============================================================================ */
.v-sec-svc { position: relative; } /* padding vem de .section (port da landing) */
#sec-eletricidade, #sec-jardinagem { background: var(--v-mist); }
#sec-manutencao,   #sec-limpeza    { background: #fff; }
.svc-row--flip > .svc-copy { order: 2; }
.svc-row--flip > .svc-visual { order: 1; }
@media (max-width: 991.98px) {
  .svc-row--flip > .svc-copy,
  .svc-row--flip > .svc-visual { order: 0; }
  /* .svc-visual: margin-top .5rem vem da landing (sem override) */
}

/* ============================================================================
   Hover tiles: reage SÓ a sombra exterior (offset sólido). A tarjeta fica fixa
   e o interior (moldura ::after / seta) mantém-se neutro no hover.
============================================================================ */
.tile {
  transition: box-shadow 0.45s var(--ease);
}
/* hover do tile: comportamento da landing (viannas.css) */
/* hover do tile: comportamento da landing (viannas.css) */

/* ============================================================================
   ICONO DE EDICIÓN (solo admin) por sección — shortcode NATIVO {CPAGEEDIT}
   (enlaza a e107_admin/cpage.php?action=edit&id=<page_id>)
============================================================================ */
.v-section, .section-head, .svc-sec, .services-grid, .v-sec-svc { position: relative; }
.v-edit { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 6; line-height: 0; }
.v-edit .btn,
.v-edit .btn-default,
.v-edit .btn-secondary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border-radius: 50%;
  background: #fff !important;
  color: var(--v-navy) !important;
  border: 1px solid rgba(16, 36, 80, 0.18) !important;
  box-shadow: 0 3px 10px rgba(16, 36, 80, 0.14);
  font-size: 15px;
  opacity: 0.92;
  transition: background-color 0.25s var(--ease, ease), color 0.25s var(--ease, ease), transform 0.25s var(--ease, ease);
}
.v-edit .btn:hover { background: var(--v-navy) !important; color: var(--v-creme) !important; transform: translateY(-2px); }
.v-edit .btn i, .v-edit .btn svg, .v-edit .btn img { font-size: 15px; line-height: 1; width: 15px; height: 15px; }
/* sobre fundos navy */
.v-sec-urgencia .v-edit .btn,
.v-sec-fecho .v-edit .btn,
.svc-sec .v-edit .btn {
  background: rgba(232, 227, 206, 0.14) !important;
  color: var(--v-creme) !important;
  border-color: rgba(232, 227, 206, 0.42) !important;
}
.v-sec-urgencia .v-edit .btn:hover,
.v-sec-fecho .v-edit .btn:hover { background: var(--v-creme) !important; color: var(--v-navy) !important; }

/* ============================================================================
   ACCIONES DEL SERVICIO — manter UMA só linha (como na landing) apesar de
   termos 3 elementos (botão + "Ver serviço" + chip de telefone).
   Abaixo de 1400px o chip fica compacto (número em title/aria-label).
============================================================================ */
@media (max-width: 1399.98px) {
  .svc-actions { gap: 0.75rem; }
  .svc-tel { padding: 0.45rem 0.6rem; }
  .svc-tel-num { display: none; }
}
@media (min-width: 1400px) {
  .svc-tel-num { display: inline; }
}

/* Chip de edición dentro de cada pilar (admin) */
.v-pilar { position: relative; }
.v-edit--sm { top: 0.5rem; right: 0.5rem; }
.v-edit--sm .btn, .v-edit--sm .btn-default, .v-edit--sm .btn-secondary { width: 30px; height: 30px; font-size: 12px; }
.v-edit--sm .btn i, .v-edit--sm .btn svg, .v-edit--sm .btn img { font-size: 12px; width: 12px; height: 12px; }

/* ---------------------------------------------------------------------------
   PILARES (valores) — replica .value-* da landing; chip de edición admin
--------------------------------------------------------------------------- */
.value-pillar { position: relative; }
@media (max-width: 767.98px) {
  .value-pillar { border-top: 1px solid var(--hair-strong); }
}
/* ---------------------------------------------------------------------------
   HOVER DOS TILES — apenas a sombra muda.
   O Bootstrap define a:hover { color: var(--bs-link-hover-color) } (0,1,1), que
   ganha a .tile-navy (0,1,0) e pintava texto/icone de slate no hover.
   Aqui reafirmamos o tom em cada variante (e nada mais).
--------------------------------------------------------------------------- */
.tile { transition: box-shadow 0.45s var(--ease); }
.tile-navy:hover,  .tile-navy:focus-visible  { color: var(--v-creme) !important; }
.tile-slate:hover, .tile-slate:focus-visible { color: var(--v-mist)  !important; }
.tile-taupe:hover, .tile-taupe:focus-visible { color: var(--v-navy)  !important; }
.tile-creme:hover, .tile-creme:focus-visible { color: var(--v-navy)  !important; }
/* Destaques de serviço: chip de edição (admin) por item */
.svc-point { position: relative; }
.svc-point .v-edit--sm { top: 50%; right: 0.2rem; transform: translateY(-50%); }
.svc-points { padding-right: 0; }

/* ---------------------------------------------------------------------------
   FORMULÁRIO DE CONTACTO embutido na secção de fecho
--------------------------------------------------------------------------- */
.v-fecho-form { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(16, 36, 80, 0.14); }
.v-fecho-form .eyebrow { margin-bottom: 0.9rem; }
.v-contact-form .form-group { margin-bottom: 0.9rem; }
.v-contact-form label { font-family: var(--font-disp); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v-slate); margin-bottom: 0.35rem; }
.v-contact-form .form-check label { text-transform: none; letter-spacing: 0.02em; font-family: var(--font-body); font-size: 0.92rem; color: var(--v-navy); }
.v-contact-form .help-block { font-size: 0.8rem; color: rgba(16, 36, 80, 0.6); }
.v-contact-form .v-btn-navy { margin-top: 0.4rem; }

/* ---------------------------------------------------------------------------
   Textos editables (WYSIWYG/bbarea): el parser envuelve el contenido en <p>.
   Los contenedores son <div> (anidado válido) y neutralizamos los márgenes
   del <p> interno para que el ritmo vertical sea el del contenedor.
--------------------------------------------------------------------------- */
.section-intro > p,
.svc-text > p,
.v-fecho-note > p,
.v-urgencia-text > p,
.value-text > p,
.tile-desc > p,
.svc-point > p { margin: 0; }

/* Cards de contacto dentro da secção de fecho (mesmo desenho que /contact) */
.v-fecho-copy .contact-cards { margin-top: 1.6rem !important; }
.v-fecho-copy .contact-card { padding: 20px 18px; }
.v-fecho-copy .contact-card::before { font-size: 52px; top: 10px; right: 12px; opacity: 0.10; }
.v-fecho-copy .contact-card .eyebrow { font-size: 0.72rem; letter-spacing: 0.24em; }
.v-fecho-copy .contact-card a { font-size: 0.98rem; }


/* ---------------------------------------------------------------------------
   FECHO — nota (blockquote.contact-note do original) e panel do formulário
   .contact-note / .contact-note-text / .form-panel* vêm do port (viannas.css)
--------------------------------------------------------------------------- */
.v-fecho-card { margin-bottom: 1.6rem; }
.contact-note-text > p { margin: 0; }
.contact-note-text > p + p { margin-top: 0.8rem; }
.v-fecho-panel .form-panel-head { margin-bottom: 1.2rem; }
.v-fecho-panel .form-title { font-family: var(--font-disp); }
.v-fecho-form { margin-top: 0; padding-top: 0; border-top: 0; }
.v-fecho-panel .form-mark .sq { width: 10px; height: 10px; }
/* ---------------------------------------------------------------------------
   ICONOS de las cards de contacto → NAVY (base, afecta también a /contact)
--------------------------------------------------------------------------- */
.contact-card::before { color: var(--v-navy); }
.v-fecho-copy .contact-card::before { color: var(--v-navy); opacity: 0.12; }

/* ---------------------------------------------------------------------------
   CTA DE URGENCIA centrado (como .cta-inner del original):
   max-width 860px, título 22ch, texto 52ch, acciones centradas.
--------------------------------------------------------------------------- */
.v-urgencia {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.v-urgencia-copy { max-width: 860px; margin-inline: auto; }
.v-urgencia .eyebrow { justify-content: center; }
.v-urgencia-title { margin: 0 auto 1.2rem; max-width: 22ch; }
.v-urgencia-text { margin: 0 auto 2.2rem; max-width: 52ch; }
.v-urgencia-actions { justify-content: center; }
