/* ══════════════════════════════════════════════════════════
   COMTECH — Public Frontend Stylesheet
   Clean, professional, comtech-blue
   ══════════════════════════════════════════════════════════ */

:root {
    --ct-primary: #DF9B31;
    --ct-secondary: #e8b35a;
    --ct-dark: #0F0F0F;
    --ct-darker: #0a0a0a;
    --ct-card: #1a1a19;
    --ct-text: #f0ede8;
    --ct-text-sec: #a8a49c;
    --ct-text-muted: #6b6760;
    --ct-border: rgba(223,155,49,.15);
    --ct-accent: #DF9B31;
    --ct-white: #ffffff;
    --ct-max-width: 1200px;
    --ct-font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--ct-font);
    background: var(--ct-dark);
    color: var(--ct-text);
    line-height: 1.7;
}

a { color: var(--ct-secondary); text-decoration: none; transition: color .2s; }
a:hover { color: #f0c97e; }

img { max-width: 100%; height: auto; }

/* ── Header / Navigation ── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(6,15,31,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ct-border);
}
.header-inner {
    max-width: var(--ct-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.site-logo {
    display: flex; align-items: center; gap: .6rem;
    font-weight: 800; font-size: 1.2rem; color: var(--ct-white);
}
.site-logo span {
    background: linear-gradient(135deg, var(--ct-primary), var(--ct-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
}

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
    padding: .5rem .9rem; border-radius: 8px;
    color: var(--ct-text-sec); font-size: .9rem; font-weight: 500;
    transition: all .2s;
}
.site-nav a:hover { color: var(--ct-white); background: rgba(223,155,49,.1); }
.site-nav a.active { color: var(--ct-secondary); background: rgba(223,155,49,.12); }

.mobile-menu-btn {
    display: none; background: none; border: none;
    color: var(--ct-text); cursor: pointer; padding: .5rem;
}

/* ── Hero Section ── */
.hero {
    text-align: center;
    padding: 5rem 2rem 4rem;
    background: linear-gradient(180deg, rgba(223,155,49,.08) 0%, transparent 100%);
    position: relative;
}
.hero h1 {
    font-size: 2.8rem; font-weight: 800;
    background: linear-gradient(135deg, var(--ct-white), var(--ct-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 1rem; line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.2rem; color: var(--ct-text-sec);
    max-width: 600px; margin: 0 auto 2rem;
}

/* ── Page Header ── */
.page-header {
    text-align: center;
    padding: 3.5rem 2rem 2.5rem;
    background: linear-gradient(180deg, rgba(223,155,49,.06) 0%, transparent 100%);
}
.page-header h1 {
    font-size: 2.2rem; font-weight: 800; color: var(--ct-white);
    margin-bottom: .5rem;
}
.page-header p {
    font-size: 1.1rem; color: var(--ct-text-sec);
    max-width: 600px; margin: 0 auto;
}

/* ── Content Blocks ── */
.content-block {
    max-width: var(--ct-max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}
.content-block h2 {
    font-size: 1.6rem; font-weight: 700; color: var(--ct-white);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid rgba(223,155,49,.2);
    display: inline-block;
}
.content-block p {
    color: var(--ct-text-sec); max-width: 800px;
    margin-bottom: 1rem; font-size: 1rem;
}

/* ── Feature Grid / Cards ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.feature-card {
    background: var(--ct-card);
    border: 1px solid var(--ct-border);
    border-radius: 14px;
    padding: 1.75rem;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(223,155,49,.4);
    box-shadow: 0 12px 40px rgba(223,155,49,.15);
}
.feature-card .feature-icon {
    font-size: 2rem; margin-bottom: .75rem;
}
.feature-card h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--ct-white);
    margin-bottom: .5rem;
}
.feature-card p {
    font-size: .9rem; color: var(--ct-text-sec); line-height: 1.6;
}
.feature-card.highlight {
    border-color: rgba(223,155,49,.3);
    background: linear-gradient(180deg, rgba(223,155,49,.06) 0%, var(--ct-card) 100%);
}

/* ── Stats Section ── */
.stats-section {
    padding: 3.5rem 2rem;
    background: linear-gradient(135deg, rgba(223,155,49,.08), rgba(223,155,49,.02));
    border-top: 1px solid var(--ct-border);
    border-bottom: 1px solid var(--ct-border);
}
.stats-grid-fw {
    max-width: var(--ct-max-width);
    margin: 0 auto;
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
}
.stat-item { text-align: center; min-width: 160px; }
.stat-number {
    font-size: 2.8rem; font-weight: 800; color: var(--ct-primary);
    line-height: 1.1; margin-bottom: .4rem;
}
.stat-desc {
    font-size: .9rem; color: var(--ct-text-sec); line-height: 1.4;
}

/* ── Trust Section ── */
.trust-section {
    max-width: var(--ct-max-width);
    margin: 0 auto; padding: 3rem 2rem;
}
.trust-section h2 {
    font-size: 1.6rem; font-weight: 700; color: var(--ct-white);
    margin-bottom: 2rem; text-align: center;
}
.trust-list {
    display: flex; flex-direction: column; gap: 1rem;
    max-width: 800px; margin: 0 auto;
}
.trust-item {
    display: flex; align-items: flex-start; gap: 1.25rem;
    background: var(--ct-card);
    border: 1px solid var(--ct-border);
    border-left: 3px solid var(--ct-primary);
    border-radius: 10px; padding: 1.5rem;
    transition: border-color .2s, transform .2s;
}
.trust-item:hover {
    border-left-color: var(--ct-secondary);
    transform: translateX(4px);
}
.trust-number {
    font-size: 1.8rem; font-weight: 800; color: var(--ct-primary);
    min-width: 50px; line-height: 1;
}
.trust-content h3 {
    font-size: 1rem; font-weight: 700; color: var(--ct-white);
    margin-bottom: .35rem;
}
.trust-content p {
    font-size: .9rem; color: var(--ct-text-sec); line-height: 1.6;
}

/* ── CTA Banner (Full Width Gold) ── */
.cta-banner {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #DF9B31, #c4871e);
    color: #0F0F0F;
}
.cta-banner h2 {
    font-size: 1.5rem; font-weight: 800; color: #0F0F0F;
    margin-bottom: .5rem;
}
.cta-banner p {
    color: #2B2A29; margin-bottom: 1.5rem;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.cta-banner .btn-primary {
    background: #0F0F0F; color: #DF9B31;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.cta-banner .btn-primary:hover {
    background: #2B2A29; color: #f0c97e;
}

/* ── Dark Content Block Variant ── */
.content-block.dark {
    background: #141413;
    padding: 3rem 2rem;
    border-top: 1px solid var(--ct-border);
    border-bottom: 1px solid var(--ct-border);
}
.content-block.dark h2 {
    text-align: center;
}
.content-block.dark .feature-grid {
    max-width: var(--ct-max-width);
    margin: 2rem auto 0;
}

/* ── FAQ Section ── */
.faq-section {
    max-width: 800px;
    margin: 0 auto; padding: 3rem 2rem;
}
.faq-section h2 {
    font-size: 1.6rem; font-weight: 700; color: var(--ct-white);
    margin-bottom: 1.5rem; text-align: center;
}
.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item {
    background: var(--ct-card);
    border: 1px solid var(--ct-border);
    border-radius: 10px; overflow: hidden;
}
.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 600; font-size: .95rem; color: var(--ct-white);
    cursor: pointer; display: flex; align-items: center;
    justify-content: space-between;
    transition: background .2s;
}
.faq-question:hover { background: rgba(223,155,49,.06); }
.faq-question::after {
    content: '+'; font-size: 1.3rem; color: var(--ct-primary);
    font-weight: 700; transition: transform .2s;
}
.faq-item.open .faq-question::after {
    content: '−';
}
.faq-answer {
    padding: 0 1.25rem;
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    font-size: .9rem; color: var(--ct-text-sec); line-height: 1.7;
}
.faq-item.open .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
}

/* ── Badges Section ── */
.badges-section {
    max-width: var(--ct-max-width);
    margin: 0 auto; padding: 3rem 2rem;
}
.badges-section h2 {
    font-size: 1.6rem; font-weight: 700; color: var(--ct-white);
    margin-bottom: 2rem; text-align: center;
}
.badges-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.badge-card {
    background: var(--ct-card);
    border: 1px solid var(--ct-border);
    border-radius: 10px; padding: 1.25rem;
    text-align: center;
    transition: border-color .2s;
}
.badge-card:hover { border-color: rgba(223,155,49,.4); }
.badge-card h3 {
    font-size: .95rem; font-weight: 700; color: var(--ct-primary);
    margin-bottom: .4rem;
}
.badge-card p {
    font-size: .85rem; color: var(--ct-text-sec);
}

/* ── About Teaser ── */
.about-teaser {
    max-width: var(--ct-max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}
.about-teaser h2 {
    font-size: 1.6rem; font-weight: 700; color: var(--ct-white);
    margin-bottom: 1rem;
}
.about-teaser p {
    color: var(--ct-text-sec);
    max-width: 700px; margin: 0 auto 1.5rem;
}

/* ── CTA Section ── */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(223,155,49,.1), rgba(223,155,49,.05));
    border-top: 1px solid var(--ct-border);
    border-bottom: 1px solid var(--ct-border);
    margin: 2rem 0;
}
.cta-section h2 {
    font-size: 1.5rem; font-weight: 700; color: var(--ct-white);
    margin-bottom: .75rem;
}
.cta-section p {
    color: var(--ct-text-sec); margin-bottom: 1.5rem;
    max-width: 500px; margin-left: auto; margin-right: auto;
}

/* ── Contact Info ── */
.contact-info {
    background: var(--ct-card);
    border: 1px solid var(--ct-border);
    border-radius: 14px;
    padding: 2rem;
    max-width: 500px;
}
.contact-info p { color: var(--ct-text); margin-bottom: .5rem; }

/* ── Buttons (Frontend) ── */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .7rem 1.5rem; border-radius: 8px;
    font-size: .95rem; font-weight: 600; font-family: var(--ct-font);
    cursor: pointer; border: none; transition: all .25s;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--ct-primary), var(--ct-secondary));
    color: #fff; box-shadow: 0 4px 16px rgba(223,155,49,.3);
}
.btn-primary:hover {
    transform: translateY(-2px); color: #fff;
    box-shadow: 0 8px 24px rgba(223,155,49,.4);
}
.btn-secondary {
    background: transparent; color: var(--ct-secondary);
    border: 1px solid rgba(223,155,49,.4);
}
.btn-secondary:hover { background: rgba(223,155,49,.08); color: #f0c97e; }

/* ── Features Section (special) ── */
.features {
    max-width: var(--ct-max-width);
    margin: 0 auto; padding: 2rem 2rem 3rem;
}

/* ── Footer ── */
.site-footer {
    background: var(--ct-darker);
    border-top: 1px solid var(--ct-border);
    padding: 3rem 2rem 2rem;
    margin-top: 3rem;
}
.footer-inner {
    max-width: var(--ct-max-width);
    margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}
.footer-brand h3 {
    font-size: 1.1rem; color: var(--ct-white); margin-bottom: .5rem;
}
.footer-brand p {
    font-size: .88rem; color: var(--ct-text-muted); line-height: 1.6;
}
.footer-links h4 {
    font-size: .85rem; font-weight: 600; color: var(--ct-text-sec);
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: var(--ct-text-muted); font-size: .88rem; }
.footer-links a:hover { color: var(--ct-secondary); }

.footer-bottom {
    max-width: var(--ct-max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(223,155,49,.1);
    text-align: center;
    font-size: .8rem; color: var(--ct-text-muted);
}

/* ── Blog / Posts ── */
.posts-grid {
    max-width: var(--ct-max-width);
    margin: 0 auto; padding: 2rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.post-card {
    background: var(--ct-card);
    border: 1px solid var(--ct-border);
    border-radius: 14px; padding: 1.75rem;
    transition: transform .2s, border-color .2s;
}
.post-card:hover { transform: translateY(-2px); border-color: rgba(223,155,49,.3); }
.post-card h3 { font-size: 1.1rem; color: var(--ct-white); margin-bottom: .5rem; }
.post-card .post-meta { font-size: .82rem; color: var(--ct-text-muted); margin-bottom: .75rem; }
.post-card p { font-size: .9rem; color: var(--ct-text-sec); }

/* ── Mobile ── */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 3rem 1.5rem 2.5rem; }
    .page-header h1 { font-size: 1.6rem; }
    .content-block { padding: 2rem 1.5rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .header-inner { padding: 0 1rem; }
    .site-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .site-nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 70px; left: 0; right: 0;
        background: var(--ct-darker); border-bottom: 1px solid var(--ct-border);
        padding: 1rem;
    }
}
