/* Pastelaria Lua — design system */
:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-warm: #fdf0e0;
  --text: #2c1c13;
  --muted: #6b5347;
  --accent: #b2421f;
  --accent-dark: #8f3316;
  --accent-text: #fffaf3;
  --border: #ead6c2;
  --radius: 6px;
  --radius-lg: 16px;
  --shadow: 0 2px 10px rgba(64, 32, 16, .07);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 var(--space-3); }
h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 var(--space-4); }
a { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-7) 0; }
.section-warm { background: var(--surface-warm); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: var(--space-2);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--accent-dark); }
.btn-secondary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* Cabeçalho */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 780px) {
  .site-header { position: sticky; top: 0; z-index: 10; }
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.brand svg { flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent-dark); text-decoration: underline; }

/* Seletor de idioma */
.languages {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.languages a,
.languages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-2);
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius);
}
.languages a:hover { color: var(--accent-dark); text-decoration: underline; }
.languages [aria-current="true"] { color: var(--text); font-weight: 700; }

/* Primeiro ecrã */
.hero {
  background: linear-gradient(160deg, var(--surface-warm) 0%, #fbe4cf 55%, #f6d8bd 100%);
  padding: var(--space-8) 0;
}
.hero-inner { display: grid; gap: var(--space-6); align-items: center; }
.hero h1 { max-width: 18ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-note { margin: var(--space-4) 0 0; font-size: .95rem; color: var(--muted); }
.hero-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 10px solid var(--surface);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

@media (min-width: 780px) {
  .hero-inner { grid-template-columns: 1.2fr .8fr; }
}

/* Grelhas */
.grid { display: grid; gap: var(--space-5); }
@media (min-width: 600px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

/* Fotos dos bolos */
.gallery { margin-top: var(--space-5); }
.photo-card { padding: 0; overflow: hidden; }
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.photo-card h3,
.photo-card p { padding: 0 var(--space-5); }
.photo-card h3 { margin: var(--space-4) 0 var(--space-1); }
.photo-card p { margin: 0 0 var(--space-5); color: var(--muted); font-size: .95rem; }

/* Horário e contactos */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: 0; }
.info-list li > :last-child { color: var(--muted); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.info-list li > :first-child { color: var(--text); }
@media (max-width: 460px) {
  .info-list li { flex-direction: column; gap: 2px; }
  .info-list li > :last-child { text-align: left; }
}
.placeholder { color: var(--accent-dark); font-style: italic; }

.contact-grid { display: grid; gap: var(--space-6); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }

/* Formulário */
.form-field { margin-bottom: var(--space-4); }
.form-field label { display: block; font-weight: 600; margin-bottom: var(--space-1); }
.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-hint { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.notice {
  background: #eef6ec;
  border: 1px solid #b8d9b2;
  color: #23481d;
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}

/* Rodapé */
.site-footer {
  background: #2c1c13;
  color: #f7e6d5;
  padding: var(--space-6) 0;
  margin-top: var(--space-7);
}
.footer-inner { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.site-footer a { color: #ffd9bd; }
.site-footer .placeholder { color: #ffd9bd; }
.site-footer .brand { color: #fffaf3; }
.site-footer p { margin: 0 0 var(--space-2); }
.footer-title { font-weight: 700; margin-bottom: var(--space-2); }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: var(--space-4);
  font-size: .9rem;
  color: #e7cdb6;
}
@media (min-width: 700px) { .copyright { grid-column: 1 / -1; } }

/* Página de texto (privacidade) */
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--space-6); }
