/* ── HeroHere Base Styles ── */
/* Ink + Azure palette · Sora + DM Sans · Big clean fonts */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:wght@400;500&display=swap');

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

:root {
  --navy:   #0D2463;
  --azure:  #1E6FD9;
  --sky:    #5BA8FF;
  --base:   #F4F6FB;
  --white:  #FFFFFF;
  --muted:  #4A5E8A;
  --border: #DCE3F0;
  --error:  #D63B3B;
  --success:#1A8A4A;
  --r:      16px;
  --r-sm:   10px;
  --shadow: 0 4px 24px rgba(13,36,99,.10);
  --shadow-lg: 0 16px 64px rgba(13,36,99,.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Sora', sans-serif;
  line-height: 1.15;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--azure);
  transform: translateY(-2px);
}

.btn-azure {
  background: var(--azure);
  color: var(--white);
}
.btn-azure:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--azure);
  color: var(--azure);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 15px;
  padding: 10px 22px;
}

.btn-full { width: 100%; justify-content: center; }

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* ── Form elements ── */
.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 17px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--navy);
  transition: border-color .2s;
  outline: none;
}

.form-input:focus { border-color: var(--azure); }
.form-input.error { border-color: var(--error); }

.form-hint {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.form-error {
  font-size: 14px;
  color: var(--error);
  margin-top: 6px;
  display: none;
}

.form-error.show { display: block; }

.form-select {
  width: 100%;
  padding: 14px 18px;
  font-size: 17px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--navy);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A5E8A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.form-select:focus { border-color: var(--azure); }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
}

.card-base {
  background: var(--base);
  border-radius: var(--r);
  padding: 32px;
}

/* ── Badges / pills ── */
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
}
.badge-azure { background: rgba(30,111,217,.1); color: var(--azure); }
.badge-navy  { background: rgba(13,36,99,.1); color: var(--navy); }
.badge-green { background: rgba(26,138,74,.1); color: var(--success); }
.badge-red   { background: rgba(214,59,59,.1); color: var(--error); }
.badge-sky   { background: rgba(91,168,255,.15); color: #0D5FAF; }

/* ── Alerts ── */
.alert {
  padding: 16px 20px;
  border-radius: var(--r-sm);
  font-size: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-error   { background: rgba(214,59,59,.08); color: var(--error); border: 1px solid rgba(214,59,59,.2); }
.alert-success { background: rgba(26,138,74,.08); color: var(--success); border: 1px solid rgba(26,138,74,.2); }
.alert-info    { background: rgba(30,111,217,.08); color: var(--azure); border: 1px solid rgba(30,111,217,.2); }

/* ── Nav (shared) ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-text  { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -.5px; color: var(--navy); }
.logo-text span { color: var(--azure); }
.logo-live  { font-size: 12px; font-weight: 500; color: var(--sky); letter-spacing: 2.5px; margin-top: -2px; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── Utility ── */
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.text-azure  { color: var(--azure); }
.text-navy   { color: var(--navy); }
.text-sm     { font-size: 15px; }
.text-lg     { font-size: 20px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }

/* ── Loading spinner ── */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--navy);
  color: white;
  padding: 16px 24px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: transform .3s, opacity .3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error   { background: var(--error); }

/* ── Responsive ── */
@media (max-width: 768px) {
  body { font-size: 17px; }
  .container { padding: 0 20px; }
  .card { padding: 24px 20px; }
}
