/* ===============================================================
   ESTOFKAR DOM ELIAS — style.css
   Paleta: azul domina · amarelo com parcimónia (CTA) · branco respira
   Mobile-first.
   =============================================================== */

:root {
  /* Cores */
  --navy:        #0B3B5C;   /* azul base / fundos escuros */
  --navy-deep:   #082E47;   /* variação mais escura */
  --blue:        #2C8FD1;   /* azul vivo da marca */
  --yellow:      #F5B301;   /* amarelo de destaque (CTA) */
  --yellow-dk:   #DA9E00;   /* hover do amarelo */
  --white:       #FFFFFF;
  --off:         #F6F9FC;   /* off-white */
  --ink:         #1B2733;   /* títulos */
  --body:        #566677;   /* corpo */
  --line:        #E4EBF2;   /* separadores */

  /* Tipografia */
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px rgba(11, 59, 92, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 59, 92, 0.18);
  --header-h: 70px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Acessibilidade: foco visível ---------- */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Botões ---------- */
.btn {
  --bg: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s;
  background: var(--bg); color: #fff; line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { flex: none; }

.btn-primary { --bg: var(--yellow); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(245, 179, 1, .35); }
.btn-primary:hover { background: var(--yellow-dk); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-lg { font-size: 1.05rem; padding: 1em 1.7em; }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }

/* ===============================================================
   HEADER
   =============================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { display: grid; place-items: center; }
.brand-text { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); letter-spacing: .2px; }
.brand-text strong { color: var(--navy); }
.brand-text span { color: var(--blue); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.main-nav a:not(.btn):hover { color: var(--blue); }
.nav-cta { color: var(--navy-deep) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===============================================================
   HERO
   =============================================================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: calc(var(--header-h) + 48px) 0 64px;
}
/* Padrão capitonné subtil */
.hero-pattern {
  position: absolute; inset: 0; color: rgba(255,255,255,.06);
  background-image:
    linear-gradient(45deg, transparent 49%, currentColor 49.5%, currentColor 50.5%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, currentColor 49.5%, currentColor 50.5%, transparent 51%);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(circle at 70% 30%, #000 30%, transparent 75%);
}
/* minmax(0,1fr) garante que a coluna nunca fica mais larga que o ecrã */
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }

.hero-eyebrow { color: var(--yellow); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; font-size: .82rem; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; }
.hero h1 .accent { color: var(--yellow); }
.hero-sub { color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 2.4vw, 1.18rem); margin: 18px 0 30px; max-width: 32em; }
/* min-width:0 impede que os itens da grelha forcem uma coluna maior que o ecrã */
.hero-copy, .hero-visual { min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* o botão de CTA pode quebrar linha em ecrãs estreitos, em vez de alargar a página */
.hero-actions .btn { max-width: 100%; white-space: normal; text-align: center; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 7 / 8; object-fit: cover;
}
.hero-badge {
  position: absolute; left: -10px; bottom: 22px;
  background: var(--yellow); color: var(--navy-deep);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  padding: .6em 1em; border-radius: 999px; box-shadow: var(--shadow);
}

/* ===============================================================
   SECÇÕES (comum)
   =============================================================== */
.section { padding: 72px 0; }
.section-soft { background: var(--off); }
.section-dark { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.section-dark h2 { color: #fff; }

.section-pattern {
  position: absolute; inset: 0; color: rgba(255,255,255,.05);
  background-image:
    linear-gradient(45deg, transparent 49%, currentColor 49.5%, currentColor 50.5%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, currentColor 49.5%, currentColor 50.5%, transparent 51%);
  background-size: 50px 50px; pointer-events: none;
}
.section-dark .container { position: relative; z-index: 1; }

.section-head { text-align: center; max-width: 38em; margin: 0 auto 44px; }
.kicker { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; margin-bottom: 10px; }
.kicker-light { color: var(--yellow); }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 700; }
.section-lead { margin-top: 12px; font-size: 1.05rem; }
.section-dark .section-lead { color: rgba(255,255,255,.8); }

/* Sublinhado amarelo subtil nos h2 */
.section-head h2::after {
  content: ""; display: block; width: 54px; height: 4px;
  background: var(--yellow); border-radius: 3px; margin: 14px auto 0;
}

/* ===============================================================
   SERVIÇOS
   =============================================================== */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-ic {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 14px; background: rgba(44,143,209,.12); color: var(--blue); margin-bottom: 16px;
}
.card:hover .card-ic { background: var(--yellow); color: var(--navy-deep); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { font-size: .96rem; }

/* ===============================================================
   ANTES & DEPOIS
   =============================================================== */
.ba-list { display: grid; gap: 26px; }
.ba-slider {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); user-select: none; aspect-ratio: 16 / 10; background: var(--navy-deep);
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* A imagem "antes" é recortada com clip-path (controlado por JS via --pos),
   evitando problemas de escala. O wrapper é apenas semântico/transparente. */
.ba-before-wrap { position: absolute; inset: 0; }
.ba-before-wrap .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: var(--yellow); transform: translateX(-50%); z-index: 2; pointer-events: none;
}
.ba-handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--navy-deep);
  display: grid; place-items: center; font-size: 1rem; font-weight: 700; box-shadow: var(--shadow);
}
.ba-tag {
  position: absolute; top: 14px; z-index: 2; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; padding: .35em .8em; border-radius: 999px; background: rgba(8,46,71,.7); color: #fff;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; background: rgba(245,179,1,.92); color: var(--navy-deep); }

@media (min-width: 760px) { .ba-list { grid-template-columns: 1fr 1fr; } }

/* ===============================================================
   GALERIA / PORTEFÓLIO
   =============================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.filter {
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  padding: .55em 1.1em; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink); transition: .2s var(--ease);
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.gallery { columns: 2; column-gap: 16px; }
.gal-item {
  break-inside: avoid; margin: 0 0 16px; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; position: relative; box-shadow: var(--shadow); transition: transform .2s var(--ease);
}
.gal-item img { width: 100%; transition: transform .35s var(--ease); }
.gal-item:hover { transform: translateY(-3px); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item::after {
  content: "🔍"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(11,59,92,.45); opacity: 0; transition: .25s; font-size: 1.6rem;
}
.gal-item:hover::after { opacity: 1; }
.gal-item.is-hidden { display: none; }

@media (min-width: 680px) { .gallery { columns: 3; } }
@media (min-width: 1000px) { .gallery { columns: 4; } }

/* ===============================================================
   ORÇAMENTO POR MEDIDA
   =============================================================== */
.quote {
  max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px 22px;
}
.quote-progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.quote-bar { display: block; height: 100%; width: 20%; background: var(--yellow); border-radius: 999px; transition: width .35s var(--ease); }

.quote-step { display: none; animation: fadeIn .35s var(--ease); }
.quote-step.is-active { display: block; }
.quote-q { font-size: 1.25rem; margin-bottom: 18px; }

.opts { display: grid; gap: 12px; }
.opt {
  text-align: left; font-family: var(--font-body); font-weight: 500; font-size: 1.02rem;
  padding: 1em 1.2em; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--off); border: 2px solid var(--line); color: var(--ink); transition: .18s var(--ease);
}
.opt:hover { border-color: var(--blue); transform: translateX(3px); }
.opt.is-selected { border-color: var(--yellow); background: #FFF8E6; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-family: var(--font-head); font-weight: 500; color: var(--ink); margin-bottom: 7px; font-size: .95rem; }
.field em { color: var(--body); font-style: normal; font-weight: 400; }
.field input {
  width: 100%; font-family: var(--font-body); font-size: 1rem; padding: .85em 1em;
  border: 2px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: #fff;
}
.field input:focus { outline: none; border-color: var(--blue); }

.summary-list { list-style: none; margin-bottom: 22px; }
.summary-list li { padding: .7em 0; border-bottom: 1px dashed var(--line); display: flex; gap: 8px; }
.summary-list li:last-child { border-bottom: 0; }
.summary-list strong { color: var(--ink); min-width: 110px; display: inline-block; }

.quote-final { display: flex; flex-wrap: wrap; gap: 12px; }
.quote-final .btn { flex: 1 1 auto; }

.quote-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.quote-nav .btn-ghost { color: var(--blue); border-color: var(--line); }
.quote-nav .btn-ghost:hover { background: var(--off); }
.quote-count { color: var(--body); font-size: .9rem; margin-left: auto; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===============================================================
   PORQUÊ
   =============================================================== */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.why { text-align: center; padding: 28px 22px; border-radius: var(--radius); background: var(--off); }
.why-ic { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.why h3 { font-size: 1.12rem; margin-bottom: 8px; }
.why p { font-size: .95rem; }

/* ===============================================================
   CONTACTOS
   =============================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 22px; color: #fff; transition: .2s var(--ease);
}
a.contact-card:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); border-color: var(--yellow); }
.contact-ic { font-size: 1.7rem; }
.contact-card strong { font-family: var(--font-head); font-size: 1.05rem; }
.contact-card span { color: rgba(255,255,255,.82); }
.contact-hours { text-align: center; margin-top: 26px; color: rgba(255,255,255,.85); }
.contact-hours strong { color: var(--yellow); }
.map { margin-top: 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ===============================================================
   FOOTER
   =============================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 48px 20px 32px; }
.footer-brand .brand-text { color: #fff; font-size: 1.2rem; }
.footer-brand .brand-text span { color: var(--blue); }
.footer-brand p { margin-top: 10px; font-size: .92rem; max-width: 32em; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,.75); padding: 4px 0; font-size: .92rem; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 18px 20px; font-size: .85rem; }

/* ===============================================================
   BOTÃO FLUTUANTE WHATSAPP
   =============================================================== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .5); transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; z-index: -1; animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===============================================================
   BARRA FIXA DE CONTACTO (Ligar + WhatsApp) — sempre visível
   =============================================================== */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex;
  box-shadow: 0 -6px 20px rgba(11, 59, 92, .16);
  padding-bottom: env(safe-area-inset-bottom, 0px); /* iPhone com barra inferior */
}
.action-bar__btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: #fff; transition: background .2s var(--ease);
}
.action-bar__call { background: var(--navy); }
.action-bar__call:hover { background: var(--navy-deep); }
.action-bar__wa { background: #25D366; }
.action-bar__wa:hover { background: #1da851; }

/* Espaço no fundo para a barra nunca tapar o rodapé/conteúdo */
body { padding-bottom: 58px; }

/* ===============================================================
   SELETOR DE IDIOMA (PT / ES)
   =============================================================== */
.header-right { display: flex; align-items: center; gap: 16px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.back-link { color: var(--ink); font-weight: 500; font-size: .95rem; }
.back-link:hover { color: var(--blue); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font-head); font-weight: 600;
  font-size: .85rem; padding: .4em .8em; color: var(--body); transition: .15s var(--ease);
}
.lang-switch button.is-active { background: var(--navy); color: #fff; }
.lang-switch button:not(.is-active):hover { color: var(--blue); }
/* No header principal (index) o seletor entra antes do menu */
.nav-lang { margin-left: 4px; }

/* ===============================================================
   LOJA PÚBLICA
   =============================================================== */
.store-state { text-align: center; color: var(--body); padding: 30px 0; font-size: 1.05rem; }
.store-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.prod {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .25s;
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--off); }
.prod-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-cat { color: var(--blue); font-family: var(--font-head); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; }
.prod-title { font-size: 1.15rem; }
.prod-desc { font-size: .92rem; color: var(--body); }
.prod-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.prod-price { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--navy); }
.prod-qty { font-size: .85rem; color: var(--body); }
.prod-cta { margin-top: 12px; width: 100%; background: #25D366; color: #fff; box-shadow: none; }
.prod-cta:hover { background: #1da851; }

@media (min-width: 620px) { .store-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .store-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===============================================================
   ADMIN DA LOJA
   =============================================================== */
.admin-body { background: var(--off); }
.admin-tag { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.admin-main { padding: calc(var(--header-h) + 30px) 20px 40px; max-width: 1040px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; margin-bottom: 22px; }
.login-card { max-width: 420px; margin: 40px auto; }
.admin-card h1, .admin-card h2 { margin-bottom: 18px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 1.5rem; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 860px) { .admin-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; padding: .85em 1em;
  border: 2px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); resize: vertical;
}
.field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field select { width: 100%; font-family: var(--font-body); font-size: 1rem; padding: .85em 1em; border: 2px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: #fff; }
/* Seletor de ficheiro personalizado (o nativo transborda no iOS) */
.file-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; cursor: pointer; max-width: 100%; }
.file-pick input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.file-pick__btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: var(--off); border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: .7em 1.1em; font-family: var(--font-head); font-weight: 600; color: var(--ink); white-space: nowrap;
}
.file-pick:hover .file-pick__btn { border-color: var(--blue); color: var(--blue); }
.file-pick__name { font-size: .9rem; color: var(--body); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1.4fr 1fr 1fr; } }

.admin-msg { font-size: .92rem; margin: 6px 0; min-height: 1.2em; }
.admin-msg.is-err { color: #c0392b; }
.admin-msg.is-ok { color: #1da851; }
.admin-config { color: var(--body); line-height: 1.6; }
.admin-empty { color: var(--body); }

.admin-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.admin-row.is-sold { opacity: .55; }
.admin-thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: var(--off); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-info strong { color: var(--ink); }
.admin-info span { font-size: .85rem; color: var(--body); }
.admin-actions { display: flex; gap: 8px; flex: none; }
/* Em telemóvel, os botões da lista passam para uma linha inteira por baixo */
@media (max-width: 560px) {
  .admin-actions { flex: 1 0 100%; margin-top: 4px; }
  .admin-actions .btn { flex: 1; }
}
.admin-del { background: #c0392b; color: #fff; }
.admin-del:hover { background: #a93226; }
/* Botão Sair — azul-marinho cheio, sempre visível no fundo claro do admin */
.btn-logout { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-logout:hover { background: var(--navy-deep); }

/* ===============================================================
   FOLGA EM TELEMÓVEIS ESTREITOS (evita "zoom"/conteúdo no limite)
   =============================================================== */
html, body { overflow-x: hidden; }   /* rede de segurança contra transbordo lateral */
@media (max-width: 480px) {
  .header-right { gap: 8px; }
  .header-actions { gap: 8px; }
  .back-link { display: none; }                 /* o logótipo já leva ao início */
  .admin-tag { display: none; }                 /* redundante no telemóvel */
  .brand-text { font-size: 1.02rem; }
  .lang-switch button { padding: .35em .55em; font-size: .8rem; }
  /* Páginas loja/admin: menos espaço no topo e títulos mais contidos */
  .admin-main { padding-top: calc(var(--header-h) + 16px); }
}

/* ===============================================================
   LIGHTBOX
   =============================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(8,46,71,.94); place-items: center; padding: 30px;
}
.lightbox.is-open { display: grid; }
.lb-img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff;
  cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--yellow); color: var(--navy-deep); }
.lb-close { top: 20px; right: 20px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2.4rem; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }

/* ===============================================================
   ANIMAÇÕES DE REVELAÇÃO (scroll)
   =============================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===============================================================
   RESPONSIVO — tablet / desktop
   =============================================================== */
@media (min-width: 620px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 50px; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Menu mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s var(--ease); visibility: hidden;
  }
  .main-nav.is-open { transform: translateY(0); visibility: visible; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0 !important; }
}

/* ---------- Respeitar preferências de movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
