/* ========================================
   UK Visa Path - Main Stylesheet
   Colorful, friendly, mobile-first design
   ======================================== */

:root {
  /* Primary - Teal */
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #22d3ee;

  /* Accent - Orange */
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-light: #fb923c;

  /* Status colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #6366f1;
  --info-light: #e0e7ff;

  /* Neutrals */
  --bg: #fafaf9;
  --bg-white: #ffffff;
  --text: #1c1917;
  --text-light: #57534e;
  --text-muted: #a8a29e;
  --border: #e7e5e4;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0891b2 0%, #6366f1 100%);
  --gradient-hero: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #164e63 100%);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', var(--font-sans);

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: clamp(1.875rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin-bottom: var(--space-md); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow { max-width: var(--container-narrow); }

/* ========================================
   Header
   ======================================== */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.nav { display: none; }

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
}

.nav-link:hover, .nav-link.active { color: var(--primary); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  padding: var(--space-lg);
  z-index: 99;
  overflow-y: auto;
}

.mobile-nav.active { display: block; }

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-md);
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-md);
}

.mobile-nav-link:hover { background: var(--bg); }

@media (min-width: 768px) {
  .nav { display: block; }
  .mobile-menu-btn, .mobile-nav { display: none !important; }
}

/* ========================================
   Hero
   ======================================== */
.hero {
  background: var(--gradient-hero);
  color: white;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(15deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.hero h1 { color: white; margin-bottom: var(--space-lg); }

.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 640px) {
  .hero-cta { flex-direction: row; justify-content: center; }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.btn-sm { padding: var(--space-sm) var(--space-md); font-size: 0.875rem; }
.btn-lg { padding: var(--space-lg) var(--space-2xl); font-size: 1.125rem; }

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.card-icon.primary { background: var(--info-light); }
.card-icon.success { background: var(--success-light); }
.card-icon.warning { background: var(--warning-light); }
.card-icon.accent { background: #ffedd5; }

.card h3 { margin-bottom: var(--space-sm); }
.card p { color: var(--text-light); margin-bottom: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary);
  font-weight: 500;
  margin-top: var(--space-md);
}

.card-link:hover { gap: var(--space-sm); }

/* ========================================
   Sections
   ======================================== */
.section { padding: var(--space-3xl) 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-header p { color: var(--text-light); font-size: 1.125rem; }

.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

/* Grid */
.grid { display: grid; gap: var(--space-lg); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

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

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   Stats
   ======================================== */
.stats {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.stat-item p { color: var(--text-light); font-size: 0.875rem; margin: 0; }

/* ========================================
   Alert Banner
   ======================================== */
.alert-banner {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.alert-banner-icon { font-size: 1.5rem; flex-shrink: 0; }
.alert-banner h4 { margin-bottom: var(--space-xs); }
.alert-banner p { color: var(--text-light); margin: 0; font-size: 0.9375rem; }

/* ========================================
   Feature Cards
   ======================================== */
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-content h4 { margin-bottom: var(--space-xs); }
.feature-content p { color: var(--text-light); font-size: 0.9375rem; margin: 0; }

/* ========================================
   Calculator
   ======================================== */
.calculator {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.calc-form { display: grid; gap: var(--space-lg); }

.form-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-group label { font-weight: 500; }

.form-group input,
.form-group select {
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-sans);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.calc-result {
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: var(--space-lg);
}

.calc-result h3 {
  color: white;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: var(--space-sm);
}

.calc-result .amount { font-size: 2.5rem; font-weight: 700; }
.calc-result .amount-secondary { font-size: 1.25rem; opacity: 0.9; margin-top: var(--space-sm); }

.calc-breakdown {
  background: var(--bg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.calc-breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.calc-breakdown-item:last-child {
  border-bottom: none;
  font-weight: 600;
  color: var(--primary);
}

/* ========================================
   FAQ
   ======================================== */
.faq-list { display: flex; flex-direction: column; gap: var(--space-md); }

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--bg); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.active .faq-answer { display: block; }

/* ========================================
   Checklist
   ======================================== */
.checklist { list-style: none; }

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.checklist-item:last-child { border-bottom: none; }

.checklist-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.checklist-checkbox:hover { border-color: var(--primary); }

.checklist-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.checklist-text { flex: 1; }
.checklist-text.checked { text-decoration: line-through; color: var(--text-muted); }

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--text);
  color: white;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p { color: rgba(255, 255, 255, 0.7); margin-top: var(--space-md); }

.footer h4 {
  color: white;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: white; }

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; margin: 0; }

/* ========================================
   Page Header (inner pages)
   ======================================== */
.page-header {
  background: var(--gradient-hero);
  color: white;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.page-header h1 { color: white; margin-bottom: var(--space-sm); }
.page-header p { opacity: 0.9; max-width: 600px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  opacity: 0.8;
}

.breadcrumb a { color: white; opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; color: white; }

/* ========================================
   Content (guide pages)
   ======================================== */
.content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

.content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.content h3 { margin-top: var(--space-xl); margin-bottom: var(--space-md); }

.content ul, .content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.content li { margin-bottom: var(--space-sm); }

/* Info boxes */
.info-box {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
}

.info-box.tip { background: var(--success-light); border-left: 4px solid var(--success); }
.info-box.warning { background: var(--warning-light); border-left: 4px solid var(--warning); }
.info-box.danger { background: var(--danger-light); border-left: 4px solid var(--danger); }
.info-box h4 { margin-bottom: var(--space-sm); }
.info-box p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrapper { overflow-x: auto; margin: var(--space-lg) 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }

th, td { padding: var(--space-md); text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg); font-weight: 600; }
tr:hover { background: var(--bg); }

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }

.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-lg); }
.mt-3 { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-lg); }

.hidden { display: none; }

@media print {
  .header, .footer, .btn, .no-print { display: none !important; }
  body { font-size: 12pt; color: black; background: white; }
}
