/* =========================================================
   ShepherdOne™ Design System v1.2
   Extracted from Presentation Theme mockups
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Great+Vibes&display=swap');

:root {
  /* Brand */
  --so-navy: #0e1d41;
  --so-navy-deep: #081428;
  --so-navy-mid: #1a2b4b;
  --so-orange: #f26f04;
  --so-orange-hot: #eb5600;
  --so-orange-soft: #f49f68;
  --so-gold: #e3a354;
  --so-gold-soft: #f0d4a8;

  /* Surfaces */
  --so-white: #ffffff;
  --so-off-white: #f7f9fc;
  --so-bg: #f8f9fb;
  --so-cream: #f7e9d3;
  --so-cream-soft: #fbf4ec;
  --so-peach: #fdeee3;
  --so-beige: #eedfca;

  /* Accents (app) */
  --so-green: #2e7d32;
  --so-green-bright: #4caf50;
  --so-blue: #1565c0;
  --so-blue-action: #0062e6;
  --so-blue-deep: #1a3b8b;
  --so-purple: #673ab7;
  --so-purple-bright: #6d48d7;
  --so-teal: #00897b;
  --so-yellow: #f9a825;
  --so-red: #ff4d4d;
  --so-red-badge: #e53935;

  /* Text */
  --so-text: #0e1d41;
  --so-text-muted: #5a6a7e;
  --so-text-light: #8a97a8;
  --so-border: #e4e8ef;
  --so-border-soft: #eef1f6;

  /* Type */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-script: 'Great Vibes', cursive;

  /* Radii & shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(14, 29, 65, 0.06);
  --shadow-md: 0 4px 16px rgba(14, 29, 65, 0.08);
  --shadow-lg: 0 12px 40px rgba(14, 29, 65, 0.12);

  /* Layout */
  --sidebar-w: 240px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--so-text);
  background: var(--so-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ---- Brand wordmark ---- */
.so-wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.so-wordmark .shepherd { color: var(--so-navy); }
.so-wordmark .one { color: var(--so-orange); }
.so-wordmark.light .shepherd { color: var(--so-white); }
.so-wordmark.light .one { color: var(--so-gold); }

.so-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--so-navy);
}

.so-script {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--so-navy);
}

/* ---- Cross divider ---- */
.so-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.so-divider::before,
.so-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--so-orange);
}
.so-divider .cross {
  color: var(--so-orange);
  font-size: 0.85rem;
  line-height: 1;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--so-orange);
  color: var(--so-white);
  box-shadow: 0 4px 14px rgba(242, 111, 4, 0.35);
}
.btn-primary:hover { background: var(--so-orange-hot); }

.btn-navy {
  background: var(--so-navy);
  color: var(--so-white);
}
.btn-navy:hover { background: var(--so-navy-mid); }

.btn-green {
  background: var(--so-green);
  color: var(--so-white);
}

.btn-blue {
  background: var(--so-blue-action);
  color: var(--so-white);
}

.btn-purple {
  background: var(--so-purple-bright);
  color: var(--so-white);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--so-border);
  color: var(--so-navy);
}
.btn-outline:hover { border-color: var(--so-navy); background: var(--so-off-white); }

.btn-outline-orange {
  background: var(--so-white);
  border: 1.5px solid var(--so-orange);
  color: var(--so-orange);
}

.btn-ghost {
  background: transparent;
  color: var(--so-blue);
  padding: 8px 12px;
}
.btn-ghost:hover { background: rgba(21, 101, 192, 0.06); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---- Form controls ---- */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--so-navy);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--so-border);
  border-radius: var(--radius-md);
  background: var(--so-white);
  color: var(--so-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus {
  border-color: var(--so-orange);
  box-shadow: 0 0 0 3px rgba(242, 111, 4, 0.15);
}
.form-input::placeholder { color: var(--so-text-light); }

.input-wrap { position: relative; }
.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--so-text-light);
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.input-wrap .input-action {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--so-text-light);
  padding: 4px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.875rem;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--so-text-muted);
}
.form-check input {
  accent-color: var(--so-orange);
  width: 16px;
  height: 16px;
}
.link-orange { color: var(--so-blue); font-weight: 500; }
.link-orange:hover { text-decoration: underline; }

/* ---- Cards ---- */
.card {
  background: var(--so-white);
  border: 1px solid var(--so-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.card-selected {
  border: 2px solid var(--so-blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green { background: #e8f5e9; color: var(--so-green); }
.badge-blue { background: #e3f2fd; color: var(--so-blue); }
.badge-orange { background: #fff3e0; color: var(--so-orange); }

/* ---- Language selector ---- */
.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--so-text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.lang-select:hover { background: var(--so-off-white); }

/* ---- Notice boxes ---- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  line-height: 1.45;
}
.notice-cream { background: var(--so-cream-soft); color: var(--so-navy-mid); }
.notice-peach { background: var(--so-peach); color: var(--so-navy-mid); }
.notice-blue { background: #e8f0fe; color: var(--so-navy-mid); border: 1px solid #c5d8f8; }

/* ---- Utility ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
/* Toast (prototype feedback) */
.proto-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--so-navy);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  z-index: 999;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}
.proto-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

