/* ==========================================================================
   Hindo Theme — Base CSS
   Design tokens + modern reset + global typography + utility classes
   Developed by Demani — https://demani.net
   ========================================================================== */

/* ── Self-hosted Inter font (no Google Fonts CDN — GDPR compliant) ──────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Colour palette */
  --hindo-navy-900:  #061929;
  --hindo-navy-800:  #0D2D4E;
  --hindo-navy-700:  #1A4D7A;
  --hindo-navy-100:  #E8F0F8;
  --hindo-gold-500:  #E8A020;
  --hindo-gold-600:  #C8881A;
  --hindo-gold-100:  #FEF3DC;
  --ink:             #0F1419;
  --ink-muted:       #4A5568;
  --white:           #FFFFFF;
  --surface:         #F7F8FA;
  --surface-alt:     #EEF2F7;
  --line:            #D1D9E0;

  /* Semantic aliases */
  --color-primary:   var(--hindo-navy-800);
  --color-secondary: var(--hindo-navy-700);
  --color-accent:    var(--hindo-gold-500);
  --color-text:      var(--ink);
  --color-muted:     var(--ink-muted);
  --color-bg:        var(--white);
  --color-surface:   var(--surface);
  --color-line:      var(--line);

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-7:  2rem;
  --sp-8:  2.5rem;
  --sp-9:  3rem;
  --sp-10: 4rem;
  --sp-12: 5rem;
  --sp-14: 6rem;

  /* Layout */
  --content-width:    min(1200px, calc(100% - 48px));
  --content-narrow:   min(760px,  calc(100% - 48px));
  --section-padding:  clamp(3.5rem, 8vw, 6rem);

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.375rem;
  --font-size-2xl:  1.75rem;
  --font-size-3xl:  2.25rem;
  --font-size-4xl:  clamp(2rem,  5vw, 3rem);
  --font-size-5xl:  clamp(2.5rem, 6vw, 3.75rem);

  /* Radii */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(13, 45, 78, .08);
  --shadow-sm:  0 2px 8px rgba(13, 45, 78, .10);
  --shadow-md:  0 4px 16px rgba(13, 45, 78, .12);
  --shadow-lg:  0 8px 32px rgba(13, 45, 78, .14);
  --shadow-xl:  0 16px 48px rgba(13, 45, 78, .18);

  /* Transitions */
  --ease-out:       cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-micro:      120ms;
  --dur-ui:         200ms;
  --dur-page:       350ms;
}

/* ── Modern reset ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

p { margin: 0; }

ul, ol {
  padding-left: 1.25em;
  margin: 0;
}

a {
  color: var(--color-primary);
  text-decoration-skip-ink: auto;
  transition: color var(--dur-micro) var(--ease-out);
}

a:hover { color: var(--hindo-navy-700); }

:focus-visible {
  outline: 3px solid var(--hindo-gold-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Skip link ──────────────────────────────────────────────────────────────── */
.hindo-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  overflow: hidden;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--hindo-navy-800);
  color: var(--white);
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
}

.hindo-skip-link:focus {
  left: 1rem;
  top: 0;
}

/* ── Screen reader only ─────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Container ──────────────────────────────────────────────────────────────── */
.hindo-container {
  width: var(--content-width);
  margin-inline: auto;
}

.hindo-container--narrow {
  width: var(--content-narrow);
  margin-inline: auto;
}

/* ── Section wrapper ────────────────────────────────────────────────────────── */
.hindo-section {
  padding-block: var(--section-padding);
}

.hindo-section--dark {
  background-color: var(--hindo-navy-800);
  color: var(--white);
}

.hindo-section--surface {
  background-color: var(--surface);
}

.hindo-section--accent {
  background-color: var(--hindo-gold-500);
}

/* ── Section eyebrow ────────────────────────────────────────────────────────── */
.hindo-eyebrow {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hindo-gold-500);
  margin-bottom: var(--sp-3);
}

.hindo-section--dark .hindo-eyebrow { color: var(--hindo-gold-500); }

/* ── Section heading ────────────────────────────────────────────────────────── */
.hindo-section__heading {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: inherit;
  margin-bottom: var(--sp-5);
}

.hindo-section__lead {
  font-size: var(--font-size-lg);
  color: var(--ink-muted);
  max-width: 60ch;
}

