/* Best Immigration Services, Inc. — shared stylesheet */

:root {
  --navy: #0b3d6b;
  --navy-dark: #08284a;
  --blue: #1e88c7;
  --blue-light: #4fb3e8;
  --sky: #eaf6ff;
  --ink: #1c2b3a;
  --muted: #5b6b7b;
  --border: #dbe6ef;
  --bg: #ffffff;
  --bg-alt: #f4f9fc;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(11, 61, 107, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 61, 107, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

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

p { margin: 0 0 1em; color: var(--ink); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { height: 46px; width: auto; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

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

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  text-decoration: none;
  border-bottom-color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 11px;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--navy);
  color: #fff;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--navy);
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-dark); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--navy);
}
.btn-outline:hover { background: var(--sky); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; width: 20px; height: 2px; background: var(--navy); }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; width: 20px; height: 2px; background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #123f6e 55%, var(--blue) 100%);
  color: #fff;
  padding: 76px 0;
}

.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }

.hero h1 { color: #fff; }
.hero p.lead { color: #dcecf9; font-size: 1.1rem; max-width: 46ch; }

.hero-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.hero .btn-primary:hover { background: var(--sky); }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.12); }

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(4px);
}

.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.hero-card li::before { content: "✓"; color: var(--blue-light); font-weight: 900; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat .num { font-family: 'Georgia', serif; font-size: 2.2rem; color: var(--navy); font-weight: 700; }
.stat .label { color: var(--muted); font-size: 0.92rem; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

.service-num {
  font-family: 'Georgia', serif;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe3f3; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.info-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row .k { min-width: 90px; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.info-row .v { color: var(--ink); }

form.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fbfdfe;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,136,199,0.15);
}
.field textarea { min-height: 130px; resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
}

.form-success {
  display: none;
  background: #e9f7ef;
  border: 1px solid #bfe6cf;
  color: #206b3c;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.form-success.show { display: block; }

/* ---------- Resource cards ---------- */
.res-card { border-left: 4px solid var(--blue); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cfe0ee;
  padding: 48px 0 22px;
  font-size: 0.88rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-top h4 { color: #fff; font-family: inherit; font-size: 0.95rem; margin-bottom: 12px; }
.footer-top a { color: #cfe0ee; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 36px; }
.footer-brand span { font-family: 'Georgia', serif; font-weight: 700; color: #fff; }

.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: background .15s ease;
}
.social-links a:hover { background: rgba(255,255,255,0.22); }
.social-links svg { width: 16px; height: 16px; fill: currentColor; }

.legal-block {
  padding-top: 26px;
  display: grid;
  gap: 14px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.7;
}

.legal-block p,
.legal-block span {
  color: #ffffff;
  font-weight: 600;
}

.legal-block strong {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.98rem;
  display: inline-block;
  margin-bottom: 4px;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #8fa5ba;
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 24px 20px;
    gap: 14px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .header-actions .btn { display: none; }
  .stats { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
