/* Corproots Consultants — styles for sub-pages (services, NRI, about, contact, blog, fee calculator).
   Loaded after styles.css, which holds the design tokens and shared components. */

.nav a[aria-current="page"] { color: var(--text); background: var(--brand-soft); }

/* page hero */
.page-hero { position: relative; padding: calc(var(--header-h) + 44px) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin: 18px 0 16px; letter-spacing: -.03em; max-width: 880px; }
.page-hero .lead { max-width: 700px; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.page-hero .hero-cta { margin-top: 28px; }
.page-hero + .section { padding-top: clamp(40px, 6vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fact { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.fact .icon { color: var(--brand); }
.container.narrow { width: min(780px, 100% - 40px); }

/* include cards */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-grid.four { grid-template-columns: repeat(4, 1fr); }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand); }
.feat .ck { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 16px; box-shadow: 0 8px 18px -8px rgba(11, 79, 138, .55); }
.feat h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: .93rem; }
@media (max-width: 960px) { .feat-grid, .feat-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid, .feat-grid.four { grid-template-columns: 1fr; } }

/* two-column layouts + panels */
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.two-col.even { grid-template-columns: 1fr 1fr; align-items: center; }
.two-col.even:has(.price-card) { align-items: stretch; }
.doc-stack { display: grid; gap: 18px; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.panel-card h3 { font-size: 1.08rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel-card h3 .icon { color: var(--brand); }
.note-card { background: var(--brand-soft); border-color: rgba(10, 143, 212, .25); box-shadow: none; position: sticky; top: calc(var(--header-h) + 20px); }
.check-list { display: grid; gap: 11px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.check-list li > .icon { width: 1.05em; height: 1.05em; margin-top: 4px; color: var(--brand); stroke-width: 3; }
.check-list a { transition: color .2s; }
.check-list a:hover { color: var(--brand-ink); }
.dot-list { display: grid; gap: 12px; }
.dot-list li { position: relative; padding-left: 20px; font-size: .94rem; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.note-card .fine { margin-top: 16px; }
@media (max-width: 860px) { .two-col, .two-col.even { grid-template-columns: 1fr; } .note-card { position: static; } }

/* timeline with a variable number of steps (--n set inline). Desktop only, so the stacked mobile layout in styles.css still applies. */
@media (min-width: 901px) {
  .timeline { grid-template-columns: repeat(var(--n, 5), 1fr); }
  .timeline::before, .timeline::after { left: calc(50% / var(--n, 5)); right: calc(50% / var(--n, 5)); }
}

/* price card (content filled from CONFIG.pricing by main.js) */
.price-card { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: column; gap: 6px; }
.price-card::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -80px; top: -100px; pointer-events: none; }
.price-card small { opacity: .85; position: relative; z-index: 1; }
.price-card .big { font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; margin: 4px 0 8px; position: relative; z-index: 1; }
.price-card ul { display: grid; gap: 8px; font-size: .92rem; margin: 4px 0 12px; position: relative; z-index: 1; }
.price-card li { display: flex; gap: 8px; align-items: center; }
.price-card p { opacity: .92; font-size: .92rem; position: relative; z-index: 1; }
.price-card .disc { font-size: .75rem; opacity: .8; margin-top: auto; padding-top: 10px; }
.price-card .btn { background: #fff; color: #0a6aa8; margin-top: 14px; align-self: flex-start; position: relative; z-index: 1; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); }
.price-card .btn:hover { transform: translateY(-2px); }

/* related / link cards */
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.link-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.link-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand); }
.link-card b { font-family: var(--ff-head); font-size: 1.08rem; }
.link-card > span:not(.svc-ico):not(.svc-hint) { color: var(--muted); font-size: .9rem; }
.link-card .svc-ico { width: 46px; height: 46px; font-size: 1.3rem; border-radius: 14px; }
@media (max-width: 1000px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .link-grid { grid-template-columns: 1fr; } }

.static-stats { margin: 0; }
.cmp-foot a[data-open-calc] { cursor: pointer; }

/* price table (fee calculator page) */
.ptable { width: 100%; border-collapse: collapse; min-width: 560px; }
.ptable th, .ptable td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; }
.ptable thead th { background: var(--surface-2); font-family: var(--ff-head); font-size: .88rem; color: var(--muted); }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: var(--brand-soft); }
.ptable td:first-child { font-weight: 700; }
.ptable td { font-variant-numeric: tabular-nums; }

/* about */
.h2-left { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 14px 0 16px; }
.h2-left.small { font-size: 1.5rem; margin: 0 0 18px; }
.body-lg { color: var(--muted); font-size: 1.04rem; margin-bottom: 14px; }
.role-list { display: grid; gap: 16px; margin-top: 8px; }
.role-list li { display: flex; gap: 14px; align-items: flex-start; }
.role-list .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.role-list b { display: block; }
.role-list span { color: var(--muted); font-size: .92rem; }
.cert-card .iso-badge { margin-bottom: 8px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: clamp(280px, 40vw, 400px); border: 0; display: block; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .3s, border-color .3s, box-shadow .3s; }
a.contact-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.contact-card .svc-ico { width: 48px; height: 48px; border-radius: 14px; flex: none; font-size: 1.3rem; }
.contact-card b { display: block; }
.contact-card span:not(.svc-ico) { color: var(--muted); font-size: .92rem; }
.enquiry { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.enquiry .hint { color: var(--muted); font-size: .92rem; margin: -6px 0 20px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand); }
.post-card h2 { font-size: 1.25rem; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.tag-line { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.article-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.article { padding-top: 8px; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.5rem; margin: 38px 0 12px; }
.prose p { color: #2c3f55; margin: 0 0 16px; }
.prose ul { display: grid; gap: 10px; margin: 0 0 18px; padding-left: 22px; list-style: disc; color: #2c3f55; }
.prose strong { color: var(--text); }
.back-link { margin-top: 28px; }
.back-link a { color: var(--brand-ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .price-card::after { display: none; } }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* thank-you page */
.thanks { text-align: center; padding-bottom: 56px; }
.thanks .container { display: grid; justify-items: center; }
.thanks h1 { margin-inline: auto; }
.thanks .lead { margin-inline: auto; }
.thanks .tick { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 16px 34px -10px rgba(11, 79, 138, .55); margin-bottom: 18px; }
.thanks .tick .icon { width: 36px; height: 36px; stroke-width: 3; }
.thanks .hero-cta { justify-content: center; }
.thanks .notice { max-width: 560px; margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--brand-soft); border: 1px solid rgba(10, 143, 212, .25); font-size: .9rem; }
.thanks .result { width: min(520px, 100%); margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.next-steps { counter-reset: s; display: grid; gap: 12px; margin: 34px auto 0; max-width: 520px; text-align: left; }
.next-steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.next-steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: .85rem; }
.thanks .back-link { margin-top: 28px; }

/* YouTube explainers (light embed) */
.vid-sec { padding-top: clamp(28px, 5vw, 48px); }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.vid-grid.one { max-width: 780px; margin-inline: auto; }
.vid-grid.post { margin: 0 0 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.vid-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.vid { position: relative; aspect-ratio: 16 / 9; background: #0b1320; }
.vid-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.vid-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity .3s; opacity: .92; }
.vid-play:hover img { transform: scale(1.03); opacity: 1; }
.vid-btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(11, 79, 138, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .25s ease; }
.vid-btn svg { width: 30px; height: 30px; margin-left: 3px; }
.vid-play:hover .vid-btn, .vid-play:focus-visible .vid-btn { transform: scale(1.1); }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-card figcaption { padding: 14px 16px 16px; display: grid; gap: 8px; }
.vid-card figcaption b { font-size: 1rem; line-height: 1.35; }
.vid-card figcaption span { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .86rem; }
.vid-card figcaption em { font-style: normal; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border-radius: 99px; padding: 2px 10px; }
.vid-card figcaption a { color: var(--brand); font-weight: 600; }
.vid-more { text-align: center; margin: 22px 0 0; font-weight: 600; }
.vid-more a { display: inline-flex; align-items: center; gap: 8px; }

.contact-card a[href^="tel:"] { color: inherit; text-decoration: none; } .contact-card a[href^="tel:"]:hover { color: var(--brand-ink); text-decoration: underline; }
