/* ============================================================
   webfacil.de — shared styles
   All templates inherit these. Template-specific overrides
   are in <style> blocks within each layout file.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #1D3557;
  --accent-light: color-mix(in srgb, var(--accent) 15%, white);
  --accent-dark:  color-mix(in srgb, var(--accent) 80%, black);
  --text:         #1a1a2e;
  --text-muted:   #6b7280;
  --bg:           #ffffff;
  --bg-soft:      #f8f9fa;
  --border:       #e5e7eb;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
  --max-w:        680px;
}

html { scroll-behavior: smooth; }

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 52vw;
  max-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--accent);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.28) 55%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 28px 20px 32px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  color: #fff;
}

.hero-content h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero-tagline {
  margin-top: 6px;
  font-size: 1rem;
  opacity: .9;
  font-weight: 400;
}

/* ── Status badge (open/closed) ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: .02em;
}
.status-badge.open  { background: #dcfce7; color: #166534; }
.status-badge.closed{ background: #fee2e2; color: #991b1b; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ── Accent button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-wa {
  background: #25D366;
  color: #fff;
}
.btn-block { width: 100%; justify-content: center; }

/* ── WhatsApp sticky ── */
.wa-sticky {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.wa-sticky:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
  text-decoration: none;
  color: #fff;
}

/* ── Info row (hours, address, phone) ── */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
}
.info-row + .info-row { border-top: 1px solid var(--border); }
.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.info-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}
.info-value {
  font-weight: 600;
  margin-top: 1px;
  font-size: .95rem;
}

/* ── Menu / services ── */
.menu-category {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  padding: 20px 0 10px;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  gap: 12px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-weight: 500; flex: 1; }
.menu-item-desc { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.menu-item-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  font-size: 1rem;
}

/* ── Photo gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gallery img {
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
.gallery img:first-child:nth-last-child(odd) {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

/* ── Events (músico) ── */
.event-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.event-date-box {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  width: 52px;
  min-width: 52px;
  text-align: center;
  padding: 8px 4px;
}
.event-date-day  { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-date-mon  { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.event-info      { flex: 1; }
.event-venue     { font-weight: 700; font-size: 1rem; }
.event-city      { color: var(--text-muted); font-size: .85rem; margin-top: 2px; }
.event-time      { font-size: .82rem; margin-top: 4px; }
.event-sold-out  { color: #dc2626; font-weight: 700; font-size: .8rem; margin-top: 4px; }
.event-price     { color: var(--accent); font-weight: 600; font-size: .88rem; }
.event-ticket-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}

/* ── Skills tags ── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 600;
}

/* ── Timeline (experience) ── */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-role    { font-weight: 700; font-size: 1rem; }
.timeline-company { color: var(--accent); font-weight: 600; font-size: .9rem; }
.timeline-period  { color: var(--text-muted); font-size: .8rem; margin-top: 2px; }
.timeline-desc    { font-size: .9rem; margin-top: 6px; color: var(--text-muted); }

/* ── Portfolio grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.portfolio-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.portfolio-item-label {
  padding: 10px 12px;
  font-weight: 600;
  font-size: .85rem;
}

/* ── Social links ── */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ── Section header ── */
.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
}

/* ── Map embed ── */
.map-embed {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  border: none;
  margin-top: 12px;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 80px; /* space for sticky wa button */
}
.site-footer a { color: var(--text-muted); text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
