/* ============================================================
 *  Udyam Registration Portal - Shared Stylesheet
 *  Design: Government-inspired official look
 *  Colors: Deep blue + saffron + white (professional trust)
 * ============================================================ */

:root {
    --primary: #003580;
    --primary-dark: #002855;
    --primary-light: #e6ecf5;
    --accent: #ff6b35;
    --accent-dark: #e5541f;
    --accent-light: #fff4ef;
    --saffron: #ff9933;
    --success: #059669;
    --success-bg: #d1fae5;
    --danger: #dc2626;
    --ink: #1a1d29;
    --slate: #4a5568;
    --muted: #6b7280;
    --line: #e5e7eb;
    --line-soft: #f1f3f5;
    --bg: #f5f7fa;
    --white: #fff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
    --gradient-primary: linear-gradient(135deg, #003580 0%, #0055a5 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #ff9933 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: .5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; padding-left: 1.5em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Skip link for accessibility */
.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--ink); color: #fff;
    padding: 8px 16px; z-index: 9999;
}
.skip-link:focus { top: 0; color: #fff; }

/* ==== TOP INFO BAR ==== */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-left i { color: var(--saffron); }
.top-bar-right a {
    color: #fff;
    font-weight: 500;
}
.top-bar-right a:hover { color: var(--saffron); }

/* ==== HEADER ==== */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}
.logo-icon {
    width: 44px; height: 44px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}
.logo-text small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Nav menu */
.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.nav-menu li a {
    padding: 8px 14px;
    color: var(--ink);
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    display: block;
}
.nav-menu li a:hover, .nav-menu li a.active {
    background: var(--primary-light);
    color: var(--primary);
}
.header-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 6px;
    font-weight: 600;
}
.header-cta:hover { background: var(--accent-dark); color: #fff !important; }

.mobile-toggle {
    display: none;
    background: none; border: none;
    font-size: 24px; color: var(--primary);
    cursor: pointer;
}

/* ==== BANNER ==== */
.banner {
    width: 100%;
    background: var(--gradient-primary); /* fallback if image fails */
    position: relative;
    overflow: hidden;
    min-height: 180px;
}
.banner img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 380px;
    object-fit: cover;
    object-position: center;
}

/* ==== HERO SECTION ==== */
.hero-section {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}
.hero-content h1 {
    font-size: 2.4rem;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -.02em;
}
.hero-content h1 span { color: var(--accent); }
.hero-content .lead {
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: 20px;
    line-height: 1.5;
}
.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.badge-item {
    background: var(--success-bg);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge-item i { font-size: 12px; }
.hero-features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}
.hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--slate);
}
.hero-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    flex-shrink: 0;
}
.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px dashed var(--line);
}
.hero-stat .num {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
}
.hero-stat .label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 4px;
}

/* ==== APPLICATION FORM (Eye-catching) ==== */
.app-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line);
}
.app-form::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-accent);
}
.form-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 22px 26px 20px;
    text-align: center;
    position: relative;
}
.form-header::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 12px solid var(--primary-dark);
}
.form-header h3 {
    color: #fff;
    font-size: 1.35rem;
    margin: 0 0 4px;
}
.form-header p {
    color: rgba(255,255,255,.9);
    font-size: 13.5px;
    margin: 0;
}
.form-body {
    padding: 26px;
}
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.form-group label .req { color: var(--danger); margin-left: 2px; }
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    font-size: 14.5px;
    color: var(--ink);
    background: #fff;
    transition: all .15s;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,53,128,.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-submit {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15.5px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(255,107,53,.3);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}
