/* OYATE POTTERY - Shared Styles */
:root { 
  --maxw: 1100px; 
  --pad: 16px; 
  --gap: 12px; 
  --bg: #faf8f6; 
  --ink: #1f2937; 
  --muted: #6b7280;
  --fire-orange: #ff6b35;
  --fire-red: #d63031;
  --fire-yellow: #fdcb6e;
}

* { box-sizing: border-box; }

body { 
  margin: 0; 
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; 
  color: var(--ink); 
  background: var(--bg);
  background-image: url('../background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Overlay for better text readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

header { 
  position: sticky; 
  top: 0; 
  backdrop-filter: blur(8px); 
  background: rgba(0, 0, 0, 0.8); 
  border-bottom: 1px solid rgba(255, 107, 53, 0.3);
  z-index: 100;
}

.wrap { 
  max-width: var(--maxw); 
  margin: 0 auto; 
  padding: .75rem var(--pad); 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 1rem; 
}

h1 { 
  margin: 0; 
  font-size: clamp(1.8rem, 4vw, 3rem); 
  letter-spacing: 2px; 
  color: var(--fire-orange);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: bold;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--fire-yellow);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

nav a { 
  color: var(--fire-yellow); 
  text-decoration: none; 
  margin-left: 1rem; 
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover { 
  color: var(--fire-orange);
  text-decoration: underline; 
}

.hero { 
  max-width: var(--maxw); 
  margin: 2rem auto 0; 
  padding: 0 var(--pad); 
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.hero h2 {
  color: var(--fire-orange);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero p { 
  color: #f9fafb; 
  margin-top: .25rem; 
  line-height: 1.6;
  font-size: 1.1rem;
}

.contact-info {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: var(--maxw);
  backdrop-filter: blur(10px);
}

.contact-info h3 {
  color: var(--fire-orange);
  margin-bottom: 1rem;
}

.contact-info p {
  color: #f9fafb;
  margin: 0.5rem 0;
}

.contact-info a {
  color: var(--fire-yellow);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--fire-orange);
  text-decoration: underline;
}

.grid { 
  max-width: var(--maxw); 
  margin: 1rem auto 2rem; 
  padding: 0 var(--pad);
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
  grid-auto-rows: auto; 
  grid-gap: var(--gap); 
}

.card { 
  display: block; 
  position: relative; 
  overflow: hidden; 
  border-radius: 16px; 
  background: white; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0; 
  aspect-ratio: 4/3; 
}

.card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

.card figcaption { 
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  padding: .5rem .75rem; 
  font-size: .9rem; 
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); 
  color: white; 
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); 
}

footer { 
  max-width: var(--maxw); 
  margin: 0 auto 3rem; 
  padding: 0 var(--pad); 
  color: var(--fire-yellow); 
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.credit { 
  font-size: .9rem; 
  margin-top: 1rem; 
}

/* Lightbox */
.lightbox { 
  position: fixed; 
  inset: 0; 
  display: none; 
  background: rgba(0, 0, 0, 0.95); 
  z-index: 50; 
}

.lightbox.open { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: var(--pad); 
}

.lightbox img { 
  max-width: min(95vw, var(--maxw)); 
  max-height: 80vh; 
  width: auto; 
  height: auto; 
  border-radius: 12px; 
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6); 
}

.lightbox .meta { 
  position: absolute; 
  bottom: 24px; 
  left: 24px; 
  right: 24px; 
  color: #f9fafb; 
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); 
}

.lightbox .caption { 
  font-size: 1rem; 
}

.lightbox .close, .lightbox .prev, .lightbox .next {
  position: absolute; 
  top: 16px; 
  background: rgba(255, 107, 53, 0.8); 
  border: 1px solid rgba(255, 107, 53, 0.9);
  border-radius: 999px; 
  padding: .5rem .75rem; 
  color: white; 
  cursor: pointer; 
  user-select: none;
  transition: background 0.3s ease;
}

.lightbox .close:hover, .lightbox .prev:hover, .lightbox .next:hover {
  background: rgba(255, 107, 53, 1);
}

.lightbox .close { 
  right: 16px; 
}

.lightbox .prev { 
  left: 16px; 
  top: 50%; 
  transform: translateY(-50%); 
}

.lightbox .next { 
  right: 16px; 
  top: 50%; 
  transform: translateY(-50%); 
}

.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0, 0, 0, 0); 
  white-space: nowrap; 
  border: 0; 
}

/* Page-specific content styling */
.page-content {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: var(--maxw);
  backdrop-filter: blur(10px);
}

.page-content h2 {
  color: var(--fire-orange);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.page-content p {
  color: #f9fafb;
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Navigation breadcrumbs */
.breadcrumb {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 1rem auto;
  max-width: var(--maxw);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--fire-yellow);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--fire-orange);
  text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .wrap {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  nav {
    margin-top: 0.5rem;
  }
  
  nav a {
    margin: 0 0.5rem;
  }
  
  .hero, .page-content, .contact-info {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
}
