/* =====================================================
   UK Skilled Worker Visa Guide — Shared Stylesheet
   Professional Navy/White Theme
   ===================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0d2240;
  --navy-mid:   #1a3a6b;
  --navy-light: #2e5490;
  --gold:       #c9952a;
  --gold-light: #f0c060;
  --white:      #ffffff;
  --off-white:  #f5f7fa;
  --light-grey: #e8ecf2;
  --mid-grey:   #8a9ab5;
  --dark-grey:  #3d4f6b;
  --text:       #1e2d45;
  --success:    #1a7a4a;
  --warning:    #b85c00;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(13,34,64,.10);
  --shadow-lg:  0 6px 28px rgba(13,34,64,.15);
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

a { color: var(--navy-mid); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

img { max-width: 100%; display: block; }

/* --- Typography --- */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }
strong { font-weight: 600; }

/* --- Layout utilities --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-alt { background: var(--off-white); }
.text-centre { text-align: center; }
.text-right  { text-align: right; }
.flex        { display: flex; gap: 1.5rem; }
.flex-wrap   { flex-wrap: wrap; }
.flex-centre { align-items: center; }
.col         { flex: 1 1 0; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.mt1 { margin-top: .5rem; }
.mt2 { margin-top: 1rem; }
.mt3 { margin-top: 2rem; }
.mb1 { margin-bottom: .5rem; }
.mb2 { margin-bottom: 1rem; }
.mb3 { margin-bottom: 2rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: .72rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }

/* --- Top bar --- */
.topbar {
  background: var(--navy);
  color: var(--mid-grey);
  font-size: .8rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--navy-mid);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--mid-grey); }
.topbar a:hover { color: var(--gold-light); }

/* --- Navigation --- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none !important;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.logo-text strong { color: var(--white); font-size: 1rem; font-weight: 700; }
.logo-text span   { color: var(--gold-light); font-size: .72rem; letter-spacing: .03em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  display: block;
  padding: .5rem .85rem;
  color: #c8d8f0;
  font-size: .88rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none !important;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: var(--navy-mid); }
.nav-cta .btn-primary { font-size: .85rem; padding: .5rem 1.2rem; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e4080 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(201,149,42,.25);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero p  { color: #c8d8f0; font-size: 1.05rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.hero-stat { margin-bottom: 1.4rem; }
.hero-stat:last-child { margin-bottom: 0; }
.hero-stat .label { font-size: .75rem; color: var(--gold-light); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hero-stat .value { font-size: 1.6rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.hero-stat .sub   { font-size: .82rem; color: #9ab4d4; margin-top: .2rem; }

/* --- Section headings --- */
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading .eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.section-heading p { color: var(--dark-grey); max-width: 600px; margin: .6rem auto 0; }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p  { color: var(--dark-grey); font-size: .92rem; margin-bottom: 0; }

