/* ============================================================
   InfoSecTel — Light Professional Theme
   Palette derived from logo:
     Navy:    #1a3a6e  |  Sky Blue:  #4db8e8  |  Gold: #f5c518
     BG:      #ffffff  |  Alt BG:    #f5f7fa  |  Text: #3d4d6a
     Muted:   #6b7a99  |  Border:    #dde3ef
   ============================================================ */

:root {
    --ist-navy:       #1a3a6e;
    --ist-navy-mid:   #2a4f8f;
    --ist-sky:        #4db8e8;
    --ist-sky-dim:    #2fa0d0;
    --ist-gold:       #f5c518;
    --ist-gold-dim:   #d4a800;
    --ist-bg:         #ffffff;
    --ist-bg-alt:     #f5f7fa;
    --ist-bg-hero:    #edf2fa;
    --ist-card:       #ffffff;
    --ist-text:       #3d4d6a;
    --ist-heading:    #1a3a6e;
    --ist-muted:      #6b7a99;
    --ist-border:     #dde3ef;
    --ist-shadow:     rgba(26, 58, 110, 0.07);
    --ist-amber-bg:   #fff8e6;
    --ist-amber-border: #e8a800;
    --ist-amber-text: #7a5500;
    --ist-success-bg: #eaf7f0;
    --ist-success-border: #52c48a;
    --ist-success-text: #1d6e47;
}

/* ---- Base ---- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--ist-bg);
    color: var(--ist-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 0;
    line-height: 1.7;
}

a {
    color: var(--ist-navy);
    text-decoration: none;
}

a:hover {
    color: var(--ist-sky);
    text-decoration: none;
}

/* ---- Header wrapper (sticky, provides bg/border/shadow for both logo and nav) ---- */
.ist-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #ffffff;
    border-bottom: 1px solid var(--ist-border);
    box-shadow: 0 1px 4px var(--ist-shadow);
}

/* Logo — absolutely positioned to far left, takes zero space in nav flow */
.ist-logo-float {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    z-index: 10;
    display: block;
    line-height: 0;
}

.ist-logo-float img {
    display: block;
    height: auto;
    width: clamp(480px, 52vw, 840px);
    max-height: 240px;
    object-fit: contain;
}

/* Navbar — transparent (header provides bg), min-height keeps logo fully visible */
.ist-navbar {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0.6rem 0;
    min-height: 240px;
}

.ist-navbar .nav-link {
    color: var(--ist-text) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem !important;
    letter-spacing: 0.01em;
    transition: color 0.15s;
}

.ist-navbar .nav-link:hover,
.ist-navbar .nav-link.active {
    color: var(--ist-navy) !important;
}

/* ---- Buttons ---- */
.ist-btn-primary {
    background-color: var(--ist-navy);
    color: #ffffff;
    border: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.2s;
}

.ist-btn-primary:hover {
    background-color: var(--ist-navy-mid);
    color: #ffffff;
}

.ist-btn-accent {
    background-color: var(--ist-sky);
    color: #ffffff;
    border: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.2s;
}

.ist-btn-accent:hover {
    background-color: var(--ist-sky-dim);
    color: #ffffff;
}

.ist-btn-outline-accent {
    background-color: transparent;
    color: var(--ist-navy) !important;
    border: 1.5px solid var(--ist-navy);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.2s, color 0.2s;
}

.ist-btn-outline-accent:hover {
    background-color: var(--ist-navy);
    color: #ffffff !important;
}

.ist-btn-outline-sky {
    background-color: transparent;
    color: var(--ist-sky-dim) !important;
    border: 1.5px solid var(--ist-sky);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.2s, color 0.2s;
}

.ist-btn-outline-sky:hover {
    background-color: var(--ist-sky);
    color: #ffffff !important;
}

/* kept for any legacy references — maps to primary */
.ist-btn-danger {
    background-color: var(--ist-navy);
    color: #ffffff;
    border: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.ist-btn-danger:hover {
    background-color: var(--ist-navy-mid);
    color: #ffffff;
}

/* ---- CMMC Info Banner (amber, professional) ---- */
.ist-urgency-banner {
    background-color: var(--ist-amber-bg);
    border-top: 2px solid var(--ist-amber-border);
    border-bottom: 1px solid #f0d090;
    padding: 0.75rem 0;
}

.ist-urgency-banner .ist-urgency-badge {
    background-color: var(--ist-gold-dim);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ist-urgency-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ist-amber-text);
}

.ist-urgency-banner a {
    color: var(--ist-navy);
    font-weight: 600;
}

.ist-urgency-banner a:hover {
    color: var(--ist-sky-dim);
}

/* ---- Hero Section ---- */
.ist-hero {
    background: linear-gradient(160deg, var(--ist-bg-hero) 0%, #f8f9fc 60%, var(--ist-bg) 100%);
    padding: 5.5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.ist-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(77, 184, 232, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ist-hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ist-sky-dim);
    margin-bottom: 1rem;
}

.ist-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ist-heading);
    margin-bottom: 1.25rem;
}

