/*
Theme Name: Heaven In Earth Pottery
Description: Custom theme rebuilding heaveninearthpottery.ca (originally Adobe Muse) as a 1:1 WordPress copy.
Author: Level Up Enterprises
Version: 1.0
*/

:root {
  --hep-dark-green: #254A00;
  --hep-mid-green: #619435;
  --hep-footer-green: #5F9540;
  --hep-teal: #29CFA3;
  --hep-black: #000000;
  --hep-white: #ffffff;
  --hep-gray-border: #C4C4C4;
  --hep-gray-bg: #F2F2F2;
  --hep-gray-text: #4F4F4F;
  --hep-max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Open Sans', Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #222;
  background: var(--hep-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hep-dark-green); }
a:hover { color: #000; }

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

h1, h2, h3 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  color: var(--hep-black);
  margin: 0 0 0.6em;
}

/* ---------- Header ---------- */
.hep-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hep-dark-green);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 700;
}
.hep-skip-link:focus { left: 10px; top: 10px; }

.hep-site-header {
  background: linear-gradient(180deg, var(--hep-dark-green) 0%, var(--hep-mid-green) 100%);
  padding: 14px 0 0;
  position: relative;
  overflow: hidden;
}
.hep-top-swoosh {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  opacity: 0.85;
  pointer-events: none;
}
.hep-site-header-inner {
  max-width: var(--hep-max-width);
  margin: 0 auto;
  padding: 0 24px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.hep-logo img { height: 90px; width: auto; }
.hep-page-label {
  width: 100%;
  text-align: center;
  color: var(--hep-teal);
  font-size: 34px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  padding: 18px 0 6px;
}
.hep-fb-icon { display: flex; align-items: center; }
.hep-fb-icon a { display: block; width: 34px; height: 34px; }
.hep-fb-icon svg { width: 34px; height: 34px; fill: var(--hep-white); }
.hep-fb-icon a:hover svg { fill: var(--hep-black); }

/* ---------- Sticky nav bar (separate from the hero, stays slim) ---------- */
.hep-nav-bar {
  background: var(--hep-dark-green);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.hep-nav-bar-inner {
  max-width: var(--hep-max-width);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.hep-nav-logo-small { display: none; flex-shrink: 0; }
.hep-nav-logo-small img { height: 40px; width: auto; }
.hep-nav { flex: 1; }
.hep-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; justify-content: center; }
.hep-nav a {
  position: relative;
  display: inline-block;
  color: var(--hep-white);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.hep-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--hep-teal);
  transition: right 0.25s ease;
}
.hep-nav a:hover,
.hep-nav .current-menu-item a { color: var(--hep-teal); }
.hep-nav a:hover::after,
.hep-nav .current-menu-item a::after { right: 0; }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.hep-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.hep-nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; }

/* ---------- Footer ---------- */
.hep-footer {
  background: var(--hep-footer-green);
  color: var(--hep-white);
  margin-top: 60px;
  padding: 0 0 24px;
  position: relative;
}
.hep-bottom-swoosh {
  display: block;
  width: 100%;
  margin-top: -2px;
}
.hep-footer-inner {
  max-width: var(--hep-max-width);
  margin: 0 auto;
  padding: 20px 24px 0;
}
.hep-footer-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  text-align: center;
  margin-bottom: 30px;
}
.hep-footer-cta-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hep-footer-cta-item img { width: 70px; height: 70px; }
.hep-footer-ctas a {
  color: var(--hep-dark-green);
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff;
  line-height: 1.3;
}
.hep-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 16px;
  font-size: 12px;
}
.hep-footer-bottom img { height: 32px; width: auto; }

