/*
Theme Name: Hostal del Sol · Manteniment
Description: Pàgina de manteniment de l'Hostal del Sol (Olot) amb horaris i botó de reserva per WhatsApp. El número de WhatsApp es canvia a Aparença → Personalitza → Hostal del Sol.
Version: 1.0
Requires at least: 5.8
Requires PHP: 7.0
License: GPLv2 or later
Text Domain: hostal-del-sol-manteniment
*/

:root {
  --crema: #f7efe2;
  --blanc: #fffaf2;
  --fusta: #4a2a1e;
  --daurat: #c99a6b;
  --teula: #a4472a;
  --text: #2b1d16;
  --text-suau: #5c4a3f;
  --vora: #dccbb2;
  --whatsapp: #1f8f4e;
  --whatsapp-fosc: #17713d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--crema);
  display: flex;
  flex-direction: column;
}
a { color: var(--teula); }
:focus-visible { outline: 3px solid var(--teula); outline-offset: 3px; border-radius: 4px; }

.portada {
  background: var(--fusta);
  color: var(--crema);
  text-align: center;
  padding: 48px 16px 64px;
}
.logo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  border: 3px solid var(--daurat);
}
.etiqueta {
  color: var(--daurat);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
}
.portada p.text {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.15rem;
  opacity: .92;
}
.estat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 8px 16px;
  border: 1px solid rgba(201, 154, 107, .5);
  border-radius: 999px;
  font-size: .95rem;
  color: var(--daurat);
}
.estat::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--daurat);
  animation: batec 1.6s ease-in-out infinite;
}
@keyframes batec { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .estat::before { animation: none; } }

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: -32px auto 0;
  padding: 0 16px 48px;
  display: grid;
  gap: 20px;
}
.targeta {
  background: var(--blanc);
  border: 1px solid var(--vora);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(74, 42, 30, .08), 0 6px 20px rgba(74, 42, 30, .08);
}
h2 {
  font-family: var(--serif);
  color: var(--fusta);
  font-size: 1.6rem;
  margin: 0 0 16px;
}
.horaris { list-style: none; margin: 0; padding: 0; }
.horaris li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--vora);
}
.horaris li:last-child { border-bottom: 0; }
.horaris .dia { font-weight: 600; }
.horaris .hores { font-variant-numeric: tabular-nums; color: var(--text-suau); }
.horaris .tancat { color: var(--teula); font-weight: 600; }
.petit { font-size: .9rem; color: var(--text-suau); margin: 12px 0 0; }

.cita { text-align: center; }
.cita p { margin: 0 0 20px; color: var(--text-suau); }
.boto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  background: var(--whatsapp);
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.boto:hover { background: var(--whatsapp-fosc); color: #fff; transform: translateY(-1px); }
.boto svg { width: 24px; height: 24px; flex: none; }

footer {
  text-align: center;
  padding: 24px 16px 32px;
  font-size: .9rem;
  color: var(--text-suau);
}
footer a { color: inherit; }

@media (max-width: 420px) {
  .boto { width: 100%; padding: 12px 20px; }
}
