/* ==========================================================================
   Nagovsstato Tattoo Studio - main stylesheet
   Mobile-first, "app-like" layout: top header, bottom tab bar, floating FAB.
   ========================================================================== */

:root {
  --ink: #14120f;
  --ink-soft: #4a463f;
  --paper: #faf8f5;
  --paper-alt: #f0ece4;
  --card: #ffffff;
  --accent: #a8763e;
  --accent-dark: #7d5527;
  --line: #e4ddd1;
  --danger: #b3261e;
  --success: #1e6b3c;
  --whatsapp: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 18, 15, 0.08);
  --header-h: 64px;
  --bottom-nav-h: 68px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

h1, h2, h3, .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 0.4em;
  line-height: 1.15;
}

p { line-height: 1.6; color: var(--ink-soft); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 34px; height: 34px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-weight: 700;
}
.brand-name { font-size: 1.05rem; margin: 0; color: var(--ink); }

.desktop-nav { display: none; gap: 28px; }
.desktop-nav a { font-weight: 500; color: var(--ink-soft); padding: 4px 0; border-bottom: 2px solid transparent; }
.desktop-nav a.active, .desktop-nav a:hover { color: var(--ink); border-color: var(--accent); }

.header-cta {
  display: none;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
}

@media (min-width: 860px) {
  .desktop-nav { display: flex; }
  .header-cta { display: inline-block; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 40px 20px 60px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,13,10,0.55) 0%, rgba(15,13,10,0.55) 40%, rgba(15,13,10,0.88) 100%);
  z-index: -1;
}
.hero-content { max-width: 660px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.hero h1 { font-size: clamp(2.3rem, 6.5vw, 3.8rem); color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-tagline { font-size: 1.15rem; color: #e9e5db; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--accent); }
.hero-stats span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #cfc9bc; margin-top: 2px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ---------------- Sections ---------------- */
.section { padding: 56px 20px; max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--paper-alt); max-width: none; }
.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-title { text-align: center; font-size: 1.9rem; margin-bottom: 30px; }
.section-cta { text-align: center; margin-top: 28px; }

.page-hero { padding: 44px 20px 20px; max-width: 760px; margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card h3 { font-size: 1.1rem; color: var(--ink); }

.cta-band {
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 48px 24px;
  max-width: 1100px;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #d8d3c8; }

/* ---------------- Gallery ---------------- */
.gallery-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.filter-btn {
  flex: 0 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
}
.gallery-item figcaption span { font-size: 0.7rem; color: #ddd; }
.gallery-item.hidden { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer;
}

/* ---------------- Booking form ---------------- */
.booking-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.booking-form .btn { width: 100%; margin-top: 6px; }
.form-result { margin-top: 14px; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-result.success { color: var(--success); }
.form-result.error { color: var(--danger); }

/* ---------------- Contact ---------------- */
.contact-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .contact-layout { grid-template-columns: 1fr 1.3fr; } }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.contact-card h3 { font-size: 1rem; color: var(--accent-dark); }
.contact-action {
  display: block;
  padding: 10px 0;
  font-weight: 500;
  border-top: 1px solid var(--line);
}
.contact-action:first-of-type { border-top: none; }
.contact-map { min-height: 380px; }

.map-card {
  position: relative;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-card iframe {
  filter: grayscale(45%) contrast(1.05);
  transition: filter 0.35s ease;
}
.map-card:hover iframe { filter: grayscale(0%) contrast(1); }

.map-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
}
.map-badge svg { width: 26px; height: 26px; fill: var(--accent-dark); flex-shrink: 0; }
.map-badge strong { display: block; font-size: 0.85rem; color: var(--ink); font-family: 'Poppins', sans-serif; font-weight: 600; }
.map-badge span { display: block; font-size: 0.72rem; color: var(--ink-soft); }

.map-directions-btn {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.map-directions-btn:hover { background: var(--accent-dark); }

/* ---------------- FAB (Call / WhatsApp toggle) ---------------- */
.fab-wrap {
  position: fixed;
  right: 18px;
  bottom: calc(var(--bottom-nav-h) + 18px);
  z-index: 60;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
}
@media (min-width: 860px) { .fab-wrap { bottom: 24px; } }

.fab-toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.fab-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fab-wrap.open .fab-toggle { transform: rotate(45deg); background: var(--accent-dark); }

.fab-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  pointer-events: none;
  transition: all 0.2s ease;
}
.fab-wrap.open .fab-actions { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.fab-action {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  color: #fff;
}
.fab-action svg { width: 22px; height: 22px; fill: currentColor; }
.fab-whatsapp { background: var(--whatsapp); }
.fab-call { background: var(--accent); }

/* ---------------- Bottom tab bar (mobile app feel) ---------------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--bottom-nav-h);
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 860px) { .bottom-nav { display: none; } }

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.68rem;
  color: var(--ink-soft);
}
.bottom-nav a svg { width: 22px; height: 22px; fill: currentColor; }
.bottom-nav a.active { color: var(--accent-dark); }

.nav-fab-btn {
  position: relative;
  top: -14px;
}
.nav-fab-btn svg {
  width: 46px; height: 46px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  padding: 11px;
  box-shadow: var(--shadow);
}
.nav-fab-btn.active svg { background: var(--accent-dark); }

body { padding-bottom: var(--bottom-nav-h); }
@media (min-width: 860px) { body { padding-bottom: 0; } }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: #a9a397;
  margin-top: 20px;
  border-top: 3px solid var(--accent);
}
.footer-top { padding: 56px 20px 36px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0 0 6px;
}
.footer-col a { color: #a9a397; font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-static { font-size: 0.9rem; color: #8b8577; }

.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-logo .brand-mark { border-color: var(--accent); color: var(--accent); }
.footer-logo .brand-name { color: #fff; font-size: 1.1rem; }
.footer-about { font-size: 0.88rem; line-height: 1.65; color: #8b8577; max-width: 320px; margin: 0; }

.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 17px; height: 17px; fill: #e9e5db; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 20px calc(20px + var(--bottom-nav-h));
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: #726c60;
}
.footer-bottom-links { display: flex; gap: 10px; align-items: center; }
.footer-bottom-links a { color: #8b8577; }
.footer-bottom-links a:hover { color: var(--accent); }
@media (min-width: 860px) { .footer-bottom { padding-bottom: 20px; } }

/* ---------------- Admin (shared bits also used by admin.css) ---------------- */
.admin-body { background: var(--paper-alt); }

/* ---------------- Legal pages (Privacy / Terms) ---------------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.2rem; color: var(--ink); margin-top: 34px; }
.legal-content p { font-size: 0.95rem; }
.legal-content a { color: var(--accent-dark); text-decoration: underline; }
.legal-note {
  margin-top: 40px;
  padding: 16px 18px;
  background: var(--paper-alt);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 0.85rem !important;
  color: var(--ink-soft);
}
