/*
Theme Name: UKIMMI Advisory
Theme URI: https://ukimmi.com/
Author: UKIMMI
Description: Premium commercial website for UK immigration advisory, route planning, and client intake.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ukimmi-advisory
*/

:root {
  --ink: #101923;
  --navy: #07182c;
  --blue: #143a5a;
  --gold: #b89455;
  --burgundy: #8c2634;
  --mist: #f5f7f9;
  --line: #dde5ec;
  --muted: #657382;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(9, 24, 43, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.62;
}
a { color: inherit; text-decoration: none; }
.text-link { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(184,148,85,.9);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  color: var(--white);
  background: var(--burgundy);
  border-radius: 5px;
  padding: 10px 14px;
  font-weight: 850;
}
.skip-link:focus {
  transform: translateY(0);
}

.wrap { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: 0; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: var(--white); background: var(--navy); border-radius: 6px; font-size: 14px;
}
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.05; }
.nav-links { display: flex; align-items: center; gap: 22px; color: #2c3e50; font-size: 14px; font-weight: 720; }
.nav-links a:hover { color: var(--burgundy); }
.nav-links a[aria-current="page"] {
  color: var(--burgundy);
}
.nav-links a[aria-current="page"]:not(.btn)::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 5px;
  background: var(--gold);
  border-radius: 999px;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.language-switcher a {
  min-width: 32px;
  padding: 5px 7px;
  color: var(--muted);
  border-radius: 3px;
  text-align: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
}
.language-switcher a[aria-current="page"] {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(9,24,43,.12);
}
.nav-links .language-switcher a[aria-current="page"]::after { display: none; }
.mobile-assessment { display: none; color: var(--white); background: var(--burgundy); border-radius: 5px; padding: 10px 13px; font-size: 13px; font-weight: 850; }
.mobile-menu { display: none; }

.breadcrumb-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  list-style: none;
  color: #536474;
  font-size: 13px;
  font-weight: 750;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: #91a0ad;
}
.breadcrumbs a {
  color: var(--blue);
}
.breadcrumbs a:hover {
  color: var(--burgundy);
}
.breadcrumbs span {
  color: var(--muted);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 17px; border-radius: 5px;
  border: 1px solid transparent; font-weight: 800; line-height: 1.2;
}
.btn-primary { color: var(--white); background: var(--burgundy); box-shadow: 0 13px 26px rgba(140,38,52,.22); }
.btn-secondary { color: var(--white); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.11); }
.btn-light { color: var(--navy); background: var(--white); border-color: var(--line); }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(7,24,44,.96), rgba(7,24,44,.84) 44%, rgba(7,24,44,.22) 78%), var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero-inner { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 86px 0 112px; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero h1, .subhero h1 { max-width: 850px; margin: 16px 0 20px; font-size: clamp(44px, 6.4vw, 82px); line-height: .98; letter-spacing: 0; }
.hero p, .subhero p { max-width: 720px; margin: 0 0 30px; color: rgba(255,255,255,.84); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 780px;
  margin-top: 24px;
}
.hero-proof-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.proof-strip {
  width: min(1180px, calc(100% - 44px)); margin: -54px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.proof-item { min-height: 120px; padding: 24px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; color: var(--navy); font-size: 22px; line-height: 1.1; }
.proof-item span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

.summary-band {
  padding: 52px 0 36px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.summary-panel {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 28px;
  align-items: stretch;
}
.summary-copy {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.summary-copy h2 {
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
}
.summary-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.summary-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.summary-facts article {
  min-height: 188px;
  padding: 22px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
}
.summary-facts strong {
  display: block;
  color: var(--white);
  font-size: 18px;
  line-height: 1.16;
}
.summary-facts span {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,.74);
  font-size: 14px;
}

.section { padding: 96px 0; }
.section[id] { scroll-margin-top: 92px; }
.section-alt { background: var(--mist); }
.section-head { max-width: 850px; margin-bottom: 38px; }
.section-head h2 { margin: 8px 0 13px; color: var(--navy); font-size: clamp(31px, 4vw, 50px); line-height: 1.06; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 42px; align-items: start; }
.grid-3 > *, .grid-2 > *, .split > *, .article-layout > *, .summary-panel > *, .summary-facts > * { min-width: 0; }
.card, .route-card, .price-card, .article-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 26px;
  min-width: 0;
}
.card.featured, .price-card.featured { border-color: rgba(184,148,85,.55); box-shadow: var(--shadow); }
.card h3, .route-card h3, .price-card h3, .article-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 21px; line-height: 1.18; }
.card p, .route-card p, .price-card p, .article-card p { margin: 0; color: var(--muted); }
.tag {
  display: inline-flex; margin-bottom: 16px; color: var(--blue); background: #edf3f8;
  border: 1px solid #d5e3ee; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 850;
}

.dark-panel { padding: 34px; color: var(--white); background: linear-gradient(135deg, var(--navy), #163b5b); border-radius: 7px; }
.dark-panel h2, .dark-panel h3 { color: var(--white); margin-top: 8px; }
.dark-panel p { color: rgba(255,255,255,.78); }

.steps { display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start;
  padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 7px;
}
.step-number { width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); background: var(--blue); border-radius: 6px; font-weight: 900; font-size: 13px; }
.step h3 { margin: 0 0 4px; color: var(--navy); font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

.table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.comparison-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table th { color: var(--navy); background: #eef3f7; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.comparison-table tr:last-child td { border-bottom: 0; }

.route-groups { display: grid; gap: 24px; }
.route-group { background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 28px; }
.route-group h2 { margin: 0 0 6px; color: var(--navy); font-size: 28px; }
.route-group > p { margin: 0 0 20px; color: var(--muted); }
.route-list { display: grid; gap: 14px; }
.route-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.route-row:first-child { border-top: 0; padding-top: 0; }
.route-row strong { color: var(--navy); }
.route-row p { margin: 0 0 7px; color: var(--muted); }
.route-row span { display: block; padding: 9px 11px; color: #33475b; background: #f4f7fa; border-left: 3px solid var(--gold); font-size: 13px; }

.price { margin: 16px 0; color: var(--navy); font-size: 38px; font-weight: 900; }
.price small { color: var(--muted); font-size: 14px; font-weight: 700; }
.checklist { padding: 0; margin: 18px 0 0; list-style: none; color: var(--muted); }
.checklist li { position: relative; padding: 8px 0 8px 24px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.22);
  border-radius: 5px; color: var(--white); background: rgba(255,255,255,.08); font: inherit;
}
.form-grid option { color: var(--ink); }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: rgba(255,255,255,.62); }
.form-grid textarea, .form-grid .full { grid-column: 1 / -1; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.72); font-size: 13px; }
.consent input { width: auto; min-height: 0; margin-top: 5px; }
.consent a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.assessment-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 4px;
}
.assessment-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.subhero { padding: 96px 0 78px; color: var(--white); background: #0b2943; }
.subhero h1 { font-size: clamp(40px, 5.2vw, 68px); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 18px 20px; }
.faq summary { cursor: pointer; color: var(--navy); font-weight: 850; }
.faq p { margin: 12px 0 0; color: var(--muted); }

.playbook {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.playbook-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 26px;
  min-width: 0;
}

.playbook-item h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.15;
}

.playbook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  color: #31475e;
  background: #eef3f7;
  border: 1px solid #d7e3ec;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 28px;
  align-items: start;
}

