/*
Theme Name: Khangura Immigration
Theme URI: https://khanguraimmigration.ca
Author: Built for Khangura Immigration Services Inc.
Author URI: https://khanguraimmigration.ca
Description: Custom theme for Khangura Immigration Services Inc. — a licensed RCIC practice. Trilingual-ready (EN/PA/HI via Polylang). Navy & gold, editorial-serif brand system built around the "pathway" motif.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Private / Custom
Text Domain: khangura
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colour */
  --color-navy-950:   #0B2E4F;   /* primary brand navy */
  --color-navy-900:   #123a63;
  --color-navy-700:   #1d4d7a;
  --color-slate-600:  #3D5A73;   /* supporting cool neutral */
  --color-gold-600:   #A97C1E;   /* accessible gold (text/icons on light bg) */
  --color-gold-400:   #C69B3E;   /* decorative gold (fills, lines) */
  --color-cream-50:   #F7F5F0;   /* page background */
  --color-white:      #FFFFFF;
  --color-ink-900:    #1D2733;   /* body text */
  --color-ink-600:    #4B5563;   /* secondary text */
  --color-line-200:   #E4DFD3;   /* hairlines on cream */
  --color-success:    #2F6F4E;
  --color-error:      #8C2F2F;

  /* Type */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-indic: "Noto Sans Gurmukhi", "Noto Sans Devanagari", var(--font-body);

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.98rem + 0.1vw, 1.05rem);
  --step-1:  clamp(1.2rem, 1.15rem + 0.3vw, 1.35rem);
  --step-2:  clamp(1.5rem, 1.4rem + 0.5vw, 1.8rem);
  --step-3:  clamp(1.95rem, 1.7rem + 1.1vw, 2.6rem);
  --step-4:  clamp(2.5rem, 2.1rem + 1.8vw, 3.6rem);

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 3px;
  --radius-md: 6px;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--color-ink-900);
  background: var(--color-cream-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-navy-950); text-decoration-color: var(--color-gold-600); }
a:hover { color: var(--color-gold-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy-950);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--color-gold-600);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-navy-950); color: #fff;
  padding: 0.6em 1em; z-index: 999;
}
.skip-link:focus { left: 1em; top: 1em; }

/* ==========================================================================
   3. SIGNATURE MOTIF — the "pathway" rule
   A single gold line that steps diagonally, standing for a case moving
   through stages toward a decision. Used once per page, never decorative
   clutter: as a section divider and behind the hero credential mark.
   ========================================================================== */
.pathway-rule {
  --h: 34px;
  height: var(--h);
  width: 100%;
  display: block;
}
.pathway-rule svg { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line-200);
  position: sticky; top: 0; z-index: 500;
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none;
}
.brand__mark {
  width: 40px; height: 40px; flex-shrink: 0;
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-navy-950);
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-600);
}

.primary-nav ul {
  display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-ink-900);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--color-navy-950); border-bottom-color: var(--color-gold-400); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.lang-switch ul { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; font-size: 0.8rem; }
.lang-switch a { text-decoration: none; font-weight: 600; padding: 0.2rem 0.4rem; border-radius: var(--radius-sm); }
.lang-switch a.current-lang { background: var(--color-navy-950); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn--gold { background: var(--color-gold-600); color: var(--color-white); }
.btn--gold:hover { background: var(--color-navy-950); color: var(--color-white); }
.btn--outline { border-color: var(--color-navy-950); color: var(--color-navy-950); background: transparent; }
.btn--outline:hover { background: var(--color-navy-950); color: var(--color-white); }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .primary-nav { position: fixed; inset: 64px 0 0 0; background: var(--color-white);
    transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; padding: 2rem var(--gutter); gap: 0.25rem; }
  .primary-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--color-line-200); }
  .header-actions .btn--outline { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--color-navy-950); }
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, var(--color-navy-950) 0%, var(--color-navy-900) 100%);
  color: var(--color-white);
  padding-block: clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-gold-400); margin-bottom: 1rem;
}
.hero h1 { color: var(--color-white); font-size: var(--step-4); }
.hero p.lede { font-size: var(--step-1); color: #D8E1EA; max-width: 34ch; }
.hero__ctas { display: flex; gap: 0.9rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero__badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,155,62,0.4);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}
.hero__badge dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.8rem; margin: 0; font-size: 0.9rem; }
.hero__badge dt { color: var(--color-gold-400); font-weight: 700; }
.hero__badge dd { margin: 0; color: #E6ECF1; }
.hero__badge .seal { width: 46px; margin-bottom: 0.8rem; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   6. SECTIONS / GENERIC BLOCKS
   ========================================================================== */
section.block { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.block--alt { background: var(--color-white); border-top: 1px solid var(--color-line-200); border-bottom: 1px solid var(--color-line-200); }
.eyebrow {
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-gold-600); margin-bottom: 0.6rem; display: block;
}
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }

.card-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(11,46,79,0.25); }
.service-card__num { color: var(--color-gold-600); font-family: var(--font-display); font-size: 1.6rem; }
.service-card a.card-link { text-decoration: none; font-weight: 700; }

.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.process-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.process-list .step-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-navy-950); color: var(--color-gold-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}

blockquote.testimonial {
  background: var(--color-white); border-left: 4px solid var(--color-gold-400);
  border-radius: var(--radius-md); padding: 1.4rem 1.6rem; margin: 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--color-navy-950);
}
blockquote.testimonial footer { font-family: var(--font-body); font-style: normal; font-size: 0.85rem; color: var(--color-ink-600); margin-top: 0.8rem; }

.cta-band {
  background: var(--color-navy-950); color: #fff; text-align: center;
  padding-block: clamp(2.5rem, 5vw, 3.5rem); border-radius: var(--radius-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #D8E1EA; }

/* Disclaimer / compliance notice strip */
.compliance-strip {
  background: var(--color-cream-50);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  font-size: 0.85rem;
  color: var(--color-ink-600);
}
.compliance-strip strong { color: var(--color-navy-950); }

/* Forms */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--color-navy-950); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.7rem 0.8rem; border: 1.5px solid var(--color-line-200);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem; background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--color-gold-600); outline: none;
}
.form-consent { font-size: 0.8rem; color: var(--color-ink-600); }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-navy-950); color: #C9D3DC; padding-block: 3rem 1.5rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #C9D3DC; text-decoration: none; }
.site-footer a:hover { color: var(--color-gold-400); }
.footer-license {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.4rem; padding-top: 1.4rem;
  font-size: 0.78rem; color: #9AAAB8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   8. WORDPRESS CORE ALIGNMENT HELPERS
   ========================================================================== */
.alignwide { max-width: calc(var(--max-w) + 4rem); margin-inline: auto; }
.alignfull { max-width: none; }
.wp-block-group { max-width: var(--max-w); margin-inline: auto; }
.entry-content { max-width: 72ch; }
.entry-content > * { margin-inline: auto; }