.ist-hero h1 .ist-accent-word {
    color: var(--ist-sky);
}

.ist-hero-sub {
    font-size: 1.1rem;
    color: var(--ist-muted);
    max-width: 540px;
    margin-bottom: 2.25rem;
    line-height: 1.75;
}

.ist-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.ist-hero-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ist-shield-icon {
    font-size: 11rem;
    color: var(--ist-sky);
    opacity: 0.08;
    position: absolute;
}

.ist-shield-inner {
    font-size: 6rem;
    color: var(--ist-sky);
    opacity: 0.25;
    position: relative;
    z-index: 1;
}

/* ---- Section Headings ---- */
.ist-section {
    padding: 5rem 0;
}

.ist-section-alt {
    background-color: var(--ist-bg-alt);
}

.ist-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ist-sky-dim);
    margin-bottom: 0.6rem;
}

.ist-section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--ist-heading);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.ist-section-sub {
    color: var(--ist-muted);
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.75;
}

/* ---- Service Cards ---- */
.ist-card {
    background-color: var(--ist-card);
    border: 1px solid var(--ist-border);
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 8px var(--ist-shadow);
    transition: box-shadow 0.2s;
}

.ist-card:hover {
    box-shadow: 0 4px 16px rgba(26, 58, 110, 0.12);
}

.ist-card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(77, 184, 232, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--ist-sky-dim);
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.ist-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ist-heading);
    margin-bottom: 0.55rem;
}

.ist-card p {
    color: var(--ist-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.65;
}

/* ---- Pricing Cards ---- */
.ist-pricing-card {
    background-color: var(--ist-card);
    border: 1px solid var(--ist-border);
    border-radius: 12px;
    padding: 2.25rem;
    height: 100%;
    position: relative;
    box-shadow: 0 2px 10px var(--ist-shadow);
    transition: box-shadow 0.2s;
}

.ist-pricing-card:hover {
    box-shadow: 0 6px 24px rgba(26, 58, 110, 0.12);
}

.ist-pricing-card.ist-featured {
    border-color: var(--ist-sky);
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(77, 184, 232, 0.18);
}

.ist-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--ist-sky);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.85rem;
    border-radius: 20px;
    white-space: nowrap;
}

.ist-pricing-tier {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ist-sky-dim);
    margin-bottom: 0.4rem;
}

.ist-pricing-card h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ist-heading);
    margin-bottom: 0.5rem;
}

.ist-pricing-desc {
    color: var(--ist-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.ist-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.ist-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    color: var(--ist-text);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--ist-border);
}

.ist-pricing-features li:last-child {
    border-bottom: none;
}

.ist-pricing-features li i {
    color: var(--ist-sky-dim);
    font-size: 0.9rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ---- White Paper Cards ---- */
.ist-paper-card {
    background-color: var(--ist-card);
    border: 1px solid var(--ist-border);
    border-radius: 10px;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 2px 8px var(--ist-shadow);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.ist-paper-card:hover {
    box-shadow: 0 4px 16px rgba(26, 58, 110, 0.12);
}

.ist-paper-card.ist-paper-highlight {
    border-color: var(--ist-amber-border);
    background-color: var(--ist-amber-bg);
}

.ist-paper-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.ist-paper-tag.tag-cmmc {
    background-color: rgba(245, 197, 24, 0.15);
    color: #7a5500;
    border: 1px solid rgba(216, 168, 0, 0.4);
}

.ist-paper-tag.tag-strategy {
    background-color: rgba(77, 184, 232, 0.1);
    color: var(--ist-sky-dim);
    border: 1px solid rgba(77, 184, 232, 0.3);
}

.ist-paper-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ist-heading);
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.ist-paper-card p {
    color: var(--ist-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

/* ---- Newsletter Section ---- */
.ist-newsletter {
    background-color: #eef6fb;
    border: 1px solid rgba(77, 184, 232, 0.25);
    border-radius: 14px;
    padding: 3rem;
}

.ist-newsletter-form .form-control {
    background-color: #ffffff;
    border: 1px solid var(--ist-border);
    color: var(--ist-text);
    border-radius: 6px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.ist-newsletter-form .form-control:focus {
    background-color: #ffffff;
    border-color: var(--ist-sky);
    color: var(--ist-text);
    box-shadow: 0 0 0 0.15rem rgba(77, 184, 232, 0.2);
}

.ist-newsletter-form .form-control::placeholder {
    color: var(--ist-muted);
}

/* ---- Contact Form ---- */
.ist-form-control {
    background-color: #ffffff;
    border: 1px solid var(--ist-border);
    color: var(--ist-text);
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ist-form-control:focus {
    background-color: #ffffff;
    border-color: var(--ist-sky);
    color: var(--ist-text);
    box-shadow: 0 0 0 0.15rem rgba(77, 184, 232, 0.2);
    outline: none;
}

.ist-form-control::placeholder {
    color: var(--ist-muted);
}

.ist-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ist-heading);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

select.ist-form-control option {
    background-color: #ffffff;
    color: var(--ist-text);
}

/* ---- Stats Bar ---- */
.ist-stats-bar {
    background-color: var(--ist-bg-alt);
    border-top: 1px solid var(--ist-border);
    border-bottom: 1px solid var(--ist-border);
    padding: 2.5rem 0;
}

.ist-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ist-navy);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.ist-stat-label {
    font-size: 0.82rem;
    color: var(--ist-muted);
    font-weight: 500;
}

/* ---- Trust Items ---- */
.ist-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--ist-card);
    border: 1px solid var(--ist-border);
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 1px 4px var(--ist-shadow);
}

.ist-trust-icon {
    font-size: 1.4rem;
    color: var(--ist-sky-dim);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.ist-trust-item h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ist-heading);
    margin-bottom: 0.25rem;
}

