/* LowTaxResidency — home page styles
   Palette: navy + white + one green accent. No external assets. */

:root {
  --navy-900: #08182b;
  --navy-800: #0d2440;
  --navy-700: #143255;
  --navy-500: #2b5580;
  --green-600: #147d52;
  --green-500: #1a9c67;
  --green-100: #e6f5ee;
  --white: #ffffff;
  --off-white: #f5f8fb;
  --text: #16222f;
  --text-muted: #526272;
  --border: #dbe3ec;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(8, 24, 43, 0.07);
  --shadow-lg: 0 12px 30px rgba(8, 24, 43, 0.12);
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--green-600);
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-decoration: none;
}

.logo:hover,
.logo:focus-visible {
  color: var(--navy-700);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}

.site-nav a {
  display: block;
  padding: 0.25rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green-600);
  border-bottom-color: var(--green-500);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--green-500);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(26, 156, 103, 0.28);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--green-600);
}

.btn--ghost {
  border: 1px solid var(--navy-500);
  color: var(--navy-700);
  background: var(--white);
  cursor: default;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.hero-inner {
  max-width: 820px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-text {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.3rem);
  color: #d6e2ef;
  max-width: 60ch;
}

.hero .btn {
  margin-top: 2rem;
}

/* ---------- Shared section styles ---------- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--tinted {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  font-weight: 700;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.9rem;
  border-radius: 2px;
  background: var(--green-500);
}

.section-lead {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  font-weight: 700;
  font-size: 1.125rem;
}

.step h3 {
  font-size: 1.1875rem;
  font-weight: 600;
}

.step p {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

/* ---------- Countries ---------- */

.country-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.country-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.country-card:hover {
  border-color: var(--navy-500);
  box-shadow: var(--shadow-lg);
}

.country-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.country-label {
  align-self: flex-start;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-600);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.country-card .btn {
  margin-top: auto;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
}

/* ---------- Why us ---------- */

.reasons {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.reason h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  padding-left: 1rem;
  border-left: 4px solid var(--green-500);
}

.reason p {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
  max-width: 820px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-900);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-600);
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item summary:hover {
  color: var(--green-600);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: -3px;
  border-radius: var(--radius);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-answer {
  padding: 1.15rem 1.5rem 1.35rem 3.6rem;
  color: var(--text-muted);
  max-width: 70ch;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: #c8d6e5;
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
  font-size: 0.9375rem;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.disclaimer {
  max-width: 70ch;
  line-height: 1.7;
}

.copyright {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200, 214, 229, 0.2);
  color: #9fb3c8;
}

/* ---------- Focus visibility ---------- */

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
}

/* ---------- Larger screens ---------- */

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

@media (min-width: 860px) {
  body {
    font-size: 1.125rem;
  }

  .country-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 539px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    gap: 0.25rem 1rem;
  }

  .site-nav a {
    font-size: 0.9375rem;
  }

  .hero .btn {
    width: 100%;
  }
}

/* ---------- Motion preference ---------- */

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

  * {
    transition: none !important;
  }
}
