/* ============================================================
   JK Seva Theme
   Closely matches the look & feel of https://jkseva.com
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ------------------------------------------------------------ */
:root {
  /* Brand Colors */
  --jk-orange:          #E86A17;          /* Primary brand orange (CTA + banner) */
  --jk-orange-dark:     #C45A12;          /* Hover / active state */
  --jk-orange-light:    #F07C2A;          /* Lighter accent */
  --jk-orange-soft:     #FEF3EB;          /* Very light orange background */

  /* Neutrals */
  --jk-dark:            #0F1419;          /* Hero / near-black backgrounds */
  --jk-navy:            #1A2332;          /* Deep navy for headings */
  --jk-text:            #1E293B;          /* Primary body text */
  --jk-text-muted:      #64748B;          /* Secondary / muted text */
  --jk-text-light:      #94A3B8;          /* Tertiary text */
  --jk-border:          #E2E8F0;          /* Light borders */
  --jk-bg:              #FFFFFF;          /* Main background */
  --jk-bg-alt:          #F8FAFC;          /* Alternate section background */
  --jk-bg-soft:         #F1F5F9;          /* Soft gray background */

  /* Logo colors */
  --jk-logo-gray:       #4B5563;          /* "jk" and "SEVA" gray */

  /* Typography */
  --jk-font-sans:       system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                        Roboto, "Helvetica Neue", Arial, sans-serif;
  --jk-font-heading:    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                        Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing & Sizing */
  --jk-radius-sm:       4px;
  --jk-radius:          6px;
  --jk-radius-lg:       8px;
  --jk-shadow-sm:       0 1px 2px 0 rgb(0 0 0 / 0.05);
  --jk-shadow:          0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --jk-shadow-lg:       0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Transitions */
  --jk-transition:      150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------
   2. Base / Reset
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--jk-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--jk-text);
  background-color: var(--jk-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--jk-font-heading);
  color: var(--jk-navy);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.75em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.25em;
  color: var(--jk-text-muted);
}

a {
  color: var(--jk-orange);
  text-decoration: none;
  transition: color var(--jk-transition);
}

a:hover {
  color: var(--jk-orange-dark);
}

strong {
  font-weight: 600;
  color: var(--jk-text);
}

/* ------------------------------------------------------------
   4. Layout Helpers
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background-color: var(--jk-bg-alt);
}

.section--dark {
  background-color: var(--jk-dark);
  color: #fff;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------------------------------------
   5. Top Announcement Bar (matches site banner)
   ------------------------------------------------------------ */
.jk-announcement {
  background-color: var(--jk-orange);
  color: #fff;
  text-align: center;
  padding: 0.7rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.jk-announcement a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jk-announcement a:hover {
  color: #fff;
  opacity: 0.9;
}

/* ------------------------------------------------------------
   6. Header / Navigation
   ------------------------------------------------------------ */
.jk-header {
  background-color: var(--jk-bg);
  border-bottom: 1px solid var(--jk-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.jk-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.jk-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--jk-logo-gray);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.jk-logo span.seva {
  position: relative;
  margin-left: 2px;
}

/* Optional orange accent lines under "SEVA" */
.jk-logo .accent-lines {
  display: inline-block;
  width: 18px;
  height: 8px;
  margin: 0 3px;
  background: linear-gradient(
    to bottom,
    var(--jk-orange) 0%,
    var(--jk-orange) 40%,
    transparent 40%,
    transparent 60%,
    var(--jk-orange) 60%,
    var(--jk-orange) 100%
  );
  vertical-align: middle;
}

.jk-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jk-nav a {
  color: var(--jk-navy);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--jk-transition);
}

.jk-nav a:hover {
  color: var(--jk-orange);
}

/* ------------------------------------------------------------
   7. Buttons (matches site CTAs)
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--jk-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--jk-transition);
  white-space: nowrap;
}

/* Primary orange button */
.btn--primary {
  background-color: var(--jk-orange);
  color: #fff;
  border-color: var(--jk-orange);
}

.btn--primary:hover {
  background-color: var(--jk-orange-dark);
  border-color: var(--jk-orange-dark);
  color: #fff;
}

/* Outline button */
.btn--outline {
  background-color: transparent;
  color: var(--jk-orange);
  border-color: var(--jk-orange);
}

.btn--outline:hover {
  background-color: var(--jk-orange);
  color: #fff;
}

/* Dark / inverse button (for dark sections) */
.btn--light {
  background-color: #fff;
  color: var(--jk-navy);
  border-color: #fff;
}

.btn--light:hover {
  background-color: var(--jk-bg-alt);
  color: var(--jk-navy);
}

/* Large button */
.btn--lg {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
}

/* ------------------------------------------------------------
   8. Hero Section
   ------------------------------------------------------------ */
.jk-hero {
  position: relative;
  background-color: var(--jk-dark);
  color: #fff;
  padding: 6rem 0 7rem;
  text-align: center;
  overflow: hidden;
}

.jk-hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.jk-hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.jk-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2.25rem;
}

/* Optional subtle network / dots background feel */
.jk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(232, 106, 23, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(232, 106, 23, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* ------------------------------------------------------------
   9. Cards & Content Blocks
   ------------------------------------------------------------ */
.card {
  background: var(--jk-bg);
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--jk-shadow-sm);
  transition: box-shadow var(--jk-transition), transform var(--jk-transition);
}

.card:hover {
  box-shadow: var(--jk-shadow);
}

.card__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--jk-navy);
}

.card__text {
  color: var(--jk-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   10. Forms (for the questionnaire)
   ------------------------------------------------------------ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--jk-navy);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--jk-orange);
  margin-left: 2px;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--jk-text-light);
  margin-top: 0.3rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--jk-text);
  background-color: var(--jk-bg);
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius);
  transition: border-color var(--jk-transition), box-shadow var(--jk-transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--jk-orange);
  box-shadow: 0 0 0 3px rgba(232, 106, 23, 0.15);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8.5L1.5 4h9L6 8.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

/* Priority badges (Critical / High) */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
}

.badge--critical {
  background-color: #FEE2E2;
  color: #B91C1C;
}

.badge--high {
  background-color: #FEF3C7;
  color: #B45309;
}

.badge--medium {
  background-color: #E0E7FF;
  color: #4338CA;
}

.badge--low {
  background-color: #F1F5F9;
  color: #64748B;
}

/* ------------------------------------------------------------
   11. Utility Classes
   ------------------------------------------------------------ */
.text-center   { text-align: center; }
.text-muted    { color: var(--jk-text-muted); }
.text-navy     { color: var(--jk-navy); }
.text-orange   { color: var(--jk-orange); }

.bg-orange     { background-color: var(--jk-orange); }
.bg-dark       { background-color: var(--jk-dark); }
.bg-alt        { background-color: var(--jk-bg-alt); }

.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }

.pt-4  { padding-top: 2rem; }
.pb-4  { padding-bottom: 2rem; }

/* ------------------------------------------------------------
   12. Responsive
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .jk-nav {
    display: none; /* Replace with mobile menu as needed */
  }

  .jk-hero {
    padding: 4rem 0 5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------
   13. Print (optional)
   ------------------------------------------------------------ */
@media print {
  .jk-announcement,
  .jk-header {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
