/**
 * FifoConsult Custom WordPress Theme
 *
 * CSS module: BODY 03 / Project Architecture.
 *
 * Module:
 * FifoConsult — Project Architecture / From Vision to System.
 *
 * This stylesheet controls the visual presentation of the third BODY
 * storytelling section on the FifoConsult front page. It defines the dark
 * atelier environment, left-side method content, right-side Renaissance Method
 * Canvas stage, sequential PNG fade behavior and large BIG picture popup.
 *
 * Purpose:
 * The Project Architecture module visually explains how FifoConsult turns an
 * initial project idea into a structured digital system before design and
 * coding. The visual language is intentionally cinematic, calm, premium and
 * Renaissance-inspired, avoiding dashboard, template and generic SaaS effects.
 *
 * Responsibilities:
 * - BODY 03 full-screen section sizing and background composition
 * - dark atelier / canvas atmosphere and gradient readability layers
 * - left-side content positioning, typography and spacing
 * - kicker, section title, lead text and active paragraph styling
 * - four mode navigation buttons and active state treatment
 * - right-side PNG canvas stage positioning
 * - two-layer PNG frame system used by JavaScript
 * - image opacity transitions for sequential fade in / fade out
 * - frozen-breathing state support during PNG fade-out
 * - pause / resume click area over the canvas stage
 * - Picture 1 / Picture 2 / Picture 3 inline link styling
 * - fullscreen BIG diagram picture popup styling
 * - background blur / dim overlay while popup is open
 * - close button positioning and modal image presentation
 * - laptop / desktop safety adjustments for the BODY 03 layout
 *
 * Main visual sections:
 * - Base Section
 * - Left Content
 * - Left Navigation
 * - Right Architecture Board Stage
 * - Laptop Safety
 * - Final PNG Overlay Lock
 * - Picture Popup Links
 * - Diagram Picture Popup
 *
 * Related template:
 * template-parts/body-project-architecture.php
 *
 * Related JavaScript:
 * assets/js/body-project-architecture.js
 *
 * Visual assets:
 * assets/img/body/project-architecture/
 *
 * Main section PNG sequence assets:
 * project-architecture-vision-01.png ... project-architecture-build-03.png
 *
 * Large popup PNG assets:
 * project-architecture-big-vision-01.png ... project-architecture-big-build-03.png
 *
 * Visual identity:
 * Renaissance Method Canvas / dark atelier / gold linework / architectural
 * project logic / ART-to-SMART system design.
 *
 * Important implementation note:
 * This CSS file is intentionally separated from main.css and from the BODY 01
 * and BODY 02 styles. BODY 03 keeps its own class prefix, assets, timing
 * support classes and popup styling so it can be edited safely as a standalone
 * storytelling module.
 *
 * Concept, visual direction, structure, interface design and implementation:
 * Dragan Oljaca / FifoConsult
 *
 * Website: https://www.fifoconsult.com
 * Author: Dragan Oljaca
 * Brand: FifoConsult
 *
 * All rights reserved.
 */

/* =========================================================
   BODY 03 — PROJECT ARCHITECTURE / BASE SECTION
   ========================================================= */

.fc-project-architecture {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background-color: #000000;
  background-image: url("../img/body/project-architecture/project-architecture-background-master.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: rgba(244, 243, 247, 0.92);
}

@supports (height: 100svh) {
  .fc-project-architecture {
    height: 100svh;
    min-height: 100svh;
  }
}

.fc-project-architecture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.72) 22%,
      rgba(0, 0, 0, 0.38) 43%,
      rgba(0, 0, 0, 0.08) 70%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.12) 24%,
      rgba(0, 0, 0, 0.06) 68%,
      rgba(0, 0, 0, 0.48) 100%
    );
}

.fc-project-architecture-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 20% 48%,
      rgba(216, 173, 66, 0.045),
      transparent 28%
    ),
    radial-gradient(
      circle at 76% 48%,
      rgba(216, 173, 66, 0.035),
      transparent 34%
    );
  opacity: 0.9;
}