.hindo-section--dark .hindo-section__lead { color: rgba(255,255,255,.75); }

/* ── Button system ──────────────────────────────────────────────────────────── */
.hindo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.8125rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur-ui) var(--ease-out),
    border-color     var(--dur-ui) var(--ease-out),
    color            var(--dur-ui) var(--ease-out),
    transform        var(--dur-micro) var(--ease-out),
    box-shadow       var(--dur-ui) var(--ease-out);
}

.hindo-btn:hover { transform: translateY(-1px); }
.hindo-btn:active { transform: translateY(0); }

/* Primary */
.hindo-btn--primary {
  background-color: var(--hindo-gold-500);
  color: var(--hindo-navy-800);
  border-color: var(--hindo-gold-500);
}
.hindo-btn--primary:hover {
  background-color: var(--hindo-gold-600);
  border-color: var(--hindo-gold-600);
  color: var(--hindo-navy-800);
  box-shadow: 0 4px 16px rgba(232,160,32,.35);
}

/* Secondary — dark fill */
.hindo-btn--secondary {
  background-color: var(--hindo-navy-800);
  color: var(--white);
  border-color: var(--hindo-navy-800);
}
.hindo-btn--secondary:hover {
  background-color: var(--hindo-navy-900);
  border-color: var(--hindo-navy-900);
  color: var(--white);
}

/* Outline on dark bg */
.hindo-btn--outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.65);
}
.hindo-btn--outline-white:hover {
  background-color: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}

/* Outline on light bg */
.hindo-btn--outline-navy {
  background-color: transparent;
  color: var(--hindo-navy-800);
  border-color: var(--hindo-navy-800);
}
.hindo-btn--outline-navy:hover {
  background-color: var(--hindo-navy-100);
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.hindo-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out);
}

.hindo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hindo-card__body {
  padding: var(--sp-7) var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.hindo-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--hindo-navy-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}

.hindo-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--hindo-navy-800);
  margin-bottom: var(--sp-2);
}

.hindo-card__title a {
  color: inherit;
  text-decoration: none;
}

.hindo-card__title a:hover { color: var(--hindo-navy-700); }

.hindo-card__text {
  font-size: var(--font-size-sm);
  color: var(--ink-muted);
  line-height: 1.7;
  flex: 1;
}

.hindo-card__cta {
  margin-top: var(--sp-5);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--hindo-navy-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.hindo-card__cta::after {
  content: '→';
  transition: transform var(--dur-micro) var(--ease-out);
}

.hindo-card:hover .hindo-card__cta::after { transform: translateX(4px); }

/* ── Stat item ──────────────────────────────────────────────────────────────── */
.hindo-stat {
  text-align: center;
  padding: var(--sp-6);
}

.hindo-stat__number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--hindo-gold-500);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.hindo-stat__label {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.75);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Two-column split layout ────────────────────────────────────────────────── */
.hindo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}

@media (max-width: 767px) {
  .hindo-split { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* ── Grid ───────────────────────────────────────────────────────────────────── */
.hindo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.hindo-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

@media (max-width: 1023px) {
  .hindo-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hindo-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
  .hindo-grid-3, .hindo-grid-4 { grid-template-columns: 1fr; }
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */
.hindo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-7);
  font-size: var(--font-size-sm);
  color: var(--ink-muted);
}

.hindo-breadcrumb li + li::before {
  content: '/';
  opacity: .4;
  margin-right: var(--sp-2);
}

.hindo-breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.hindo-breadcrumb a:hover { color: var(--hindo-navy-700); }

/* ── Form elements ──────────────────────────────────────────────────────────── */
.hindo-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.hindo-input,
.hindo-select,
.hindo-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--ink);
  background-color: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
  appearance: none;
}

.hindo-input:focus,
.hindo-select:focus,
.hindo-textarea:focus {
  outline: none;
  border-color: var(--hindo-navy-700);
  box-shadow: 0 0 0 3px rgba(26, 77, 122, .15);
}

.hindo-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.hindo-field { margin-bottom: var(--sp-4); }

/* ── Notice / alert ─────────────────────────────────────────────────────────── */
.hindo-notice {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--sp-6);
}

.hindo-notice--success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.hindo-notice--error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* ── Responsive typography scale ────────────────────────────────────────────── */
@media (max-width: 767px) {
  h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
}

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