/*
 Theme Name:   Blocksy Child - Artist Portfolio
 Theme URI:    https://creativethemes.com/blocksy/
 Description:  A child theme for Blocksy, customized for a portrait artist's portfolio.
 Author:       Jess
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

/* ==========================================================================
   1. GLOBAL STYLES & TYPOGRAPHY
   ========================================================================== */

:root {
  --portfolio-accent: #c9a87c;       /* warm gold — adjust to match your brand */
  --portfolio-accent-hover: #b08d5e;
  --portfolio-bg: #fafafa;
  --portfolio-bg-dark: #1a1a1a;
  --portfolio-text: #333333;
  --portfolio-text-light: #777777;
  --portfolio-border: #e8e8e8;
}

body {
  background-color: var(--portfolio-bg);
  color: var(--portfolio-text);
}

/* ==========================================================================
   2. HEADER REFINEMENTS
   ========================================================================== */

/* Slim, elegant header */
header[data-id="type-1"] {
  border-bottom: 1px solid var(--portfolio-border);
}

.site-title a {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
}

/* Accent underline on nav hover */
.ct-menu-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--portfolio-accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.ct-menu-link:hover::after,
.ct-menu-link[aria-current="page"]::after {
  width: 100%;
  left: 0;
}

/* ==========================================================================
   3. PORTFOLIO GRID (Visual Portfolio)
   ========================================================================== */

/* Subtle fade-in on scroll */
.vp-portfolio__item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

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

/* Stagger animation for grid items */
.vp-portfolio__item:nth-child(1)  { animation-delay: 0.05s; }
.vp-portfolio__item:nth-child(2)  { animation-delay: 0.10s; }
.vp-portfolio__item:nth-child(3)  { animation-delay: 0.15s; }
.vp-portfolio__item:nth-child(4)  { animation-delay: 0.20s; }
.vp-portfolio__item:nth-child(5)  { animation-delay: 0.25s; }
.vp-portfolio__item:nth-child(6)  { animation-delay: 0.30s; }
.vp-portfolio__item:nth-child(7)  { animation-delay: 0.35s; }
.vp-portfolio__item:nth-child(8)  { animation-delay: 0.40s; }
.vp-portfolio__item:nth-child(9)  { animation-delay: 0.45s; }
.vp-portfolio__item:nth-child(10) { animation-delay: 0.50s; }
.vp-portfolio__item:nth-child(11) { animation-delay: 0.55s; }
.vp-portfolio__item:nth-child(12) { animation-delay: 0.60s; }

/* Elegant hover overlay */
.vp-portfolio__item-overlay {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  transition: opacity 0.4s ease;
}

/* Image zoom on hover */
.vp-portfolio__item-img img {
  transition: transform 0.6s ease;
}

.vp-portfolio__item:hover .vp-portfolio__item-img img {
  transform: scale(1.05);
}

/* Title styling inside overlay */
.vp-portfolio__item-meta h2 {
  font-weight: 300;
  letter-spacing: 0.05em;
  font-size: 1rem;
}

/* ==========================================================================
   4. LIGHTBOX CUSTOMISATION (PhotoSwipe via Visual Portfolio)
   ========================================================================== */

/* Dark background for artwork focus */
.pswp__bg {
  background-color: rgba(0, 0, 0, 0.95) !important;
}

/* Counter styling */
.pswp__counter {
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ==========================================================================
   5. ABOUT PAGE
   ========================================================================== */

.page-template-default .entry-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Artist photo on the About page */
.wp-block-image.artist-headshot img {
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Pull-quote styling */
.wp-block-quote.is-style-large {
  border-left: 3px solid var(--portfolio-accent);
  padding-left: 1.5em;
  font-style: italic;
  color: var(--portfolio-text-light);
}

/* ==========================================================================
   6. CONTACT / COMMISSION FORM
   ========================================================================== */

/* WPForms styling overrides */
.wpforms-container .wpforms-form {
  max-width: 640px;
  margin: 0 auto;
}

.wpforms-container .wpforms-field-label {
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--portfolio-text-light);
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container textarea,
.wpforms-container select {
  border: 1px solid var(--portfolio-border);
  border-radius: 2px;
  padding: 12px 16px;
  transition: border-color 0.3s ease;
  font-size: 0.95rem;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
  border-color: var(--portfolio-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.15);
}

.wpforms-container .wpforms-submit {
  background-color: var(--portfolio-accent);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 14px 40px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wpforms-container .wpforms-submit:hover {
  background-color: var(--portfolio-accent-hover);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */

footer[data-id="type-1"] {
  border-top: 1px solid var(--portfolio-border);
  font-size: 0.85rem;
  color: var(--portfolio-text-light);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   8. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
  .site-title a {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .wpforms-container .wpforms-form {
    padding: 0 1rem;
  }

  .vp-portfolio__item-meta h2 {
    font-size: 0.85rem;
  }
}