/* ---------- Buttons ---------- */
.hep-btn {
  display: inline-block;
  background: var(--hep-dark-green);
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hep-btn:hover { background: var(--hep-mid-green); color: #fff; transform: translateY(-2px); }

/* ---------- Home & About ---------- */
.hep-photo-hero { text-align: center; margin: 40px 0; }
.hep-photo-hero img {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  margin: 0 auto;
}
.hep-page-title {
  text-align: center;
  font-size: 30px;
  margin: 20px auto 30px;
  max-width: 800px;
}
.hep-divider-img { text-align: center; margin: 30px 0; }
.hep-divider-img img {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  margin: 0 auto;
  max-width: 400px;
}

.hep-chapter { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin: 60px 0; }
.hep-chapter-text { flex: 1 1 380px; font-size: 17px; }
.hep-chapter-text p { margin: 0 0 1em; }

/* Masonry-style photo cluster (Pinterest-like columns) instead of a uniform
   grid, closer to the original's scrapbook/collage feel. */
.hep-chapter-photos {
  flex: 1 1 380px;
  columns: 2;
  column-gap: 18px;
}
@media (min-width: 900px) {
  .hep-chapter-photos { columns: 2; }
}
.hep-chapter-photos figure {
  margin: 0 0 20px;
  break-inside: avoid;
  text-align: center;
  background: #fff;
  padding: 6px;
}
.hep-chapter-photos img {
  border: 2px solid var(--hep-teal);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  width: 100%;
}
.hep-chapter-photos figcaption {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 14px;
  margin-top: 6px;
  color: #333;
}
/* Slight alternating tilt for a pinned-photo/scrapbook feel */
.hep-tilt-0 { transform: rotate(-2deg); }
.hep-tilt-1 { transform: rotate(1.5deg); }
.hep-tilt-2 { transform: rotate(-1deg); }
.hep-tilt-3 { transform: rotate(2deg); }

/* Business card graphics: keep flat/untilted, plain border, slightly smaller */
.hep-card img { border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); max-width: 260px; margin: 0 auto; }
.hep-card { transform: none; }

.hep-closing-trio {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 50px 0;
}
.hep-closing-trio img {
  border: 2px solid var(--hep-teal);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  flex: 1 1 260px;
  max-width: 320px;
}

/* ---------- Gallery: scrolling list (mobile-first) ---------- */
.hep-gallery-list {
  max-width: 700px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hep-gallery-item { margin: 0; text-align: center; }
.hep-gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}
.hep-gallery-trigger img {
  border: 2px solid var(--hep-teal);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hep-gallery-trigger:hover img,
.hep-gallery-trigger:focus-visible img {
  transform: scale(1.015);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
/* Small "expand" hint icon, visible on hover/focus so it's clear the image is tappable */
.hep-gallery-trigger::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center/16px no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hep-gallery-trigger:hover::after,
.hep-gallery-trigger:focus-visible::after {
  opacity: 1;
}

/* ---------- Lightbox ---------- */
.hep-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hep-lightbox.is-open { display: flex; }
.hep-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.hep-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hep-lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ---------- Shows & Contact ---------- */
.hep-page-content { margin: 40px 0; }
.hep-subheading { color: var(--hep-teal); font-size: 26px; margin: 30px 0 12px; }
.hep-info-strip {
  background: var(--hep-dark-green);
  color: #fff;
  text-align: center;
  padding: 40px 24px;
  margin: 40px 0;
  border-radius: 4px;
}
.hep-info-strip p { margin: 0 0 0.3em; }
.hep-info-strip .label { font-size: 24px; font-weight: 700; }
.hep-info-strip .value { font-size: 18px; margin-bottom: 1.2em; }

.hep-contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 30px 0;
}
.hep-contact-grid > div { flex: 1 1 320px; }
.hep-fb-embed-wrap iframe, .hep-fb-embed-wrap .fb-page { max-width: 100%; }
.hep-map-wrap iframe { width: 100%; height: 320px; border: 0; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }

/* ---------- Contact form ---------- */
.hep-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.hep-form input[type=text], .hep-form input[type=email], .hep-form textarea {
  width: 100%;
  border: 1px solid var(--hep-gray-border);
  border-radius: 8px;
  background: var(--hep-gray-bg);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}
.hep-form input[type=text]:focus, .hep-form input[type=email]:focus, .hep-form textarea:focus {
  border-color: var(--hep-teal);
  outline: 2px solid var(--hep-teal);
  outline-offset: 1px;
}
.hep-form textarea { min-height: 100px; }
.hep-form .g-recaptcha { margin-bottom: 16px; }
.hep-form-notice { padding: 12px 16px; margin-bottom: 20px; border-radius: 4px; }
.hep-form-notice.success { background: #e6f7ee; color: #1a6b3c; border: 1px solid #1a6b3c; }
.hep-form-notice.error { background: #fdeaea; color: #b3261e; border: 1px solid #b3261e; }

/* ---------- Blog ---------- */
.hep-post-list article { margin-bottom: 50px; padding-bottom: 40px; border-bottom: 1px solid #eee; }
.hep-post-list h2 { font-size: 24px; }
.hep-post-list h2 a { text-decoration: none; color: var(--hep-dark-green); }
.hep-post-meta { color: #888; font-size: 14px; margin-bottom: 12px; }
.hep-single-post img { margin: 0 auto 16px; }

/* ---------- Scroll reveal ---------- */
.hep-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hep-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .hep-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Back to top button (mobile only) ---------- */
.hep-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--hep-dark-green);
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 300;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hep-page-label { font-size: 26px; }
  .hep-chapter { gap: 20px; }
  .hep-chapter-photos { columns: 1; }
  .hep-footer-ctas { gap: 20px; }

  /* Collapse nav into a hamburger-driven dropdown */
  .hep-nav-toggle { display: flex; }
  .hep-nav-logo-small { display: block; }
  .hep-nav { flex: none; width: 100%; order: 3; }
  .hep-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    text-align: center;
    background: var(--hep-dark-green);
    width: 100%;
  }
  .hep-nav.is-open ul { display: flex; }
  .hep-nav ul li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.15); }

  /* Back to top only shows on mobile per request */
  .hep-back-to-top.is-visible { display: flex; opacity: 1; transform: translateY(0); }
}
