/* AzPMA — main site styles */

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

:root {
    --red: #8a1515;
    --red-dark: #6e1010;
    --red-light: #fdf1f1;
    --gray-950: #0a0a0a;
    --gray-900: #111;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--gray-900);
    -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}
.logo-badge {
    width: 44px;
    height: 44px;
    background: var(--red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo-text { line-height: 1.1; }
.logo-text strong { display: block; font-size: 15px; font-weight: 800; color: var(--gray-950); }
.logo-text span { font-size: 10px; color: var(--gray-500); font-weight: 500; letter-spacing: 0.02em; }

nav { display: flex; gap: 4px; align-items: center; }
nav a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    transition: background .15s, color .15s;
    cursor: pointer;
    white-space: nowrap;
}
nav a:hover, nav a.active { background: var(--red-light); color: var(--red); }

.btn-primary {
    background: var(--red);
    color: var(--white);
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    display: inline-block;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-outline {
    background: transparent;
    color: var(--red);
    border: 1.5px solid var(--red);
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
    cursor: pointer;
    display: inline-block;
}
.btn-outline:hover { background: var(--red-light); }

/* ── HOME PAGE ── */
.hero {
    background: var(--white);
    padding: 80px 24px 72px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}
.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--red);
    background: var(--red-light);
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    color: var(--gray-950);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 760px;
    margin: 0 auto 20px;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero p {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-primary { padding: 13px 28px; font-size: 14px; border-radius: 12px; }
.hero-actions .btn-outline { padding: 13px 28px; font-size: 14px; border-radius: 12px; }

/* stats strip */
.stats-strip {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 48px;
    margin-bottom: 0;
}
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stat {
    background: var(--white);
    padding: 28px 24px;
    text-align: center;
}
.stat strong { display: block; font-size: 32px; font-weight: 900; color: var(--red); letter-spacing: -0.03em; }
.stat span { font-size: 12px; color: var(--gray-500); font-weight: 500; margin-top: 4px; display: block; }

/* about strip on homepage */
.about-strip {
    max-width: 1200px;
    margin: 64px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 768px) { .about-strip { grid-template-columns: 1fr; gap: 32px; } }
.about-strip h2 { font-size: 28px; font-weight: 800; color: var(--gray-950); margin-bottom: 12px; letter-spacing: -0.02em; }
.about-strip .red-bar { width: 36px; height: 3px; background: var(--red); border-radius: 99px; margin-bottom: 20px; }
.about-strip p { font-size: 15px; color: var(--gray-600); line-height: 1.75; margin-bottom: 14px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}
.feature-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.485 3.515a1 1 0 00-1.414 0L6 9.586 3.929 7.515A1 1 0 102.515 8.929l2.778 2.778a1 1 0 001.414 0l6.778-6.778a1 1 0 000-1.414z'/%3E%3C/svg%3E");
    background-size: 11px;
    background-repeat: no-repeat;
    background-position: center;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
}
.download-link:hover { text-decoration: underline; }

.doc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.doc-list li {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    padding: 12px 16px;
}
.doc-list li a {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.doc-list li a::before { content: '📄'; font-size: 16px; }
.doc-list li a:hover { color: var(--red); }

.steps-list { list-style: none; display: flex; flex-direction: column; gap: 16px; counter-reset: steps; }
.steps-list li {
    position: relative;
    padding-left: 36px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}
.steps-list li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* quick nav cards on homepage */
.section-cards {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    padding: 64px 24px;
}
.section-cards-inner { max-width: 1200px; margin: 0 auto; }
.section-cards h2 { font-size: 22px; font-weight: 800; color: var(--gray-950); margin-bottom: 32px; letter-spacing: -0.01em; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards-grid { grid-template-columns: 1fr; } }
.nav-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nav-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 20px rgba(138, 21, 21, .1);
    transform: translateY(-2px);
}
.nav-card-icon {
    width: 40px;
    height: 40px;
    background: var(--red-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--red);
}
.nav-card h3 { font-size: 15px; font-weight: 700; color: var(--gray-950); }
.nav-card p { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.nav-card .arrow { font-size: 13px; font-weight: 700; color: var(--red); margin-top: auto; }

/* ── INNER PAGE WRAPPER ── */
.page-wrapper { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.page-header { margin-bottom: 48px; }
.page-header .eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 10px; display: block; }
.page-header h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; color: var(--gray-950); letter-spacing: -0.03em; line-height: 1.15; }
.page-header p { font-size: 16px; color: var(--gray-600); margin-top: 12px; line-height: 1.7; max-width: 620px; }

/* ── ABOUT PAGE ── */
.prose-block { max-width: 820px; }
.prose-block p { font-size: 15px; color: var(--gray-600); line-height: 1.75; margin-bottom: 16px; }
.prose-block h2 { font-size: 22px; font-weight: 800; color: var(--gray-950); margin: 32px 0 12px; letter-spacing: -0.01em; }
.prose-block h2:first-child { margin-top: 0; }

/* ── CERTIFICATION PAGE ── */
.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-950);
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-100);
}
.section-title:first-of-type { padding-top: 0; border-top: none; }
.levels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}
@media (max-width: 900px) { .levels-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .levels-grid { grid-template-columns: 1fr; } }
.level-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.level-card:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(138,21,21,.08); }
.level-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--red);
    background: var(--red-light);
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
}
.level-card h3 { font-size: 15px; font-weight: 700; color: var(--gray-950); line-height: 1.3; }
.level-card p { font-size: 13px; color: var(--gray-500); line-height: 1.6; flex: 1; }
.level-card .apply-link { font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; cursor: pointer; }
.level-card .apply-link:hover { text-decoration: underline; }

