/* Company Register Nepal — Webmandu · light green editorial */

:root {
    --cream: #f0fdf4;
    --cream-dark: #dcfce7;
    --paper: #ffffff;
    --ink: #14532d;
    --muted: #3d6845;
    --rust: #22c55e;
    --rust-dark: #15803d;
    --gold: #4ade80;
    --line: rgba(22, 101, 52, 0.14);
    --shell: min(1100px, 100% - clamp(1rem, 4vw, 2.5rem));
    --font-display: "Fraunces", Georgia, serif;
    --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
    --tap: 44px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 0.2vw + 0.9rem, 1.05rem);
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
}

a {
    color: var(--rust-dark);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--rust);
}

.cr-shell {
    width: var(--shell);
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    z-index: 9999;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    background: var(--paper);
    clip: auto;
    width: auto;
    height: auto;
}

/* Header */
.cr-header {
    background: var(--paper);
    border-bottom: 3px solid var(--rust);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 8px 30px rgba(21, 83, 45, 0.08);
}

.cr-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    position: relative;
}

.cr-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}

.cr-logo__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--rust), var(--gold));
    flex-shrink: 0;
}

.cr-logo__txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cr-logo__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 0.3vw + 0.9rem, 1.15rem);
}

.cr-logo__sub {
    font-size: 0.75rem;
    color: var(--muted);
}

.cr-logo--footer .cr-logo__sub {
    display: none;
}

.cr-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: var(--tap);
    min-height: var(--tap);
    border: 1px solid var(--line);
    background: var(--cream);
    border-radius: 10px;
    cursor: pointer;
}

.cr-burger span:not(.screen-reader-text) {
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 0 auto;
}

.cr-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cr-nav__list {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cr-nav__list a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink);
}

.cr-nav__list a:hover {
    color: var(--rust);
}

.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.86rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.cr-btn--solid {
    background: var(--rust);
    color: #fff;
}

.cr-btn--solid:hover {
    color: #fff;
    background: var(--rust-dark);
    transform: translateY(-1px);
}

.cr-btn--outline {
    background: transparent;
    border: 2px solid var(--rust);
    color: var(--rust-dark);
}

.cr-btn--block {
    width: 100%;
}

@media (max-width: 900px) {
    .cr-burger {
        display: inline-flex;
    }

    .cr-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.35rem);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 20px 50px rgba(21, 83, 45, 0.12);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: 0.2s ease;
        z-index: 60;
        max-height: min(72vh, 26rem);
        overflow-y: auto;
    }

    .cr-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .cr-nav__list {
        flex-direction: column;
    }

    .cr-nav__cta {
        text-align: center;
    }

    html.nav-open {
        overflow: hidden;
    }
}

/* Hero */
.cr-hero {
    padding: clamp(2.5rem, 7vw, 4.5rem) 0;
    background: linear-gradient(165deg, var(--cream-dark) 0%, var(--cream) 45%, var(--paper) 100%);
    border-bottom: 1px solid var(--line);
}

.cr-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.cr-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cr-hero__col-media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 880px) {
    .cr-hero__inner {
        grid-template-columns: 1fr;
    }
}

.cr-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rust);
    margin: 0 0 0.5rem;
}

.cr-kicker--on-ink {
    color: #86efac;
}

.cr-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.cr-hero__em {
    font-style: italic;
    color: var(--rust);
}

.cr-hero__p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 50ch;
    margin: 0 0 1.25rem;
}

.cr-hero__aside {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--rust);
    padding: 1.5rem;
    border-radius: 4px 12px 12px 4px;
}

.cr-hero__aside h3 {
    font-family: var(--font-display);
    margin: 0 0 0.75rem;
}

.cr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.cr-pills li {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    background: var(--cream-dark);
    border-radius: 999px;
}

/* Blocks */
.cr-block {
    padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.cr-block--stripe {
    background: var(--cream-dark);
    border-block: 1px solid var(--line);
}

.cr-block--ink {
    background: var(--ink);
    color: #d1fae5;
}

.cr-block--ink h2,
.cr-block--ink h3 {
    color: #f0fdf4;
}

.cr-block--ink .cr-lead {
    color: #a7c4b0;
}

.cr-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.05rem);
    margin: 0 0 1rem;
}

.cr-lead {
    color: var(--muted);
    max-width: 65ch;
    margin: 0 0 1.25rem;
}

.cr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.cr-tile {
    background: var(--paper);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.cr-tile h3 {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
}

.cr-tile p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.cr-block--ink .cr-tile {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #d1fae5;
}

.cr-block--ink .cr-tile p {
    color: #a7c4b0;
}

.cr-type-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
}

.cr-type-card h3 {
    font-family: var(--font-display);
    margin-top: 0;
    color: var(--rust-dark);
}

.cr-type-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.cr-doc-banner {
    margin: 0 0 1.75rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    max-height: min(320px, 50vw);
    background: var(--paper);
}

.cr-doc-banner img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
}

.cr-timeline {
    border-left: 3px solid var(--rust);
    padding-left: 1.25rem;
    margin: 0;
}

.cr-timeline li {
    margin-bottom: 1.25rem;
    list-style: none;
    position: relative;
}

.cr-timeline li::before {
    content: "";
    position: absolute;
    left: -1.56rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    background: var(--rust);
    border-radius: 50%;
}

.cr-timeline h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.cr-timeline p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.cr-faq {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--paper);
    max-width: 720px;
    margin-inline: auto;
}

.cr-faq__row + .cr-faq__row {
    border-top: 1px solid var(--line);
}

.cr-faq__btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    min-height: var(--tap);
}

.cr-faq__btn[aria-expanded="true"] {
    background: var(--cream-dark);
}

.cr-faq__body {
    padding: 0 1.15rem 1rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.cr-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
}

@media (max-width: 768px) {
    .cr-split {
        grid-template-columns: 1fr;
    }
}

.cr-contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.cr-contact-list a {
    word-break: break-word;
}

/* Footer */
.cr-footer {
    background: var(--ink);
    color: #a7c4b0;
    padding-top: 2.75rem;
}

.cr-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .cr-footer__grid {
        grid-template-columns: 1fr;
    }
}

.cr-foot-h {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b8f7a;
    margin: 0 0 0.65rem;
}

.cr-foot-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cr-foot-links a {
    color: #ecfdf5;
    text-decoration: none;
}

.cr-foot-links a:hover {
    color: #86efac;
}

.cr-footnote {
    font-size: 0.9rem;
    max-width: 34ch;
}

.cr-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.15rem 0;
}

.cr-copy {
    margin: 0;
    font-size: 0.78rem;
    color: #6b8f7a;
}

.cr-main {
    min-height: 40vh;
}

.cr-h1 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.cr-paper {
    background: var(--paper);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 12px;
    border: 1px solid var(--line);
}

.cr-date {
    color: var(--muted);
    font-size: 0.88rem;
}

.cr-cards {
    display: grid;
    gap: 1rem;
}

.cr-mini {
    background: var(--paper);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.cr-mini__t {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.cr-mini__t a {
    text-decoration: none;
    color: inherit;
}

.cr-mini__x {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.entry-content {
    overflow-wrap: anywhere;
}

.entry-content img,
.entry-content iframe {
    max-width: 100%;
    height: auto;
}
