/* ==========================================================================
   LIVING COLOUR – TATTOO & PIERCING (EST. 1994)
   Craft-first visual identity. Mobile-optimized for thumb ergonomics.
   ========================================================================== */

:root {
  --noir-ink: #0d070b;
  --leather-burgundy: #220b1a;
  --leather-surface: #1a0814;
  --aged-parchment: #ede5da;
  --needle-steel: #8e7c87;
  --tarnished-gold: #d49b38;
  --tarnished-gold-hover: #e8b04c;
  --rule-subtle: rgba(212, 155, 56, 0.22);
  --rule-ghost: rgba(255, 255, 255, 0.08);

  --font-display: "Cinzel", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max-width: 1160px;
  --measure: 68ch;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--noir-ink);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--noir-ink);
  color: var(--aged-parchment);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

/* Extra space on mobile for persistent action bar */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
}

p {
  max-width: var(--measure);
}

.text-muted {
  color: var(--needle-steel);
}

.text-gold {
  color: var(--tarnished-gold);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.site-main {
  flex: 1;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-bordered {
  border-bottom: 1px solid var(--rule-ghost);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(13, 7, 11, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-subtle);
  padding: 0.9rem 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--tarnished-gold);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--aged-parchment);
  letter-spacing: 0.05em;
  display: block;
  line-height: 1.1;
}

.brand-meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--needle-steel);
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  font-size: 0.92rem;
  color: var(--needle-steel);
  position: relative;
  padding: 0.35rem 0;
}

.nav-item:hover, .nav-item.active {
  color: var(--aged-parchment);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--tarnished-gold);
}

.nav-direct-action {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--tarnished-gold);
  color: var(--tarnished-gold);
  border-radius: 2px;
  display: inline-block;
  white-space: nowrap;
}

.nav-direct-action:hover {
  background: var(--tarnished-gold);
  color: var(--noir-ink);
}

.menu-trigger {
  display: none;
  background: var(--leather-surface);
  border: 1px solid var(--rule-subtle);
  color: var(--tarnished-gold);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 3px;
  cursor: pointer;
  min-height: 40px;
  min-width: 44px;
}

/* Editorial Hero */
.editorial-hero {
  padding: 5rem 0 4rem 0;
  border-bottom: 1px solid var(--rule-ghost);
  background: linear-gradient(180deg, var(--leather-surface) 0%, var(--noir-ink) 100%);
}

.hero-columns {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--aged-parchment);
  margin: 1.5rem 0 2.2rem 0;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  border: 1px solid var(--rule-subtle);
  padding: 0.4rem;
  background: var(--leather-burgundy);
}

.hero-figure img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  filter: contrast(1.05);
}

.hero-caption {
  font-size: 0.76rem;
  color: var(--needle-steel);
  margin-top: 0.45rem;
  text-align: right;
  letter-spacing: 0.05em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 46px;
  touch-action: manipulation;
}

.btn-solid {
  background: var(--tarnished-gold);
  color: #0b0509;
  border: 1px solid var(--tarnished-gold);
}

.btn-solid:hover {
  background: var(--tarnished-gold-hover);
  border-color: var(--tarnished-gold-hover);
}

.btn-line {
  background: transparent;
  color: var(--aged-parchment);
  border: 1px solid var(--rule-subtle);
}

.btn-line:hover {
  border-color: var(--tarnished-gold);
  color: var(--tarnished-gold);
}

/* Editorial Craft Narrative */
.craft-narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.craft-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-ghost);
}

.craft-item:last-child {
  border-bottom: none;
}

.craft-item h3 {
  color: var(--tarnished-gold);
  margin-bottom: 0.5rem;
}

.craft-item p {
  color: #cec1cc;
  font-size: 0.98rem;
}

/* Gallery Section */
.gallery-control-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid var(--rule-ghost);
  padding-bottom: 0.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-control-row::-webkit-scrollbar {
  display: none;
}

.gallery-tab {
  background: none;
  border: none;
  color: var(--needle-steel);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
}

.gallery-tab:hover, .gallery-tab.active {
  color: var(--aged-parchment);
}

.gallery-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.7rem;
  height: 2px;
  background: var(--tarnished-gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.work-card {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--leather-surface);
  overflow: hidden;
  border: 1px solid var(--rule-ghost);
  cursor: pointer;
  touch-action: manipulation;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 7, 11, 0.92) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.work-card:hover .work-info {
  opacity: 1;
}

