/*
Theme Name: Incomtax Services
Theme URI: https://incomtax-services.com
Author: ChatGPT
Description: Custom WordPress theme for Income Tax Services: tax preparation, tax filing, accounting, bookkeeping, notary public, power of attorney document assistance, business document processing, and immigration assistance services.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: incomtax-services
*/

:root {
  --ink: #0e1726;
  --muted: #526071;
  --brand: #0b5cab;
  --brand-dark: #083d72;
  --accent: #f3b43f;
  --soft: #f4f8fc;
  --white: #ffffff;
  --line: #d9e3ef;
  --success: #178c55;
  --shadow: 0 18px 40px rgba(14, 23, 38, 0.12);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; font-size: 1.25rem; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); display: grid; place-items: center; color: var(--white); font-weight: 900; box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 650; font-size: 0.96rem; }
.nav a.cta { color: var(--white); background: var(--brand); padding: 10px 16px; border-radius: 999px; }
.hero { background: radial-gradient(circle at 20% 0%, #e7f2ff 0, transparent 34%), linear-gradient(180deg, #fff, var(--soft)); padding: 72px 0 52px; }

.home-logo-wrap { margin-bottom: 22px; }
.home-logo { display: block; width: min(520px, 100%); height: auto; background: #fff; border-radius: 18px; padding: 14px 18px; border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08); }
@media (max-width: 560px) { .home-logo { padding: 10px 12px; border-radius: 14px; } }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff3d6; color: #7a4f00; border: 1px solid #ffe0a3; padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 0.88rem; }
h1 { font-size: clamp(2.35rem, 5vw, 4.9rem); line-height: 0.96; margin: 18px 0; letter-spacing: -0.07em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 700px; }
.hero-actions, .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 12px; background: var(--brand); color: var(--white); font-weight: 800; border: 0; box-shadow: 0 12px 24px rgba(11,92,171,0.2); }
.button.secondary { background: var(--white); color: var(--brand); border: 1px solid var(--line); box-shadow: none; }
.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.section-title { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.055em; line-height: 1.02; margin: 0 0 14px; }
.section-copy { color: var(--muted); font-size: 1.08rem; max-width: 760px; margin: 0 0 28px; }
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 8px 28px rgba(14, 23, 38, 0.06); }
.card h3 { margin: 0 0 8px; font-size: 1.22rem; letter-spacing: -0.025em; }
.card p, .card li { color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 16px; background: #e9f3ff; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.35rem; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; color: var(--muted); }
.checklist li:before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 900; }
.notice { background: #fff8e8; border: 1px solid #ffe1a8; border-radius: 18px; padding: 18px; color: #664500; }
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: var(--white); border-radius: 28px; padding: 42px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 8px 0 0; }
.cta-band .button { background: var(--accent); color: #251600; box-shadow: none; }
.site-footer { background: #08111f; color: #d8e6f6; padding: 44px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 28px; }
.site-footer a { color: #d8e6f6; }
.footer-title { color: #fff; font-weight: 900; margin-bottom: 12px; }
.hero-image { border-radius: 30px; box-shadow: var(--shadow); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.page-header { background: linear-gradient(180deg, #f7fbff, #fff); padding: 62px 0 34px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(2.2rem, 4vw, 4rem); }
.content { padding: 54px 0 72px; }
.content h2 { font-size: 2rem; letter-spacing: -0.04em; }
.link-list { display: grid; gap: 14px; }
.resource-link { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.resource-link strong { display: block; color: var(--ink); }
.resource-link span { color: var(--muted); }
.form-card input, .form-card textarea, .form-card select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; margin: 7px 0 14px; font: inherit; }
.form-card label { font-weight: 800; }
@media (max-width: 850px) { .hero-grid, .grid.three, .grid.two, .footer-grid, .cta-band { grid-template-columns: 1fr; } .nav { display: none; } .hero { padding-top: 44px; } }

/* WordPress menu compatibility */
.nav ul, ul.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav li { margin: 0; padding: 0; list-style: none; }
.nav li:last-child > a { color: var(--white); background: var(--brand); padding: 10px 16px; border-radius: 999px; }
.nav li:last-child > a:hover { color: var(--white); text-decoration: none; }
.wp-block-button__link { border-radius: 12px; font-weight: 800; }
.content .wp-block-columns { gap: 22px; }
.content .wp-block-column { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: 0 8px 28px rgba(14, 23, 38, 0.06); }
.content ul { padding-left: 1.35rem; }
.notice-success { background: #e8fff3; border: 1px solid #b5f0ce; border-radius: 18px; padding: 18px; color: #07532d; margin-bottom: 18px; }
@media (max-width: 850px) { .nav ul, ul.nav { display: none; } }

/* Business details, hours, and map */
.hours-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; overflow: hidden; border-radius: 14px; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours-table th { width: 36%; color: var(--ink); background: #f7fbff; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.map-wrap { width: 100%; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; min-height: 360px; background: var(--soft); box-shadow: 0 8px 28px rgba(14, 23, 38, 0.06); }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }
.site-footer address { font-style: normal; color: #d8e6f6; }

/* Expanded service detail sections */
.content.soft { background: var(--soft); }
.service-detail-grid { align-items: stretch; }
.service-detail h2 { margin-top: 0; font-size: 1.55rem; line-height: 1.16; }
.service-detail h3 { margin: 22px 0 8px; font-size: 1rem; color: var(--ink); }
.service-detail .notice { margin-top: 18px; }

/* English / Spanish language switcher */
.lang-es { display: none; }
html[data-site-lang="es"] .lang-en { display: none !important; }
html[data-site-lang="es"] .lang-es { display: revert; }
html[data-site-lang="es"] span.lang-es, html[data-site-lang="es"] a.lang-es { display: inline-flex; }
.language-switcher { display: inline-flex; gap: 6px; align-items: center; margin-left: 10px; }
.lang-toggle { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 10px; font-weight: 800; cursor: pointer; }
html[data-site-lang="en"] .lang-toggle[data-lang="en"], html[data-site-lang="es"] .lang-toggle[data-lang="es"] { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 850px) { .language-switcher { margin-left: auto; } }

/* Anti-spam contact form helpers */
.itsb-hidden-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; }
.notice-error { border-left: 4px solid #b42318; background: #fff4f2; }


/* Accessibility improvements: keyboard focus, skip link, reduced motion, form errors */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 9999; background: #fff; color: #063b73; border: 3px solid #063b73; border-radius: 10px; padding: 12px 16px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; outline: 3px solid #ffbf47; outline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, iframe:focus-visible, [tabindex]:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; box-shadow: 0 0 0 5px rgba(255,191,71,0.25); }
main:focus { outline: none; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; }
.form-help { display: block; margin: -8px 0 12px; color: #334155; font-size: 0.94rem; }
.required-mark { color: #8a1f11; font-weight: 900; }
.notice-success, .notice-error { border-left: 6px solid currentColor; }
.notice-error { color: #721c12; background: #fff2f0; }
.notice-success { color: #16451f; background: #f1fff3; }
.form-card input:invalid, .form-card textarea:invalid, .form-card select:invalid { border-color: #8a1f11; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; color: #063b73; display: block; font-size: 1rem; height: auto; left: 12px; line-height: normal; padding: 12px 16px; text-decoration: none; top: 12px; width: auto; z-index: 100000; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }

/* Temporary under construction page */
.construction-page { min-height: 72vh; background: linear-gradient(180deg, #f7fbff, #ffffff 55%); padding: 56px 0 72px; }
.construction-wrap { display: grid; gap: 24px; }
.construction-card { background: var(--white); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: clamp(28px, 5vw, 56px); text-align: center; max-width: 980px; margin: 0 auto; }
.construction-logo-wrap { margin: 0 auto 24px; max-width: 520px; }
.construction-logo { display: block; width: 100%; height: auto; margin: 0 auto; }
.construction-card h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.05em; max-width: 820px; margin-left: auto; margin-right: auto; }
.construction-card .lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.construction-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.construction-info { max-width: 980px; margin: 0 auto; width: 100%; }
.construction-info address { font-style: normal; line-height: 1.75; }
@media (max-width: 700px) { .construction-card { padding: 24px 18px; } .construction-actions .button { width: 100%; justify-content: center; } }
