/*!
 * Shared base styles for the business portfolio template pack.
 * Handles: reveal-on-scroll animation, mobile nav open state,
 * and the striped placeholder-image pattern used everywhere
 * real photography would go in the finished site.
 * Per-template color variables are set inline via CSS custom
 * properties on <body> (see each template's <style> block).
 */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] { transform: none; }

[data-nav-menu] {
  display: none;
}
[data-nav-menu].nav-open {
  display: flex;
}
@media (min-width: 1024px) {
  [data-nav-menu] { display: flex !important; }
}

[data-accordion-panel] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* Home-variant mega-menu dropdown (see assets/main.js initDropdowns).
   [data-dropdown-panel] is hidden by default and revealed by JS on
   hover (desktop) or click/tap (any device). */
[data-dropdown-panel] {
  max-width: calc(100vw - 3rem);
}
[data-dropdown].dropdown-open [data-chevron] {
  transform: rotate(180deg);
}

/* Placeholder imagery: subtle diagonal stripes + monospace label,
   standing in for real photography/renders the buyer will drop in. */
.img-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--ph-bg, #e8e6e1);
  background-image: repeating-linear-gradient(
    135deg,
    var(--ph-stripe, rgba(0, 0, 0, 0.05)) 0px,
    var(--ph-stripe, rgba(0, 0, 0, 0.05)) 1px,
    transparent 1px,
    transparent 14px
  );
}
.img-ph::after {
  content: attr(data-label);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ph-text, rgba(0, 0, 0, 0.4));
  background: var(--ph-tag-bg, rgba(255, 255, 255, 0.7));
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
