/* ================================================================
   Centro de Cópias Basílio — style.css
   Mobile-first · Warm editorial palette
   ================================================================ */

/* ── RESET & TOKENS ─────────────────────────────────────── */
:root {
  --ink:        #1a1208;
  --cream:      #faf7f2;
  --warm:       #f5ede0;
  --gold:       #c8922a;
  --gold-dark:  #a5741e;
  --red:        #c0392b;
  --text:       #3d2f1f;
  --muted:      #7a6555;
  --border:     #e8ddd0;
  --white:      #ffffff;
  --radius:     14px;
  --shadow:     0 4px 24px rgba(26,18,8,.08);
  --shadow-lg:  0 12px 48px rgba(26,18,8,.14);
  --ease:       cubic-bezier(.4,0,.2,1);
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--cream); color: var(--text); line-height: 1.6; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── UTILITY ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}
.section  { padding: 64px 0; }
.center   { text-align: center; }

.label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 560px;
}

/* ── LOGO MARK ──────────────────────────────────────────── */
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--ink); color: var(--gold);
  font-family: var(--serif); font-weight: 900; flex-shrink: 0;
}
.logo-mark.lg { width: 46px; height: 46px; font-size: 1.1rem; }
.logo-mark.sm { width: 32px; height: 32px; font-size: .85rem; border-radius: 7px; }

/* ── BANNER ─────────────────────────────────────────────── */
.banner {
  background: var(--red);
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  text-align: center;
  padding: 9px 44px 9px 16px;
  position: relative;
  z-index: 110;
  letter-spacing: .01em;
}
.banner strong { font-weight: 700; }
.banner-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.65);
  font-size: 1rem; line-height: 1; padding: 4px;
  transition: color .2s;
}
.banner-close:hover { color: #fff; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(26,18,8,.07);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; padding-inline: 20px; max-width: 1140px; margin-inline: auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
}
.logo-text {
  font-size: .8rem; font-weight: 500; line-height: 1.3; color: var(--ink);
}
.logo-text em { font-style: italic; font-family: var(--serif); color: var(--gold); }

/* Desktop nav */
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: .875rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s var(--ease);
}
.nav-links a:hover         { color: var(--ink); }
.nav-links a:hover::after  { width: 100%; }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 12px 0 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 24px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--warm); }

/* Show desktop nav on wider screens */
@media (min-width: 768px) {
  .nav-links   { display: flex; }
  .hamburger   { display: none; }
  .mobile-nav  { display: none !important; }
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 45%, rgba(200,146,42,.2) 0%, transparent 58%),
    radial-gradient(ellipse at 15% 85%, rgba(200,146,42,.10) 0%, transparent 50%),
    linear-gradient(145deg, #1a1208 0%, #2d2010 65%, #1a1208 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8922a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 2;
  padding: 80px 20px 40px;
  max-width: 1140px; margin-inline: auto; width: 100%;
}
.hero-eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
  opacity: 0; animation: fadeUp .6s .15s forwards;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 12vw, 7rem);
  font-weight: 900; color: #fff; line-height: 1.0;
  margin-bottom: 22px;
  opacity: 0; animation: fadeUp .7s .35s forwards;
}
.hero-sub {
  color: rgba(255,255,255,.6);
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
  max-width: 460px; margin-bottom: 36px;
  opacity: 0; animation: fadeUp .7s .55s forwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; animation: fadeUp .7s .75s forwards;
}
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--gold); color: var(--ink);
  padding: 13px 28px; border-radius: 8px;
  font-weight: 600; font-size: .9rem;
  transition: background .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,.28); color: rgba(255,255,255,.8);
  padding: 12px 26px; border-radius: 8px;
  font-weight: 500; font-size: .9rem;
  transition: border-color .2s, color .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.7); color: #fff; transform: translateY(-2px); }
.hero-badge {
  position: absolute; right: 24px; bottom: 40px;
  width: 88px; height: 88px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gold);
  opacity: 0; animation: fadeIn .8s 1.1s forwards;
}
.hero-badge span { font-family: var(--serif); font-size: 2rem; font-weight: 900; line-height: 1; }
.hero-badge small { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-scroll {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.3); font-size: 1.2rem;
  animation: bounce 2.2s infinite;
}