.fc-project-architecture-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* =========================================================
   LEFT CONTENT
   ========================================================= */

.fc-project-architecture-left {
  position: absolute;
  left: clamp(90px, 9.4vw, 180px);
  top: 50%;
  width: min(560px, 34vw);
  transform: translateY(-45%);
  z-index: 5;
}

.fc-project-architecture-kicker {
  margin: 0 0 18px;
  color: rgba(216, 173, 66, 0.9);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.fc-project-architecture-title {
  margin: 0 0 28px;
}

.fc-project-architecture-lead {
  max-width: 500px;
  margin: 0 0 54px;
  color: rgba(226, 228, 236, 0.64);
  font-size: clamp(17px, 1.18vw, 22px);
  line-height: 1.32;
  font-weight: 780;
  letter-spacing: -0.028em;
}

.fc-project-architecture-copy {
  max-width: 420px;
  min-height: 98px;
  margin: 0;
  color: rgba(226, 228, 236, 0.72);
  font-size: clamp(13px, 0.86vw, 16px);
  line-height: 1.55;
  font-weight: 500;
  transition:
    opacity 0.36s ease,
    transform 0.36s ease,
    filter 0.36s ease;
}

.fc-project-architecture-copy.is-changing {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(4px);
}

.fc-project-architecture-copy p {
  margin: 0;
}

.fc-project-architecture-copy span {
  color: #d8ad42;
  font-weight: 760;
  letter-spacing: -0.01em;
}

/* =========================================================
   LEFT NAVIGATION
   ========================================================= */

.fc-project-architecture-nav {
  margin-top: clamp(56px, 5vw, 86px);
  display: grid;
  grid-template-columns: 160px 250px;
  column-gap: clamp(42px, 4vw, 76px);
  row-gap: 24px;
  align-items: start;
  justify-content: start;
}

.fc-project-architecture-nav button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(235, 232, 224, 0.42);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(12px, 0.86vw, 15px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.42s ease,
    opacity 0.42s ease,
    text-shadow 0.42s ease,
    transform 0.32s ease;
}

.fc-project-architecture-nav button:hover,
.fc-project-architecture-nav button:focus-visible,
.fc-project-architecture-nav button.is-active {
  color: #d8ad42;
  text-shadow: 0 0 18px rgba(216, 173, 66, 0.34);
  transform: translateY(-1px);
  outline: none;
}

/* =========================================================
   RIGHT ARCHITECTURE BOARD STAGE
   Abstract visual elements over the empty monitor.
   No readable text belongs here.
   ========================================================= */

.fc-project-architecture-stage {
  position: absolute;
  left: 42.6%;
  top: 19.4%;
  width: 50.8%;
  height: 59.6%;
  z-index: 4;
  pointer-events: none;
  transform: perspective(1200px) rotateY(-3.6deg) rotateX(0.6deg)
    rotateZ(-1.1deg) skewY(-0.6deg);
  transform-origin: center center;
  opacity: 0.92;
  mix-blend-mode: screen;
}

.fc-project-architecture-board-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  filter: blur(5px);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
}

.fc-project-architecture-board-layer.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* =========================================================
   RIGHT PNG MONITOR SEQUENCE
   Transparent 1920x1080 PNG overlays aligned with background master.
   ========================================================= */

.fc-project-architecture-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.fc-project-architecture-frame {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  opacity: 0;
  filter: blur(6px);
  transform: scale(1);
  transition:
    opacity 1.5s ease,
    filter 1.5s ease,
    transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  user-select: none;
}

.fc-project-architecture-frame.is-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  animation: fcProjectArchitecturePngBreath 11s ease-in-out infinite;
}

.fc-project-architecture-frame.is-exiting {
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity 0.82s ease,
    filter 0.82s ease;
}

.fc-project-architecture.is-swapping .fc-project-architecture-frame.is-active {
  animation-play-state: paused;
}

/* Click area only over the right monitor */

