
/* cf24-fonts (plik) */
/* Work Sans, self-hosted (SIL Open Font License 1.1).
   Google serves one variable woff2 per subset covering every weight we use, so two files replace the
   render-blocking request to fonts.googleapis.com plus the follow-on connection to fonts.gstatic.com.
   The latin file is preloaded from functions.php, which removes the layout shift Lighthouse attributed to the
   web font swap on 2026-09-11 (CLS 0.19 on a country page). latin-ext carries the Polish, Czech, Hungarian,
   Romanian and Turkish characters the country pages use, so it must stay. */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://companyformation24.com/wp-content/themes/cf24/css/../fonts/work-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://companyformation24.com/wp-content/themes/cf24/css/../fonts/work-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* cf24-theme (plik) */
/* ═══════════════════════════════════════════════════════════════
   CF24 Theme — CompanyFormation24.com
   Version: 1.0.0
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy: #030840;
  --navy2: #07284B;
  --blue: #00BEFA;
  --gold: #DDC182;
  --gold2: #7B5621;
  --bg: #F4F6F9;
  --text: #3a3a3a;
  --border: #e5e5e5;
}

/* ─── Skip-to-content link (WCAG) ──────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: -9999px;
  background: var(--gold); color: var(--navy);
  padding: .8rem 1.5rem; font-weight: 700; font-size: .9rem;
  text-decoration: none; border-radius: 0 0 4px 0; z-index: 999999;
  transition: none;
}
.skip-link:focus { left: 0; top: 0; outline: 3px solid var(--blue); outline-offset: 2px; }

/* ─── Respect prefers-reduced-motion (WCAG AAA) ────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Work Sans', sans-serif; color: var(--text); line-height: 1.7; background: #fff; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.25; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
h4 { font-size: 1.05rem; }
.label { text-transform: uppercase; font-size: .75rem; letter-spacing: 3px; color: var(--blue); font-weight: 600; margin-bottom: .75rem; display: block; }
.label.gold { color: var(--gold); }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn { display: inline-block; padding: .9rem 1.8rem; font-weight: 600; font-size: .95rem; border-radius: 4px; transition: all .2s; cursor: pointer; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold2); color: #fff; border-color: var(--gold2); }
.btn-outline-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-w:hover { background: #fff; color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: #0090c0; border-color: #0090c0; }

/* ─── Top Bar ──────────────────────────────────────────────── */
.topbar { background: var(--navy); color: rgba(255,255,255,.85); font-size: .8rem; padding: .5rem 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--gold); }
.topbar .sep { opacity: .4; margin: 0 .6rem; }

