/* ==========================================
   Packaging Experts — custom.css (clean)
   Brand colors: #00477f (blue), #0fd76a (green), #000000, #ffffff
   ========================================== */

/* =========================
   1) Fonts (global)
   ========================= */
html, body, input, select, textarea, button {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

/* =========================
   2) Brand tokens
   ========================= */
:root {
  --pe-blue: #00477f;
  --pe-green: #0fd76a;
  --pe-black: #000000;
  --pe-white: #ffffff;

  /* readable text over dark backgrounds */
  --pe-text: rgba(255, 255, 255, 0.88);
  --pe-muted: rgba(255, 255, 255, 0.70);

  --pe-border: rgba(255, 255, 255, 0.14);
  --pe-panel: rgba(255, 255, 255, 0.06);
}

/* =========================
   3) Global background (blurred blue)
   ========================= */
body {
  background: var(--pe-blue);
  color: var(--pe-text);
}

/* Disable template background layer so we fully control the background */
#wrapper {
  background: transparent !important;
}
#wrapper > .bg {
  display: none !important;
}

/* Blurred fixed gradient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(circle at 18% 20%, rgba(15, 215, 106, 0.12), rgba(15, 215, 106, 0) 60%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 65%),
    linear-gradient(135deg, #00477f 0%, #00477f 100%);

  filter: blur(32px) saturate(100%);
  transform: scale(1.12);
}

/* Ensure all content sits above background */
#wrapper, #main, #footer, #intro, #header, #nav {
  position: relative;
  z-index: 1;
}

/* Keep template main "card" sections transparent so our background shows */
#main {
  background: transparent;
}

/* =========================
   4) Intro / Hero (UPDATED)
   - slightly higher position
   - safe on mobile (svh)
   ========================= */
#intro {
  display: flex;
  flex-direction: column;
  align-items: center;

  /* move it a bit up, keep it airy */
  justify-content: flex-start;
  min-height: 100svh;
  padding-top: clamp(3.5rem, 9vh, 6.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);

  text-align: center;

  /* spacing between logo / title / text */
  gap: clamp(0.9rem, 2.2vh, 1.35rem);
}

/* =========================
   HERO TITLE – normal case (no caps)
   ========================= */
#intro h1,
.pe-hero-title {
  text-transform: none !important;
  letter-spacing: -0.015em !important;
  font-weight: 800;
  font-size: clamp(3rem, 6.5vw, 4.2rem);
  line-height: 1.08;
  color: var(--pe-white);
}

/* Optional: If you use dots spans in headline */
.pe-dot {
  color: var(--pe-green);
}

/* =========================
   HERO LOGO (UPDATED + ANIMATION)
   ========================= */
.pe-logo-hero {
  display: block;

  /* 🔹 DIMENSIUNE RESPONSIVE */
  width: clamp(160px, 45vw, 230px);
  height: auto;

  /* 🔹 CENTRARE PERFECTĂ */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.8rem;

  /* 🔹 ANIMAȚIE */
  opacity: 0;
  /* animation: peFadeUp 800ms ease-out 120ms forwards; */
  /* animation: peFadeUp 1200ms ease-out 200ms forwards; */
  animation: peWow 1100ms cubic-bezier(0.16, 1, 0.3, 1) 150ms forwards;
}

/* Header: reuse hero logo styles but WITHOUT animation */
#header .pe-logo-hero {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  margin-bottom: -3rem !important;
  margin-top: 10rem;
}


/* Title + paragraph animation (subtle, premium) */
#intro .pe-hero-title {
  opacity: 0;
  transform: translateY(10px);
  /* animation: peFadeUp 820ms cubic-bezier(0.2, 0.8, 0.2, 1) 220ms forwards; */
  animation: peWow 1200ms cubic-bezier(0.16, 1, 0.3, 1) 320ms forwards;
  will-change: transform, opacity;
}

#intro p {
  opacity: 0;
  transform: translateY(12px);
  /* animation: peFadeUp 860ms cubic-bezier(0.2, 0.8, 0.2, 1) 360ms forwards; */
  animation: peWow 1300ms cubic-bezier(0.16, 1, 0.3, 1) 480ms forwards;
  will-change: transform, opacity;
}

/* Animations (safe + reusable) */
@keyframes peFadeUp {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes peWow {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
    filter: blur(6px);
  }

  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}


/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pe-logo-hero,
  .pe-hero-title,
  #intro p {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}


/* Mobile tuning */
@media (max-width: 736px) {
  .pe-logo-hero {
    width: clamp(130px, 42vw, 190px);
    margin-bottom: 0.35rem;
  }

  #intro {
    padding-top: clamp(3rem, 8vh, 5rem);
    gap: 0.95rem;
  }
}

/* Optional hover on desktop */
@media (hover: hover) and (pointer: fine) {
  .pe-logo-hero:hover {
    transform: translateY(-2px) scale(1.01);
    transition: transform 220ms ease;
  }
}

/* =========================
   5) Header (brand)
   ========================= */
#header .logo {
  border: 0 !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pe-white);
}

/* =========================
   6) NAV — Desktop (>= 981px)
   Centered links + LinkedIn on right
   ========================= */
#nav {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  padding: 0.35rem 1.25rem;
}

#nav .links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

#nav .links li a {
  color: var(--pe-white);
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-weight: 600;
}

#nav .links li.active a {
  border-bottom-color: var(--pe-green);
}

/* LinkedIn stays right */
#nav .icons {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

/* =========================
   7) Tablet + Mobile (<= 980px)
   Mobile navPanel — brand aligned (SAFE)
   ========================= */