.fc-project-architecture-monitor-hit {
  position: absolute;
  left: 42.6%;
  top: 19.4%;
  width: 50.8%;
  height: 59.6%;
  z-index: 7;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.fc-project-architecture-monitor-hit span {
  position: absolute;
  right: 7%;
  bottom: 7%;
  padding: 7px 12px 8px;
  border-radius: 999px;
  color: rgba(216, 173, 66, 0.82);
  background: rgba(0, 0, 0, 0.54);
  border: 1px solid rgba(216, 173, 66, 0.22);
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.fc-project-architecture.is-paused .fc-project-architecture-monitor-hit span {
  opacity: 1;
  transform: translateY(0);
}

.fc-project-architecture.is-paused .fc-project-architecture-frame.is-active {
  animation-play-state: paused;
}

@keyframes fcProjectArchitecturePngBreath {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.008);
  }
}

/* Laptop safety for monitor click area */

@media (max-width: 1360px) {
  .fc-project-architecture-monitor-hit {
    left: 43%;
    top: 20%;
    width: 50%;
    height: 58%;
  }
}

/* =========================================================
   SUBTLE BREATHING MOTION
   ========================================================= */

.fc-project-architecture-board-layer.is-active {
  animation: fcProjectArchitectureBoardBreath 6.8s ease-in-out infinite;
}

@keyframes fcProjectArchitectureBoardBreath {
  0%,
  100% {
    opacity: 0.92;
  }

  50% {
    opacity: 1;
  }
}

/* =========================================================
   LAPTOP SAFETY
   ========================================================= */

@media (max-width: 1360px) {
  .fc-project-architecture-left {
    left: 120px;
    width: 520px;
  }

  .fc-project-architecture-nav {
    grid-template-columns: 210px 250px;
    column-gap: 26px;
  }

  .fc-project-architecture-stage {
    left: 43%;
    top: 20%;
    width: 50%;
    height: 58%;
  }
}

@media (max-width: 1180px) {
  .fc-project-architecture-left {
    left: 86px;
    width: 500px;
  }

  .fc-project-architecture-lead {
    margin-bottom: 42px;
  }

  .fc-project-architecture-nav {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
}
/* =========================================================
   PROJECT ARCHITECTURE — FINAL PNG OVERLAY LOCK
   Forces transparent 1920x1080 PNG overlays to cover the
   full section canvas, not only the monitor hit area.
   ========================================================= */

.fc-project-architecture-stage {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 3 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transform: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.fc-project-architecture-frame {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}


/* =========================================================
   PROJECT ARCHITECTURE — PICTURE POPUP LINKS
   Opens one large PNG image for the active section.
   ========================================================= */

.fc-project-architecture-picture-links {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  margin-left: 0;
  white-space: nowrap;
}

.fc-project-architecture-picture-links button {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(216, 173, 66, 0.88);
  font: inherit;
  font-size: 0.92em;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.28s ease,
    text-shadow 0.28s ease,
    opacity 0.28s ease;
}

.fc-project-architecture-picture-links i {
  color: rgba(216, 173, 66, 0.44);
  font-style: normal;
  font-weight: 700;
  transform: translateY(-1px);
}

.fc-project-architecture-picture-links button:hover,
.fc-project-architecture-picture-links button:focus-visible {
  color: #f0c85c;
  text-shadow: 0 0 18px rgba(216, 173, 66, 0.44);
  outline: none;
}

/* =========================================================
   PROJECT ARCHITECTURE — DIAGRAM PICTURE POPUP
   Opens one large PNG picture from the left copy links.
   ========================================================= */

.fc-project-architecture.has-overview-open .fc-project-architecture-inner {
  filter: blur(10px) brightness(0.64);
  transform: scale(1.006);
  transition:
    filter 0.42s ease,
    transform 0.42s ease;
}

.fc-project-architecture-overview {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 54px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.38s ease,
    visibility 0.38s ease;
}

.fc-project-architecture-overview.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fc-project-architecture-overview-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background:
    radial-gradient(
      circle at 64% 46%,
      rgba(216, 173, 66, 0.08),
      transparent 34%
    ),
    rgba(0, 0, 0, 0.72);
  cursor: default;
  backdrop-filter: blur(18px) saturate(0.92);
  -webkit-backdrop-filter: blur(18px) saturate(0.92);
}

.fc-project-architecture-overview-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 1720px);
  max-height: 86vh;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: translateY(12px) scale(0.982);
  filter: blur(8px);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.fc-project-architecture-overview.is-open .fc-project-architecture-overview-panel {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.fc-project-architecture-overview-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  pointer-events: none;
  filter: none;
}

