/* =========================================
   Gild the Lily Tattoo — Master Stylesheet
   Dark, moody, professional tattoo studio
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --dark-2: #222;
  --dark-3: #2a2a2a;
  --gold: #c9a84c;
  --gold-light: #e0c068;
  --gold-dark: #a8882e;
  --text: #e8e0d8;
  --text-muted: #9a9088;
  --border: #333;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

p { margin-bottom: 1rem; color: var(--text-muted); }
p + p { margin-top: -0.5rem; }

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.nav-logo span { color: var(--text); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* --- Page Wrapper --- */
.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Section Styling --- */
section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

section.full-width { max-width: 100%; padding: 5rem 0; }
section.full-width .inner { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* --- Hero --- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1410 50%, #0a0a0a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(201, 168, 76, 0.03) 0%, transparent 50%);
  animation: ambient 15s ease-in-out infinite alternate;
}

@keyframes ambient {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(5%, 5%) rotate(3deg); }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 2rem; }

.hero h1 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.hero h1 span { color: var(--gold); }

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.5s, filter 0.5s;
  filter: grayscale(30%);
}

.gallery-grid .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .overlay { opacity: 1; }

.gallery-item .overlay p {
  color: var(--text);
  font-size: 0.85rem;
  margin: 0;
}

/* --- About Page --- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: grayscale(40%);
  transition: filter 0.5s;
}

.about-image:hover { filter: grayscale(0%); }

.about-text h2 { margin-bottom: 0.75rem; }
.about-text .intro { font-size: 1.15rem; color: var(--text); margin-bottom: 1.5rem; }

.about-details {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.detail-item h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.detail-item p {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0;
}

/* --- Booking / Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: var(--dark);
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
  margin: 0.75rem 0;
}

.pricing-card h4 { font-size: 1.1rem; }
.pricing-card p { font-size: 0.9rem; }

.booking-info {
  background: var(--dark);
  padding: 2rem;
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.booking-info h3 { text-align: center; }
.booking-info ul { list-style: none; max-width: 500px; margin: 0 auto; }
.booking-info li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.booking-info li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.6rem;
  margin-top: 6px;
  flex-shrink: 0;
}

.booking-contact {
  text-align: center;
  margin-top: 2rem;
}

/* --- Social Links --- */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.social-links a:hover { color: var(--gold); }

/* --- Footer --- */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: auto;
}

footer p { font-size: 0.8rem; margin: 0.25rem 0; }
footer .footer-brand { font-family: var(--font-heading); color: var(--gold); font-size: 1.1rem; }

/* --- Page Header --- */
.page-header {
  text-align: center;
  padding: 6rem 2rem 3rem;
  background: linear-gradient(180deg, #14100c 0%, var(--black) 100%);
}

.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }
.fade-in-d4 { animation-delay: 0.4s; }

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .mobile-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .about-details { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

  section { padding: 3rem 1.5rem; }
  .hero .tagline { font-size: 1rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 280px; }
  .nav-inner { padding: 0 1rem; }
}
