/* ==========================================================================
   Twice A. Creative — global stylesheet
   Colors from the XD design:
     --purple      #7c79fc  (primary)
     --purple-soft #b0affc  (light accent)
     --purple-deep #7026d7  (headings accent)
   ========================================================================== */

:root {
  --purple: #7c79fc;
  --purple-soft: #b0affc;
  --purple-deep: #7026d7;
  --ink: #14131f;
  --muted: #6b6b76;
  --bg: #ffffff;
  --bg-alt: #f8f8f8;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(124, 121, 252, 0.18);
  --shadow-sm: 0 8px 20px rgba(20, 19, 31, 0.08);
  --maxw: 1180px;
  --font: "Arial", "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: #6b68f5; }
.btn--ghost {
  background: transparent;
  color: var(--purple-deep);
  border: 2px solid var(--purple);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--purple); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ececf5;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--purple-deep);
}
.brand span { color: var(--ink); }
.brand img { height: 44px; width: auto; display: block; }
@media (max-width: 520px) { .brand img { height: 36px; } }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--purple); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Generic section ---------- */
section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block;
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.section-title {
  font-family: "Arial Black", var(--font);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--purple-deep);
}
.section-title--ink { color: var(--ink); }
.section-lead {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}
.text-center { text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 60px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  font-family: "Arial Black", var(--font);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--purple); }
.hero p {
  margin: 24px 0 34px;
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 520px;
}
.hero p b { color: var(--ink); }
.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 6% -4%;
  background: radial-gradient(circle at 60% 40%, var(--purple-soft) 0%, transparent 62%);
  filter: blur(10px);
  z-index: -1;
}

/* ---------- Intro band ---------- */
.intro { text-align: center; }
.intro h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto;
}
.intro h2 .just {
  display: block;
  color: var(--purple-deep);
  font-family: "Arial Black", var(--font);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-top: 10px;
}

/* ---------- Feature cards (Why choose us) ---------- */
.features-head { text-align: center; margin-bottom: 56px; }
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid #eeeef8;
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-size: 1.6rem; font-weight: 800;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.35rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 1rem; }

/* ---------- CTA band (uses purple abstract bg) ---------- */
.cta-band {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 96px 0;
  background: linear-gradient(120deg, rgba(112,38,215,0.85), rgba(124,121,252,0.85)),
              url("../images/logo.png") center/cover no-repeat;
}
.cta-band h2 {
  font-family: "Arial Black", var(--font);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}
.cta-band p { max-width: 560px; margin: 14px auto 30px; font-size: 1.15rem; opacity: 0.95; }
.cta-band .btn { background: #fff; color: var(--purple-deep); }
.cta-band .btn:hover { background: #f2f0ff; }

/* ---------- Services ---------- */
.service-card { text-align: left; }
.service-card .card-icon {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
}
.service-card .btn { margin-top: 22px; }

/* ---------- Services v2 (redesigned, animated) ---------- */
.services-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eeeef8;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.svc:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 50px rgba(124, 121, 252, 0.28);
  border-color: var(--purple-soft);
}
.svc-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 30px;
  min-height: 220px;
  background: radial-gradient(circle at 50% 30%, var(--purple-soft) 0%, #eeecff 55%, #f6f5ff 100%);
  overflow: hidden;
}
.svc-media::after {
  content: "";
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  bottom: -50px; right: -40px;
}
.svc-media img {
  position: relative;
  max-height: 180px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(112, 38, 215, 0.25));
  animation: floaty 5s ease-in-out infinite;
  transition: transform 0.4s ease;
}
/* Dark-artwork variant (e.g. brand identity glass panels) — full-bleed, no float */
.svc-media--dark { background: #0d0d12; padding: 0; }
.svc-media--dark img {
  max-height: none;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  filter: none;
  animation: none;
}
.svc-media--dark::after { display: none; }
.svc:hover .svc-media--dark img { transform: scale(1.04); }

.svc:nth-child(2) .svc-media img { animation-delay: -1.2s; }
.svc:nth-child(3) .svc-media img { animation-delay: -2.4s; }
.svc:nth-child(4) .svc-media img { animation-delay: -3.6s; }
.svc:hover .svc-media img { transform: scale(1.06); }
.svc-body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.svc-num {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--purple);
  opacity: 0.7;
  margin-bottom: 8px;
}
.svc-body h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.svc-body p { color: var(--muted); font-size: 1.02rem; margin-bottom: 22px; flex: 1; }
.svc-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--purple-deep);
}
.svc-link .arw {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
}
.svc:hover .svc-link .arw { transform: translateX(6px); background: var(--purple-deep); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Scroll-reveal (added by JS) */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .svc-media img { animation: none; }
}

@media (max-width: 760px) {
  .services-v2 { grid-template-columns: 1fr; }
}

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 44px;
}
.filter {
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s ease;
}
.filter.active, .filter:hover { background: var(--purple); color: #fff; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.tile {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--purple-soft), var(--purple));
  position: relative;
  box-shadow: var(--shadow-sm);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(20,19,31,0.75));
  color: #fff;
  padding: 34px 18px 16px;
  font-weight: 700;
}

/* ---------- Contact / Consultation form ---------- */
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; }
.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid #e5e5f0;
  border-radius: 12px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-status {
  margin-top: 14px;
  padding: 0;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  font-size: 0.98rem;
}
.form-status.show { padding: 12px 16px; }
.form-status.ok { background: #e9fbef; color: #146c2e; }
.form-status.err { background: #fdecec; color: #a12525; }
.consult-info h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
.consult-info p { color: var(--muted); margin: 16px 0; font-size: 1.05rem; }
.info-list { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.info-list .ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--purple-soft); color: var(--purple-deep); font-size: 1.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfcfe0;
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-grid a, .footer-grid p { color: #b7b7c9; font-size: 0.95rem; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { color: #fff; font-size: 1.6rem; }
.footer-brand span { color: var(--purple-soft); }
.footer-brand .brand img { height: 46px; }
.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid #2a2938;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: #8f8fa3;
}
.footer-bottom a { color: #8f8fa3; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  text-align: center;
  padding: 80px 0 60px;
  background: var(--bg-alt);
}
.page-hero h1 {
  font-family: "Arial Black", var(--font);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  color: var(--purple-deep);
}
.page-hero p { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .consult-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    background: #fff;
    padding: 20px 24px 30px;
    gap: 18px;
    border-bottom: 1px solid #ececf5;
    box-shadow: var(--shadow-sm);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