.ist-trust-item p {
    font-size: 0.84rem;
    color: var(--ist-muted);
    margin: 0;
    line-height: 1.55;
}

/* ---- Page Hero (inner pages) ---- */
.ist-page-hero {
    background: linear-gradient(160deg, var(--ist-bg-hero) 0%, var(--ist-bg) 100%);
    padding: 3.5rem 0 3rem;
    border-bottom: 1px solid var(--ist-border);
}

.ist-page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--ist-heading);
    margin-bottom: 0.75rem;
}

.ist-page-hero p {
    color: var(--ist-muted);
    font-size: 1.02rem;
    max-width: 580px;
    line-height: 1.75;
    margin: 0;
}

/* ---- Footer (intentional dark contrast) ---- */
.ist-footer {
    background-color: var(--ist-navy);
    border-top: 3px solid var(--ist-sky);
    padding: 4rem 0 2rem;
}

.ist-footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.ist-footer-brand i {
    color: var(--ist-sky);
}

.ist-footer-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.ist-footer-sub {
    color: rgba(255,255,255,0.55);
    font-size: 0.84rem;
    line-height: 1.6;
}

.ist-footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ist-sky);
    margin-bottom: 1rem;
}

.ist-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ist-footer-links li {
    margin-bottom: 0.5rem;
}

.ist-footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: color 0.15s;
}

.ist-footer-links a:hover {
    color: #ffffff;
}

.ist-footer-divider {
    border-color: rgba(255,255,255,0.12);
    margin: 2.5rem 0 1.5rem;
}

.ist-footer-copy {
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    margin: 0;
}

.ist-footer-policy {
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
}

.ist-footer-policy:hover {
    color: #ffffff;
}

/* ---- Utility ---- */
.ist-divider {
    border-color: var(--ist-border);
}

.text-accent {
    color: var(--ist-sky-dim) !important;
}

.text-muted-ist {
    color: var(--ist-muted) !important;
}

.bg-card {
    background-color: var(--ist-card) !important;
}

/* ---- Success / Alert States ---- */
.ist-alert-success {
    background-color: var(--ist-success-bg);
    border: 1px solid var(--ist-success-border);
    color: var(--ist-success-text);
    border-radius: 6px;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
}

/* ---- Urgency info card (used in Contact sidebar) ---- */
.ist-urgency-card {
    background-color: var(--ist-amber-bg);
    border: 1px solid var(--ist-amber-border);
    border-radius: 10px;
    padding: 1.25rem;
}

.ist-urgency-card h5 {
    color: var(--ist-navy);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.ist-urgency-card p {
    color: var(--ist-amber-text);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.ist-urgency-card i {
    color: var(--ist-gold-dim);
}

/* ---- Step indicator (Contact page) ---- */
.ist-step-num {
    width: 28px;
    height: 28px;
    background-color: rgba(77, 184, 232, 0.12);
    border: 1px solid rgba(77, 184, 232, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ist-sky-dim);
}

.ist-step-title {
    color: var(--ist-heading);
    font-size: 0.88rem;
    font-weight: 600;
}

.ist-step-sub {
    color: var(--ist-muted);
    font-size: 0.82rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .ist-hero {
        padding: 4rem 0 3rem;
        text-align: center;
    }

    .ist-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .ist-hero-actions {
        justify-content: center;
    }

    .ist-hero-graphic {
        margin-top: 2rem;
    }

    .ist-newsletter {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .ist-section {
        padding: 3.5rem 0;
    }

    .ist-page-hero {
        padding: 2.5rem 0 2rem;
    }

    .ist-logo-float {
        left: 1rem;
    }

    .ist-logo-float img {
        width: clamp(120px, 32vw, 200px);
        max-height: 60px;
    }
}