/* ── FEATURES STRIP ─────────────────────────────────────── */
.features-strip {
  background: var(--gold);
  display: flex; flex-wrap: wrap; justify-content: center;
}
.feat {
  padding: 12px 20px;
  font-size: .82rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 7px;
  border-right: 1px solid rgba(26,18,8,.12);
}
.feat:last-child { border-right: none; }
.feat-icon { font-size: 1rem; }

/* ── SOBRE ──────────────────────────────────────────────── */
.sobre { background: var(--cream); }
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}
.col-text p { color: var(--muted); margin-bottom: 14px; font-size: .95rem; }
.stat-row { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.stat strong {
  display: block;
  font-family: var(--serif); font-size: 2.2rem; font-weight: 900;
  color: var(--gold); line-height: 1;
}
.stat span {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 4px;
}
.img-frame { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; height: 320px; object-fit: cover; }
@media (min-width: 768px) { .img-frame img { height: 380px; } }
.img-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--gold); color: var(--ink);
  padding: 5px 12px; border-radius: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
}

/* ── SERVIÇOS ───────────────────────────────────────────── */
.servicos-section { background: var(--warm); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px; margin-bottom: 28px;
}
@media (min-width: 560px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.sc-icon    { font-size: 1.4rem; }
.sc-header h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.sc-list { list-style: none; }
.sc-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: .875rem; gap: 8px;
}
.sc-list li:last-child { border-bottom: none; }
.it-name  { color: var(--text); }
.it-price { font-weight: 700; color: var(--gold-dark); white-space: nowrap; }
.price-note {
  text-align: center; color: var(--muted); font-size: .82rem;
  padding: 14px 20px; background: var(--cream); border-radius: 10px;
}
.price-note a { color: var(--gold-dark); font-weight: 600; }

/* ── CTT BANNER ─────────────────────────────────────────── */
.ctt-banner { background: var(--ink); padding: 48px 20px; }
.ctt-inner  { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.ctt-logo   { font-size: 2.6rem; flex-shrink: 0; }
.ctt-inner h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); margin-bottom: 8px; }
.ctt-inner p  { color: rgba(255,255,255,.6); font-size: .9rem; max-width: 480px; }

/* ── GALERIA ────────────────────────────────────────────── */
.galeria { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 36px;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.gal-item {
  height: 180px; border-radius: var(--radius);
  background: var(--warm); background-size: cover; background-position: center;
  transition: transform .25s var(--ease), opacity .3s;
}
@media (min-width: 768px) { .gal-item { height: 240px; } }
.gal-item:hover { transform: scale(1.02); }
.gal-item.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  border: 2px dashed var(--border);
}

/* ── HORÁRIO + CONTACTOS ────────────────────────────────── */
.horario-contactos { background: var(--warm); }
.h-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--border); font-size: .9rem;
}
.h-label  { color: var(--muted); }
.h-times  { font-weight: 600; color: var(--ink); }
.h-closed { font-style: italic; color: var(--muted); }
.vacation-box {
  margin-top: 18px; background: var(--red); color: #fff;
  padding: 11px 16px; border-radius: 8px; font-size: .85rem; font-weight: 500;
}
.contact-items { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.contact-item  { display: flex; align-items: flex-start; gap: 12px; }
.c-icon { font-size: 1.3rem; margin-top: 1px; }
.contact-item strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }
.contact-item p { font-size: .92rem; }
.open-dot, .closed-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px;
}
.open-dot   { background: #27ae60; box-shadow: 0 0 0 3px rgba(39,174,96,.2); }
.closed-dot { background: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.2); }
.map-wrap iframe { border-radius: var(--radius); display: block; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.45); padding: 32px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; font-size: .82rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); font-weight: 500; }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
.fade-up {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── LIGHTBOX ───────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }

#lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 7, 3, 0.92);
  backdrop-filter: blur(6px);
}
#lb-inner {
  position: relative; z-index: 1;
  max-width: min(90vw, 960px);
  max-height: 90svh;
  display: flex; flex-direction: column; align-items: center;
  animation: fadeIn .2s var(--ease);
}
#lb-img {
  display: block;
  max-width: 100%; max-height: 80svh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
#lb-caption {
  margin-top: 14px;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  text-align: center;
  min-height: 20px;
}
#lb-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(255,255,255,.12); border: none;
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
#lb-close:hover { background: rgba(255,255,255,.25); }

#lb-prev, #lb-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
#lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,.25); }
#lb-prev { left: 16px; }
#lb-next { right: 16px; }

/* Make gallery items show pointer cursor */
.gal-item[data-src] { cursor: zoom-in; }
