/* ===================================================================
   KaryaWeb — Landing page styles
   Playful, colorful, mobile-first. Vanilla CSS (no framework).
   =================================================================== */

:root {
  --orange: #FF7A45;
  --orange-d: #F2622C;
  --teal: #2BC4A8;
  --purple: #7C5CFF;
  --pink: #F759AB;
  --green: #37C871;
  --ink: #1F2247;
  --ink-2: #4A4E6B;
  --muted: #7A7F9C;
  --cream: #FFF8F2;
  --tint: #FBF6FF;
  --white: #ffffff;
  --line: #ECE7F2;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 18px rgba(31, 34, 71, 0.07);
  --shadow-md: 0 14px 34px rgba(31, 34, 71, 0.10);
  --shadow-lg: 0 26px 60px rgba(31, 34, 71, 0.16);
  --maxw: 1140px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; font-weight: 800; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 122, 69, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(255, 122, 69, 0.45); }
.btn-ghost { background: rgba(255,255,255,0.75); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--accent, var(--orange)); border-color: currentColor; }
.btn-outline:hover { background: var(--accent, var(--orange)); color: #fff; transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-family: var(--font-head); font-weight: 600; color: var(--ink-2); font-size: .96rem; transition: color .15s; }
.nav a:hover { color: var(--orange); }
.nav .nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--purple); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream), #fff 70%);
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--purple);
  background: #EEE9FF;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.02em; }
.hero h1 { background: linear-gradient(120deg, var(--ink) 40%, var(--purple)); -webkit-background-clip: text; background-clip: text; }
.hero-sub { font-size: 1.14rem; color: var(--ink-2); margin: 20px 0 30px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; list-style: none;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); }
.hero-stats span { font-size: .88rem; color: var(--muted); }

.hero-visual { position: relative; min-height: 320px; }
.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  background: #fff;
}
.hero-card img { width: 100%; }
.hero-card-back { top: 0; right: 6%; width: 74%; transform: rotate(-4deg); z-index: 1; opacity: .96; }
.hero-card-front { bottom: 0; left: 0; width: 78%; transform: rotate(3deg); z-index: 2; }
.tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  padding: 5px 12px; border-radius: 999px; color: #fff;
}
.tag-before { background: #9AA0B4; }
.tag-after { background: linear-gradient(135deg, var(--teal), var(--green)); }

/* Decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 0; pointer-events: none; }
.blob-1 { width: 260px; height: 260px; background: radial-gradient(circle, #FFD6BE, transparent 70%); top: -60px; left: -80px; }
.blob-2 { width: 320px; height: 320px; background: radial-gradient(circle, #E6DCFF, transparent 70%); bottom: -120px; right: -100px; }
.blob-3 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); top: -120px; right: -80px; filter: blur(6px); }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: -.02em; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; }
.pill {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--orange); background: #FFEDE3; padding: 7px 15px; border-radius: 999px; margin-bottom: 16px;
}
.hl-orange { color: var(--orange); }
.hl-purple { color: var(--purple); }
.hl-teal { color: var(--teal); }
.hl-pink { color: var(--pink); }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.badge {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  padding: 5px 12px; border-radius: 999px; color: #fff;
}
.badge-cafe { background: var(--orange); }
.badge-salon { background: var(--purple); }
.badge-service { background: var(--teal); }
.badge-resto { background: var(--pink); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #F4F1F8; }
.ba figure { position: relative; border-radius: 12px; overflow: hidden; background: #fff; }
.ba img { width: 100%; }
.ba figcaption {
  position: absolute; bottom: 8px; left: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .68rem;
  padding: 3px 9px; border-radius: 999px; color: #fff; background: rgba(31,34,71,.75);
}
.ba figure:last-child figcaption { background: linear-gradient(135deg, var(--teal), var(--green)); }
.case-body { padding: 18px 20px 22px; }
.case-body h3 { font-size: 1.16rem; }
.impact {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--accent);
}
.impact::before { content: "\2191"; font-size: 1rem; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; margin-bottom: 18px;
  background: var(--accent);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 40%, transparent);
}
.why-card h3 { font-size: 1.28rem; margin-bottom: 10px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  padding: 34px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border: 2px solid var(--orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.price-card.featured:hover { transform: translateY(-10px); }
.best {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--pink)); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .76rem;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.price-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; background: var(--accent); margin-bottom: 14px;
}
.price-card h3 { font-size: 1.3rem; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--ink); margin: 8px 0 2px; }
.price .cur { font-size: 1rem; color: var(--muted); vertical-align: super; margin-right: 4px; }
.price-note { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.feat { list-style: none; margin-bottom: 24px; display: grid; gap: 11px; }
.feat li { position: relative; padding-left: 28px; font-size: .96rem; }
.feat li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.price-card .btn { margin-top: auto; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testi-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.stars { color: #FFB800; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.testi-card blockquote { font-size: 1.05rem; color: var(--ink-2); font-style: italic; margin-bottom: 18px; }
.testi-card figcaption { display: flex; align-items: center; gap: 12px; }
.testi-card figcaption img { width: 48px; height: 48px; border-radius: 50%; }
.testi-card figcaption span { display: flex; flex-direction: column; }
.testi-card figcaption strong { font-family: var(--font-head); color: var(--ink); }
.testi-card figcaption small { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 20px 22px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.faq-ic { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.faq-ic::before, .faq-ic::after {
  content: ""; position: absolute; background: var(--orange); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.faq-ic::before { width: 14px; height: 3px; }
.faq-ic::after { width: 3px; height: 14px; transition: transform .25s ease; }
.faq-item.open .faq-ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--purple), var(--pink) 55%, var(--orange));
  color: #fff; padding: 74px 0; margin: 0;
}
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
.cta p { margin: 16px auto 26px; font-size: 1.12rem; max-width: 560px; color: rgba(255,255,255,.95); }
.cta .btn-ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.28); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-fine { margin-top: 20px; font-size: .9rem; color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #C7CAE0; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 320px; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .portfolio-grid, .why-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 300px; max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .3s ease; z-index: 55;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 6px; border-radius: 12px; }
  .nav a:hover { background: var(--tint); }
  .nav .nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 56px; }
  .portfolio-grid, .why-grid, .price-grid, .testi-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-stats strong { font-size: 1.3rem; }
  .btn-lg { width: 100%; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
