/* =========================================================
   +kam — pluskam.com  |  static rebuild for GitHub Pages
   ========================================================= */

:root {
  --purple: #ac7ab4;        /* primary brand purple */
  --purple-dark: #8a5a91;   /* hover / emphasis */
  --purple-soft: #d4bce0;   /* light accents */
  --ink: #643c6a;           /* body text */
  --bg: #ffffff;
  --line: #ece6f1;
  --max: 1180px;
  --pad: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  padding-top: 150px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Fixed header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(6px);
}
.site-header .wrap {
  max-width: 100%;
  padding: 18px 40px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.logo img { height: 78px; width: auto; }

.socials {
  position: absolute;
  top: 114px;
  left: 40px;
  display: flex;
  gap: 14px;
}
.socials a { opacity: 0.75; transition: opacity 0.15s ease; }
.socials a:hover { opacity: 1; }
.socials img { height: 18px; width: 18px; }

.nav { display: flex; align-items: center; gap: 26px; padding-top: 14px; }
.nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--purple);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--purple-dark); }
.nav a.active { border-bottom-color: var(--purple); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--purple); margin: 5px 0; transition: 0.2s; }

/* ---------- Tagline ---------- */
.tagline { text-align: center; padding: 4px var(--pad) 40px; }
.tagline h1 {
  font-weight: 400;
  color: var(--purple);
  font-size: clamp(1.4rem, 2.7vw, 2.05rem);
  line-height: 1.4;
  margin: 0 auto;
  max-width: 760px;
}
.tagline h1 b { font-weight: 700; }
.tagline.small { padding-bottom: 26px; }

/* ---------- Photo mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tile { position: relative; overflow: hidden; aspect-ratio: 475 / 358; background: #eee; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .over { opacity: 0; transition: opacity 0.35s ease; }
.tile:hover .over { opacity: 1; }

/* ---------- Brands ---------- */
.eyebrow { text-align: center; color: var(--purple); font-size: 1.5rem; font-weight: 400; margin: 54px 0 0; }
.brands-band { margin-top: 26px; padding: 48px var(--pad); background: linear-gradient(135deg, #c9a5d0 0%, #ac7ab4 55%, #8a5a91 100%); }
.brands {
  max-width: 980px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 40px 54px;
}
.brands img {
  max-height: 52px; max-width: 155px; height: auto; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.brands img:hover { opacity: 1; transform: scale(1.05); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
  padding: 13px 40px; border-radius: 26px; border: 2px solid var(--purple);
  background: var(--purple); color: #fff; cursor: pointer; transition: all 0.18s ease;
}
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn.ghost { background: transparent; color: var(--purple); }
.btn.ghost:hover { background: var(--purple); color: #fff; }

.cta-block { text-align: center; padding: 46px var(--pad) 70px; }
.cta-block h2 { color: var(--purple); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 30px; }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding-top: 6px; }

/* ---------- Services ---------- */
.services-hero img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 4px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 50px 0 30px; }
.svc-col h3 { color: var(--purple); font-size: 1.4rem; letter-spacing: 0.04em; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--purple-soft); }
.svc-col ul { list-style: none; margin: 0; padding: 0; }
.svc-col li { padding: 9px 0; border-bottom: 1px solid var(--line); }

/* ---------- Case study cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; padding: 20px 0 40px; }
.card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(123,86,148,0.16); }
.card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: #f3eef7; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 22px 24px 26px; }
.card h3 { margin: 0 0 14px; font-size: 1.2rem; line-height: 1.35; color: var(--purple-dark); }
.card .link { font-size: 15px; font-weight: 600; color: var(--purple); border-bottom: 2px solid var(--purple); padding-bottom: 2px; }

/* ---------- Case study detail ---------- */
.case { padding: 6px 0 40px; }
.case h2 { color: var(--purple-dark); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 26px; line-height: 1.2; }
.case-figure { margin: 0 0 30px; }
.case-figure img { width: 100%; max-height: 470px; object-fit: cover; border-radius: 4px; }
.case p { font-size: 1.05rem; max-width: 800px; margin: 0 0 26px; }
.stats { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0 38px; }
.stat { flex: 1 1 160px; background: #f5eff9; border-radius: 8px; padding: 24px 20px; text-align: center; }
.stat .num { font-size: 1.5rem; font-weight: 700; color: var(--purple-dark); line-height: 1.2; }
.stat .lbl { font-size: 0.85rem; color: var(--ink); margin-top: 6px; }
.stat-group-title { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); margin: 26px 0 12px; }
.back-link { display: inline-block; margin: 20px 0 20px; font-weight: 500; color: var(--purple); }
.back-link::before { content: "\2190\00a0"; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 46px; align-items: center; padding: 20px 0 50px; }
.about-grid img { width: 100%; border-radius: 4px; object-fit: cover; }
.about-copy h2 { color: var(--purple-dark); font-size: 1.8rem; margin: 0 0 20px; }
.about-copy p { margin: 0 0 18px; }
.about-copy a { color: var(--purple); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; padding: 20px 0 60px; }
.contact-info h2 { color: var(--purple-dark); font-size: 1.8rem; margin: 0 0 24px; }
.contact-info .block { margin-bottom: 22px; }
.contact-info .label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); margin-bottom: 4px; }
.contact-info a { color: var(--ink); border-bottom: 1px solid var(--line); }
form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 0.85rem; font-weight: 500; margin-bottom: -8px; }
.contact-form input, .contact-form textarea { font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #d8cbe4; border-radius: 4px; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--purple); border-color: var(--purple); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 34px 0; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { font-size: 15px; color: var(--purple); }
.footer-nav a:hover { color: var(--purple-dark); }
.copyright { font-size: 13px; color: #9a90a4; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { padding-top: 92px; }
  .site-header .wrap { padding: 14px 20px; align-items: center; }
  .logo img { height: 52px; }
  .socials { display: none; }
  .nav-toggle { display: block; padding-top: 0; }
  .nav {
    position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 6px 0; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 13px 20px; border-bottom: 1px solid var(--line); }
  .nav a.active { border-bottom-color: var(--line); background: #faf6fd; }
  .svc-grid, .cards, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 28px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .brands img { max-height: 42px; }
  .stats { flex-direction: column; }
}
