/*
Theme Name: Virtual Museum of Art
Theme URI: https://easy-flow-creation.lovable.app
Author: Virtual Museum
Author URI: https://easy-flow-creation.lovable.app
Description: A curated, editorial WordPress theme for non-profit virtual art museums. Light editorial palette, bronze typography, cinematic hero, and a structured gallery-wings layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: virtual-museum
Tags: one-column, custom-menu, featured-images, threaded-comments, translation-ready, blog, portfolio
*/

/* =========================================================
   Virtual Museum — Curatorial Light
   ========================================================= */

:root {
  --eggshell: #f7f3ee;
  --cream:    #efe8df;
  --canvas:   #ffffff;
  --bronze:   #2a221b;
  --bronze-soft: #6b5e52;
  --hairline: #d9d2c8;
  --background: var(--eggshell);
  --foreground: #1f1812;
  --muted-foreground: var(--bronze-soft);
  --border: var(--hairline);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 64px; } }

.label-caps {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  max-width: 1440px;
  margin: 0 auto;
}
@media (min-width: 768px) { .nav-row { padding: 16px 64px; } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.brand .brand-sub {
  margin-left: 6px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.brand svg { width: 20px; height: 20px; }

.primary-nav { display: none; justify-content: center; }
@media (min-width: 768px) { .primary-nav { display: flex; } }
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
}
.primary-nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(31, 24, 18, 0.78);
  transition: color .2s ease;
}
.primary-nav a:hover { color: var(--foreground); }

.nav-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(31, 24, 18, 0.7);
  transition: border-color .2s ease, color .2s ease;
}
.icon-btn:hover { border-color: var(--border); color: var(--foreground); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--cream);
  perspective: 1200px;
}
.hero-slide {
  position: absolute; inset: 0;
  animation: hero-cycle 28s ease-in-out infinite;
  opacity: 0;
  will-change: opacity;
}
.hero-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: hero-kenburns 12s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: center;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 7s; }
.hero-slide:nth-child(3) { animation-delay: 14s; }
.hero-slide:nth-child(4) { animation-delay: 21s; }

@keyframes hero-cycle {
  0%, 22%   { opacity: 1; }
  28%, 97%  { opacity: 0; }
  100%      { opacity: 1; }
}
@keyframes hero-kenburns {
  0%   { transform: scale(1.08) translate3d(-1.4%, -0.8%, 0); }
  100% { transform: scale(1.18) translate3d(1.4%, 0.8%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide img { animation: none; }
  .hero-slide:nth-child(1) { opacity: 1; }
}

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(253,248,247,0.65) 0%, rgba(253,248,247,0.35) 40%, rgba(20,15,12,0.35) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(20,15,12,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.hero-inner { max-width: 760px; }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--bronze);
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(42, 34, 27, 0.85);
}
.hero-cta { margin-top: 36px; display: flex; justify-content: center; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bronze);
  color: var(--canvas);
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  transition: background .2s ease;
}
.btn-primary:hover { background: var(--foreground); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--bronze);
  color: var(--bronze);
  padding: 14px 36px;
  background: transparent;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.btn-outline:hover { background: var(--bronze); color: var(--canvas); }

.btn-filled {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bronze);
  border: 1px solid var(--bronze);
  color: var(--canvas);
  padding: 14px 32px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.btn-filled:hover { background: transparent; color: var(--bronze); }

.slide-dots {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; gap: 8px;
}
.slide-dots span {
  width: 32px; height: 4px;
  background: rgba(42, 34, 27, 0.3);
}

/* ---------------- Experience strip ---------------- */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.section-eggshell { background: var(--eggshell); }
.section-canvas   { background: var(--canvas); }
.section-cream    { background: var(--cream); }

.section-head { max-width: 640px; margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 16px; font-size: clamp(1.875rem, 3.2vw, 2.25rem); font-weight: 600; }

