/* E-Project International — main stylesheet
   Brand colors are defined once here; change them in one place. */
:root {
  --ink: #23272b;          /* primary dark */
  --ink-soft: #4a5157;
  --paper: #ffffff;
  --paper-alt: #f4f4f2;
  --accent: #e01016;       /* brand red from the E-Project logo */
  --accent-dark: #b30d12;
  --brand-lime: #c5fc63;   /* logo lime green — available for highlights */
  --brand-olive: #8ca106;
  --line: #e2e2df;
  --max: 1200px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', -apple-system, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: .75rem; letter-spacing: .02em; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--accent); font-weight: 700; margin-bottom: .4rem; }
section { padding: 72px 0; }
section.alt { background: var(--paper-alt); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: .06em; font-size: 1.05rem; position: relative; z-index: 130; }
.logo img { height: 96px; width: auto; margin-top: 34px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
nav.main ul { list-style: none; display: flex; gap: 28px; }
nav.main a { color: var(--ink); font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }
nav.main a:hover, nav.main a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* Hero slider */
.hero { position: relative; height: min(86vh, 760px); overflow: hidden; background: var(--ink); padding: 0; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero .slide.on { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,22,24,.65), rgba(20,22,24,.1)); }
.hero .caption { position: absolute; left: 0; right: 0; bottom: 12%; z-index: 5; color: #fff; }
.hero .caption h1 { font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .06em; }
.hero .caption p { max-width: 560px; font-size: 1.1rem; opacity: .92; margin-top: .5rem; }
.hero .dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 10px; }
.hero .dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; background: transparent; cursor: pointer; }
.hero .dots button.on { background: #fff; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; padding: 12px 28px;
  text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 600;
  border: 0; cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Grids */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); }
.card .pad { padding: 22px; }
.audience .card { text-align: center; padding: 36px 22px; transition: transform .2s, box-shadow .2s; }
.audience .card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.audience .card h3 { color: var(--ink); }
.audience .card p { font-size: .92rem; color: var(--ink-soft); }

/* Services */
.svc-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-top: 1rem; }
.svc-list li { padding: 14px 16px 14px 20px; background: var(--paper); border-left: 3px solid var(--accent); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 500; }

/* Process */
.process { counter-reset: step; }
.process .step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.process .step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 2rem; color: var(--accent); min-width: 56px; line-height: 1;
}

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters button {
  background: transparent; border: 1px solid var(--line); padding: 8px 18px; cursor: pointer;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft);
}
.filters button.on, .filters button:hover { border-color: var(--accent); color: var(--accent); }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pf-item { position: relative; overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: var(--paper); }
.pf-item .ph { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-alt); }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pf-item:hover img { transform: scale(1.05); }
.pf-item .meta { padding: 14px 16px; }
.pf-item .meta h3 { font-size: 1rem; margin: 0; }
.pf-item .meta span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.pf-item.hide { display: none; }

/* Play badge on portfolio cards with animations */
.pf-item .ph { position: relative; }
.play-badge {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  background: var(--accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
  padding-left: 3px; box-shadow: 0 2px 10px rgba(0,0,0,.35); pointer-events: none;
}

/* Featured animation embeds (home page) */
.anim-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.anim-grid .anim { border: 1px solid var(--line); background: var(--paper); }
.anim-grid iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.anim-grid .meta { padding: 14px 16px; }
.anim-grid .meta h3 { font-size: 1rem; margin: 0; }
.anim-grid .meta span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
@media (max-width: 700px) { .anim-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(15,16,18,.94); z-index: 200; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 4vh 4vw; }
.lb.open { display: flex; }
.lb img { max-height: 74vh; max-width: 92vw; object-fit: contain; }
.lb iframe { display: none; width: min(1100px, 92vw); aspect-ratio: 16/9; max-height: 74vh; border: 0; background: #000; }
.lb .lb-title { color: #fff; margin: 14px 0 4px; font-size: 1.1rem; }
.lb .lb-count { color: #aaa; font-size: .85rem; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb .lb-close { top: 18px; right: 26px; }
.lb .lb-prev { left: 18px; top: 50%; }
.lb .lb-next { right: 18px; top: 50%; }

/* Quote band */
.quote { background: var(--ink); color: #fff; text-align: center; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-style: italic; max-width: 820px; margin: 0 auto; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: .9rem; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; }

/* Forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper);
  font-family: inherit; font-size: .95rem; margin-bottom: 16px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: 6px; }

/* Contact */
.contact-data p { margin-bottom: 10px; }
.contact-data strong { display: inline-block; min-width: 80px; }
.map iframe { width: 100%; height: 420px; border: 0; }

/* Footer */
footer.site { background: var(--ink); color: #cfd3d6; padding: 56px 0 28px; }
footer.site h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; margin-bottom: 14px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: #cfd3d6; font-size: .92rem; }
footer.site a:hover { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; font-size: .82rem; color: #8b9196; flex-wrap: wrap; gap: 10px; }
.newsletter input { margin-bottom: 10px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.social { display: flex; gap: 14px; margin-top: 12px; }
.social a { font-size: 1.2rem; }

/* Utility */
.center { text-align: center; }
.mt2 { margin-top: 2rem; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.12rem; }

@media (max-width: 900px) {
  .grid2, .grid3, .grid4, .foot-grid, .svc-list, form .row { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  nav.main { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; padding: 18px 24px; gap: 14px; }
  .nav-toggle { display: block; }
  .logo img { height: 64px; margin-top: 20px; }
}
@media (max-width: 560px) {
  .pf-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
