/* ═══════════════════════════════════════════════════════════════
   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;
}

/* ─── 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 ───────────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; transition: box-shadow .2s; }
.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: 1rem 0; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo svg { height: 40px; width: auto; }
.logo-text { font-size: 1.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 ───────────────────────────────────────────── */
.main-nav ul { display: flex; gap: 1.8rem; list-style: none; }
.main-nav a { color: var(--navy); font-weight: 500; font-size: .92rem; padding: .5rem 0; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--blue); }
.nav-cta { background: var(--gold); color: var(--navy) !important; padding: .6rem 1.2rem !important; border-radius: 4px; font-weight: 600 !important; }
.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: #888; }
.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 h4 { color: var(--navy); margin-bottom: .5rem; }
.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 h4 { color: #fff; margin-bottom: .4rem; }
.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: #888; 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; }

/* ─── 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; }
.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-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; }

/* 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); }

/* ─── 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; }
}

@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); }
  .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 { 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 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .topbar .container { flex-direction: column; gap: .3rem; text-align: center; }
}