/* --- Alert / Notice banners --- */
.alert {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid;
  display: flex; gap: .75rem; align-items: flex-start;
}
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
.alert-info    { background: #e8f0fc; border-color: var(--navy-mid); }
.alert-success { background: #e6f7ef; border-color: var(--success); }
.alert-warning { background: #fff3e0; border-color: var(--warning); }
.alert h4 { margin-bottom: .25rem; font-size: .95rem; }
.alert p  { margin-bottom: 0; font-size: .9rem; }

/* --- Threshold table / points table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
}
.data-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--light-grey);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--off-white); }
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-green  { background: #d4f0e2; color: var(--success); }
.badge-amber  { background: #fde9cc; color: var(--warning); }
.badge-blue   { background: #dce8fb; color: var(--navy-mid); }
.badge-red    { background: #fde0e0; color: #c0392b; }

/* --- Steps / process --- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.step { position: relative; padding: 1.75rem; background: var(--white); border: 1px solid var(--light-grey); border-radius: 12px; box-shadow: var(--shadow); }
.step-number {
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1rem; margin-bottom: .4rem; }
.step p  { font-size: .88rem; color: var(--dark-grey); margin-bottom: 0; }

/* --- Checklist product cards --- */
.product-card {
  background: var(--white);
  border: 2px solid var(--light-grey);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card.featured { border-color: var(--gold); }
.product-header {
  background: var(--navy);
  color: var(--white);
  padding: 1.75rem;
}
.product-header.gold-bg { background: linear-gradient(135deg, var(--gold) 0%, #a07020 100%); }
.product-header h3 { color: var(--white); font-size: 1.3rem; margin-bottom: .25rem; }
.product-header p  { color: rgba(255,255,255,.75); font-size: .88rem; margin-bottom: 0; }
.product-price { font-size: 2.2rem; font-weight: 700; color: var(--white); margin: .75rem 0 0; }
.product-price small { font-size: .9rem; font-weight: 400; opacity: .8; }
.product-body { padding: 1.75rem; flex: 1; }
.product-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.product-features li { display: flex; gap: .6rem; align-items: flex-start; padding: .4rem 0; font-size: .9rem; border-bottom: 1px solid var(--light-grey); }
.product-features li:last-child { border-bottom: none; }
.product-features .tick { color: var(--success); font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.product-footer { padding: 0 1.75rem 1.75rem; }
.product-footer .btn { width: 100%; text-align: center; }

/* --- News articles --- */
.news-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.news-tag {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag-policy      { background: #dce8fb; color: var(--navy-mid); }
.tag-salary      { background: #d4f0e2; color: var(--success); }
.tag-employer    { background: #fde9cc; color: var(--warning); }
.tag-eligibility { background: #f0e2fd; color: #6b2ea0; }
.news-body { padding: 1.25rem 1.5rem; }
.news-body .meta { font-size: .78rem; color: var(--mid-grey); margin-bottom: .5rem; }
.news-body h3  { font-size: 1.05rem; margin-bottom: .5rem; }
.news-body p   { font-size: .88rem; color: var(--dark-grey); margin-bottom: .75rem; }
.news-banner   { background: var(--navy); color: var(--gold-light); font-size: .8rem; padding: .4rem .85rem; }

/* --- Sidebar layout (for content pages) --- */
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.sidebar-card {
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  padding: 1.4rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h4 { color: var(--navy); margin-bottom: .75rem; font-size: .95rem; border-bottom: 2px solid var(--gold); padding-bottom: .4rem; }
.sidebar-card ul { font-size: .85rem; padding-left: 1.2rem; }
.sidebar-card li { margin-bottom: .4rem; }

/* --- Page hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3rem 0;
  border-bottom: 4px solid var(--gold);
}
.page-hero h1  { color: var(--white); margin-bottom: .5rem; }
.page-hero p   { color: #c8d8f0; font-size: 1.05rem; margin-bottom: 0; max-width: 640px; }
.breadcrumb    { font-size: .8rem; color: var(--gold-light); margin-bottom: .6rem; }
.breadcrumb a  { color: var(--gold-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: #8a9ab5;
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { font-size: .88rem; max-width: 280px; margin-top: .75rem; color: var(--mid-grey); }
.footer-col h5 { color: var(--white); font-size: .88rem; margin-bottom: .85rem; text-transform: uppercase; letter-spacing: .07em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a  { color: var(--mid-grey); font-size: .85rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem;
  color: var(--mid-grey);
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom a { color: var(--mid-grey); }
.footer-bottom a:hover { color: var(--gold-light); }
.disclaimer-banner {
  background: rgba(201,149,42,.12);
  border: 1px solid rgba(201,149,42,.3);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-top: 1.5rem;
  font-size: .78rem;
  color: #b8a060;
  text-align: center;
}

/* --- Update ticker --- */
.update-bar {
  background: var(--navy-mid);
  color: var(--gold-light);
  padding: .55rem 0;
  font-size: .82rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.update-bar strong { color: var(--white); }

/* --- Mobile --- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .hero-inner  { grid-template-columns: 1fr; }
  .hero-card   { display: none; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 1rem; gap: .25rem; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .steps { grid-template-columns: 1fr; }
}