/* ─── Header (compact, matching shelf24) ────────────────── */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; transition: box-shadow .2s; box-shadow: 0 2px 12px rgba(3,8,64,.06); }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(3,8,64,.08); }
.site-inner { display: flex; justify-content: space-between; align-items: center; padding: .75rem 0; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo svg { height: 40px; width: auto; }
.logo-text { font-size: 1rem; color: var(--navy); }
.logo-text b { font-weight: 700; }
.logo-text .c24 { color: var(--blue); font-weight: 700; }
.logo-text .tld { font-size: .85em; font-weight: 400; }

/* ─── Navigation (compact, gap-0, padding on items) ────── */
.main-nav { display: flex; align-items: center; }
.main-nav > ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav > ul > li { list-style: none; margin: 0; }
.main-nav a { display: block; color: var(--navy); font-weight: 500; font-size: .9rem; padding: .65rem .9rem; transition: color .2s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--blue); }
.nav-cta { background: var(--gold); color: var(--navy) !important; padding: .55rem 1.1rem !important; border-radius: 4px; font-weight: 600 !important; margin-left: .5rem; }
.nav-cta:hover { background: var(--gold2); color: #fff !important; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumbs { background: var(--bg); padding: .8rem 0; font-size: .82rem; color: #767676; }
.breadcrumbs a { color: var(--navy); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { margin: 0 .4rem; color: #ccc; }
.breadcrumbs .current { color: var(--text); }

/* ─── Hero Split ───────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 55% 45%; min-height: 560px; }
.hero-left { background: var(--navy); color: #fff; padding: 5rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.badges { display: flex; gap: .6rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.badge { background: rgba(255,255,255,.08); border: 1px solid rgba(221,193,130,.3); padding: .35rem .8rem; border-radius: 999px; font-size: .75rem; color: var(--gold); font-weight: 500; }
.hero-left h1 { color: #fff; margin-bottom: 1.2rem; font-size: 3rem; }
.hero-left h1 em { color: var(--gold); font-style: normal; }
.hero-left p.sub { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 550px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-right { background: var(--blue); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-right::before { content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero-right::after { content: ''; position: absolute; bottom: -60px; left: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(3,8,64,.15); }
.hero-visual { position: relative; z-index: 1; width: 340px; height: 340px; background: #fff; border-radius: 12px; box-shadow: 0 25px 60px rgba(3,8,64,.35); padding: 2rem; transform: rotate(-4deg); }
.hero-visual .bar { height: 10px; background: var(--navy); border-radius: 3px; margin-bottom: 1rem; }
.hero-visual .bar:nth-child(2) { width: 80%; background: var(--navy2); }
.hero-visual .bar:nth-child(3) { width: 65%; background: var(--navy2); }
.hero-visual .bar:nth-child(4) { width: 90%; background: var(--navy2); }
.hero-visual .sig { margin-top: 2rem; height: 3px; background: var(--blue); border-radius: 2px; width: 70%; box-shadow: 0 0 0 2px rgba(0,190,250,.2); }
.hero-visual .seal { position: absolute; bottom: 20px; right: 20px; width: 70px; height: 70px; border-radius: 50%; background: var(--gold); border: 4px solid var(--gold2); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 700; font-size: .7rem; text-align: center; transform: rotate(-15deg); }

/* ─── Sections Common ──────────────────────────────────────── */
section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.2rem; }

/* ─── Services Grid ────────────────────────────────────────── */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: #fff; border-radius: 8px; padding: 2rem; border-top: 3px solid var(--gold); box-shadow: 0 2px 10px rgba(3,8,64,.05); transition: all .3s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(3,8,64,.1); border-top-color: var(--blue); }
.service-card .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1rem; }
.service-card p { color: var(--text); font-size: .92rem; }

/* ─── Process Steps ────────────────────────────────────────── */
.process { background: #fff; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.step { text-align: center; }
.step-num { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; border: 3px solid var(--gold); }
.step h3, .step h4 { color: var(--navy); margin-bottom: .5rem; }
.step h3 { font-size: 1.05rem; } /* 2026-09-23: h3 zamiast h4, rozmiar jak dotad */
.step p { font-size: .88rem; color: var(--text); }

/* ─── Why Us ───────────────────────────────────────────────── */
.why { background: var(--navy); color: #fff; }
.why h2 { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-card { background: rgba(255,255,255,.04); border: 1px solid rgba(221,193,130,.2); border-radius: 8px; padding: 1.8rem; transition: all .3s; }
.why-card:hover { background: rgba(255,255,255,.08); border-color: var(--gold); }
.why-card .big { font-size: 2.2rem; color: var(--gold); font-weight: 700; margin-bottom: .5rem; }
.why-card h3, .why-card h4 { color: #fff; margin-bottom: .4rem; }
.why-card h3 { font-size: 1.05rem; } /* 2026-09-23: h3 zamiast h4, rozmiar jak dotad */
.why-card p { color: rgba(255,255,255,.75); font-size: .88rem; }

/* ─── Jurisdictions Grid ───────────────────────────────────── */
.jurs { background: var(--bg); }
.jurs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.jur-card { background: #fff; border-radius: 8px; padding: 1.2rem .8rem; text-align: center; border-top: 3px solid var(--gold); transition: all .3s; cursor: pointer; }
.jur-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(3,8,64,.1); border-top-color: var(--blue); }
.jur-card .flag { font-size: 2rem; margin-bottom: .3rem; }
.jur-card .name { font-weight: 600; color: var(--navy); font-size: .9rem; }
.jur-card .region { font-size: .7rem; color: #767676; text-transform: uppercase; letter-spacing: 1px; }
.jurs-more { text-align: center; margin-top: 2rem; }

/* ─── CTA Band ─────────────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; padding: 4rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: 1.1rem; }

/* ─── Homepage: intro, guides, FAQ (front-page.php) ────────── */
.intro { background: #fff; }
.intro .container, .home-faq .container { max-width: 900px; }
.intro h2, .home-faq h2 { text-align: center; margin-bottom: 1.5rem; }
.intro p { margin-bottom: 1rem; font-size: 1.02rem; }
.intro p:last-child { margin-bottom: 0; }
.intro a, .home-faq a { color: var(--blue); font-weight: 500; }
.intro a:hover, .home-faq a:hover { text-decoration: underline; }
.guides { background: #fff; }
.guides .section-title p { max-width: 720px; margin: 0 auto; color: #555; font-size: 1.02rem; }
.service-card h3 a { color: inherit; }
.service-card h3 a:hover { color: var(--blue); }
.home-faq { background: #fff; }
.home-faq h3 { margin: 1.5rem 0 .5rem; font-size: 1.15rem; }
.home-faq p { margin-bottom: 1rem; }
.home-faq .faq-more { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid-5 { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
.footer-grid-6 { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr; }
.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.site-footer p { font-size: .9rem; color: rgba(255,255,255,.7); }
.site-footer .address { margin-top: 1rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.7); font-size: .9rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.5rem 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.5); }

/* ─── Page Content ─────────────────────────────────────────── */
.page-content { padding: 3rem 0 5rem; }
.page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
.page-fullwidth { max-width: 820px; margin: 0 auto; }
.page-fullwidth .page-main h2 { margin-top: 2rem; }
.page-layout .page-main { min-width: 0; }
.page-main h1 { margin-bottom: 1.5rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.5rem; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1rem 1.5rem; list-style: disc; }
.entry-content li { margin-bottom: .3rem; }
/* Content-cluster guides */
.guide-lede { font-size: 1.15rem; line-height: 1.7; color: var(--navy); margin-bottom: 1.5rem; }
.guide-compare { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; }
.guide-compare th, .guide-compare td { border: 1px solid var(--border); padding: .6rem .7rem; text-align: left; }
.guide-compare th { background: var(--bg); color: var(--navy); font-weight: 600; }
.guide-compare a { color: var(--blue); font-weight: 500; }
.guide-cta { background: var(--bg); border-top: 4px solid var(--gold); border-radius: 8px; padding: 1.5rem 1.75rem; margin: 2.5rem 0 1rem; }
.guide-cta h2 { margin-top: 0; }

/* Sidebar */
.page-sidebar { position: sticky; top: 80px; }
.widget { background: var(--bg); padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; border-top: 3px solid var(--gold); }
.widget-title { color: var(--navy); margin-bottom: .8rem; font-size: 1rem; }

/* Single post */
.post-date { color: var(--blue); font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { background: #fff; border-radius: 8px; padding: 2rem; border-top: 3px solid var(--gold); box-shadow: 0 2px 10px rgba(3,8,64,.05); transition: all .3s; display: block; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(3,8,64,.1); border-top-color: var(--blue); }
.blog-card h3 { color: var(--navy); margin: .5rem 0; }
.blog-card p { font-size: .9rem; color: #666; }

/* ─── Back to Top ──────────────────────────────────────────── */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); border: 2px solid var(--gold); font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s; z-index: 99; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--navy); }

/* ─── Team page (/team/) ─────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin: 2.5rem 0; }
.team-card { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: 8px; padding: 1.8rem; text-align: center; box-shadow: 0 2px 10px rgba(3,8,64,.04); transition: all .25s; }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(3,8,64,.1); }
.team-photo { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 1.2rem; display: block; object-fit: cover; border: 4px solid var(--bg); }
.team-card h3 { color: var(--navy); margin: 0 0 .25rem; font-size: 1.3rem; }
.team-role { color: var(--blue); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 1rem; }
.team-bio { color: var(--text); font-size: .92rem; line-height: 1.6; text-align: left; margin: 0 0 1rem; }
.team-specialty { font-size: .82rem; color: var(--navy2); background: var(--bg); padding: .6rem .8rem; border-radius: 4px; margin: 0 0 .8rem; text-align: left; line-height: 1.5; }
.team-specialty strong { color: var(--navy); }
.team-specialty a { color: var(--blue); text-decoration: none; border-bottom: 1px dotted var(--blue); }
.team-specialty a:hover { color: var(--gold2); border-bottom-color: var(--gold2); }
.team-contact { font-size: .85rem; color: var(--text); border-top: 1px dashed var(--border); padding-top: .8rem; margin: 0; }
.team-contact a { color: var(--blue); }
.team-contact a:hover { color: var(--gold2); }

@media (max-width: 768px) { .team-grid { grid-template-columns: 1fr; gap: 1.5rem; } .team-card { padding: 1.5rem 1.2rem; } }

/* ─── Contact Form 7 Styling ─────────────────────────────── */
.cf24-form-wrap { background: var(--bg); padding: 2rem 2.25rem; border-radius: 8px; border-top: 4px solid var(--gold); margin: 1.5rem 0 2rem; box-shadow: 0 2px 14px rgba(3,8,64,.06); }
.cf24-form-row { margin: 0 0 1.1rem; }
.cf24-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.cf24-form-grid .cf24-form-row { margin-bottom: 1.1rem; }
@media (max-width: 600px) { .cf24-form-grid { grid-template-columns: 1fr; gap: 0; } .cf24-form-wrap { padding: 1.5rem 1.25rem; } }
.cf24-form-row label { display: block; font-weight: 600; color: var(--navy); font-size: .85rem; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .5px; }
.cf24-form-row label[for] { cursor: pointer; }
.cf24-form-wrap input[type="text"],
.cf24-form-wrap input[type="email"],
.cf24-form-wrap input[type="tel"],
.cf24-form-wrap select,
.cf24-form-wrap textarea {
  width: 100%; padding: .7rem .85rem; font-family: inherit; font-size: .95rem; color: var(--navy);
  background: #fff; border: 1.5px solid var(--border); border-radius: 5px; transition: border-color .15s, box-shadow .15s;
}
.cf24-form-wrap input:focus, .cf24-form-wrap select:focus, .cf24-form-wrap textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,190,250,.15);
}
.cf24-form-wrap textarea { resize: vertical; min-height: 100px; }
.cf24-form-wrap .wpcf7-list-item { display: inline-block; margin: 0 1rem .35rem 0; font-size: .9rem; color: var(--text); font-weight: 400; text-transform: none; letter-spacing: 0; }
.cf24-form-wrap .wpcf7-list-item label { display: inline; }
.cf24-form-wrap .wpcf7-acceptance label { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--text); }
.cf24-form-wrap input[type="checkbox"] { margin-right: .35rem; }
.cf24-form-wrap input[type="submit"], .cf24-form-submit input {
  background: var(--gold); color: var(--navy); padding: .85rem 2rem; font-weight: 700; font-size: 1rem;
  border: none; border-radius: 5px; cursor: pointer; transition: all .2s; text-transform: uppercase; letter-spacing: 1px;
}
.cf24-form-wrap input[type="submit"]:hover { background: var(--gold2); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(221,193,130,.4); }
.cf24-form-wrap .wpcf7-response-output { background: #fff; border-radius: 5px; padding: .85rem 1rem; margin: 1rem 0 0; font-size: .9rem; }
.cf24-form-wrap .wpcf7-mail-sent-ok { background: #d4f4e2; border: 1px solid #34a853; color: #1f6e3a; }
.cf24-form-wrap .wpcf7-validation-errors, .cf24-form-wrap .wpcf7-mail-sent-ng { background: #fce8e8; border: 1px solid #d93025; color: #b3261e; }
.cf24-form-wrap .wpcf7-not-valid-tip { color: #d93025; font-size: .8rem; margin-top: .3rem; }
/* Choices.js — searchable multiselect (jurisdiction) */
.cf24-form-wrap .choices { margin-bottom: 0; font-size: .95rem; }
.cf24-form-wrap .choices__inner { background: #fff; border: 1.5px solid var(--border); border-radius: 5px; padding: .35rem .5rem; min-height: 47px; font-size: .95rem; }
.cf24-form-wrap .choices.is-focused .choices__inner, .cf24-form-wrap .choices.is-open .choices__inner { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,190,250,.15); }
.cf24-form-wrap .choices__list--multiple .choices__item { background: var(--navy); border: 1px solid var(--navy); border-radius: 4px; font-size: .85rem; font-weight: 500; padding: .25rem .55rem; margin: 2px 4px 2px 0; }
.cf24-form-wrap .choices__list--multiple .choices__item.is-highlighted { background: var(--blue); border-color: var(--blue); }
.cf24-form-wrap .choices[data-type*="select-multiple"] .choices__button { border-left: 1px solid rgba(255,255,255,.45); margin: 0 -.2rem 0 .5rem; }
.cf24-form-wrap .choices__input { background: transparent; font-size: .95rem; margin-bottom: 0; padding: .25rem; color: var(--navy); text-transform: none; letter-spacing: 0; font-weight: 400; }
.cf24-form-wrap .choices__list--dropdown { border: 1.5px solid var(--border); border-radius: 5px; z-index: 30; }
.cf24-form-wrap .choices__list--dropdown .choices__item--selectable.is-highlighted { background: var(--bg); color: var(--navy); }
.cf24-form-wrap .choices__list--dropdown .choices__input { border: 1px solid var(--border); border-radius: 4px; }
.cf24-form-wrap .choices__placeholder { opacity: .55; color: var(--text); }

/* ─── WP Specific ──────────────────────────────────────────── */
.wp-block-image { margin: 1.5rem 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .jurs-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr 280px; }
  .footer-grid-6 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Tablet-width desktop nav (769-1024px): tighter link spacing and a slightly smaller logo so the
   seven top-level items, including the Jurisdictions and Guides dropdowns, fit beside the logo
   without wrapping (measured: 38px spare at 769px, 68px at 799px). */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-nav a { padding: .65rem .4rem; font-size: .82rem; }
  .nav-cta { padding: .5rem .7rem !important; margin-left: .2rem; }
  .logo-text { font-size: .9rem; }
  .logo svg { height: 34px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(3,8,64,.1);
    /* Make panel scrollable so long submenus (e.g. EU country list)
       remain reachable even when total nav height exceeds viewport. */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: .5rem; }
  .main-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: .5rem; }

  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 3rem 1.5rem; }
  .hero-left h1 { font-size: 2.2rem; }
  .hero-right { min-height: 300px; }
  .hero-visual { width: 260px; height: 260px; padding: 1.5rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .jurs-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid, .footer-grid-5, .footer-grid-6 { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-left h1 { font-size: 1.8rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .jurs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .footer-grid-5, .footer-grid-6 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .topbar .container { flex-direction: column; gap: .3rem; text-align: center; }
}

/* ─── Country Page (tmpl-country.php) ──────────────────────── */
.country-page { padding: 2rem 0 5rem; }
.country-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.country-main { min-width: 0; }
.country-main h1 { font-size: 2.4rem; margin-bottom: 1rem; line-height: 1.2; }
.country-main h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 2px solid var(--bg); }
.country-main h2:first-of-type { border-top: none; padding-top: 0; }
.country-main h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; color: var(--navy2); }
.country-main p { margin-bottom: 1rem; }
.country-main ul, .country-main ol { margin: 1rem 0 1.5rem 1.5rem; }
.country-main ul { list-style: disc; }
.country-main ol { list-style: decimal; }
.country-main li { margin-bottom: .4rem; }
.country-main li::marker { color: var(--blue); font-weight: 600; }
.country-main strong { color: var(--navy); }
.country-main a { color: var(--blue); border-bottom: 1px solid transparent; transition: border-color .2s; }
.country-main a:hover { border-bottom-color: var(--blue); }
.country-main blockquote { border-left: 4px solid var(--gold); padding: .5rem 0 .5rem 1.5rem; margin: 1.5rem 0; color: var(--text); font-style: italic; background: var(--bg); padding-right: 1rem; }
.country-main hr { border: none; border-top: 1px dashed var(--border); margin: 2rem 0; }
.country-main em { color: var(--gold2); font-style: italic; }

/* Country page tables */
.country-main table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; box-shadow: 0 2px 10px rgba(3,8,64,.04); border-radius: 6px; overflow: hidden; }
.country-main th { background: var(--navy); color: #fff; padding: .8rem 1rem; text-align: left; font-weight: 600; }
.country-main td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.country-main tr:last-child td { border-bottom: none; }
.country-main tr:nth-child(even) td { background: var(--bg); }
.country-main tr:hover td { background: rgba(0,190,250,.05); }

/* Last updated marker */
.last-updated { color: #767676; font-size: .85rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.last-updated strong { color: var(--navy); }

/* Sister-site CTA bottom block */
.sister-cta { background: linear-gradient(135deg, var(--bg) 0%, #fff 100%); border-left: 4px solid var(--gold); padding: 1.5rem 1.8rem; margin: 2.5rem 0 1rem; border-radius: 4px; }
.sister-cta p { margin: 0; color: var(--navy2); }
.sister-cta a { color: var(--blue); font-weight: 600; }

/* Country sidebar */
.country-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.5rem; }
.consultant-card { background: linear-gradient(180deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; padding: 1.8rem 1.5rem; border-radius: 8px; text-align: center; border-top: 4px solid var(--gold); }
.consultant-photo { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; border: 3px solid #fff; }
.consultant-initials { font-size: 1.8rem; font-weight: 700; }
.consultant-card h4 { color: #fff; margin-bottom: .8rem; font-size: 1.05rem; }
.consultant-name { color: var(--gold); font-weight: 600; margin-bottom: .2rem; }
.consultant-title { color: rgba(255,255,255,.8); font-size: .85rem; margin-bottom: 1rem; }
.consultant-line { font-size: .9rem; margin-bottom: .3rem; }
.consultant-line a { color: rgba(255,255,255,.95); border-bottom: 1px dashed rgba(255,255,255,.3); }
.consultant-line a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.consultant-cta { display: block; margin-top: 1.2rem; text-align: center; }

.sidebar-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold); padding: 1.5rem; border-radius: 6px; }
.sidebar-card h4 { color: var(--navy); margin-bottom: .8rem; font-size: 1rem; }
.sidebar-card p { font-size: .9rem; color: var(--text); margin: 0; }
.sidebar-card ul.trust-list { list-style: none; margin: 0; padding: 0; }
.sidebar-card ul.trust-list li { padding: .5rem 0; border-bottom: 1px dashed var(--border); font-size: .88rem; color: var(--text); }
.sidebar-card ul.trust-list li:last-child { border-bottom: none; }
.sidebar-card ul.trust-list strong { color: var(--navy); }
/* Sidebar link lists (Guides, Related Services): plain list, navy links, underline on hover */
.sidebar-guides ul.trust-list a, .sidebar-services ul.trust-list a { color: var(--navy); font-weight: 500; }
.sidebar-guides ul.trust-list a:hover, .sidebar-services ul.trust-list a:hover { text-decoration: underline; }

/* Country page responsive */
@media (max-width: 1024px) {
  .country-layout { grid-template-columns: 1fr 280px; gap: 2rem; }
}
@media (max-width: 768px) {
  .country-layout { grid-template-columns: 1fr; }
  .country-sidebar { position: static; }
  .country-main h1 { font-size: 2rem; }
  .country-main h2 { font-size: 1.4rem; }
  .country-main table { font-size: .85rem; }
  .country-main table td, .country-main table th { padding: .5rem .7rem; }
}

/* ─── Hero padding fix (no gap above hero on front page) ──── */
section.hero { padding: 0; }

/* ─── Flag icons (replaces emoji flags for cross-browser support) ─ */
/* Default rectangular flag size for inline use */
.fi { display: inline-block; vertical-align: middle; line-height: 1; }
/* Squared-aspect ratio flag for cards (override the library's default 4:3) */
.flag-img,
.fi.flag-img { width: 2rem; height: 2rem; background-size: cover; background-position: center; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* Homepage popular country card: bigger flag */
.jur-card .flag,
.jur-card .fi { width: 2.4rem; height: 1.8rem; display: block; margin: 0 auto .4rem; background-size: cover; background-position: center; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* /jurisdictions/ page card flag */
.jurs-card-flag .fi { width: 2.4rem; height: 1.8rem; display: block; background-size: cover; background-position: center; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.jurs-card-flag { font-size: 0; margin-bottom: .8rem; line-height: 0; }

/* Mega-menu inline flag */
.mega-flag.fi { width: 1.3rem; height: 1rem; background-size: cover; background-position: center; border-radius: 2px; flex-shrink: 0; }

/* ─── Sub-menu dropdown (Jurisdictions: regions + flyout; Guides: flat list) ─── */
.menu-item-has-children { position: relative; }
.menu-item-jurisdictions > a .caret, .menu-item-guides > a .caret { font-size: .65rem; margin-left: .15rem; display: inline-block; transition: transform .2s; }
.menu-item-jurisdictions:hover > a .caret, .menu-item-guides:hover > a .caret { transform: rotate(180deg); color: var(--blue); }

/* Sub-menu inherited resets (nested uls aren't flex anymore via > selector) */
.main-nav .sub-menu li { display: list-item; margin: 0; }

/* Level 1: Jurisdictions dropdown — compact, dark navy, white text */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 220px;
  list-style: none;
  padding: .35rem 0;
  margin: 0;
  box-shadow: 0 8px 24px rgba(3,8,64,.2);
  border-radius: 0 0 4px 4px;
  z-index: 100;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu,
.main-nav li.open > .sub-menu {
  display: block;
}
.main-nav .sub-menu li { position: relative; }
.main-nav .sub-menu li a {
  display: block;
  padding: .5rem 1rem;
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  line-height: 1.4;
  font-weight: 400;
  white-space: nowrap;
  border: none;
  transition: background .15s, color .15s;
}
.main-nav .sub-menu li a:hover,
.main-nav .sub-menu li:hover > a {
  background: var(--navy2);
  color: var(--gold);
}

/* Right-arrow indicator on items with flyout (regions) */
.main-nav .sub-menu li.menu-item-has-children > a::after {
  content: '\25B8';
  float: right;
  margin-left: .8rem;
  font-size: .7rem;
  line-height: 1.6;
  opacity: .65;
}

/* Level 2: Country flyout — white background, right of region */
.main-nav .sub-menu .sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  min-width: 200px;
  padding: .35rem 0;
  margin: 0;
  box-shadow: 0 8px 24px rgba(3,8,64,.18);
  border-radius: 0 4px 4px 4px;
  z-index: 110;
  max-height: 70vh;
  overflow-y: auto;
}
.main-nav .sub-menu .sub-menu li a {
  color: var(--navy);
  padding: .4rem 1rem;
  font-size: .82rem;
}
.main-nav .sub-menu .sub-menu li a:hover {
  background: var(--bg);
  color: var(--blue);
}
.main-nav .sub-menu .sub-menu li.menu-item-has-children > a::after { content: ''; }

/* ─── /jurisdictions/ page ─────────────────────────────────── */
.jurisdictions-page { padding: 3rem 0 5rem; }
.jurs-page-header { text-align: center; margin-bottom: 3.5rem; }
.jurs-page-header h1 { font-size: 2.6rem; margin: .4rem 0 1rem; }
.jurs-page-header .lead { max-width: 720px; margin: 0 auto 2rem; color: #555; font-size: 1.1rem; }
.jurs-summary-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.jurs-summary-stats .stat { text-align: center; padding: .8rem 1.2rem; border-left: 3px solid var(--gold); }
.jurs-summary-stats .stat b { display: block; font-size: 1.8rem; color: var(--navy); font-weight: 700; line-height: 1; }
.jurs-summary-stats .stat span { font-size: .75rem; color: #767676; text-transform: uppercase; letter-spacing: 1.5px; }

.jurs-region { margin-bottom: 3rem; }
.jurs-region-title { font-size: 1.6rem; color: var(--navy); margin-bottom: 1.2rem; padding-bottom: .5rem; border-bottom: 2px solid var(--bg); }
.jurs-region-count { color: #aaa; font-weight: 400; font-size: .85rem; }
.jurs-region-intro { max-width: 900px; margin: -.4rem 0 1.5rem; color: #555; font-size: 1rem; line-height: 1.75; }
.jurs-region-intro a { color: var(--blue); font-weight: 500; }
.jurs-region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.jurs-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.5rem 1.3rem;
  transition: all .25s;
  text-decoration: none;
  color: inherit;
}
.jurs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(3,8,64,.1);
  border-top-color: var(--blue);
}
.jurs-card-flag { font-size: 2.2rem; margin-bottom: .6rem; line-height: 1; }
.jurs-card-name { font-weight: 600; color: var(--navy); font-size: 1.05rem; margin-bottom: .3rem; }
.jurs-card-tag { font-size: .8rem; color: #666; line-height: 1.4; min-height: 2.6em; margin-bottom: .8rem; }
.jurs-card-cta { font-size: .82rem; color: var(--blue); font-weight: 500; opacity: .85; }
.jurs-card:hover .jurs-card-cta { opacity: 1; }

.jurs-cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; padding: 3rem 2rem; border-radius: 10px; text-align: center; margin-top: 3rem; }
.jurs-cta-band h2 { color: #fff; font-size: 1.8rem; margin-bottom: .6rem; }
.jurs-cta-band p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }

/* Make homepage popular country cards proper links */
.jur-card { display: block; text-decoration: none; color: inherit; }

/* Sub-menu + jurisdictions responsive */
@media (max-width: 1024px) {
  .jurs-region-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  /* Mobile: full-width nested lists, no flyout */
  .main-nav .sub-menu {
    position: static !important;
    min-width: auto;
    background: var(--bg);
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    white-space: normal;
  }
  .main-nav .sub-menu li a {
    color: var(--navy);
    white-space: normal;
  }
  .main-nav .sub-menu li a:hover { background: #fff; }
  .main-nav .sub-menu .sub-menu {
    background: #f0f2f5;
    padding-left: 1rem;
    box-shadow: none;
    max-height: none;
  }
  .main-nav .sub-menu .sub-menu li a { color: var(--navy); padding: .35rem 1rem; }

  /* On mobile, submenus open ONLY when JS adds .open (tap-to-toggle).
     Override the :hover/:focus-within rules from the desktop styles —
     otherwise tapping a parent link triggers :focus-within and the
     submenu can never be collapsed by tapping again. */
  .main-nav li:hover > .sub-menu,
  .main-nav li:focus-within > .sub-menu { display: none; }
  .main-nav li.open > .sub-menu { display: block; }

  /* Rotate caret when its parent item is open */
  .menu-item-jurisdictions.open > a .caret, .menu-item-guides.open > a .caret { transform: rotate(180deg); color: var(--blue); }

  .jurs-region-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-item-has-children > a .caret { float: right; }
  .jurs-page-header h1 { font-size: 2rem; }
  .jurs-summary-stats { gap: 1rem; }
}
@media (max-width: 480px) {
  .jurs-region-grid { grid-template-columns: 1fr; }
}
