/* =========================================================
   Chitown Digital Experts – component styles
   Brand palette taken from the logo: blue #0a5bd6 → #0b3a8c, ink #16181d
   ========================================================= */
:root {
  --brand: #0a5bd6;
  --brand-dark: #0b3a8c;
  --brand-50: #eef5ff;
  --ink: #16181d;
  --ink-soft: #4f5a70;
  --line: #eceef2;
  --surface: #ffffff;
  --radius: 1.25rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
html.dark {
  --line: #1b2230;
  --surface: #121821;
}

body { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
img, picture, svg { max-width: 100%; }
.text-balance { text-wrap: balance; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Accessibility basics ---------- */
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--brand); color: #fff; padding: .75rem 1.25rem; border-radius: .75rem; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #5996fd; outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

/* ---------- Layout helpers ---------- */
.section { padding-block: 5rem; }
@media (min-width: 1024px) { .section { padding-block: 6.5rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; border-radius: 2px; }
.text-center .eyebrow::after, .mx-auto > .eyebrow::after { content: ""; width: 2rem; height: 2px; background: currentColor; border-radius: 2px; }
html.dark .eyebrow { color: #8ebcff; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(16, 24, 40, .05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { box-shadow: 0 18px 40px -16px rgba(11, 58, 140, .28); border-color: #bcd6ff; }
html.dark .card:hover { border-color: #0b48ad; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }

.icon-tile {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; flex-shrink: 0;
  border-radius: 1rem; background: var(--brand-50); color: var(--brand);
}
html.dark .icon-tile { background: #0b1f45; color: #8ebcff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.2;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
  border: 2px solid transparent; white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(10, 91, 214, .7); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
html.dark .btn-outline { border-color: #5996fd; color: #8ebcff; }
html.dark .btn-outline:hover { background: #0a5bd6; border-color: #0a5bd6; color: #fff; }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-white:hover { background: var(--brand-50); }
.btn-ghost-white { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-white:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn[disabled] { opacity: .65; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px;
  color: var(--ink); background: #f6f7f9; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--brand-50); color: var(--brand); }
html.dark .icon-btn { background: #1b2230; color: #eceef2; }
html.dark .icon-btn:hover { background: #0b1f45; color: #8ebcff; }

/* ---------- About section (home) ---------- */
.dot-pattern { background-image: radial-gradient(#8ebcff 2px, transparent 2px); background-size: 18px 18px; }
html.dark .dot-pattern { background-image: radial-gradient(#0b48ad 2px, transparent 2px); }
.about-photo img { transition: transform .9s var(--ease); }
.about-photo:hover img { transform: scale(1.05); }
.about-feature {
  position: relative; overflow: hidden; padding: 1.4rem 1.25rem; border-radius: 1.25rem;
  background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.about-feature::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--brand);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.about-feature > * { position: relative; z-index: 1; }
.about-feature:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: 0 20px 40px -18px rgba(10, 91, 214, .55); }
.about-feature:hover::before { transform: translateY(0); }
.about-feature-icon {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  background: var(--brand-50); color: var(--brand); transition: background .35s, color .35s, transform .45s var(--ease);
}
.about-feature:hover .about-feature-icon { background: #fff; color: var(--brand); transform: rotate(-8deg) scale(1.05); }
html.dark .about-feature-icon { background: #0b1f45; color: #8ebcff; }

/* ---------- Header / nav ---------- */
#site-header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(16, 24, 40, .18); }
.logo-wrap { display: inline-flex; align-items: center; }
html.dark .logo-wrap { background: #fff; border-radius: .9rem; padding: .3rem .6rem; }

.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .25rem;
  padding: .6rem 1rem; font-weight: 600; color: var(--ink); border-radius: 999px; transition: color .2s, background .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .25rem; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--brand); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
html.dark .nav-link { color: #eceef2; }
html.dark .nav-link:hover, html.dark .nav-link.is-active { color: #8ebcff; }

.dropdown {
  position: absolute; left: 0; top: 100%; min-width: 15rem; padding: .6rem; margin-top: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 24px 48px -16px rgba(16, 24, 40, .25);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -.75rem; height: .75rem; }
.group:hover > .dropdown, .group:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border-radius: .75rem; font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.dropdown-link:hover { background: var(--brand-50); color: var(--brand); }
html.dark .dropdown-link { color: #eceef2; }
html.dark .dropdown-link:hover { background: #0b1f45; color: #8ebcff; }
.icon-chip { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--brand-50); color: var(--brand); }
html.dark .icon-chip { background: #0b1f45; color: #8ebcff; }

.social-sm { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 999px; background: rgba(255, 255, 255, .08); transition: background .2s; }
.social-sm:hover { background: var(--brand); color: #fff; }

/* ---------- Drawers (mobile menu + ADA) ---------- */
.drawer, .a11y-drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.is-open, .a11y-drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.is-open > .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 360px); padding: 1.5rem; overflow-y: auto;
  background: var(--surface); transform: translateX(100%); transition: transform .35s var(--ease);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.mobile-link { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: .75rem; font-weight: 600; color: var(--ink); }
.mobile-link:hover, .mobile-link.is-active { background: var(--brand-50); color: var(--brand); }
html.dark .mobile-link { color: #eceef2; }
html.dark .mobile-link:hover, html.dark .mobile-link.is-active { background: #0b1f45; color: #8ebcff; }

.a11y-sheet {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(92vw, 380px); display: flex; flex-direction: column;
  background: var(--surface); transform: translateX(-100%); transition: transform .35s var(--ease); box-shadow: 20px 0 50px rgba(0, 0, 0, .2);
}
.a11y-drawer.is-open .a11y-sheet { transform: translateX(0); }
.a11y-btn {
  display: flex; align-items: center; gap: .6rem; padding: .8rem; border-radius: .9rem; text-align: left;
  font-size: .9rem; font-weight: 600; color: var(--ink); border: 2px solid var(--line); background: var(--surface); transition: all .2s;
}
.a11y-btn:hover { border-color: #8ebcff; }
.a11y-btn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
html.dark .a11y-btn { color: #eceef2; }
html.dark .a11y-btn[aria-pressed="true"] { background: #0b1f45; color: #8ebcff; border-color: #5996fd; }
.a11y-ic { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: #f6f7f9; color: var(--brand); flex-shrink: 0; }
html.dark .a11y-ic { background: #1b2230; color: #8ebcff; }

/* Floating action buttons */
.fab {
  position: fixed; z-index: 70; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 999px;
  box-shadow: 0 12px 28px -8px rgba(10, 91, 214, .65); transition: transform .3s var(--ease), opacity .3s, background .2s;
  opacity: 0; transform: translateY(16px); pointer-events: none;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--brand-dark); transform: translateY(-3px); }
#a11y-open { width: 3.5rem; height: 3.5rem; }

/* ---------- Hero slider ---------- */
.hero-track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide .hero-img { transform: scale(1.08); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-img { transform: scale(1); }
.hero-copy.is-active .hero-anim { animation: heroUp .8s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-dot { width: .7rem; height: .7rem; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: all .35s var(--ease); }
.hero-dot.is-active { width: 2.2rem; background: #fff; }

.slider-btn {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px;
  border: 2px solid var(--line); color: var(--ink); background: var(--surface); transition: all .25s;
}
.slider-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
html.dark .slider-btn { color: #eceef2; }
.slider-btn-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); color: #fff; backdrop-filter: blur(6px); }

/* ---------- Carousel (testimonials) ---------- */
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .25rem 1.5rem; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; }
@media (min-width: 768px) { .carousel { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (min-width: 1100px) { .carousel { grid-auto-columns: calc((100% - 3rem) / 3); } }

/* ---------- Logo marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1.5rem; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { width: 13rem; height: 13rem; flex-shrink: 0; overflow: hidden; border-radius: 1.5rem; background: #f6f7f9; box-shadow: 0 2px 10px rgba(16, 24, 40, .06); }
@media (min-width: 768px) { .marquee-item { width: 15rem; height: 15rem; } }
@keyframes marquee { to { transform: translateX(calc(-50% - .75rem)); } }

/* ---------- Pricing ---------- */
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 2rem; border-radius: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(16, 24, 40, .05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(11, 58, 140, .35); border-color: #8ebcff; }
.price-card.is-popular { border: 2px solid var(--brand); box-shadow: 0 24px 50px -20px rgba(10, 91, 214, .45); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
html.dark .field label { color: #eceef2; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: .85rem; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1.5px solid #d5d9e1; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10, 91, 214, .15); }
.field .is-invalid { border-color: #dc2626; }
html.dark .field input, html.dark .field select, html.dark .field textarea { background: #0c1017; border-color: #2a3344; color: #eceef2; }
.form-status { font-size: .9rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: #15803d; }
.form-status[data-state="error"] { color: #dc2626; }
html.dark .form-status[data-state="ok"] { color: #4ade80; }
html.dark .form-status[data-state="error"] { color: #f87171; }
.bg-brand-700 .form-status[data-state] { color: #fff; }

/* ---------- FAQ ---------- */
.faq { border-radius: 1rem; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.faq[open] { border-color: #8ebcff; box-shadow: 0 14px 34px -18px rgba(11, 58, 140, .35); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
html.dark .faq summary { color: #fff; }
.faq-icon { display: grid; place-items: center; width: 2rem; height: 2rem; flex-shrink: 0; border-radius: 999px; background: var(--brand-50); color: var(--brand); transition: background .2s, color .2s; }
.faq[open] .faq-icon { background: var(--brand); color: #fff; }
html.dark .faq-icon { background: #0b1f45; color: #8ebcff; }
.faq-body { padding: 0 1.35rem 1.25rem; line-height: 1.75; }
.faq[open] .faq-body { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer-title { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer-link { display: inline-flex; align-items: center; gap: .4rem; transition: color .2s, transform .2s; }
.footer-link:hover { color: #fff; transform: translateX(4px); }
.footer-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; flex-shrink: 0; border-radius: .6rem; background: rgba(255, 255, 255, .07); color: #8ebcff; }
.social { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, transform .2s; }
.social:hover { background: var(--brand); transform: translateY(-3px); }

/* ---------- Blog article ---------- */
.prose-content { font-size: 1.075rem; line-height: 1.85; }
.prose-content > * + * { margin-top: 1.1rem; }
.prose-content h2 { margin-top: 2.25rem; font-size: 1.6rem; font-weight: 800; line-height: 1.3; color: var(--ink); }
.prose-content h3 { margin-top: 1.75rem; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
html.dark .prose-content h2, html.dark .prose-content h3 { color: #fff; }
.prose-content ul { list-style: disc; padding-left: 1.4rem; }
.prose-content ol { list-style: decimal; padding-left: 1.4rem; }
.prose-content li + li { margin-top: .4rem; }
.prose-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose-content strong { color: var(--ink); }
html.dark .prose-content strong { color: #fff; }

/* ---------- Animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.float-slow { animation: floatY 6s ease-in-out infinite; }
.spin-slow { animation: spin 18s linear infinite; }
@keyframes floatY { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   ADA / accessibility modes (toggled from the widget)
   ========================================================= */
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast body *:not(svg):not(path):not(img):not(picture):not(source) { background-color: transparent !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; }
html.a11y-contrast a, html.a11y-contrast a * { color: #ffeb3b !important; }
html.a11y-contrast .btn, html.a11y-contrast button { border: 2px solid #ffeb3b !important; }
html.a11y-contrast header, html.a11y-contrast footer, html.a11y-contrast .a11y-sheet, html.a11y-contrast .drawer-panel, html.a11y-contrast section { background: #000 !important; }
html.a11y-contrast input, html.a11y-contrast textarea, html.a11y-contrast select { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html.a11y-contrast .logo-wrap { background: #fff !important; }
html.a11y-gray body { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed #f59e0b; outline-offset: 2px; }
html.a11y-font body, html.a11y-font body * { font-family: Verdana, Tahoma, Arial, sans-serif !important; }
html.a11y-lh body * { line-height: 2 !important; }
html.a11y-ls body * { letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-noanim [data-reveal] { opacity: 1; transform: none; }
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9-7 2-3 7z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important;
}