.work-genre {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tarnished-gold);
  display: block;
}

.work-name {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 4, 7, 0.96);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-frame {
  position: relative;
  max-width: 860px;
  max-height: 90vh;
}

.lightbox-frame img {
  max-height: 82vh;
  max-width: 100%;
  border: 1px solid var(--rule-subtle);
  object-fit: contain;
}

.lightbox-dismiss {
  position: absolute;
  top: -2.8rem;
  right: 0;
  background: rgba(26, 8, 20, 0.85);
  border: 1px solid var(--rule-subtle);
  color: var(--aged-parchment);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Contact & Directions */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4.5rem;
  align-items: start;
}

.contact-meta-group {
  margin-bottom: 2rem;
}

.contact-meta-group h4 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--needle-steel);
  margin-bottom: 0.5rem;
}

.contact-meta-group p, .contact-meta-group a {
  font-size: 1.05rem;
  color: var(--aged-parchment);
}

.contact-meta-group a:hover {
  color: var(--tarnished-gold);
}

.form-field {
  margin-bottom: 1.35rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  color: var(--aged-parchment);
  margin-bottom: 0.45rem;
}

/* 16px font-size prevents iOS automatic zoom on inputs */
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--leather-surface);
  border: 1px solid var(--rule-ghost);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  transition: border-color 0.2s ease;
  min-height: 48px;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--tarnished-gold);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.consent-check {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.consent-check input {
  margin-top: 0.2rem;
  accent-color: var(--tarnished-gold);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.consent-check span {
  font-size: 0.88rem;
  color: var(--needle-steel);
  line-height: 1.45;
}

/* Map Consent Box */
.map-embed-wrapper {
  margin-top: 3.5rem;
  border-top: 1px solid var(--rule-ghost);
  padding-top: 3rem;
}

.map-placeholder {
  border: 1px solid var(--rule-ghost);
  background: var(--leather-surface);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.map-placeholder p {
  margin: 0.8rem auto 1.6rem auto;
  color: var(--needle-steel);
  font-size: 0.92rem;
}

.map-frame {
  width: 100%;
  height: 380px;
  border: none;
  display: none;
  margin-top: 1.5rem;
}

/* In Memory & Tribute */
.tribute-header {
  border-bottom: 1px solid var(--rule-ghost);
  padding-bottom: 3rem;
  margin-bottom: 3.5rem;
}

.tribute-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  font-style: italic;
  color: var(--tarnished-gold);
  line-height: 1.5;
  margin: 1.8rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--tarnished-gold);
  max-width: 55ch;
}

.photo-tribute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.photo-tribute-item {
  border: 1px solid var(--rule-ghost);
  background: var(--leather-surface);
  padding: 0.5rem;
}

.photo-tribute-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.photo-tribute-item h4 {
  font-size: 1.05rem;
  margin: 0.8rem 0 0.3rem 0;
  color: var(--aged-parchment);
}

.photo-tribute-item p {
  font-size: 0.88rem;
  color: var(--needle-steel);
}

/* In Memory Dedicated Tribute Styling */
/* Memorial 2-Column Desktop & Mobile Streamlined Grid */
.memorial-grid-wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-areas:
    "title   profile"
    "content pommes";
  gap: 1.5rem 4.5rem;
  align-items: start;
}

.memorial-area-title { grid-area: title; }
.memorial-area-profile { grid-area: profile; }
.memorial-area-content { grid-area: content; }
.memorial-area-pommes { grid-area: pommes; }

.memorial-profile-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--leather-surface);
  border: 1px solid var(--rule-subtle);
  padding: 1.1rem 1.4rem;
  border-radius: 3px;
}

.memorial-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--tarnished-gold);
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.75);
}

.memorial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tribute-portrait-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--tarnished-gold);
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  background: #000;
}

.tribute-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tribute-text-body {
  text-align: left;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #cfc2cd;
  margin-bottom: 2.5rem;
}

.tribute-text-body p {
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.tribute-quote-centered {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-style: italic;
  color: var(--tarnished-gold);
  line-height: 1.65;
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--leather-surface);
  border-left: 3px solid var(--tarnished-gold);
  border-radius: 2px;
  text-align: left;
}

