/*
Theme Name: Artworks Elegant
Description: Modern, elegant art gallery theme
Version: 1.5
*/

:root {
  --h1-size: 3rem;
  --h2-size: 2.25rem;
  --h3-size: 1.75rem;
  --h4-size: 1.5rem;
  --h5-size: 1.25rem;
  --h6-size: 1rem;
  --p-size: 1.125rem;
  --line-height: 1.7;
  --font-primary: 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --color-primary: #1a1a1a;
  --color-accent: #d4af37;
  --color-text: #333;
  --color-light: #f8f8f8;
  --color-border: #e0e0e0;
  --max-width: 1400px;
  --spacing: 2rem;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--p-size);
  line-height: var(--line-height);
  color: var(--color-text);
  background: #fff;
  transition: transform 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

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

h1, h2, h3, h4, h5, h6 { 
  font-family: var(--font-heading); 
  color: var(--color-primary);
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }
h5 { font-size: var(--h5-size); }
h6 { font-size: var(--h6-size); }

p { margin-bottom: 1.5rem; }

a { color: var(--color-primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--color-accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing); }

/* Header */
.site-header {
  background: white;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.site-logo img { max-height: 80px; width: auto; }

.site-branding h1 { 
  margin: 0;
  font-size: var(--h3-size);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.site-branding h1 a { color: var(--color-primary); }

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
}

nav.main-navigation a { 
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

nav.main-navigation a:hover { color: var(--color-accent); }

.cart-link {
  font-size: 1.1rem;
  position: relative;
}

/* Hero / Featured Section */
.hero-section {
  background: var(--color-light);
  padding: 6rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Hero with rotating background */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
}
 
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
 
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* opacity controlled by JS rotation — do not set opacity:0 inline */
}
 
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  width: 100%;
}
 
.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
 
.hero-content p {
  font-size: 1.25rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
}
 
@media (max-width: 768px) {
  .hero-section { min-height: 320px; }
  .hero-content h1 { font-size: 2.25rem; }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Info Boxes */
.info-boxes-section {
  padding: 4rem 0;
  background: var(--color-light);
  border-top: 1px solid var(--color-border);
}

.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.info-box {
  background: white;
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.info-box:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.info-box h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.info-box p { 
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.map-embed {
  margin: 1rem 0;
}

.map-embed iframe {
  width: 100%;
  max-width: 100%;
  height: 250px;
  border: 1px solid var(--color-border);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 0.7;
}

/* Main Content */
main.site-content {
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
}

.entry-card {
  background: white;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.entry-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

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

.entry-card-content {
  padding: 2rem;
}

.entry-title { 
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.entry-title a { color: var(--color-primary); }
.entry-title a:hover { color: var(--color-accent); }

.entry-meta { 
  color: #999; 
  font-size: 0.875rem; 
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-excerpt {
  color: #666;
  line-height: 1.6;
}

/* Single Post */
.single-post-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.single-post-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
  background: white;
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-light);
  padding: 2rem;
  border-left: 3px solid var(--color-accent);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: #555;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
}

/* Artist Spotlight */
.artist-spotlight {
  padding: 4rem 0;
  background: var(--color-light);
}

.spotlight-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.spotlight-image {
  width: 100%;
  border: 1px solid var(--color-border);
}

.spotlight-bio h2 {
  margin-bottom: 1rem;
  color: var(--color-accent);
}

/* Newsletter Section */
.newsletter-section {
  background: var(--color-primary);
  padding: 3rem 0;
  color: white;
  text-align: center;
}

.newsletter-section h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.newsletter-form {
  max-width: 500px;
  margin: 2rem auto 0;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: none;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.newsletter-form button {
  padding: 0.875rem 2rem;
  background: var(--color-accent);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: white;
  color: var(--color-primary);
}

/* Social Feed */
.social-feed-section {
  padding: 4rem 0;
}

.social-feed-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.social-feed-embed {
  max-width: 1000px;
  margin: 0 auto;
}

/* Footer */
footer.site-footer {
  background: var(--color-primary);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-widget h3 {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: 0.75rem;
}

.footer-widget a {
  color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
  color: var(--color-accent);
}

/* Footer info boxes - horizontal with titles */
.footer-info-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-info-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 1024px) {
  .footer-info-boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-info-boxes {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-info-box h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-info-box p {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.footer-social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social-icons .social-icon {
  filter: brightness(0) invert(1);
}


.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--color-accent);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
  z-index: 1001;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: white;
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu-drawer.active {
  right: 0;
}

.mobile-menu-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-primary);
  line-height: 1;
}

.mobile-menu-nav {
  padding: 2rem 1.5rem;
}

.mobile-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-nav li {
  margin-bottom: 1.5rem;
}

.mobile-menu-nav a {
  color: var(--color-text);
  font-size: 1.125rem;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  .header-inner { flex-wrap: wrap; }
  
  nav.main-navigation { display: none !important; }
  
  .hero-content h1 { font-size: 2.5rem; }
  
  .content-grid, .info-boxes {
    grid-template-columns: 1fr;
  }
  .spotlight-content {
    grid-template-columns: 1fr;
  }
  
  .mobile-menu-drawer {
    width: 90%;
  }
}

.logged-in-only-scheduler { display: none; }
.role-administrator .logged-in-only-scheduler,
.role-awdl_scheduler .logged-in-only-scheduler { display: block; }

/* Show submenu on hover */
.menu-item-has-children ul.sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 9999;
    padding: 6px 0;
    border-top: 2px solid #b8963e;
}

.menu-item-has-children:hover > ul.sub-menu {
    display: block;
}

.menu-item-has-children {
    position: relative;
}

.sub-menu li a {
    display: block;
    padding: 8px 18px;
    white-space: nowrap;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.9em;
}

.sub-menu li a:hover {
    background: #f8f9fb;
    color: #b8963e;
}