.fc-project-architecture-overview-close {
  position: absolute;
  top: clamp(28px, 3.2vw, 46px);
  right: clamp(28px, 3.2vw, 46px);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(216, 173, 66, 0.28);
  background: rgba(0, 0, 0, 0.64);
  color: rgba(244, 220, 151, 0.92);
  font-family: Inter, Arial, sans-serif;
  font-size: 27px;
  line-height: 38px;
  font-weight: 300;
  cursor: pointer;
  box-shadow:
    0 0 24px rgba(0, 0, 0, 0.56),
    0 0 24px rgba(216, 173, 66, 0.09);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.fc-project-architecture-overview-close:hover,
.fc-project-architecture-overview-close:focus-visible {
  color: #ffffff;
  border-color: rgba(216, 173, 66, 0.62);
  background: rgba(0, 0, 0, 0.82);
  transform: scale(1.04);
  outline: none;
}

html.fc-project-architecture-overview-open,
body.fc-project-architecture-overview-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .fc-project-architecture-overview {
    padding: 18px;
  }

  .fc-project-architecture-overview-panel {
    width: 94vw;
    max-height: 78vh;
    border-radius: 16px;
  }

  .fc-project-architecture-overview-close {
    width: 38px;
    height: 38px;
    font-size: 25px;
    line-height: 34px;
  }
}

/* =========================================================
   BODY 03 / PROJECT ARCHITECTURE — TYPOGRAPHY COLOR HARMONIZATION
   Uses the approved Mega Menu / TEXT reader palette.
   Typography colors only — no layout, animation, timing or logic changes.
   ========================================================= */

/* Left narrative */

.fc-project-architecture .fc-project-architecture-kicker {
  color: #9a7d3f !important;
}

.fc-project-architecture .fc-project-architecture-title,
.fc-project-architecture .fc-section-title {
  color: #887b60 !important;
}

.fc-project-architecture .fc-project-architecture-lead {
  color: #958b73 !important;
}

.fc-project-architecture .fc-project-architecture-copy {
  color: #635d4f !important;
}

.fc-project-architecture .fc-project-architecture-copy span {
  color: #9a7d3f !important;
}

/* Picture 1 / Picture 2 / Picture 3 */

.fc-project-architecture .fc-project-architecture-picture-links button {
  color: #9a7d3f !important;
  text-shadow: none !important;
}

.fc-project-architecture .fc-project-architecture-picture-links i {
  color: #706957 !important;
}

.fc-project-architecture .fc-project-architecture-picture-links button:hover,
.fc-project-architecture .fc-project-architecture-picture-links button:focus-visible {
  color: #b2924d !important;
  text-shadow: 0 0 14px rgba(154, 125, 63, 0.24) !important;
}

/* Four architecture modes */

.fc-project-architecture .fc-project-architecture-nav button {
  color: #706957 !important;
  text-shadow: none !important;
}

.fc-project-architecture .fc-project-architecture-nav button:hover,
.fc-project-architecture .fc-project-architecture-nav button:focus-visible {
  color: #958b73 !important;
  text-shadow: 0 0 12px rgba(149, 139, 115, 0.22) !important;
}

.fc-project-architecture .fc-project-architecture-nav button.is-active {
  color: #9a7d3f !important;
  text-shadow:
    0 0 12px rgba(154, 125, 63, 0.22),
    0 0 24px rgba(154, 125, 63, 0.12) !important;
}

/* Small stage instruction text, when visible */

.fc-project-architecture .fc-project-architecture-monitor-hit span {
  color: #706957 !important;
}