.article-index {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px;
}

.article-index strong {
  display: block;
  color: var(--navy);
  margin-bottom: 12px;
}

.article-index a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.article-index a:first-of-type {
  border-top: 0;
}

.cta-band { padding: 76px 0; color: var(--white); background: var(--navy); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.cta-inner h2 { margin: 0 0 8px; font-size: 38px; line-height: 1.08; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.76); }

.related-band {
  padding: 64px 0;
  background: #f8fafc;
  border-top: 1px solid var(--line);
}
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}
.related-head h2 {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.related-card {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.related-card:hover {
  border-color: rgba(184,148,85,.72);
  box-shadow: 0 16px 34px rgba(9,24,43,.08);
}
.related-card span {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.16;
}
.related-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.rule-update {
  padding: 30px 0;
  background: #eef3f5;
  border-top: 1px solid #d7e1e6;
  border-bottom: 1px solid #d7e1e6;
}
.rule-update-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.rule-update h2 {
  margin: 6px 0 8px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.2;
}
.rule-update p {
  max-width: 820px;
  margin: 0;
  color: #4d5f6d;
}
.rule-update .btn { flex: 0 0 auto; }
.rule-update-stack > p { max-width: 920px; }
.official-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 22px;
  border-top: 1px solid #cdd9df;
}
.official-action {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 17px 0;
  border-bottom: 1px solid #cdd9df;
}
.official-action strong { color: var(--navy); font-size: 16px; line-height: 1.25; }
.official-action span { color: #536674; font-size: 14px; }
.official-action .official-source { color: var(--burgundy); font-size: 12px; font-weight: 850; }
.official-action:hover strong { color: var(--burgundy); }

.decision-band {
  padding: 52px 0;
  color: var(--white);
  background: linear-gradient(135deg, #07182c, #143a5a);
  border-top: 1px solid rgba(255,255,255,.08);
}
.decision-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.decision-inner h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}
.decision-inner p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.74);
}
.decision-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.decision-links a {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
}
.decision-links a:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(184,148,85,.65);
}
.decision-links span {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 750;
}
.decision-links strong {
  color: var(--white);
  font-size: 18px;
  line-height: 1.15;
}

