/*
Theme Name: Starchak Law Firm
Theme URI: https://starchaklawfirm.com/
Author: Starchak Law Firm
Description: Accessible, multilingual immigration-law theme prepared for staging review.
Version: 2.2.1
Text Domain: starchak-law
*/

:root {
  --navy: #10263f;
  --navy-2: #183a5c;
  --gold: #c99a4b;
  --gold-light: #efd8aa;
  --ivory: #faf8f3;
  --white: #ffffff;
  --ink: #18212b;
  --muted: #5d6874;
  --line: #dfe3e6;
  --shadow: 0 18px 55px rgba(16, 38, 63, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--navy-2); }
img { max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 14px; top: -100px; z-index: 9999; padding: 12px 16px; background: var(--white); color: var(--navy); }
.skip-link:focus { top: 14px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(16,38,63,.10); box-shadow: 0 6px 28px rgba(5,25,43,.08); backdrop-filter: blur(12px); }
.topbar { color: #e8edf2; background: #091c30; font-size: 12px; }
.topbar-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar a { color: #f3dfb7; font-weight: 750; text-decoration: none; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--navy); }
.brand-logo { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(9,28,48,.16)); }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 21px; letter-spacing: .02em; line-height: 1.1; }
.brand-sub { display: block; margin-top: 4px; color: var(--muted); font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.nav-wrap { display: flex; align-items: center; gap: 20px; }
.site-nav { display: flex; align-items: center; gap: 23px; }
.site-nav a { color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus { color: var(--gold); }
.lang-switcher { display: flex; gap: 4px; padding-left: 16px; border-left: 1px solid var(--line); }
.lang-switcher a { padding: 6px 7px; color: var(--muted); font-size: 12px; font-weight: 800; text-decoration: none; border-radius: 6px; }
.lang-switcher a[aria-current="page"] { color: var(--white); background: var(--navy); }
.lang-switcher .gtranslate_wrapper { display: flex; align-items: center; gap: 5px; }
.lang-switcher .glink { display: inline-flex !important; align-items: center; gap: 4px; padding: 7px 8px !important; color: var(--muted) !important; font-size: 11px !important; font-weight: 800; }
.lang-switcher .glink:hover, .lang-switcher .glink:focus { color: var(--navy) !important; background: var(--ivory); }
.client-portal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px; border: 1px solid var(--gold); border-radius: 7px; color: #172333; background: var(--gold); font-size: 12px; font-weight: 850; line-height: 1.15; text-align: center; text-decoration: none; white-space: nowrap; }
.client-portal-button:hover, .client-portal-button:focus { color: var(--navy); background: #ddb66e; box-shadow: 0 7px 18px rgba(16,38,63,.14); }
.translation-note { margin-top: 20px; padding: 12px 15px; border-left: 3px solid var(--gold); color: inherit; background: rgba(255,255,255,.1); font-size: 14px; }
.article-wrap > .translation-note { color: var(--muted); background: var(--ivory); }
.menu-toggle { display: none; border: 0; padding: 10px; background: transparent; color: var(--navy); font-size: 25px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 21px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: #172333; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover, .button:focus { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,38,63,.16); background: #ddb66e; }
.button-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.button-outline:hover, .button-outline:focus { background: var(--white); color: var(--navy); }

.hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(105deg, rgba(5,20,35,.99) 0%, rgba(14,38,63,.96) 48%, rgba(27,63,96,.88) 100%); box-shadow: inset 0 -1px rgba(255,255,255,.14); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -190px; border: 1px solid rgba(239,216,170,.16); border-radius: 50%; box-shadow: 0 0 0 70px rgba(239,216,170,.035), 0 0 0 140px rgba(239,216,170,.025); }
.hero::after { content: ""; position: absolute; inset: 0 0 0 55%; opacity: .16; background: radial-gradient(circle at 20% 20%, var(--gold-light), transparent 42%), repeating-linear-gradient(120deg, transparent 0 28px, rgba(255,255,255,.17) 29px 30px); }
.hero-grid { position: relative; z-index: 1; min-height: 660px; display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 70px; padding: 84px 0; }
.eyebrow { margin: 0 0 18px; color: var(--gold-light); font-size: 12px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
.hero h1 { max-width: 760px; margin: 0; color: var(--white); font-size: clamp(46px, 6.1vw, 78px); font-weight: 500; letter-spacing: -.035em; }
.hero-lead { max-width: 690px; margin: 24px 0 30px; color: #e7edf3; font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 33px; color: #dce5ed; font-size: 13px; font-weight: 700; }
.trust-row span::before { content: "✓"; margin-right: 8px; color: var(--gold-light); }
.attorney-card { position: relative; align-self: end; padding: 14px 14px 0; border: 1px solid rgba(255,255,255,.28); border-radius: 160px 160px 0 0; background: rgba(255,255,255,.08); }
.attorney-card img { display: block; width: 100%; max-height: 530px; object-fit: cover; object-position: center top; border-radius: 145px 145px 0 0; filter: saturate(.84) contrast(1.03); }
.attorney-label { position: absolute; left: -42px; bottom: 36px; width: 230px; padding: 18px 20px; color: var(--navy); background: var(--white); box-shadow: var(--shadow); }
.attorney-label strong { display: block; font-family: Georgia, serif; font-size: 18px; }
.attorney-label span { color: var(--muted); font-size: 12px; }

.section { padding: 92px 0; }
.section-tint { background: var(--ivory); }
.section-dark { color: var(--white); background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { margin: 0 0 15px; font-size: clamp(34px, 4vw, 52px); font-weight: 500; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.section-dark .section-head p { color: #ccd7e2; }
.kicker { display: block; margin-bottom: 12px; color: #986f2e; font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; min-height: 238px; overflow: hidden; padding: 30px; border: 1px solid #d7dce0; border-radius: var(--radius); background: linear-gradient(155deg, #fff 0%, #fff 72%, #faf6ed 100%); box-shadow: 0 10px 32px rgba(16,38,63,.08); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card::after { content: ""; position: absolute; right: -38px; bottom: -38px; width: 90px; height: 90px; border: 1px solid rgba(201,154,75,.26); transform: rotate(45deg); }
.card:hover { transform: translateY(-5px); border-color: #d1ad6f; box-shadow: 0 18px 42px rgba(16,38,63,.13); }
.card-num { color: var(--gold); font-family: Georgia, serif; font-size: 17px; }
.card h3 { margin: 28px 0 12px; font-size: 24px; font-weight: 500; }
.card p { margin: 0 0 18px; color: var(--muted); }
.card a { font-weight: 800; text-decoration: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.portrait-panel { overflow: hidden; min-height: 560px; border-radius: 150px 18px 18px 18px; background: #d7d9d7; box-shadow: var(--shadow); }
.portrait-panel img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.bio-copy h2 { margin: 0 0 22px; font-size: clamp(36px, 4.5vw, 55px); font-weight: 500; }
.bio-copy p { color: var(--muted); font-size: 17px; }
.credentials { display: grid; gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.credentials li { padding-left: 28px; position: relative; }
.credentials li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: 10px; top: 7px; }
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 30px 0; border-top: 1px solid rgba(255,255,255,.24); }
.step strong { display: block; margin-bottom: 10px; color: var(--gold-light); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.step h3 { margin: 0 0 12px; font-size: 25px; }
.step p { margin: 0; color: #cbd6e0; }
.quote { margin: 0; padding: 35px; border-left: 3px solid var(--gold); background: var(--white); box-shadow: var(--shadow); }
.quote p { margin: 0 0 15px; font-family: Georgia, serif; font-size: 22px; line-height: 1.5; }
.quote cite { color: var(--muted); font-size: 13px; font-style: normal; font-weight: 700; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 45px; border-radius: var(--radius); color: var(--white); background: linear-gradient(120deg, var(--navy), var(--navy-2)); box-shadow: var(--shadow); }
.cta-band h2 { margin: 0 0 10px; color: var(--white); font-size: 36px; font-weight: 500; }
.cta-band p { margin: 0; color: #d9e2ea; }

.page-hero { padding: 90px 0 74px; color: var(--white); background: linear-gradient(90deg, rgba(10,30,50,.98) 0%, rgba(16,38,63,.94) 52%, rgba(16,38,63,.58) 100%), url('assets/american-promise.png') center right / cover no-repeat; }
.page-hero h1 { max-width: 850px; margin: 0; color: var(--white); font-size: clamp(42px, 6vw, 68px); font-weight: 500; }
.page-hero p { max-width: 720px; margin: 18px 0 0; color: #dce6ef; font-size: 20px; }
.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 70px; padding: 76px 0 92px; }
.prose h2 { margin: 42px 0 14px; font-size: 34px; font-weight: 500; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; font-size: 24px; }
.prose p, .prose li { color: #3f4a55; font-size: 17px; }
.prose ul { padding-left: 22px; }
.sidebar-box { position: sticky; top: 110px; padding: 27px; border-radius: var(--radius); color: var(--white); background: var(--navy); }
.sidebar-box h2 { margin: 0 0 13px; color: var(--white); font-size: 27px; font-weight: 500; }
.sidebar-box p { color: #d7e0e8; }
.contact-list { padding: 0; list-style: none; }
.contact-list li { margin: 12px 0; }
.contact-list a { color: var(--white); }
.language-note { padding: 18px 22px; border-left: 3px solid var(--gold); background: #fff8eb; }
.patriotic-band { position: relative; min-height: 430px; display: flex; align-items: center; color: var(--white); background: linear-gradient(90deg, rgba(8,27,46,.98) 0%, rgba(16,38,63,.88) 50%, rgba(16,38,63,.20) 100%), url('assets/american-promise.png') center / cover no-repeat; }
.patriotic-copy { max-width: 650px; padding: 82px 0; }
.patriotic-copy h2 { margin: 0 0 18px; color: var(--white); font-size: clamp(36px, 4.5vw, 56px); font-weight: 500; }
.patriotic-copy p { color: #e1e8ef; font-size: 18px; }
.credibility-strip { position: relative; z-index: 2; color: var(--navy); background: linear-gradient(90deg, #e7c785, #f4e4bf 46%, #d9b46d); box-shadow: 0 12px 32px rgba(16,38,63,.16); }
.credibility-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.credibility-item { min-height: 104px; display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-right: 1px solid rgba(16,38,63,.18); }
.credibility-item:last-child { border-right: 0; }
.credibility-icon { font-family: Georgia, serif; font-size: 28px; color: #8b6123; }
.credibility-item strong { display: block; font-family: Georgia, serif; font-size: 17px; }
.credibility-item span { display: block; color: #45515e; font-size: 12px; }
.premium-panel { position: relative; overflow: hidden; padding: 54px; border: 1px solid #dfc189; border-radius: 22px; background: linear-gradient(135deg, #fff 0%, #fbf4e7 100%); box-shadow: var(--shadow); }
.premium-panel::before { content: "IS"; position: absolute; right: 26px; top: -28px; color: rgba(201,154,75,.10); font-family: Georgia, serif; font-size: 180px; line-height: 1; }
.editorial-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.editorial-tile { min-height: 210px; padding: 26px; border-radius: 14px; color: var(--white); background: linear-gradient(145deg, var(--navy), #224d73); }
.editorial-tile:nth-child(2) { background: linear-gradient(145deg, #173652, #0c2439); }
.editorial-tile:nth-child(3) { color: var(--navy); background: linear-gradient(145deg, #ead09a, #f7ead0); }
.editorial-tile .tile-icon { color: var(--gold-light); font-family: Georgia, serif; font-size: 32px; }
.editorial-tile:nth-child(3) .tile-icon { color: #8b6123; }
.editorial-tile h3 { margin: 30px 0 10px; color: inherit; font-size: 25px; }
.editorial-tile p { margin: 0; color: inherit; opacity: .84; }

.insights-intro { padding: 82px 0 58px; color: var(--white); background: linear-gradient(105deg, #0a1f34, var(--navy-2)); }
.insights-intro h1 { max-width: 850px; margin: 0 0 18px; color: var(--white); font-size: clamp(42px, 6vw, 68px); font-weight: 500; }
.insights-intro p { max-width: 760px; margin: 0; color: #dce6ef; font-size: 19px; }
.insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.insight-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 28px rgba(16,38,63,.07); }
.insight-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.insight-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.insight-card:hover .insight-card-media img { transform: scale(1.025); }
.insight-card-placeholder { height: 100%; display: grid; place-items: center; color: var(--gold-light); font-family: Georgia, serif; font-size: 28px; }
.insight-card-body { padding: 25px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.insight-card h2 { margin: 0 0 12px; font-size: 25px; font-weight: 500; }
.insight-card h2 a { color: var(--navy); text-decoration: none; }
.insight-card p { margin: 0 0 18px; color: var(--muted); }
.read-more { font-weight: 800; text-decoration: none; }
.empty-insights { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.article-wrap { max-width: 850px; padding: 72px 0 90px; }
.article-wrap .prose { margin-top: 38px; }
.article-featured { width: 100%; margin: 0 0 35px; border-radius: var(--radius); }
.share-box { margin-top: 50px; padding: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-box h2 { margin: 0 0 15px; font-size: 23px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-actions a, .share-actions button { min-height: 42px; padding: 9px 14px; border: 1px solid var(--navy); border-radius: 7px; color: var(--navy); background: var(--white); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.share-status { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.site-footer { padding: 58px 0 24px; color: #d7e0e8; background: #0b1e32; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer h3 { font-size: 18px; }
.site-footer a { color: #e5edf4; }
.footer-small { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #aab9c7; font-size: 12px; }

.chat-launch { position: fixed; right: 22px; bottom: 22px; z-index: 1200; width: 62px; height: 62px; border: 0; border-radius: 50%; color: var(--navy); background: var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 25px; cursor: pointer; }
.chat-panel { position: fixed; right: 22px; bottom: 96px; z-index: 1200; width: min(370px, calc(100vw - 30px)); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 24px 65px rgba(0,0,0,.22); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 17px 18px; color: var(--white); background: var(--navy); }
.chat-head strong { font-family: Georgia, serif; font-size: 18px; }
.chat-close { border: 0; color: var(--white); background: transparent; font-size: 22px; cursor: pointer; }
.chat-body { padding: 18px; }
.chat-bubble { margin: 0 0 14px; padding: 13px 15px; border-radius: 14px 14px 14px 3px; background: #eef3f7; }
.chat-options { display: grid; gap: 8px; }
.chat-options button, .chat-options a { width: 100%; padding: 11px 13px; border: 1px solid #ccd6df; border-radius: 8px; color: var(--navy); background: var(--white); font: inherit; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.chat-disclaimer { margin: 14px 0 0; color: var(--muted); font-size: 11px; }

:focus-visible { outline: 3px solid #e1b86c; outline-offset: 3px; }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav-wrap { display: none; position: absolute; left: 0; right: 0; top: 82px; padding: 24px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-wrap.open { display: block; }
  .site-nav { align-items: flex-start; flex-direction: column; gap: 14px; }
  .lang-switcher { margin-top: 20px; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .client-portal-button { margin-top: 18px; width: 100%; min-height: 44px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-grid { padding-bottom: 0; }
  .attorney-card { width: min(520px, 100%); margin: 0 auto; }
  .cards, .insights-grid, .editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .credibility-grid { grid-template-columns: repeat(2, 1fr); }
  .credibility-item:nth-child(2) { border-right: 0; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar-box { position: static; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 72px; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-name { font-size: 17px; }
  .nav-wrap { top: 72px; }
  .hero-grid { min-height: auto; padding-top: 62px; gap: 45px; }
  .hero h1 { font-size: 44px; }
  .attorney-label { left: 8px; bottom: 12px; }
  .section { padding: 68px 0; }
  .topbar-inner { min-height: 42px; justify-content: center; }
  .topbar-inner > span { display: none; }
  .topbar-links { gap: 12px; }
  .cards, .process, .footer-grid, .insights-grid, .editorial-grid { grid-template-columns: 1fr; }
  .credibility-grid { grid-template-columns: 1fr 1fr; }
  .credibility-item { min-height: 92px; padding: 17px 14px; border-bottom: 1px solid rgba(16,38,63,.16); }
  .premium-panel { padding: 32px 24px; }
  .cta-band { align-items: flex-start; flex-direction: column; padding: 30px; }
  .page-hero { padding: 65px 0 55px; }
  .content-wrap { padding: 58px 0 70px; }
  .patriotic-band { min-height: 520px; align-items: flex-end; background-position: 66% center; }
  .patriotic-copy { padding: 190px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
