/*
Theme Name: Cade Immigration Law
Theme URI: https://cadeusimmigration.com
Author: Cade Immigration Law
Description: Custom navy and gold theme for Cade Immigration Law, a US business immigration practice (EB-5, E-2, L-1, EB-2/NIW).
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cade
*/

/* ---------- Tokens ---------- */
:root {
  --navy: #0f2340;
  --navy-2: #182f52;
  --navy-3: #22406b;
  --gold: #b8924a;
  --gold-light: #d8bd85;
  --cream: #f7f4ee;
  --paper: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e4ded2;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(15, 35, 64, 0.08);
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; background: var(--gold); color: var(--navy); padding: 10px 16px; clip: auto; width: auto; height: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }

/* ---------- Header ---------- */
.wrap-wide { max-width: 1320px; }
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(184,146,74,.35);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; position: relative; }

.logo { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-main { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: #fff; letter-spacing: .14em; }
.logo-rule { display: block; width: 100%; height: 2px; background: var(--gold); margin: 6px 0 5px; }
.logo-sub { font-family: var(--sans); font-size: .64rem; font-weight: 600; color: var(--gold-light); letter-spacing: .32em; text-transform: uppercase; }
.logo:hover .logo-main { color: var(--gold-light); }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; gap: 2px; align-items: center; }
.primary-nav li { position: relative; }
.primary-nav a {
  color: #e9edf4;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 10px 11px;
  border-radius: var(--radius);
  display: block;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--gold-light); }
.primary-nav > ul > .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-3px) rotate(45deg);
}

/* Desktop dropdowns */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: #fff;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 16px 40px rgba(15,35,64,.18);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 60;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { color: var(--navy); padding: 10px 20px; font-size: .9rem; border-radius: 0; }
.primary-nav .sub-menu a:hover { background: var(--cream); color: var(--navy); }
.primary-nav .sub-menu li:first-child a { font-weight: 600; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.primary-nav > ul > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.sub-toggle { display: none; }

.header-cta { white-space: nowrap; padding: 11px 18px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: var(--radius);
  padding: 8px 12px;
  font: 600 .85rem var(--sans);
  cursor: pointer;
}
.primary-nav .mobile-cta { display: none; }

/* Mobile and tablet menu */
@media (max-width: 1240px) {
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 8px 24px 24px;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav a { padding: 14px 44px 14px 0; white-space: normal; }
  .primary-nav > ul > .menu-item-has-children > a::after { display: none; }
  .primary-nav .sub-menu {
    position: static;
    display: none;
    opacity: 1; visibility: visible; transform: none;
    background: transparent;
    border: 0; box-shadow: none;
    padding: 0 0 10px 14px;
    min-width: 0;
  }
  .primary-nav li.is-open > .sub-menu { display: block; }
  .primary-nav .sub-menu li { border-bottom: 0; }
  .primary-nav .sub-menu a { color: #cdd5e2; padding: 9px 0; }
  .primary-nav .sub-menu a:hover { background: transparent; color: var(--gold-light); }
  .primary-nav .sub-menu li:first-child a { border-bottom: 0; margin: 0; }
  .sub-toggle {
    display: block;
    position: absolute;
    right: 0; top: 6px;
    width: 40px; height: 40px;
    background: none;
    border: 0;
    color: var(--gold-light);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }
  .primary-nav .mobile-cta { display: block; margin-top: 18px; border: 0; }
  .primary-nav .mobile-cta a { text-align: center; border: 0; color: var(--navy); padding: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(184,146,74,.18), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: #fff;
  padding: 96px 0 104px;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .lead { color: #cdd5e2; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(216,189,133,.35);
  border-radius: 10px;
  padding: 32px;
}
.hero-card h2 { color: #fff; font-size: 1.25rem; margin-bottom: 18px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { padding: 12px 0 12px 30px; position: relative; color: #dfe5ee; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before {
  content: "";
  position: absolute; left: 4px; top: 21px;
  width: 10px; height: 10px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Visa cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-tag { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card-link { font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--navy); }
.card-link::after { content: " \2192"; color: var(--gold); }
.card-dark { background: var(--navy); border-color: var(--navy); border-top-color: var(--gold); }
.card-dark h3 { color: #fff; }
.card-dark p { color: #cdd5e2; }
.card-dark .card-link { color: var(--gold-light); }

/* Audience */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.audience { padding: 26px 0; border-top: 1px solid var(--line); }
.audience-num { font-family: var(--serif); color: var(--gold); font-size: 1rem; margin-bottom: 10px; display: block; }
.audience h3 { font-size: 1.1rem; }
.audience p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 24px 0 0; position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.step::after {
  content: "";
  position: absolute;
  top: 23px; left: 46px; right: 0;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; }
.why-item h3 { font-size: 1.08rem; padding-left: 16px; border-left: 3px solid var(--gold); }
.why-item p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.post-card .thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.post-card h3 { font-size: 1.12rem; }
.post-card h3 a { text-decoration: none; color: var(--navy); }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cdd5e2; margin: 0; max-width: 620px; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0 56px; border-bottom: 3px solid var(--gold); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .meta { color: var(--gold-light); font-size: .9rem; margin-top: 12px; }
.page-hero .lead { color: #cdd5e2; margin: 14px 0 0; }

.content-area { padding: 64px 0 88px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--cream); color: var(--navy); }
.prose .wp-block-button__link { background: var(--gold); color: var(--navy); border-radius: var(--radius); font-weight: 600; }
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }

.post-cta {
  margin-top: 48px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.post-cta h3 { margin-bottom: 8px; }
.post-cta p { color: var(--muted); }

.pagination { margin-top: 48px; display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: #0a1a31; color: #b9c3d3; font-size: .93rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.site-footer h4 { font-family: var(--sans); color: var(--gold-light); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #e3e8f0; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-about p { max-width: 360px; margin-top: 18px; }
.footer-contact p { margin: 0 0 10px; }
.placeholder { color: #f0c36d; font-style: italic; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0 32px; font-size: .8rem; color: #8e9ab0; line-height: 1.6; }
.footer-legal p { margin: 0 0 8px; }
.footer-legal strong { color: #c8d0dd; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .step:nth-child(2)::after { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .card-grid, .post-grid, .audience-grid, .process, .why-list, .footer-main { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .logo-main { font-size: 1.45rem; }
}