.site-footer { padding: 52px 0; color: rgba(255,255,255,.72); background: #050f1d; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .72fr 1fr 1.12fr 1fr .95fr; gap: 28px; align-items: start; }
.site-footer strong { display: block; color: var(--white); margin-bottom: 10px; }
.site-footer p { margin: 0; }
.footer-note { margin-top: 16px !important; color: rgba(255,255,255,.58); font-size: 13px; }
.footer-nav a { display: inline-block; margin: 0 0 7px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.35; }
.footer-nav a:hover { color: var(--white); }

@media (max-width: 960px) {
  .nav { position: relative; height: auto; min-height: 72px; gap: 10px; }
  .nav-links { display: none; }
  .mobile-assessment { display: inline-flex; margin-left: auto; }
  .mobile-menu { position: relative; display: block; }
  .mobile-menu summary {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 11px;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu-icon,
  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    width: 16px;
    height: 2px;
    display: block;
    background: currentColor;
    content: "";
  }
  .mobile-menu-icon { position: relative; }
  .mobile-menu-icon::before { position: absolute; top: -5px; }
  .mobile-menu-icon::after { position: absolute; top: 5px; }
  .mobile-menu[open] .mobile-menu-icon { background: transparent; }
  .mobile-menu[open] .mobile-menu-icon::before { top: 0; transform: rotate(45deg); }
  .mobile-menu[open] .mobile-menu-icon::after { top: 0; transform: rotate(-45deg); }
  .mobile-menu-panel {
    position: absolute;
    z-index: 50;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 28px));
    display: grid;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
  }
  .mobile-menu-panel a {
    padding: 12px 13px;
    color: var(--navy);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 780;
  }
  .mobile-menu-panel a:hover,
  .mobile-menu-panel a[aria-current="page"] { color: var(--burgundy); background: #f8fafc; }
  .mobile-language-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 4px;
    padding: 9px 4px 2px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .mobile-menu-panel .mobile-language-switcher a {
    min-width: 0;
    padding: 10px;
    font-size: 13px;
  }
  .mobile-menu-panel .mobile-language-switcher a[aria-current="page"] {
    color: var(--navy);
    background: #eef3f5;
    box-shadow: none;
  }
  .hero { min-height: 720px; background-image: linear-gradient(90deg, rgba(7,24,44,.96), rgba(7,24,44,.72)), var(--hero-image); }
  .proof-strip, .summary-panel, .summary-facts, .grid-3, .grid-2, .split, .article-layout, .related-grid, .decision-inner, .decision-links, .footer-grid { grid-template-columns: 1fr; }
  .related-head { align-items: flex-start; flex-direction: column; }
  .article-index { position: static; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .route-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .rule-update-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .official-actions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap, .hero-inner, .proof-strip { width: min(100% - 28px, 1180px); }
  .brand small { display: none; }
  .hero { min-height: calc(100svh - 72px); }
  .hero-inner { padding: 52px 0 90px; }
  .hero h1 { margin-top: 13px; font-size: 40px; line-height: 1.02; }
  .hero p { margin-bottom: 24px; font-size: 17px; }
  .hero-proof-points { display: none; }
  .section { padding: 70px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .mobile-menu summary span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
