/* =========================================
   HEARTLAND SECURE IT - MASTER STYLESHEET
   Supports: Index, Home Office, Security, Resilience, Wireless, About, 
             Privacy, 404, Success, and Download pages.
   ========================================= */

:root {
  --bg: #0b1220;
  --bg-2: #050b18;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --heading: #f8fafc;
  --blue: #60a5fa;
  --blue-strong: #2563eb;
  --indigo: #4f46e5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Inter, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

body::before {
  content: ""; position: fixed; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px; z-index: -1;
  animation: subtle-bg-pan 30s linear infinite; pointer-events: none;
}
@keyframes subtle-bg-pan { from { background-position: 0 0; } to { background-position: -40px -40px; } }

main { flex-grow: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* --- HEADER & NAVIGATION --- */
header { background: rgba(5, 11, 24, 0.92); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); }
.header-container { width: min(1200px, 95%); margin: auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.logo img { height: 77px; width: auto; max-width: 280px; transition: transform 0.3s ease; object-fit: contain; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 8px; transition: all 0.2s ease; font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
nav a:hover, nav a:focus { color: var(--blue); background: rgba(255, 255, 255, 0.05); outline: none; }
nav a.active { color: #ffffff; background: rgba(255, 255, 255, 0.08); font-weight: 600; box-shadow: inset 0 -2px 0 var(--blue); }

/* --- BUTTONS --- */
.btn { background: linear-gradient(135deg, var(--blue-strong), var(--indigo)); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 26px; border-radius: 10px; border: none; font-weight: 700; box-shadow: 0 0 15px rgba(37,99,235,0.45); transition: .25s ease; cursor: pointer; font-family: inherit; }
.btn:hover, .btn:focus { transform: translateY(-2px); box-shadow: 0 0 25px rgba(37,99,235,0.75); outline: none; }
.btn-secondary { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.3); color: #fff; box-shadow: none; backdrop-filter: blur(4px); }
.btn-secondary:hover, .btn-secondary:focus { background: rgba(255,255,255,0.1); border-color: #fff; box-shadow: none; }

/* --- HERO SECTIONS --- */
.hero-shell { position: relative; min-height: 80vh; display: flex; align-items: center; box-shadow: inset 0 -4px 0 0 var(--bg); background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero-shell.subpage { min-height: auto; padding: 100px 0 80px; text-align: center; display: block; background-color: var(--bg); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 11, 24, 0.8) 0%, rgba(5, 11, 24, 0.4) 100%); z-index: 1; }
.hero-shell.subpage .hero-overlay { background: rgba(5, 11, 24, 0.85); }
.hero-content { width: min(1200px, 92%); margin: auto; position: relative; z-index: 2; padding: 60px 0; max-width: 650px; }
.hero-shell.subpage .hero-content { width: min(950px, 92%); padding: 0; max-width: none; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #93c5fd; margin-bottom: 18px; padding: 6px 14px; border: 1px solid rgba(147,197,253,0.3); border-radius: 999px; background: rgba(59,130,246,0.1); }
.hero-content h1 { color: #ffffff; font-size: 3.4rem; line-height: 1.15; margin-bottom: 24px; text-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.hero-shell.subpage h1 { font-size: 3.2rem; }
.hero-content p { color: #e2e8f0; font-size: 1.25rem; line-height: 1.7; margin-bottom: 34px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); max-width: 800px; }
.hero-shell.subpage p { margin-inline: auto; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- SECTION HELPERS --- */
.section { width: min(1200px, 92%); margin: 100px auto; }
.section-heading { text-align: center; max-width: 860px; margin: 0 auto 44px; }
.section-heading h2 { font-size: 2.3rem; color: var(--heading); margin-bottom: 14px; line-height: 1.15; }
.section-heading p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.mini-badge { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(37,99,235,0.12); color: var(--blue); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }

/* --- VALUE & SERVICE CARDS (Index & Subpages) --- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.value-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 32px; backdrop-filter: blur(10px); display: flex; flex-direction: column; }
.value-card h3 { color: var(--blue); font-size: 1.25rem; margin-bottom: 10px; }
.value-card p { color: #cbd5e1; line-height: 1.7; font-size: 0.95rem; flex: 1; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.service-card { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: .25s ease; backdrop-filter: blur(10px); }
.service-card:hover, .service-card:focus { transform: translateY(-6px); border-color: rgba(96,165,250,0.45); box-shadow: 0 18px 40px rgba(0,0,0,0.22); outline: none; }
.card-media { height: 240px; background-color: transparent; border-bottom: 1px solid rgba(255,255,255,0.06); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { display: inline-flex; align-self: flex-start; margin-bottom: 14px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(96,165,250,0.25); background: rgba(37,99,235,0.08); color: #bfdbfe; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-content h3 { font-size: 1.38rem; color: var(--heading); margin-bottom: 12px; }
.card-content p { color: #cbd5e1; line-height: 1.7; flex: 1; }
.learn-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #93c5fd; text-decoration: none; font-weight: 700; transition: .25s ease; }
.service-card:hover .learn-more { color: #fff; transform: translateX(4px); }

/* --- HOMEPAGE SPECIFICS (Checklist & Contact) --- */
.checklist-wrap { max-width: 960px; margin: 0 auto; padding: 54px 34px; border-radius: 20px; background: radial-gradient(circle at top right, rgba(79,70,229,0.18), transparent 30%), linear-gradient(135deg, rgba(37,99,235,0.16), rgba(2,6,23,0.85)); border: 1px solid rgba(37,99,235,0.3); box-shadow: 0 16px 46px rgba(0,0,0,0.28); }
.checklist-wrap h2 { font-size: 2.1rem; color: #fff; margin-bottom: 14px; text-align: center; }
.checklist-wrap > p { color: #cbd5e1; text-align: center; max-width: 760px; margin: 0 auto 28px; line-height: 1.7; }
.checklist-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; }
.checklist-points { list-style: none; }
.checklist-points li { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; padding: 16px; color: #dbe6f3; line-height: 1.65; margin-bottom: 14px; }
.checklist-points strong { color: #93c5fd; }
.checklist-form-card { background: rgba(2,6,23,0.48); border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; padding: 22px; }
.checklist-form-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.checklist-form-card p { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }

.contact-grid { max-width: 1020px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-copy, .contact-form-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 34px; backdrop-filter: blur(10px); }
.contact-copy h2 { color: #fff; font-size: 2rem; margin-bottom: 14px; }
.contact-copy p { color: #cbd5e1; line-height: 1.75; margin-bottom: 16px; }
.contact-detail { color: #dbe6f3; margin-top: 10px; }
.contact-detail a { color: #93c5fd; text-decoration: none; }

.magnet-form, .contact-form { display: flex; flex-direction: column; gap: 12px; }
.magnet-form input, .contact-form input, .contact-form textarea { padding: 14px 16px; border-radius: 10px; background: #020617; color: #fff; border: 1px solid rgba(255,255,255,0.14); font-family: inherit; font-size: 1rem; }
.magnet-form input:focus, .contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }

/* --- SUBPAGE SPECIFICS (Frameworks & Grids) --- */
.framework-intro { text-align: center; max-width: 860px; margin: 60px auto 15px; padding: 0 20px; }
.framework-intro h2 { font-size: 2.5rem; color: var(--heading); margin-bottom: 14px; }
.framework-intro p { color: var(--muted); font-size: 1.15rem; }

.showcase-container { width: min(1200px, 95%); margin: 0 auto 80px; display: flex; flex-direction: column; gap: 60px; }
.showcase-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; backdrop-filter: blur(10px); }
.visual-col { position: relative; width: 100%; background: #000; display: block; text-decoration: none; border-bottom: 1px solid var(--border); }
.visual-col img { width: 100%; height: auto; display: block; }
.content-col { padding: 50px; }
.content-col h2 { font-size: 2.2rem; margin-bottom: 16px; line-height: 1.2; color: var(--heading); }
.content-col p.lead { color: #cbd5e1; font-size: 1.15rem; margin-bottom: 40px; max-width: 900px; }
.showcase-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 30px; }
.showcase-list li { color: var(--text); display: flex; align-items: flex-start; gap: 14px; }
.showcase-list li b { display: block; color: var(--heading); font-size: 1.1rem; margin-bottom: 4px; font-weight: 700; }
.showcase-list li .icon { flex-shrink: 0; font-weight: 900; font-size: 1.2rem; margin-top: 2px; }

.perspective-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; }
.perspective-card { background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 45px; backdrop-filter: blur(10px); }
.perspective-card.highlight { border-color: rgba(37,99,235,0.3); background: rgba(37,99,235,0.02); }
.perspective-card h3 { font-size: 1.6rem; margin-bottom: 24px; color: var(--muted); }
.perspective-card.highlight h3 { color: var(--heading); }
.perspective-card ul { list-style: none; }
.perspective-card li { margin-bottom: 20px; color: #cbd5e1; display: flex; gap: 14px; font-size: 1.05rem; }
.perspective-card li b { color: var(--heading); display: block; margin-bottom: 4px; font-weight: 700; }
.perspective-card li .icon { flex-shrink: 0; font-weight: 900; margin-top: 4px; }

/* Diagram Centering Fix for network-security.html */
.diagram-container { text-align: center; margin-bottom: 50px; }
.diagram-container img { margin: auto; border-radius: 12px; max-width: 100%; height: auto; }

.features-container { width: min(1100px, 92%); margin: 60px auto; display: flex; flex-direction: column; gap: 40px; }
.feature-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 50px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; backdrop-filter: blur(10px); }
.feature-panel.reverse { grid-template-columns: 0.8fr 1.2fr; }
.feature-panel h2 { color: var(--blue); font-size: 2rem; margin-bottom: 20px; }
.feature-panel p { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 20px; }
.feature-panel ul { list-style: none; }
.feature-panel li { margin-bottom: 12px; color: var(--text); display: flex; align-items: flex-start; gap: 12px; }
.feature-panel li::before { content: "✓"; color: var(--blue); font-weight: 900; }
.side-box { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 18px; padding: 30px; }
.side-box h3 { color: var(--heading); font-size: 1.3rem; margin-bottom: 12px; }
.side-box p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

/* --- ABOUT PAGE SPECIFICS --- */
.about-preview { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 0.55fr 1.45fr; gap: 30px; align-items: stretch; }
.about-section { max-width: 1000px; margin: 100px auto 80px; padding: 0 20px; display: flex; align-items: flex-start; gap: 50px; }
.about-photo { min-height: 360px; border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 16px 36px rgba(0,0,0,0.25); background: #102036; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about-image-wrapper { flex: 1; width: 100%; max-width: 400px; flex-shrink: 0; }
.about-image { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); }
.about-copy { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 34px; backdrop-filter: blur(10px); }
.about-content { flex: 1.5; }
.about-eyebrow { display: inline-block; font-size: .88rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #93c5fd; margin-bottom: 18px; }
.about-copy h2, .about-content h1 { color: #fff; margin-bottom: 16px; line-height: 1.15; }
.about-copy h2 { font-size: 2rem; }
.about-content h1 { font-size: 3.2rem; margin-bottom: 25px; color: var(--heading); }
.about-copy p, .about-content p { color: #cbd5e1; margin-bottom: 20px; line-height: 1.75; }
.about-content p { font-size: 1.15rem; }

/* --- CALL TO ACTION BANNERS --- */
.cta-section, .cta-banner { width: min(900px, 92%); margin: 120px auto; padding: 60px 40px; text-align: center; background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(2,6,23,0.9)); border: 1px solid rgba(37,99,235,0.3); border-radius: 24px; position: relative; overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,0.28); }
.cta-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-strong), transparent); }
.cta-section h2, .cta-banner h2 { font-size: 2.6rem; color: #fff; margin-bottom: 18px; letter-spacing: -1px; }
.cta-section p, .cta-banner p { color: var(--muted); font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin-inline: auto; line-height: 1.7; }

/* --- UTILITY PAGES (Success, 404, Privacy, Download) --- */
.privacy-container { max-width: 800px; margin: 80px auto; padding: 40px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; backdrop-filter: blur(10px); flex-grow: 1; }
.privacy-container h1 { font-size: 2.5rem; margin-bottom: 10px; color: #ffffff; }
.privacy-container .last-updated { color: #64748b; font-size: 0.9rem; margin-bottom: 40px; display: block; }
.privacy-container h2 { font-size: 1.5rem; color: #60a5fa; margin: 30px 0 15px 0; }
.privacy-container p, .privacy-container ul { color: #cbd5e1; line-height: 1.7; margin-bottom: 15px; }
.privacy-container li { margin-bottom: 8px; margin-left: 20px; }

/* Fixes the success.html horizontal stacking issue */
main.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 650px; margin: 80px auto; padding: 0 20px; min-height: 50vh; }
.hero-logo { display: block; margin: 0 auto 30px auto; height: 110px; width: auto; }
.affirmation { color: #60a5fa; font-size: 1.5rem; font-weight: 600; margin-bottom: 25px; }
.spam-note { font-size: 0.95rem; color: #64748b; margin-bottom: 50px; }
.btn-outline { background: transparent; border: 1px solid #60a5fa; color: #60a5fa; box-shadow: none; margin-left: 15px; }
.btn-outline:hover { background: rgba(96, 165, 250, 0.1); transform: translateY(-2px); box-shadow: none; }
.error-code { font-size: 6rem; font-weight: 700; color: #2563eb; line-height: 1; margin-bottom: 10px; text-shadow: 0 0 30px rgba(37,99,235,0.4); }

.download-container { max-width: 600px; margin: auto; background: rgba(255,255,255,0.05); padding: 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); text-align: center; margin-top: 80px; margin-bottom: 80px;}
.download-container h1 { color: #fff; margin-bottom: 20px; font-size: 2.2rem;}
.download-container p { color: #94a3b8; margin-bottom: 30px; }
.btn-download { background: linear-gradient(135deg, #2563eb, #4f46e5); color: white; padding: 15px 30px; border-radius: 10px; text-decoration: none; font-weight: 700; display: inline-block; box-shadow: 0 0 15px rgba(37,99,235,0.4); margin-bottom: 20px; transition: .25s ease; border: none;}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(37,99,235,0.6); }
.consult-box { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.consult-box h2 { color: #60a5fa; font-size: 1.5rem; margin-bottom: 10px; }
.btn-consult { background: transparent; border: 2px solid #60a5fa; color: #60a5fa; padding: 12px 24px; border-radius: 10px; text-decoration: none; font-weight: 700; display: inline-block; transition: 0.3s; }
.btn-consult:hover { background: rgba(96,165,250,0.1); transform: translateY(-2px); }

/* --- FOOTER --- */
footer { text-align: center; margin-top: auto; padding: 60px 20px; font-size: 14px; color: #64748b; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-link { color: #64748b; text-decoration: none; font-size: 12px; margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; justify-content: center; }
.footer-link:hover, .footer-link:focus { color: #93c5fd; outline: none; }

/* --- RESPONSIVE QUERIES --- */
@media (max-width: 980px) {
  .hero-shell { min-height: 60vh; }
  .checklist-grid, .about-preview, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { width: 100%; max-width: 300px; margin: 0 auto; min-height: 380px; }
}
@media (max-width: 900px) {
  .feature-panel, .feature-panel.reverse { grid-template-columns: 1fr; padding: 35px; gap: 30px; }
  .perspective-grid { grid-template-columns: 1fr; }
  .cta-section h2, .cta-banner h2 { font-size: 2.1rem; }
  .cta-section, .cta-banner { margin: 80px 20px; padding: 40px 24px; width: auto; }
  .about-section { flex-direction: column; text-align: center; align-items: center; }
  .about-image-wrapper { margin-bottom: 40px; display: flex; justify-content: center; }
}
@media (max-width: 850px) {
  .header-container { flex-direction: column; padding: 15px 0; }
  .logo { margin-bottom: 12px; }
  nav { width: 100%; justify-content: center; flex-wrap: wrap; padding-bottom: 8px; }
  nav a { font-size: 0.85rem; padding: 8px 10px; }
}
@media (max-width: 768px) {
  .hero-shell { min-height: 70vh; }
  .hero-overlay { background: rgba(5, 11, 24, 0.75); }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-shell.subpage h1, .about-content h1 { font-size: 2.5rem; }
  .section { margin: 90px auto; }
  .section-heading h2, .checklist-wrap h2, .about-copy h2, .contact-copy h2 { font-size: 1.9rem; }
  .about-copy, .contact-copy, .contact-form-wrap, .checklist-form-card { padding: 24px; }
  .checklist-wrap { padding: 34px 20px; }
  .content-col { padding: 40px 30px; }
  .showcase-list { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 15px; }
}

/* Minimal Print Formatting */
@media print {
  header, nav, body::before, .cta-section, .cta-banner, .hero-actions { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}
