/* ==========================================================================
   Multiply Services — Design tokens
   Palette: Navy #0B1B33, Signal Blue #2C5CE0, Lime #C6F135, Field Green #1F8A55,
            Cloud #F4F7FB, Ink #10141C
   Type: "Space Grotesk" (display) / "Inter" (body + UI)
   Signature: rotated "diamond stack" photo cards + diamond rule markers,
   echoing the Multiply logo's rhombus mark.
   ========================================================================== */

:root {
  --navy: #0b1b33;
  --navy-2: #132747;
  --blue: #2c5ce0;
  --blue-light: #eaf0ff;
  --lime: #c6f135;
  --lime-dark: #9fc721;
  --green: #1f8a55;
  --cloud: #f4f7fb;
  --cloud-2: #eef2f8;
  --ink: #10141c;
  --slate: #5b6478;
  --line: #dfe5ef;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 20px 45px -20px rgba(11, 27, 51, 0.25);
  --shadow-soft: 0 10px 30px -18px rgba(11, 27, 51, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Diamond motif ---------- */
.diamond {
  width: 9px;
  height: 9px;
  background: var(--lime);
  transform: rotate(45deg);
  display: inline-block;
  border-radius: 2px;
}

.diamond-rule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.diamond-divider {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0 auto;
}
.diamond-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--lime);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 2px;
}

.bg-diamond-grid {
  background-image:
    linear-gradient(135deg, rgba(44, 92, 224, 0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(44, 92, 224, 0.06) 25%, transparent 25%);
  background-size: 34px 34px;
}

/* Rotated photo-card stack, the page signature element */
.card-stack { position: relative; }
.card-stack .stack-photo {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  border: 6px solid var(--white);
}
.card-stack .stack-photo.tilt-a { transform: rotate(-6deg); }
.card-stack .stack-photo.tilt-b { transform: rotate(4deg); }
.card-stack .stack-badge {
  position: absolute;
  background: var(--ink);
  color: var(--lime);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-stack .stack-badge .diamond { background: var(--lime); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--lime); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: #1a2233; }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-dark); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); }
.btn-block { width: 100%; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.tag-lime { background: var(--lime); color: var(--ink); }
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-navy { background: rgba(255,255,255,0.14); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 8px 4px;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* Mobile sticky action bar */
.mobile-action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 25px -18px rgba(11,27,51,0.35);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
@media (min-width: 900px) {
  .mobile-action-bar { display: none; }
}

/* Form */
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-light);
  outline: none;
}
.field .error-msg {
  color: #c92a2a;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c92a2a;
}
.field.has-error .error-msg { display: block; }

.placeholder-note {
  border: 1.5px dashed #b9c2d4;
  background: #fbfcfe;
  color: var(--slate);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

footer a { color: rgba(255,255,255,0.78); }
footer a:hover { color: var(--lime); }
