/* Krupa Marketing / KM's Finny — shared site styles */

:root {
  --maroon: #4a1150;
  --red: #a3238e;
  --red-dark: #7a1a6c;
  --purple: #c2189c;
  --cream: #fdf6fc;
  --ink: #1f0e22;
  --ink-soft: #5c4d5f;
  --line: #ecdcea;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(74, 17, 80, 0.14);
  --shadow-sm: 0 4px 14px rgba(74, 17, 80, 0.10);
  --max: 1120px;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; }

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

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--maroon);
}

.brand img { height: 40px; width: auto; }

.brand-text { font-size: 1.05rem; }
.brand-text small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.08em; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--maroon);
  border-color: var(--red);
}

.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--red-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  color: var(--maroon);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-media {
  position: relative;
  height: min(58vw, 560px);
  min-height: 420px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 16, 22, 0.15) 0%, rgba(36, 16, 22, 0.55) 100%);
}

.hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 24px 36px;
  max-width: var(--max);
  margin: 0 auto;
  color: #fff;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  margin: 0 0 10px;
  max-width: 720px;
}

.hero-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  margin: 0 0 20px;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); }

.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn-outline { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }

/* Sections */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-alt { background: #fff; }

.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head .eyebrow { background: rgba(74, 17, 80, 0.08); border-color: rgba(74, 17, 80, 0.18); color: var(--maroon); }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 12px 0 10px; color: var(--maroon); }
.section-head p { color: var(--ink-soft); margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin: 12px 0 8px; color: var(--maroon); font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.split h2 { color: var(--maroon); font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 0; }
.split p { color: var(--ink-soft); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--maroon); }
.stat span { color: var(--ink-soft); font-size: 0.9rem; }

/* Callout banner */
.banner {
  background: linear-gradient(135deg, var(--maroon), var(--red));
  color: #fff;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.banner h3 { margin: 0 0 6px; font-size: 1.4rem; }
.banner p { margin: 0; color: rgba(255,255,255,0.88); }

/* Store badges */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  min-width: 200px;
  transition: transform 0.15s, background 0.15s;
}
.store-btn:hover { transform: translateY(-2px); background: #000; }
.store-btn .glyph { display: inline-flex; align-items: center; justify-content: center; }
.store-btn .txt small { display: block; font-size: 0.68rem; opacity: 0.8; }
.store-btn .txt strong { font-size: 1.05rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.steps li div p { margin: 4px 0 0; color: var(--ink-soft); }
.steps li div strong { color: var(--maroon); }

.creds {
  background: #fff8f3;
  border: 1px dashed var(--red);
  border-radius: 14px;
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}
.creds .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.creds .row span:first-child { color: var(--ink-soft); font-weight: 600; }
.creds .row code { background: rgba(74,17,80,0.08); padding: 3px 10px; border-radius: 6px; font-weight: 700; color: var(--maroon); }

.note {
  border-left: 3px solid var(--purple);
  background: rgba(194, 24, 156, 0.06);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.contact-card .icon-badge { margin: 0 auto 14px; }
.contact-card a, .contact-card span { color: var(--maroon); font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { color: var(--ink-soft); margin: 4px 0 10px; font-size: 0.9rem; }

/* Policy content */
.policy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.policy h2 { color: var(--maroon); font-size: 1.15rem; margin: 30px 0 10px; }
.policy h2:first-child { margin-top: 0; }
.policy p { color: var(--ink-soft); margin: 0 0 14px; }
.policy .updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 28px; }
.policy hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

/* Footer */
footer.site {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 0.95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 34px; }
.footer-brand strong { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

/* Page editor */
.edit-toolbar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  gap: 10px;
}
.edit-toolbar button {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
  font-family: inherit;
}
.edit-toolbar button:hover { transform: translateY(-2px); }
.edit-toggle-btn, .edit-save-btn { background: var(--red); color: #fff; }
.edit-cancel-btn { background: #fff; color: var(--maroon); border: 2px solid var(--maroon) !important; }

body.edit-mode .editable-el {
  outline: 1px dashed rgba(163, 35, 142, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
  cursor: text;
}
body.edit-mode .editable-el:hover,
body.edit-mode .editable-el:focus {
  outline: 2px dashed var(--red);
  background: rgba(163, 35, 142, 0.08);
}

body.edit-mode .editable-img {
  outline: 2px dashed rgba(163, 35, 142, 0.5);
  outline-offset: 2px;
  cursor: pointer;
  transition: filter 0.15s, outline-color 0.15s;
}
body.edit-mode .editable-img:hover {
  outline-color: var(--red);
  filter: brightness(0.85);
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .media { order: -1; }
  .stat-row { grid-template-columns: 1fr; gap: 24px; }
  .banner { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .policy { padding: 24px; }
}