.recert-banner {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.recert-banner h3 { font-size: 18px; font-weight: 700; color: var(--gray-950); margin-bottom: 8px; }
.recert-banner p { font-size: 14px; color: var(--gray-600); line-height: 1.6; max-width: 560px; }

/* ── TRAININGS (PMO.az) PAGE ── */
.pmo-hero-card {
    background: var(--red);
    border-radius: 20px;
    padding: 40px;
    color: white;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
}
@media (max-width: 600px) { .pmo-hero-card { grid-template-columns: 1fr; } }
.pmo-hero-card h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 8px; }
.pmo-hero-card p { font-size: 14px; opacity: .85; line-height: 1.7; max-width: 480px; }
.pmo-hero-card .meta { margin-top: 20px; display: flex; gap: 20px; flex-wrap: wrap; }
.pmo-meta-item { font-size: 12px; opacity: .8; display: flex; align-items: center; gap: 6px; }
.pmo-cta {
    background: var(--white);
    color: var(--red);
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
}
.pmo-cta:hover { opacity: .9; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    padding: 22px;
}
.service-card h4 { font-size: 14px; font-weight: 700; color: var(--gray-950); margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

.pmo-contact-bar {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}
.pmo-contact-bar p { font-size: 13px; color: var(--gray-600); }
.pmo-contact-bar strong { color: var(--gray-900); }
.contact-items { display: flex; gap: 24px; flex-wrap: wrap; }
.contact-item { font-size: 13px; color: var(--gray-700); display: flex; align-items: center; gap: 6px; }

/* ── SCHEDULE PAGE ── */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 700px) { .schedule-grid { grid-template-columns: 1fr; } }
.schedule-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
}
.schedule-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.schedule-card-header h3 { font-size: 14px; font-weight: 700; color: var(--gray-950); }
.schedule-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
}
.schedule-tag.official { background: var(--red-light); color: var(--red); }
.schedule-tag.azpma { background: var(--gray-100); color: var(--gray-700); }
.schedule-list { padding: 0 24px; }
.schedule-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item-info h4 { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.schedule-item-info p { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.schedule-date {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.schedule-date.exam { background: var(--red-light); color: var(--red); }
.schedule-date.training { background: var(--gray-100); color: var(--gray-700); }

/* ── INITIATIVES PAGE ── */
.initiatives-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 700px) { .initiatives-grid { grid-template-columns: 1fr; } }
.initiative-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 20px;
    padding: 32px;
}
.initiative-card h3 { font-size: 20px; font-weight: 800; color: var(--gray-950); margin-bottom: 12px; }
.initiative-card p { font-size: 14px; color: var(--gray-600); line-height: 1.75; }
.initiative-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    font-size: 12px;
    color: var(--gray-400);
}
.young-crew-leader {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 14px;
}
.leader-avatar {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
}
.leader-info h5 { font-size: 13px; font-weight: 700; color: var(--gray-900); }
.leader-info p { font-size: 12px; color: var(--red); font-weight: 500; }

/* ── BLOG PAGE ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s;
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.blog-card-body { padding: 22px; flex: 1; }
.blog-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 10px; display: block; }
.blog-card h4 { font-size: 15px; font-weight: 700; color: var(--gray-950); line-height: 1.4; cursor: pointer; }
.blog-card h4:hover { color: var(--red); }
.blog-card p { font-size: 13px; color: var(--gray-500); margin-top: 8px; line-height: 1.6; }
.blog-card-footer { padding: 16px 22px; border-top: 1px solid var(--gray-100); font-size: 11px; color: var(--gray-400); }

/* ── CONTACT PAGE ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-700); margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--gray-900);
    outline: none;
    transition: border-color .15s;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); }
input::placeholder, textarea::placeholder { color: var(--gray-400); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.submit-btn {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.submit-btn:hover { background: var(--red-dark); }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.info-block {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    padding: 20px 22px;
}
.info-block h4 { font-size: 13px; font-weight: 700; color: var(--gray-950); margin-bottom: 10px; }
.info-block p, .info-block a { font-size: 13px; color: var(--gray-600); line-height: 1.6; text-decoration: none; display: block; }
.info-block a:hover { color: var(--red); }

/* ── FOOTER ── */
footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 40px 24px;
    text-align: center;
}
footer p { font-size: 12px; color: var(--gray-500); line-height: 1.8; }
footer strong { color: var(--gray-700); font-weight: 600; }

/* ── MOBILE NAV TOGGLE ── */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--gray-700);
}
@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
}
.mobile-nav {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 24px;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    cursor: pointer;
}
.mobile-nav a:hover { background: var(--red-light); color: var(--red); }
