/*
 * Titan theme for Pagician. © Digital Titan. All rights reserved.
 * Proprietary: licensed only for websites run by Digital Titan or its Pagician customers (see themes/LICENSE.md).
 *
 * Layout concept: a circuit board. A trace in the brand colour runs down the page and each section hangs
 * off it at a ring node, like the traces in the Digital Titan logo. Wide geometric caps for headings
 * (echoing the Boxen wordmark), a plain grotesk for reading. Fonts: TeX Gyre Adventor and Heros (GUST licence).
 */
@font-face { font-family: "Adventor"; src: url("fonts/adventor-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Adventor"; src: url("fonts/adventor-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Heros"; src: url("fonts/heros-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Heros"; src: url("fonts/heros-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Heros"; src: url("fonts/heros-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --brand: #e34234; --brand-deep: #c4301f; --on-brand: #fff; --accent: #585562;
  --bg: #f7f6f9; --surface: #eeecf2; --card: #fff; --ink: #24222b; --muted: #585562; --line: #dcd9e2;
  --dark: #24222b; --dark-2: #2e2b36;
  --font-head: "Adventor", "Avant Garde", "Century Gothic", "URW Gothic", Futura, "Trebuchet MS", sans-serif;
  --font-body: "Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1180px; --radius: 14px; --trace-x: 30px;
  --shadow: 0 24px 48px -28px rgb(20 18 28 / 40%);
  --logo-mark: var(--brand);
  --menu-break: 1080px;
}
body { background: var(--bg); color: var(--ink); font-size: 1.0625rem; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
h3 { line-height: 1.22; letter-spacing: 0; }
a { color: var(--brand-deep); }
:focus-visible { outline-color: var(--brand); border-radius: 4px; }

/* ---- buttons: pills in wide caps */
.button { border-radius: 999px; padding: 0.95em 1.55em; font: 700 0.95rem/1 var(--font-head); letter-spacing: 0.04em; }
.button:hover { filter: none; box-shadow: 0 12px 24px -12px var(--brand); }
.button--ghost { color: var(--ink); border-color: var(--line); }
.button--ghost:hover { border-color: var(--ink); background: transparent; box-shadow: none; }

/* ---- header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; gap: 12px 24px; }
.brand-svg { display: block; color: var(--ink); line-height: 0; }
.brand-svg svg { height: 30px; width: auto; }
.site-nav { gap: 2px; }
.site-nav a { padding: 10px 14px; border: 0; border-radius: 999px; font: 700 0.84rem/1 var(--font-head); letter-spacing: 0.06em; color: var(--ink); }
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--brand-deep); }
.header-cta { padding: 0.8em 1.25em; font-size: 0.86rem; }
.menu-button { border-radius: 999px; border: 2px solid var(--line); padding: 9px 16px; font: 700 0.84rem/1 var(--font-head); }
@media (max-width: 1080px) {
  .logo, .brand-svg { margin-right: auto; }
  .js .menu-button { display: inline-flex; }
  .site-nav { order: 9; flex-basis: 100%; flex-direction: column; padding-bottom: 14px; }
  .site-nav a { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .site-nav a:hover { background: transparent; }
  .js .site-nav { display: none; }
  .js .menu-button[aria-expanded="true"] ~ .site-nav { display: flex; }
}
@media (max-width: 560px) { .header-cta { display: none; } .brand-svg svg { height: 24px; } }

/* ---- the circuit trace: a line down the page, a ring node at each section title */
.board { position: relative; }
.board::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(calc((100vw - var(--wrap)) / 2 + 2px), 6px); width: 2px; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 25%, transparent)); opacity: 0.55; pointer-events: none; z-index: 1; }
.board > .block > .wrap { padding-left: calc(var(--gutter) + var(--trace-x)); }
.board > .block { position: relative; }
.board .section-title { position: relative; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); max-width: 22ch; margin-bottom: 0.45em; }
.board > .block > .wrap .section-title::before,
.board > .block > .wrap > .cta-copy .cta-title::before { content: ""; position: absolute; left: calc(-1 * var(--trace-x) - 9px); top: 0.25em; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--brand); background: var(--bg); box-sizing: border-box; z-index: 2; }
.board > .block.bg-subtle .section-title::before { background: var(--surface); }
.board > .block.bg-dark .section-title::before { background: var(--dark); border-color: color-mix(in srgb, var(--brand) 70%, #fff); }
.block.align-center .section-title { margin-inline: auto; }
.block.align-center .section-title::before { display: none; }
.section-intro { font-size: 1.2rem; color: var(--muted); max-width: 58ch; margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 640px) {
  :root { --trace-x: 16px; }
  .board::before { left: 10px; }
  .board > .block > .wrap .section-title::before, .board > .block > .wrap > .cta-copy .cta-title::before { width: 14px; height: 14px; left: calc(-1 * var(--trace-x) - 6px); }
}

.block.bg-subtle { background: var(--surface); }
.block.bg-dark { background: var(--dark); }
.block.bg-dark .button--ghost { color: #fff; border-color: rgb(255 255 255 / 30%); }

/* ---- hero: big geometric headline beside the hero art; inner pages get faint circuit traces instead */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero:not(.hero--image) .hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero-copy::before { content: "Make it simple"; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 700 0.78rem/1 var(--font-head); letter-spacing: 0.32em; text-transform: uppercase; color: var(--brand-deep); }
.hero-copy::after { content: none; }
.hero-title { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem); line-height: 1.04; max-width: 18ch; margin-bottom: 0.4em; }
.hero-lead { font-size: 1.25rem; max-width: 52ch; color: var(--muted); opacity: 1; }
.hero-art { display: block; position: relative; }
.hero--art .hero-art > .hero-media { width: 100%; height: auto; border-radius: 0; object-fit: contain; filter: drop-shadow(0 30px 40px rgb(20 18 28 / 22%)); }
.hero:not(.hero--image) { background: no-repeat right max(-60px, calc((100vw - var(--wrap)) / 2 - 80px)) center / min(520px, 46vw) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 360' fill='none' stroke='%23e34234' stroke-opacity='.16' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 40h120l60 60h110l40 40'/%3E%3Ccircle cx='364' cy='154' r='14'/%3E%3Cpath d='M20 110h80l70 70h90'/%3E%3Ccircle cx='274' cy='180' r='14'/%3E%3Cpath d='M20 180h40l90 90h170l50-50'/%3E%3Ccircle cx='384' cy='210' r='14'/%3E%3Cpath d='M150 20l90 0 50 50h90'/%3E%3Ccircle cx='394' cy='70' r='14'/%3E%3Cpath d='M20 250h20l60 60h130'/%3E%3Ccircle cx='244' cy='310' r='14'/%3E%3Cpath d='M240 120l40 0 40-40h80l60 60'/%3E%3Ccircle cx='470' cy='150' r='14'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero:not(.hero--image) { background-image: none; } }

/* ---- cards (services, columns, prices) */
.cards { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card-title { font-size: 1.22rem; }
.card-text { color: var(--muted); }
.services .card-num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%; border: 3px solid var(--brand); color: var(--brand-deep); font: 700 0.95rem/1 var(--font-head); }
.col-grid { gap: 22px 18px; }
.col-item { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.col-item .col-img { width: 100%; aspect-ratio: 640 / 403; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
.col-item .card-title, .col-item .card-text, .col-item .col-link { margin-inline: 22px; }
.col-item .card-title { margin-top: 18px; font-size: 1.05rem; }
.col-item .card-text { margin-bottom: 20px; font-size: 0.95rem; line-height: 1.5; }
.col-item:not(:has(.col-img)) { padding: 28px 6px; }
.col-link { font: 700 0.86rem/1 var(--font-head); letter-spacing: 0.05em; text-decoration: none; margin-bottom: 22px; margin-top: auto; }
.bg-dark .card { background: var(--dark-2); border-color: rgb(255 255 255 / 10%); }

/* ---- image + text: the screen-shot split */
.image-text-inner { gap: clamp(32px, 6vw, 80px); }
.image-text-img { border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgb(0 0 0 / 55%), 0 0 0 1px var(--line); }
.bg-dark .image-text-img { box-shadow: 0 40px 80px -40px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 10%); }
.image-text-copy .rich { font-size: 1.08rem; }
.rich ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.rich ul li { position: relative; padding-left: 34px; margin: 0; }
.rich ul li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.rich blockquote { margin: 0 0 1em; padding: 0; border: 0; color: var(--ink); font: 700 clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem)/1.15 var(--font-head); letter-spacing: -0.01em; text-wrap: balance; }
.rich blockquote::before { content: ""; display: block; width: 56px; height: 4px; background: var(--brand); margin-bottom: 26px; border-radius: 2px; }
.prose { max-width: 72ch; }

/* ---- key figures: the fact strip */
.stats .stat-list { gap: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-value { font: 700 clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem)/1 var(--font-head); color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.bg-dark .stat { background: var(--dark-2); border-color: rgb(255 255 255 / 10%); }
.bg-dark .stat-value { color: color-mix(in srgb, var(--brand) 70%, #fff) !important; }

/* ---- steps: ring nodes on a connecting trace */
.step-list { gap: 26px 0; }
.step { padding-right: 24px; }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); color: var(--brand-deep); font: 700 1.05rem/1 var(--font-head); }
.bg-subtle .step-num { background: var(--surface); }
.bg-dark .step-num { background: var(--dark); color: #fff; }
.step-title { font-size: 1.2rem; }
.step-text { color: var(--muted); font-size: 0.98rem; }

/* ---- timeline */
.time-item { border-color: var(--line); }
.time-when { font: 700 0.8rem/1.4 var(--font-head); letter-spacing: 0.08em; color: var(--brand-deep); text-transform: uppercase; }
.time-title { font-size: 1.12rem; }
.time-detail { color: var(--muted); font-weight: 700; }
.time-text { color: var(--muted); }

/* ---- prices: plan cards and a rate table */
.price-cards { gap: 20px; align-items: stretch; }
.price-card { padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.price-card .price-name { font-size: 1.25rem; }
.price-card .price-amount { font: 700 clamp(2.3rem, 1.6rem + 2.6vw, 3.4rem)/1 var(--font-head); color: var(--ink); letter-spacing: -0.02em; }
.price-card.is-highlight { outline: 0; border: 2px solid var(--brand); position: relative; box-shadow: var(--shadow); }
.price-card.is-highlight::before { content: "Most popular"; position: absolute; top: -13px; left: 28px; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 700 0.68rem/1 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; }
.price-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 24px; max-width: 900px; }
.price-row { border-color: var(--line); padding-block: 18px; }
.price-row:last-child { border-bottom: 0; }
.price-name { font-weight: 700; }
.price-amount { font: 700 1.05rem/1.4 var(--font-head); color: var(--brand-deep); }
.price-dots { border-color: var(--line); }
.price-note { color: var(--muted); font-size: 0.9rem; margin-top: 20px; }

/* ---- questions */
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { border-color: var(--line); }
.faq-item summary { font: 700 1.08rem/1.35 var(--font-body); padding-block: 22px; }
.faq-item summary::after { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--brand); background: linear-gradient(var(--brand), var(--brand)) center / 10px 2px no-repeat, linear-gradient(var(--brand), var(--brand)) center / 2px 10px no-repeat; transition: rotate 0.2s; transform: none; }
.faq-item[open] summary::after { rotate: 45deg; transform: none; content: ""; }
.faq-answer { color: var(--muted); }

/* ---- testimonials and team */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote blockquote::before { color: var(--brand); }
.team-photo { border-radius: 50%; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--brand); }
.team-role { color: var(--brand-deep); font: 700 0.86rem/1.4 var(--font-head); letter-spacing: 0.04em; }

/* ---- call to action: the cinnabar band with traces */
.cta-banner.bg-brand { position: relative; overflow: hidden; background: var(--brand) no-repeat right -40px top -30px / 420px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 360' fill='none' stroke='%23fff' stroke-opacity='.2' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 40h120l60 60h110l40 40'/%3E%3Ccircle cx='364' cy='154' r='14'/%3E%3Cpath d='M20 110h80l70 70h90'/%3E%3Ccircle cx='274' cy='180' r='14'/%3E%3Cpath d='M20 180h40l90 90h170l50-50'/%3E%3Ccircle cx='384' cy='210' r='14'/%3E%3Cpath d='M150 20l90 0 50 50h90'/%3E%3Ccircle cx='394' cy='70' r='14'/%3E%3Cpath d='M240 120l40 0 40-40h80l60 60'/%3E%3Ccircle cx='470' cy='150' r='14'/%3E%3C/svg%3E"); }
.cta-title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); max-width: 20ch; position: relative; }
.cta-banner.bg-brand .cta-title::before { border-color: #fff !important; background: var(--brand) !important; }
.cta-banner.bg-brand .cta-button { background: #fff; border-color: #fff; color: var(--brand-deep) !important; }

/* ---- contact */
.contact-form { padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.contact-form input, .contact-form textarea, .contact-form select { border-radius: 10px; background: var(--bg); padding: 13px 15px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.contact-list dt { font: 700 0.74rem/1 var(--font-head); letter-spacing: 0.22em; }
.contact-list dd { font: 700 1.25rem/1.3 var(--font-head); overflow-wrap: anywhere; }
.contact-list dd a { color: var(--ink); text-decoration: none; }
.hours-card, .map-frame { border-radius: var(--radius); }

/* ---- footer: dark, four columns */
.site-footer { background: var(--dark); color: rgb(255 255 255 / 82%); padding-block: 64px 32px; font-size: 0.97rem; position: relative; z-index: 2; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: color-mix(in srgb, var(--brand) 60%, #fff); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.footer-logo { display: block; width: 230px; color: #fff; --logo-mark: color-mix(in srgb, var(--brand) 85%, #fff); }
.footer-logo svg { width: 100%; height: auto; }
.footer-name { font: 700 1.3rem var(--font-head); color: #fff; }
.footer-text { margin-top: 18px; max-width: 36ch; }
.footer-head { font: 700 0.74rem/1 var(--font-head); letter-spacing: 0.24em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col .social-links { margin-top: 18px; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 10%); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.86rem; }
.footer-base p { margin: 0; }
.footer-slogan { font: 700 0.74rem/1.6 var(--font-head); letter-spacing: 0.28em; text-transform: uppercase; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
/* Bigger tap targets for the footer link lists on touch screens */
@media (max-width: 800px) { .footer-col ul { gap: 2px; } .footer-col li a { display: inline-block; padding-block: 10px; } }