.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,.4);
}
.form-submit i { margin-left: 6px; }
.form-trust {
    display: flex;
    justify-content: space-around;
    padding: 14px 0 4px;
    margin-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 11.5px;
    color: var(--muted);
}
.form-trust div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.form-trust i { color: var(--success); font-size: 16px; }
.social-proof {
    background: var(--success-bg);
    color: var(--success);
    padding: 10px 26px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.social-proof .dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* ==== SECTION STYLES ==== */
.section {
    padding: 60px 0;
    background: #fff;
}
.section-alt { background: var(--bg); }
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.section-head .eyebrow {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-head p {
    font-size: 1.05rem;
    color: var(--slate);
    margin: 0;
}

/* ==== PROCESS STEPS ==== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}
.process-step {
    background: #fff;
    padding: 26px 20px;
    border-radius: 10px;
    border: 1px solid var(--line);
    text-align: center;
    position: relative;
    transition: all .2s;
}
.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.process-num {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 14px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 12px rgba(0,53,128,.25);
}
.process-step h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.process-step p {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* ==== FAQ ACCORDION ==== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all .2s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    font-size: 14.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--primary); }
.faq-icon {
    width: 24px; height: 24px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s;
    flex-shrink: 0;
    margin-left: 10px;
}
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: #fff;
}
.faq-answer {
    padding: 0 20px 18px;
    color: var(--slate);
    font-size: 14px;
    line-height: 1.7;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* ==== TRUST BAR ==== */
.trust-bar {
    background: #fff;
    padding: 30px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.trust-item i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}
.trust-item h4 {
    font-size: 1.35rem;
    color: var(--primary);
    margin: 0 0 4px;
}
.trust-item p {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

/* ==== CONTENT CARDS (for services grid) ==== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid var(--line);
    transition: all .2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: inherit;
}
.service-card .icon {
    width: 54px; height: 54px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
}
.service-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.service-card p {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* ==== CTA BANNER ==== */
.cta-banner {
    background: var(--gradient-primary);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.cta-banner h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}
.cta-banner p {
    color: rgba(255,255,255,.9);
    font-size: 1.1rem;
    margin-bottom: 24px;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all .2s;
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==== CONTENT / LEGAL PAGES ==== */
.content-page {
    padding: 40px 0;
    background: #fff;
    min-height: 60vh;
}
.content-wrap {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.content-wrap h1 {
    color: var(--primary);
    border-bottom: 3px solid var(--accent);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.content-wrap h2 {
    color: var(--primary);
    margin-top: 30px;
    font-size: 1.35rem;
}
.content-wrap h3 { color: var(--primary-dark); font-size: 1.15rem; margin-top: 20px; }
.content-wrap p, .content-wrap li { color: var(--slate); line-height: 1.75; }

/* ==== CERTIFICATE SAMPLE ==== */
.cert-sample {
    background: #fff;
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    border: 3px double var(--primary);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.cert-sample::before {
    content: "SAMPLE";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 6rem;
    color: rgba(220,38,38,.1);
    font-weight: 900;
    letter-spacing: .1em;
    pointer-events: none;
}
.cert-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 25px;
}
.cert-header h2 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 4px;
}
.cert-header p {
    color: var(--slate);
    font-size: 13px;
    margin: 0;
}
.cert-details {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 10px 16px;
    font-size: 14px;
}
.cert-details dt {
    font-weight: 600;
    color: var(--primary);
}
.cert-details dd { margin: 0; color: var(--slate); }
.cert-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

/* ==== FOOTER ==== */
.site-footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 40px;
}
.footer-disclaimer {
    background: rgba(255,153,51,.15);
    border: 1px solid rgba(255,153,51,.4);
    color: #ffe5cc;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 12.5px;
    line-height: 1.6;
}
.footer-disclaimer strong { color: var(--saffron); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-brand h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.footer-brand p {
    color: rgba(255,255,255,.75);
    font-size: 13px;
    line-height: 1.6;
}
.footer-col h5 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li a {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    padding: 4px 0;
    display: block;
}
.footer-col ul li a:hover { color: var(--saffron); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,.6);
}

/* ==== MOBILE STICKY CTA ==== */
.mobile-sticky {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,.1);
    padding: 10px 16px;
    z-index: 200;
    gap: 8px;
}
.mobile-sticky a {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.mobile-sticky .call-btn {
    background: var(--success);
    color: #fff;
}
.mobile-sticky .apply-btn {
    background: var(--accent);
    color: #fff;
}
.mobile-sticky .wa-btn {
    background: #25d366;
    color: #fff;
}

/* ==== BREADCRUMB ==== */
.breadcrumb {
    background: var(--bg);
    padding: 14px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb .sep { margin: 0 8px; color: var(--muted); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-details { grid-template-columns: 1fr; gap: 4px 0; }
    .cert-details dt { margin-top: 8px; }
}

@media (max-width: 640px) {
    h1 { font-size: 1.6rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .section-head h2 { font-size: 1.5rem; }
    .top-bar { font-size: 12px; }
    .top-bar-left { gap: 12px; }
    .mobile-toggle { display: block; }
    .nav-menu {
        display: none;
        width: 100%;
        background: #fff;
        padding: 10px 0;
        margin-top: 10px;
        border-top: 1px solid var(--line);
    }
    .nav-menu.open { display: flex; flex-direction: column; }
    .nav-menu li { width: 100%; }
    .nav-menu li a { width: 100%; padding: 12px 16px; }
    .form-row { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .content-wrap { padding: 24px 16px; }
    .cert-sample { padding: 20px; }
    .mobile-sticky { display: flex; }
    main { padding-bottom: 70px; }
}