@media (max-width: 980px) {

  /* Hide desktop nav */
  #nav {
    display: none !important;
  }

  /* Hamburger button */
  #navPanelToggle {
    display: block !important;

    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    color: var(--pe-white) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  #navPanelToggle:before {
    color: var(--pe-white) !important;
  }

  /* ===== MOBILE MENU PANEL (FIX BLACK) ===== */
  #navPanel {
    background: linear-gradient(
      135deg,
      rgba(0, 71, 127, 0.96),
      rgba(0, 61, 110, 0.96)
    ) !important;

    color: var(--pe-white) !important;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* Menu items */
  #navPanel .links li {
    border-top-color: rgba(255, 255, 255, 0.14) !important;
  }

  #navPanel .links li a {
    color: var(--pe-white) !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    font-weight: 600 !important;
  }

  /* Close (X) */
  #navPanel .close {
    color: rgba(255, 255, 255, 0.75) !important;
  }

  #navPanel .close:hover {
    color: var(--pe-white) !important;
  }

  /* FIX LinkedIn icon color in mobile navPanel */
  #navPanel .icons a,
  #navPanel .icons a:before {
    color: var(--pe-white) !important;
  }

  #navPanel .icons a:hover {
    color: var(--pe-green) !important;
  }

}
/* Mobile: reduce gap between header and first section (since #nav is hidden) */
@media (max-width: 980px) {
  #header {
    margin-bottom: 0.75rem !important;
    padding-bottom: 0 !important;
  }

  #main {
    margin-top: 0.75rem !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 980px) {
  #main > .pe-container > section.post:first-of-type {
    margin-top: 1.25rem !important;
  }
}

/* =========================
   8) Sections styling
   ========================= */
#main > section.post {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2.25rem;
  margin-top: 2rem;
}

/* Titles */
header.major h2 {
  color: var(--pe-white) !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-size: 2.1rem !important;
}

/* Text */
#main p, #main li {
  color: var(--pe-text);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* =========================
   9) Cards (benefits)
   ========================= */
.pe-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.pe-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 1.25rem;
}

.pe-card h3 {
  margin: 0 0 0.5rem 0;
  color: var(--pe-white);
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}

.pe-card p {
  margin: 0;
  color: var(--pe-muted);
}

/* =========================
   10) Buttons
   ========================= */
.button {
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: var(--pe-white) !important;
}

.button:hover {
  border-color: var(--pe-green) !important;
}

.button.primary {
  background: var(--pe-green) !important;
  border-color: var(--pe-green) !important;
  color: #062a20 !important; /* readable dark text */
}

/* Space above CTA group */
.actions.special {
  margin-top: 2.5rem !important;
}

/* =========================
   11) Footer
   ========================= */
#footer {
  background: transparent;
}

/* Titles */
#footer h3 {
  color: var(--pe-white) !important;
}

/* ALL text in footer */
#footer p,
#footer li,
#footer span,
#footer label {
  color: var(--pe-white) !important;
  opacity: 0.95;
}

/* Links */
#footer a {
  color: var(--pe-green) !important;
}

#footer a:hover {
  color: var(--pe-white) !important;
}
/* =========================
   12) Mobile (<= 736px)
   ========================= */
@media (max-width: 736px) {
  .pe-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   CONTENT POLISH (impact, readability)
   ========================================== */

/* 1) Strong highlights: subtle brand emphasis */
#main strong,
#intro strong {
  color: var(--pe-white);
  font-weight: 800;
  text-shadow: 0 0 0 rgba(0,0,0,0); /* no heavy glow */
  position: relative;
}

/* 2) Hero paragraph: bigger + cleaner */
#intro p {
  max-width: 920px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--pe-text);
  margin-top: 1rem;
}

/* 3) Section paragraphs: improve rhythm */
#main p {
  margin: 0 0 1.1rem 0;
}

/* 4) Lists: premium bullets + spacing */
#main ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.25rem 0;
}

#main ul li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.55rem 0;
  line-height: 1.7;
  color: var(--pe-text);
}

/* custom bullet dot */
#main ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(15, 215, 106, 0.9);
  box-shadow: 0 0 0 3px rgba(15, 215, 106, 0.14);
}

/* Do NOT apply list bullets to action buttons */
.actions,
.actions li {
  list-style: none !important;
}

.actions li::before {
  display: none !important;
  content: none !important;
}

/* 5) Section titles: slightly tighter and more modern */
header.major h2 {
  margin-bottom: 0.6rem !important;
}

/* 6) Cards: slightly clearer separation (helps with soft background) */
.pe-card {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
}

/* 7) Mobile tuning (keeps it readable) */
@media (max-width: 736px) {
  #intro p {
    font-size: 1.05rem;
    line-height: 1.75;
  }
}

/* =========================
   Section spacing (vertical rhythm)
   ========================= */
#main > .pe-container > section.post {
  margin-top: 4rem;
}

#main > .pe-container > section.post:first-of-type {
  margin-top: 2.5rem;
}

/* Closing statement spacing */
/* Make the closing statement feel attached to footer */
.pe-difference {
  margin-top: 3rem;        /* mic spațiu față de Market insights */
  margin-bottom: -3rem;    /* o trage mai aproape de footer */
  text-align: center;
}

/* Green accent text */
.pe-accent {
  color: var(--pe-green);
  font-weight: 900;
}


/* Mobile: add space between "difference" section and footer contact */
@media (max-width: 736px) {
  .pe-difference {
    margin-bottom: 1.5rem !important;  /* scoatem efectul de lipire */
  }

  #footer {
    margin-top: 1.25rem !important;    /* aer între sectiuni */
  }
}

/* MOBILE: more space between title and intro text */
@media (max-width: 736px) {

  /* mai mult spațiu SUB titlu */
  #intro .pe-hero-title {
    margin-bottom: 6rem !important;
  }

}


