/*
 * Miller Contract Security Advisory
 * Static Site Stylesheet
 * https://millersecurityconsulting.ca
 */

/* ─── RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8fafc;
}

a { transition: color 0.2s, border-color 0.2s, background 0.2s; }

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

/* ─── NAV ─── */
nav {
  background: white;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo a {
  font-size: 1.3em;
  font-weight: 700;
  color: #1e3a8a;
  text-decoration: none;
  display: block;
}

.logo-subtitle {
  display: block;
  font-size: 0.6em;
  font-weight: 500;
  color: #3b82f6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  list-style: none;
}

.nav-links a {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover { color: #3b82f6; }
.nav-links a.active { color: #3b82f6; border-bottom: 2px solid #3b82f6; padding-bottom: 2px; }

.nav-contact a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
}

/* ─── PAGE HEADER ─── */
.page-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.page-header .eyebrow {
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.25;
}

.page-header p {
  font-size: 1.2em;
  max-width: 750px;
  margin: 20px auto;
  line-height: 1.6;
  opacity: 0.92;
}

/* ─── BUTTONS ─── */
.cta-button {
  display: inline-block;
  background: white;
  color: #1e3a8a;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.1em;
  margin-top: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-blue {
  background: #3b82f6;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s;
}

.cta-blue:hover { background: #1e3a8a; }

/* ─── HERO PROGRAMS ─── */
.hero-programs {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 25px auto 30px;
  max-width: 700px;
}

.hero-programs span {
  font-size: 0.85em;
  font-weight: 500;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ─── CONTAINER & SECTIONS ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  font-size: 2em;
  color: #1e3a8a;
  margin-bottom: 15px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1em;
  color: #475569;
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.7;
}

/* ─── STATS ─── */
.stats {
  background: white;
  padding: 60px 20px;
  text-align: center;
}

.stats-intro {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 1.15em;
  color: #475569;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-number {
  font-size: 3em;
  font-weight: 700;
  color: #3b82f6;
  display: block;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1em;
  color: #64748b;
}

/* ─── WHY MILLER ─── */
.why-miller {
  background: #f8fafc;
  padding: 60px 20px;
}

.why-miller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-miller-item {
  background: white;
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  transition: transform 0.2s, box-shadow 0.2s;
}

.why-miller-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.why-miller-item h3 {
  color: #1e3a8a;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.why-miller-item p {
  color: #475569;
  line-height: 1.7;
}

/* ─── SERVICE CARDS ─── */
.services-section {
  background: white;
  padding: 60px 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #f8fafc;
  padding: 35px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card h3 {
  color: #1e3a8a;
  font-size: 1.3em;
  margin-bottom: 12px;
}

.service-card p {
  color: #475569;
  margin-bottom: 15px;
  line-height: 1.7;
}

.service-card ul {
  list-style: none;
  margin-top: 15px;
}

.service-card li {
  padding: 8px 0 8px 25px;
  position: relative;
  color: #334155;
}

.service-card li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

.outcome-tags {
  border-top: 1px solid #e2e8f0;
  padding-top: 15px;
  margin-top: 10px;
}

.outcome-tags span {
  display: inline-block;
  background: #dbeafe;
  color: #1e3a8a;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
  margin: 3px 4px 3px 0;
}

/* ─── REPRESENTATIVE EXPERIENCE ─── */
.experience-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 60px 20px;
}

.experience-section .section-title { color: white; }
.experience-section .section-subtitle { color: rgba(255,255,255,0.8); }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.exp-item {
  background: rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid rgba(255,255,255,0.3);
  transition: background 0.2s;
}

.exp-item:hover { background: rgba(255,255,255,0.15); }

.exp-type {
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 10px;
}

.exp-item p {
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}

/* ─── ENGAGEMENT STEPS ─── */
.engagement-section {
  background: #f8fafc;
  padding: 60px 20px;
}

.eng-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.eng-step {
  background: white;
  padding: 30px 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.eng-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  font-size: 1.5em;
  font-weight: 700;
  margin: 0 auto 15px;
}

.eng-step h3 {
  color: #1e3a8a;
  font-size: 1.15em;
  margin-bottom: 10px;
}

.eng-step p {
  color: #475569;
  font-size: 0.95em;
  line-height: 1.65;
}

/* ─── ABOUT / PROFILE ─── */
.about-section {
  background: white;
  padding: 60px 20px;
}

.about-row {
  display: grid;
  grid-template-columns: 280px 1fr 350px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 100px;
}

.about-photo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-photo-buttons {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-photo-buttons a {
  display: block;
  background: #3b82f6;
  color: white;
  text-align: center;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.2s;
}

.about-photo-buttons a:hover { background: #1e3a8a; }

.about-main p {
  font-size: 1.1em;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-aside {
  background: #f8fafc;
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.about-aside h3 {
  color: #1e3a8a;
  font-size: 1.2em;
  margin-bottom: 15px;
}

.about-aside ul { list-style: none; }

.about-aside li {
  padding: 10px 0 10px 25px;
  position: relative;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95em;
}

.about-aside li:last-child { border-bottom: none; }

.about-aside li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

/* ─── TIMELINE (About page) ─── */
.timeline-section { background: #f8fafc; padding: 60px 20px; }

.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #3b82f6;
}

.timeline-item .timeline-period {
  font-size: 0.8em;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-item h3 {
  color: #1e3a8a;
  font-size: 1.25em;
  margin-bottom: 10px;
}

.timeline-item p {
  color: #475569;
  line-height: 1.7;
}

/* ─── CREDENTIALS GRID (About page) ─── */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.cred-card {
  text-align: center;
  padding: 30px 25px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cred-card .cred-icon { font-size: 2.5em; margin-bottom: 15px; }

.cred-card h3 {
  color: #1e3a8a;
  font-size: 1.15em;
  margin-bottom: 10px;
}

.cred-card p {
  color: #475569;
  line-height: 1.7;
  font-size: 0.95em;
}

/* ─── APPROACH GRID (About page) ─── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.approach-card {
  text-align: center;
  padding: 25px;
  background: #f8fafc;
  border-radius: 8px;
}

.approach-card .approach-icon { font-size: 2.5em; margin-bottom: 12px; }

.approach-card h3 {
  color: #1e3a8a;
  margin-bottom: 10px;
  font-size: 1.15em;
}

.approach-card p {
  color: #475569;
  line-height: 1.7;
  font-size: 0.95em;
}

/* ─── RESOURCES ─── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.resource-card {
  background: white;
  padding: 35px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.resource-card .resource-type {
  display: inline-block;
  background: #dbeafe;
  color: #1e3a8a;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.resource-card h3 {
  color: #1e3a8a;
  font-size: 1.3em;
  margin-bottom: 8px;
}

.resource-card .resource-sub {
  font-size: 0.95em;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 12px;
}

.resource-card p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.resource-card ul {
  list-style: none;
  margin-bottom: 15px;
}

.resource-card li {
  padding: 5px 0 5px 22px;
  position: relative;
  color: #334155;
  font-size: 0.95em;
}

.resource-card li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #3b82f6;
  font-weight: bold;
}

.resource-card .key-takeaway {
  background: #f1f5f9;
  padding: 15px;
  border-radius: 6px;
  font-size: 0.92em;
  color: #334155;
  line-height: 1.6;
}

.resource-card .key-takeaway strong { color: #1e3a8a; }

/* ─── CONTACT FORM ─── */
.contact-form-section {
  background: white;
  padding: 60px 20px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 8px;
  font-size: 1.05em;
}

.form-group label .required { color: #dc2626; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.form-group textarea { min-height: 150px; resize: vertical; }

.form-group small {
  display: block;
  color: #64748b;
  margin-top: 5px;
  font-size: 0.9em;
}

.form-submit {
  background: #3b82f6;
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.2s;
}

.form-submit:hover {
  background: #1e3a8a;
  transform: translateY(-1px);
}

/* ─── CONTACT CARDS ─── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: white;
  padding: 35px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-card .contact-icon { font-size: 3em; margin-bottom: 15px; }

.contact-card h3 {
  color: #1e3a8a;
  margin-bottom: 12px;
  font-size: 1.4em;
}

.contact-card p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ─── INFO GRID ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.info-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

.info-card .info-icon { font-size: 2.2em; margin-bottom: 12px; }

.info-card h3 {
  color: #1e3a8a;
  margin-bottom: 8px;
  font-size: 1.15em;
}

.info-card p {
  color: #475569;
  line-height: 1.6;
  font-size: 0.95em;
}

/* ─── FAQ ─── */
.faq-item {
  background: #f8fafc;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 18px;
  border-left: 4px solid #3b82f6;
}

.faq-item h3 {
  color: #1e3a8a;
  font-size: 1.2em;
  margin-bottom: 12px;
}

.faq-item p {
  color: #475569;
  line-height: 1.8;
}

/* ─── BANNER (blue highlight bar) ─── */
.blue-banner {
  background: #dbeafe;
  padding: 45px 20px;
  text-align: center;
}

.blue-banner h2 {
  font-size: 1.8em;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.blue-banner p {
  font-size: 1.15em;
  color: #1e40af;
  max-width: 700px;
  margin: 0 auto;
}

/* ─── PRIVACY / LEGAL CONTENT ─── */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.legal-content h2 {
  color: #1e3a8a;
  font-size: 1.6em;
  margin-top: 40px;
  margin-bottom: 15px;
}

.legal-content h3 {
  color: #1e3a8a;
  font-size: 1.2em;
  margin-top: 25px;
  margin-bottom: 10px;
}

.legal-content p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 15px;
}

.legal-content ul {
  margin-left: 25px;
  margin-bottom: 15px;
}

.legal-content li {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content strong { color: #334155; }

/* ─── FINAL CTA ─── */
.final-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.final-cta h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

.final-cta p {
  font-size: 1.2em;
  margin-bottom: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.final-cta .contact-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-size: 1.05em;
}

.final-cta .contact-links a {
  color: white;
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
}

.final-cta .contact-links a:hover { border-bottom-color: white; }

/* ─── FOOTER ─── */
footer {
  background: #1e293b;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

footer a {
  color: #93c5fd;
  text-decoration: none;
}

footer a:hover { color: #bfdbfe; }

footer p {
  margin-bottom: 10px;
  font-size: 0.95em;
}

footer p:last-child { margin-bottom: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .about-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-photo {
    position: relative;
    top: 0;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-header h1 { font-size: 1.8em; }
  .page-header { padding: 60px 20px; }

  .nav-container { justify-content: center; }
  .nav-links { justify-content: center; }
  .nav-contact { display: none; }

  .why-miller-grid,
  .services-grid,
  .exp-grid,
  .resources-grid { grid-template-columns: 1fr; }

  .eng-grid { grid-template-columns: 1fr 1fr; }

  .hero-programs { gap: 8px; }
  .hero-programs span { font-size: 0.78em; padding: 5px 10px; }

  .final-cta .contact-links {
    flex-direction: column;
    gap: 12px;
  }

  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .eng-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── LEAD MAGNET ─── */
.lead-magnet {
  background: #f0f4f8;
  border-left: 4px solid #c8a951;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 44px;
  text-align: center;
}

.lead-magnet h3 {
  font-size: 1.5em;
  color: #1e3a8a;
  margin-bottom: 14px;
}

.lead-magnet p {
  color: #475569;
  font-size: 1.05em;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lead-magnet a {
  display: inline-block;
  background: #1e3a8a;
  color: #fff;
  font-weight: 700;
  font-size: 1em;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.lead-magnet a:hover {
  background: #3b82f6;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .lead-magnet { padding: 30px 24px; }
}