.tribute-main-image-wrap {
  border: 1px solid var(--rule-subtle);
  padding: 0.45rem;
  background: var(--leather-burgundy);
  margin: 2rem auto;
  max-width: 720px;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.tribute-main-image {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.tribute-caption {
  display: block;
  font-size: 0.8rem;
  color: var(--needle-steel);
  margin-top: 0.5rem;
  text-align: center;
  letter-spacing: 0.05em;
}

/* Legal Documents */
.legal-document {
  max-width: 820px;
  margin: 0 auto;
}

.legal-document h2 {
  font-size: 1.3rem;
  margin: 2.2rem 0 0.75rem 0;
  color: var(--tarnished-gold);
}

.legal-document h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.45rem 0;
}

.legal-document p, .legal-document li {
  color: #cfc2cd;
  font-size: 0.94rem;
  margin-bottom: 0.8rem;
}

.legal-document ul {
  padding-left: 1.5rem;
  list-style: square;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: #090407;
  border-top: 1px solid var(--rule-ghost);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr;
  gap: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule-ghost);
}

.footer-nav-list li {
  margin-bottom: 0.6rem;
}

.footer-nav-list a {
  font-size: 0.92rem;
  color: var(--needle-steel);
  display: inline-block;
  padding: 0.2rem 0;
}

.footer-nav-list a:hover {
  color: var(--aged-parchment);
}

.footer-legal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8rem;
  font-size: 0.82rem;
  color: var(--needle-steel);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.8rem;
}

.footer-legal-links a:hover {
  color: var(--aged-parchment);
}

/* ==========================================================================
   MOBILE PERSISTENT QUICK BAR (Thumb Zone for Phone Call & Booking)
   ========================================================================== */
.mobile-quick-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-quick-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(13, 7, 11, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--rule-subtle);
    padding: 0.65rem 1rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    gap: 0.75rem;
  }

  .mobile-quick-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 3px;
    text-align: center;
    min-height: 48px;
    touch-action: manipulation;
  }

  .mobile-quick-btn.call-btn {
    background: var(--leather-surface);
    border: 1px solid var(--rule-subtle);
    color: var(--tarnished-gold);
  }

  .mobile-quick-btn.action-btn {
    background: var(--tarnished-gold);
    color: #0d070b;
    border: 1px solid var(--tarnished-gold);
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   ========================================================================== */

/* Tablets & Small Laptops (< 960px) */
@media (max-width: 960px) {
  .menu-trigger {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 7, 11, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rule-subtle);
    flex-direction: column;
    padding: 1.5rem 1.75rem;
    gap: 0.5rem;
    align-items: stretch;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav .nav-item {
    font-size: 1.15rem;
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid var(--rule-ghost);
    color: var(--aged-parchment);
  }

  .primary-nav .nav-direct-action {
    margin-top: 0.85rem;
    text-align: center;
    padding: 0.85rem;
    font-size: 1rem;
    width: 100%;
  }

  .hero-columns {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-figure img {
    height: 380px;
  }

  .craft-narrative {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tribute-profile-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Smartphones (< 768px) */
@media (max-width: 768px) {
  .memorial-grid-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .memorial-area-title {
    text-align: center;
    order: 1;
  }

  .memorial-area-profile {
    order: 2;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .memorial-profile-card {
    flex-direction: column;
    text-align: center;
    background: transparent;
    border: none;
    padding: 0;
  }

  .memorial-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 0.75rem auto;
  }

  .memorial-area-content {
    order: 3;
  }

  .memorial-area-pommes {
    order: 4;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .editorial-hero {
    padding: 3.5rem 0 3rem 0;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-figure img {
    height: 280px;
  }

  /* 2-Column High-Impact Image Grid for Phones */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .work-info {
    opacity: 1;
    background: linear-gradient(180deg, transparent 40%, rgba(13, 7, 11, 0.95) 100%);
    padding: 0.75rem 0.6rem;
  }

  .work-genre {
    font-size: 0.68rem;
  }

  .work-name {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .footer-legal-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .lightbox-modal {
    padding: 1rem;
  }

  .lightbox-dismiss {
    top: -3.2rem;
    right: 0.5rem;
  }
}

/* Narrow Phones (< 420px) */
@media (max-width: 420px) {
  .container {
    padding: 0 1rem;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-meta {
    font-size: 0.65rem;
  }

  .brand-symbol {
    width: 36px;
    height: 36px;
  }

  .gallery-grid {
    gap: 0.5rem;
  }

  .photo-tribute-grid {
    grid-template-columns: 1fr;
  }
}
