/* ============================================================
   PCI AS — Poirters Creative Innovations
   Single-page site styles. Engin8-inspired: clean, minimal,
   generous whitespace, one accent colour.
   Change the palette in :root below.
   ============================================================ */

:root {
  /* Palette — change these to re-skin the whole site */
  --bg:        #fafafa;
  --bg-alt:    #f0f1f3;
  --surface:   #ffffff;
  --ink:       #16181d;
  --ink-soft:  #565b66;
  --line:      #e2e4e9;
  --accent:    #2b50e0;
  --accent-ink:#ffffff;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; font-weight: 600; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Shared bits ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .75rem;
}
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(1.8rem, 4vw, 2.9rem); letter-spacing: -.02em; }
.section__head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__intro { color: var(--ink-soft); margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: .95rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--small { padding: .6rem 1.1rem; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__mark { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }
.brand__sub { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

.nav { display: flex; gap: 1.75rem; }
.nav__link { font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav__link:hover { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.lang-toggle { display: flex; align-items: center; gap: .25rem; font-size: .85rem; font-weight: 600; }
.lang-toggle__btn { background: none; border: none; cursor: pointer; color: var(--ink-soft); font: inherit; padding: .2rem .1rem; transition: color .2s; }
.lang-toggle__btn[aria-pressed="true"] { color: var(--accent); }
.lang-toggle__sep { color: var(--line); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #1a1f3a, #0c0e1a); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,20,.82) 0%, rgba(8,10,20,.45) 60%, rgba(8,10,20,.25) 100%); }
.hero__content { color: #fff; max-width: 720px; padding-block: 4rem; }
.hero .eyebrow { color: #9fb3ff; }
.hero__title { font-size: clamp(2.4rem, 6.5vw, 4.6rem); letter-spacing: -.03em; margin-bottom: 1.25rem; }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero__actions .btn--ghost:hover { border-color: #fff; }
.hero__mantra { font-style: italic; color: rgba(255,255,255,.65); font-size: .98rem; border-left: 2px solid var(--accent); padding-left: 1rem; max-width: 480px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__text p { color: var(--ink-soft); }
.about .section__title { margin-bottom: 1.5rem; }
.about__stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.about__stats li { display: flex; flex-direction: column; }
.about__stats strong { font-family: var(--font-display); font-size: 2rem; color: var(--ink); }
.about__stats span { font-size: .85rem; color: var(--ink-soft); }
.about__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--bg-alt); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media.is-placeholder { background: linear-gradient(135deg, var(--bg-alt), #dfe2e8); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(20,24,40,.4); border-color: transparent; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.25rem; }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--accent); }
.step__title { font-size: 1.25rem; margin: .5rem 0 .5rem; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-alt); cursor: pointer; border: 1px solid var(--line);
}
.gallery__item--feature { grid-column: span 2; aspect-ratio: 8/5; }
.gallery__item img, .gallery__item video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img, .gallery__item:hover video { transform: scale(1.05); }
.gallery__item.is-placeholder { display: grid; place-items: center; color: var(--ink-soft); font-size: .85rem; text-align: center; padding: 1rem; cursor: default; }
.gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: 1rem;
  background: linear-gradient(to top, rgba(8,10,20,.75), transparent);
  color: #fff; font-size: .9rem; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }
.gallery__badge { position: absolute; top: .75rem; right: .75rem; background: rgba(8,10,20,.6); color:#fff; font-size:.7rem; padding:.2rem .5rem; border-radius:999px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact__text p { color: var(--ink-soft); }
.contact .section__title { margin-bottom: 1.25rem; }
.contact__details { margin-top: 2rem; display: grid; gap: 1rem; }
.contact__details li { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact__details li > span:first-child { color: var(--ink-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.contact__details a:hover { color: var(--accent); }

.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.form__status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form__status.is-ok { color: #1c7d4d; }
.form__status.is-err { color: #c0362c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 3rem 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand .brand__mark { color: #fff; }
.footer__brand p { margin: 0; font-size: .9rem; max-width: 320px; }
.footer__meta { text-align: right; font-size: .9rem; }
.footer__meta p { margin: 0 0 .25rem; }
.footer__meta a:hover { color: #fff; }
.footer__copy { color: rgba(255,255,255,.45); }
.site-footer a { color: rgba(255,255,255,.85); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  place-items: center; padding: 2rem;
  background: rgba(8,10,20,.9); backdrop-filter: blur(4px);
}
.lightbox.is-open { display: grid; }
.lightbox__content { max-width: 90vw; max-height: 85vh; }
.lightbox__content img, .lightbox__content video { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox__close { position: absolute; top: 1.25rem; right: 1.75rem; background: none; border: none; color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16/10; order: -1; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--feature { grid-column: span 2; }

  .nav-burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-130%); transition: transform .35s var(--ease);
    box-shadow: 0 20px 40px -24px rgba(20,24,40,.3);
  }
  .nav.is-open { transform: none; }
  .nav__link { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .steps, .gallery { grid-template-columns: 1fr; }
  .gallery__item--feature { grid-column: auto; aspect-ratio: 4/3; }
  .header__actions .btn--small { display: none; }
  .footer__inner, .footer__meta { text-align: left; }
  .about__stats { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
