/* =============================
   UK VISA GUIDE — GLOBAL STYLES
   ============================= */

:root {
  --navy: #0d1f3c;
  --navy-deep: #081426;
  --royal: #1a3a6e;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f7f4ed;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6680;
  --border: #dde3ef;
  --success: #1a7a4a;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13,31,60,0.10);
  --shadow-lg: 0 12px 48px rgba(13,31,60,0.16);
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.22; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =================== HEADER =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8,20,38,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-flag { font-size: 26px; }

.logo-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-sub {
  display: block;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  padding: 6px 14px;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(201,168,76,0.12);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  font-weight: 600;
  padding: 7px 18px;
}

.nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy-deep) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-deep);
  padding: 12px 28px 20px;
  border-top: 1px solid rgba(201,168,76,0.12);
}

.mobile-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 500;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* =================== HERO =================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--royal) 55%, #1e4a8a 100%);
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 28px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 80%, rgba(30,74,138,0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  background-size: 30px 30px;
}

.hero-content {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  flex: 1;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 34px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 42px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-display); font-size: 2rem; color: var(--gold-light); font-weight: 700; line-height: 1; }
.stat span { font-size: 0.72rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

.hero-visual {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.passport-card {
  width: 220px;
  background: linear-gradient(145deg, #1e3a6a, #0d1f3c);
  border-radius: 18px;
  padding: 24px 22px;
  border: 1px solid rgba(201,168,76,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 12px)); }
}

.passport-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.passport-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,168,76,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(201,168,76,0.2);
  margin-bottom: 16px;
}

.chip-icon { font-size: 22px; color: var(--gold); }
.chip-text { display: flex; flex-direction: column; }
.chip-text span:first-child { font-size: 0.65rem; font-weight: 600; color: var(--white); }
.chip-text span:last-child { font-size: 0.55rem; color: rgba(255,255,255,0.5); }

.passport-lines { display: flex; flex-direction: column; gap: 6px; }
.pline { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; }
.pline.short { width: 70%; }
.pline.shorter { width: 50%; }

/* =================== SECTIONS =================== */
.section { padding: 90px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 500px;
  margin: 0 auto;
}

.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.65); }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-tag.alt { color: var(--gold-light); background: rgba(201,168,76,0.12); }

/* =================== PHASE GRID =================== */
.process-overview { background: var(--cream); }

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.phase-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.phase-card::before {
  content: attr(data-step);
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(13,31,60,0.04);
  line-height: 1;
}

.phase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.3);
}

.phase-icon { font-size: 2rem; margin-bottom: 14px; }

.phase-card h3 {
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
}

.phase-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.phase-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--royal);
  letter-spacing: 0.01em;
  transition: var(--transition);
}
.phase-link:hover { color: var(--gold); }

/* =================== VISA PREVIEW =================== */
.visa-preview {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--royal) 100%);
  position: relative;
  overflow: hidden;
}

.visa-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 20%, rgba(201,168,76,0.07) 0%, transparent 60%);
}

.visa-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

.visa-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: block;
}

.visa-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

.visa-card.featured {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.35);
}

.visa-emoji { font-size: 2rem; display: block; margin-bottom: 12px; }

.visa-card h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 700;
}

.visa-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.58);
  margin-bottom: 14px;
  line-height: 1.6;
}

.visa-duration {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}

.more-card { border-style: dashed; }
.more-card .visa-duration { color: rgba(255,255,255,0.5); background: transparent; border-color: transparent; font-size: 0.85rem; }

/* =================== TIMELINE BARS =================== */
.timeline-section { background: var(--white); }

.timeline-intro { margin-bottom: 48px; }
.timeline-intro h2 { font-size: 2rem; color: var(--navy); margin-bottom: 10px; }
.timeline-intro p { color: var(--text-muted); font-size: 1rem; }

.timeline-bars { display: flex; flex-direction: column; gap: 18px; }

.tbar { display: flex; align-items: center; gap: 20px; }
.tbar-label { font-size: 0.88rem; font-weight: 600; color: var(--navy); min-width: 160px; text-align: right; }
.tbar-track { flex: 1; height: 36px; background: var(--cream); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }

.tbar-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--royal) 0%, #2a5aa0 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  min-width: fit-content;
  animation: growBar 1.2s ease-out forwards;
  transform-origin: left;
}

@keyframes growBar {
  from { width: 0; }
  to { width: var(--w); }
}

/* =================== CTA BANNER =================== */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #a07828 100%);
  padding: 72px 0;
}

.cta-content { text-align: center; }
.cta-content h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--navy-deep); margin-bottom: 12px; }
.cta-content p { color: rgba(8,20,38,0.7); font-size: 1.05rem; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =================== FOOTER =================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 28px 40px;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(255,255,255,0.45);
}

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* =================== PAGE HEADER =================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--royal) 100%);
  padding: 72px 28px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 120%, rgba(201,168,76,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 14px;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
  position: relative;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* =================== UTILITY =================== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
  .visa-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 660px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .phase-grid { grid-template-columns: 1fr; }
  .visa-cards { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px; }
  .hero-stats { gap: 14px; }
  .stat strong { font-size: 1.5rem; }
  .tbar-label { min-width: 110px; font-size: 0.78rem; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .section { padding: 60px 0; }
}