.experience-grid {
  margin-top: 48px;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 640px) {
  .experience-grid { grid-template-columns: repeat(3, 1fr); }
}
.experience-cell { background: var(--eggshell); padding: 40px; }
.experience-cell svg { width: 28px; height: 28px; color: var(--bronze); stroke-width: 1.1; }
.experience-cell h3 {
  margin-top: 32px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.experience-cell p { margin-top: 16px; color: var(--muted-foreground); font-size: 15px; line-height: 1.65; }

/* ---------------- Gallery wings ---------------- */
.wings-head {
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) {
  .wings-head { flex-direction: row; align-items: flex-end; }
}
.wings-head h2 {
  margin-top: 16px;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
}
.wings-head p {
  max-width: 360px;
  color: var(--muted-foreground);
  font-size: 15px; line-height: 1.65;
}

.wings-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px 32px;
}
@media (min-width: 640px) { .wings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wings-grid { grid-template-columns: repeat(4, 1fr); } }

.wing-card { display: block; color: inherit; }
.wing-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
}
.wing-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.wing-card:hover .wing-image img { transform: scale(1.03); }

.wing-meta { margin-top: 20px; }
.wing-meta .row {
  display: flex; align-items: baseline; gap: 12px;
}
.wing-meta h3 { margin-top: 8px; font-size: 20px; font-weight: 600; }
.wing-meta p { margin: 6px 0 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.55; }

.center-row { margin-top: 64px; display: flex; justify-content: center; }

/* ---------------- Mission ---------------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .mission-grid { grid-template-columns: 7fr 5fr; gap: 64px; }
}
.mission-image { aspect-ratio: 1 / 1; overflow: hidden; background: #111; }
.mission-image img { width: 100%; height: 100%; object-fit: cover; }
.mission-text { display: flex; flex-direction: column; justify-content: center; }
.mission-text h2 {
  margin-top: 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1; font-weight: 600;
}
.mission-text p { margin-top: 28px; max-width: 460px; color: var(--muted-foreground); font-size: 16px; line-height: 1.7; }
.mission-text .cta { margin-top: 36px; }

/* ---------------- Gift ---------------- */
.gift-card {
  margin: 48px auto 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  background: var(--canvas);
}
@media (min-width: 768px) { .gift-card { grid-template-columns: 1fr 1fr; } }
.gift-image-wrap { background: var(--cream); padding: 24px; }
@media (min-width: 768px) { .gift-image-wrap { padding: 40px; } }
.gift-image-wrap > div {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
}
.gift-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.gift-body { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
@media (min-width: 768px) { .gift-body { padding: 48px; } }
.gift-body h3 { margin-top: 16px; font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 600; }
.gift-body p { margin-top: 16px; color: var(--muted-foreground); font-size: 15px; line-height: 1.65; }
.gift-body a.learn {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  width: max-content;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 4px;
  color: var(--bronze);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: opacity .2s ease;
}
.gift-body a.learn:hover { opacity: 0.7; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--eggshell);
}
.footer-inner { padding: 64px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 5fr 3fr 4fr; gap: 64px; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand span { font-size: 18px; font-weight: 600; }
.footer-grid p.lead { margin-top: 20px; max-width: 360px; color: var(--muted-foreground); font-size: 14px; line-height: 1.65; }
.footer-grid nav ul { list-style: none; margin: 20px 0 0; padding: 0; }
.footer-grid nav li { margin-top: 12px; font-size: 14px; }
.footer-grid nav a:hover { text-decoration: underline; }

.newsletter {
  margin-top: 20px;
  display: flex;
  border-bottom: 1px solid rgba(31, 24, 18, 0.3);
  padding-bottom: 8px;
  transition: border-color .2s ease;
}
.newsletter:focus-within { border-bottom-color: var(--foreground); }
.newsletter input {
  flex: 1; border: none; background: transparent;
  font-size: 14px; color: var(--foreground);
  outline: none;
}
.newsletter input::placeholder { color: var(--muted-foreground); }
.newsletter button {
  background: transparent; border: none;
  color: var(--bronze);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.newsletter button:hover { opacity: 0.7; }
.newsletter-note { margin-top: 12px; font-size: 12px; color: var(--muted-foreground); line-height: 1.5; }

.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between;
  gap: 12px;
  font-size: 12px; color: var(--muted-foreground);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--foreground); }

/* WP utility */
.screen-reader-text {
  position: absolute !important; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
