/* Invoice Candy template galleries: /templates/invoices (AllTemplatesInvoices), /estimate-templates (MktEstimates) and
   /receipt-templates (MktReceipts), all through templates/_TemplateGallery.cshtml; the estimate and receipt landing pages add
   templates/_TemplateLanding.cshtml (steps + FAQ). tokens, buttons and the header/footer live in ic-site.css.
   scoped under .ic-gal: mkt-legacy.css, screen.css and the layout's own h2 rule also style h1-h3, p, ul, section and img */

/* peach theme: the header glass, hover/focus accent and mobile-menu hover follow the hero */
:root { --ic-accent: #C2432D; --ic-hero: #FFEFE9; --ic-header-bg: rgba(255, 239, 233, .86); }

.ic-gal { background: #fff; color: var(--ic-body); font-family: var(--ic-text); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.ic-gal *, .ic-gal *::before, .ic-gal *::after { box-sizing: border-box; }
.ic-gal img { display: block; max-width: 100%; }
.ic-gal h1, .ic-gal h2, .ic-gal h3 { margin: 0; color: var(--ic-ink); font-family: var(--ic-display); font-weight: 700; letter-spacing: -.015em; }
.ic-gal p { margin: 0; }
.ic-gal section { scroll-margin-top: 90px; }
.ic-gal :focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 3px; border-radius: 6px; }

/* hero */
.ic-ghero { padding: 64px 0 36px; background: var(--ic-hero); }
.ic-ghero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.ic-gal .ic-ghero h1 { max-width: 11ch; font-size: clamp(2.8rem, 6.2vw, 5.4rem); font-weight: 800; line-height: .92; letter-spacing: -.035em; } /* two lines: "Invoice / templates", "Free Estimate / Templates" */
.ic-ghero-side { justify-self: end; max-width: 32ch; }
.ic-gal .ic-ghero-side p { font-size: 1.25rem; line-height: 1.5; }
.ic-ghero-side .ic-btn { margin-top: 1.4rem; }

/* category chips: all of them on desktop; one swipeable row that sticks under the header on smaller screens.
   each chip links to its category page and filters in place when js runs */
.ic-chips-bar { padding: 0 0 36px; background: var(--ic-hero); }
.ic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ic-chips li { flex: none; margin: 0; scroll-snap-align: start; }
.ic-chips a { display: block; padding: .6rem 1rem .5rem; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--ic-line); color: var(--ic-ink); font-family: var(--ic-display); font-size: .98rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, box-shadow .15s; }
.ic-chips a:hover { box-shadow: 0 0 0 2px var(--ic-ink); color: var(--ic-ink); text-decoration: none; }
.ic-chips a[aria-current="true"] { background: var(--ic-ink); box-shadow: none; color: #fff; }
.ic-chip-count { margin-left: .35rem; font-weight: 500; opacity: .55; }
@media screen and (max-width: 999px) {
    .ic-chips-bar { position: sticky; top: 76px; z-index: 20; padding: 0; border-bottom: 1px solid var(--ic-line); background: var(--ic-header-bg); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); } /* under the 76px sticky header (z 1000) */
    .ic-chips { flex-wrap: nowrap; padding: 12px 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
    .ic-chips::-webkit-scrollbar { display: none; }
}

/* results */
.ic-results { padding: 36px 0 110px; }
.ic-results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; margin-bottom: 24px; }
.ic-gal .ic-results-count { color: var(--ic-muted); font-size: 1rem; }
.ic-results-count b { color: var(--ic-ink); }
.ic-cat-link { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem .55rem; border-radius: 999px; background: var(--ic-hero); color: var(--ic-ink); font-family: var(--ic-display); font-weight: 600; line-height: 1.2; text-decoration: none; }
.ic-cat-link:hover { background: var(--ic-ink); color: #fff; text-decoration: none; }
.ic-cat-link[hidden] { display: none; }

.ic-tgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 24px; margin: 0; padding: 0; list-style: none; }
.ic-tgrid > li { min-width: 0; margin: 0; }
.ic-tgrid > li[hidden] { display: none; }
.ic-tcard-image { display: block; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 11, 15, .07), 0 18px 30px -22px rgba(0, 11, 15, .5); transition: transform .22s ease, box-shadow .22s ease; }
.ic-tcard-image img { width: 100%; height: auto; aspect-ratio: 400 / 517; object-fit: cover; }
.ic-tgrid > li:hover .ic-tcard-image { transform: translateY(-5px); box-shadow: 0 0 0 2px var(--ic-ink), 0 24px 36px -22px rgba(0, 11, 15, .55); }
.ic-tcard-title { display: -webkit-box; overflow: hidden; margin-top: .85rem; color: var(--ic-ink); font-family: var(--ic-display); font-size: 1.02rem; font-weight: 600; line-height: 1.25; text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ic-tcard-title:hover { color: var(--ic-accent); text-decoration: none; }
.ic-tcard-desc { overflow: hidden; margin-top: .25rem; color: var(--ic-muted); font-size: .9rem; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }

@media screen and (max-width: 1180px) {
    .ic-tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media screen and (max-width: 900px) {
    .ic-ghero-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ic-ghero-side { justify-self: start; }
    .ic-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
}
@media screen and (max-width: 620px) {
    .ic-ghero { padding-top: 40px; }
    .ic-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* landing pages (/estimate-templates, /receipt-templates): how it works, then the FAQ */
.ic-gal .ic-gsection-title { max-width: 14ch; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: .98; letter-spacing: -.03em; }
.ic-gsteps { padding: 0 0 110px; }
.ic-gsteps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.ic-gstep figure { overflow: hidden; margin: 0; aspect-ratio: 5 / 4; border-radius: 22px; background: var(--ic-hero); }
.ic-gstep:nth-child(2) figure { background: #EEF0FF; }
.ic-gstep:nth-child(3) figure { background: var(--ic-sugar); }
.ic-gstep figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; mix-blend-mode: multiply; } /* white photo backgrounds take the card's tint */
.ic-gstep-num { margin: 28px 0 12px; color: var(--ic-accent); font-family: var(--ic-display); font-size: 5.5rem; font-weight: 800; line-height: .8; letter-spacing: -.04em; }
.ic-gstep:nth-child(2) .ic-gstep-num { color: #7C86E8; }
.ic-gstep:nth-child(3) .ic-gstep-num { color: var(--ic-pink); }
.ic-gal .ic-gstep h3 { margin-bottom: .6rem; font-size: 1.65rem; line-height: 1.1; }
.ic-gal .ic-gstep p { max-width: 34ch; }
.ic-gsteps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 56px; padding: 28px 32px; border-radius: 22px; background: var(--ic-mist); }
.ic-gal .ic-gsteps-cta p { flex: 1; min-width: 220px; color: var(--ic-ink); font-family: var(--ic-display); font-size: 1.25rem; font-weight: 600; }
@media screen and (max-width: 860px) {
    .ic-gsteps-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .ic-gstep figure { max-width: 520px; }
}

.ic-faq { padding: 120px 0; background: var(--ic-mist); }
.ic-faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.ic-faq-side { position: sticky; top: 110px; }
.ic-gal .ic-faq .ic-gsection-title { max-width: 10ch; }
.ic-faq-list { display: flex; flex-direction: column; gap: 10px; }
.ic-faq-list details { border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--ic-line); transition: box-shadow .2s; }
.ic-faq-list details[open] { box-shadow: 0 0 0 2px var(--ic-ink); }
.ic-faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; list-style: none; cursor: pointer; }
.ic-faq-list summary::-webkit-details-marker { display: none; }
.ic-gal .ic-faq-list summary h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.ic-plus { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ic-hero); color: var(--ic-ink); transition: transform .25s, background-color .25s; }
.ic-faq-list details[open] .ic-plus { transform: rotate(45deg); background: var(--ic-accent); color: #fff; }
.ic-gal .ic-faq-list details p { max-width: 60ch; padding: 0 24px 24px; color: var(--ic-body); }
@media screen and (max-width: 900px) {
    .ic-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .ic-faq-side { position: static; }
}
@media screen and (max-width: 600px) {
    .ic-gsteps { padding-bottom: 80px; }
    .ic-faq { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ic-gal *, .ic-gal *::before, .ic-gal *::after { transition: none !important; animation: none !important; }
}
