/* ============================================
   CyberDefense Firm — Global Styles
   Brand Colors: Navy #1B3A5C, Accent #2E86AB, Gold #D4A843
   ============================================ */

/* Font-metric override to reduce CLS during web font load */
@font-face {
  font-family: 'Inter-fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --navy: #1B3A5C;
  --navy-dark: #142C47;
  --accent: #2E86AB;
  --accent-hover: #256F8E;
  --gold: #D4A843;
  --gold-light: #E8C874;
  --light-gray: #F5F5F5;
  --mid-gray: #666666;
  --dark: #333333;
  --white: #FFFFFF;
  --teal: #2A9D8F;
  --font: 'Inter', 'Inter-fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --max-width: 1200px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); line-height: 1.6; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* Typography */
h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.25; color: var(--navy); }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; color: var(--navy); }
p { margin-bottom: 1rem; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 6px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: all 0.25s ease; border: 2px solid transparent;
  font-family: var(--font);
}
.btn-primary {
  background: var(--accent); color: var(--white); border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--accent); border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white {
  background: var(--white); color: var(--navy); border-color: var(--white);
}
.btn-white:hover { background: var(--light-gray); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white); box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--dark);
  transition: color 0.2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
  height: 2px; background: var(--accent); transition: width 0.2s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta .btn { padding: 10px 24px; font-size: 0.9rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--dark);
  margin: 5px 0; transition: all 0.3s;
}

/* Dropdown */
.nav-dropdown { position: relative; padding-bottom: 8px; margin-bottom: -8px; }
.nav-dropdown-menu {
  visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 0; background: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-radius: 6px; padding: 8px 0;
  min-width: 180px; transition: visibility 0s 0.3s, opacity 0.15s;
}
.nav-dropdown:hover .nav-dropdown-menu { visibility: visible; opacity: 1; transition: visibility 0s, opacity 0.15s; }
.nav-dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 0.9rem;
}
.nav-dropdown-menu a:hover { background: var(--light-gray); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 140px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,134,171,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content h1 { color: var(--white); margin-bottom: 8px; }
.hero-tagline {
  font-size: 1.5rem; font-weight: 300; color: var(--gold);
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.hero-desc { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-secondary,
.cta-panel-dark .btn-secondary {
  color: var(--white); border-color: var(--white);
}
.hero .btn-secondary:hover,
.cta-panel-dark .btn-secondary:hover {
  background: var(--white); color: var(--navy);
}
.hero .btn-secondary, .hero-alt .btn-secondary, .mobile-cta .btn-secondary, .cta-panel-dark .btn-secondary {
  color: var(--white); border-color: rgba(255,255,255,0.6);
}
.hero .btn-secondary:hover, .hero-alt .btn-secondary:hover, .mobile-cta .btn-secondary:hover, .cta-panel-dark .btn-secondary:hover {
  background: rgba(255,255,255,0.15); border-color: var(--white); color: var(--white);
}
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-visual img { max-width: 340px; opacity: 0.9; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3)); }
.hero-bar {
  height: 4px; background: linear-gradient(90deg, var(--gold) 0%, var(--accent) 50%, var(--gold) 100%);
}

/* Alternative hero for inner pages */
.hero-alt {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 120px 0 48px; text-align: center;
}
.hero-alt .hero-content h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 8px; }
.hero-alt .hero-tagline { color: rgba(255,255,255,0.75); font-size: 1.1rem; }
.hero-alt .hero-grid { display: block; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--light-gray); }
.section-header {
  text-align: center; max-width: 680px; margin: 0 auto 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--mid-gray); font-size: 1.1rem; }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--accent-hover);
  margin-bottom: 8px;
}
.gold-bar {
  width: 60px; height: 3px; background: var(--gold); margin: 16px auto 0;
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border-radius: 10px; padding: 32px 24px;
  text-align: center; transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(0,0,0,0.06);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card-icon {
  width: 64px; height: 64px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 20px;
  font-size: 1.6rem;
}
.card-icon-navy { background: rgba(27,58,92,0.1); color: var(--navy); }
.card-icon-accent { background: rgba(46,134,171,0.1); color: var(--accent); }
.card-icon-gold { background: rgba(212,168,67,0.12); color: var(--gold); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--mid-gray); font-size: 0.95rem; margin-bottom: 0; }

/* Service cards (horizontal) */
.service-cards { display: grid; gap: 20px; }
.service-card {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px; align-items: flex-start;
  background: var(--white); border-radius: 10px; padding: 40px;
  border: 1px solid rgba(0,0,0,0.06); transition: all 0.25s;
}
.service-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: var(--accent); }
.service-icon { flex-shrink: 0; }
.service-content h2 { margin-bottom: 12px; font-size: 1.5rem; }
.service-content p { color: var(--mid-gray); font-size: 0.95rem; margin-bottom: 20px; }
.service-content .btn { margin-top: 16px; }

/* ============================================
   TRUST / STATS
   ============================================ */
.trust-section { background: var(--navy); padding: 60px 0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.trust-item {}
.trust-icon {
  font-size: 1.8rem; margin-bottom: 8px; color: var(--gold);
}
.trust-label { color: rgba(255,255,255,0.75); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.trust-value { color: var(--white); font-size: 1.1rem; font-weight: 600; }

/* ============================================
   CTA SPLIT
   ============================================ */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; }
.cta-panel {
  padding: 60px 48px; display: flex; flex-direction: column;
  justify-content: center;
}
.cta-panel-dark { background: var(--navy); color: var(--white); }
.cta-panel-dark h2 { color: var(--white); }
.cta-panel-dark p { color: rgba(255,255,255,0.75); }
.cta-panel-light { background: var(--light-gray); }
.cta-panel h2 { margin-bottom: 12px; font-size: 1.5rem; }
.cta-panel p { margin-bottom: 24px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--navy-dark); padding: 60px 0 24px; color: rgba(255,255,255,0.8); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { max-width: 200px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-tagline { color: var(--gold); font-style: italic; font-size: 0.9rem; margin-top: 12px; }
.footer h4, .footer-heading { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; font-weight: 700; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.75); transition: color 0.2s; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 2px; }
.footer-links a:hover { color: var(--white); text-decoration-color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.75);
}
.footer-bottom a { color: rgba(255,255,255,0.75); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--white); text-decoration-color: var(--white); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-ctas { justify-content: center; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cta-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-card { grid-template-columns: 1fr; }
  .service-icon { margin: 0 0 16px 0; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--white);
    padding: 20px; gap: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }
  .nav-dropdown-menu {
    position: static; box-shadow: none; margin-top: 0; padding: 0 0 0 16px;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-links.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 8px 12px; }

  /* Kevin feedback: increase headline contrast for mobile */
  h1 { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
  h2 { font-weight: 700; }
  .hero-content h1 { color: var(--white); }
  .hero-alt .hero-content h1 { color: var(--white); }
  .page-header h1 { color: var(--white); }

  /* Kevin feedback: tighten spacing between sections */
  .hero { padding: 110px 0 48px; }
  .section { padding: 40px 0; }
  .section-header { margin: 0 auto 32px; }
  .content-section { padding: 40px 0; }

  /* Kevin feedback: reduce visual padding in stat areas */
  .proof-item { padding: 20px 12px; }
  .trust-section { padding: 40px 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Kevin feedback: increase font weight on key authority statements */
  .trust-value { font-weight: 700; font-size: 1rem; }
  .proof-number { font-size: 1.8rem; font-weight: 800; }
  .proof-label { font-weight: 600; }

  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Kevin feedback: contact button always visible on mobile */
  .mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: var(--navy); padding: 12px 16px; gap: 10px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  }
  .mobile-cta .btn {
    flex: 1; text-align: center; padding: 12px 16px; font-size: 0.9rem;
  }
  /* Add bottom padding to body so footer isn't hidden behind sticky CTA */
  body { padding-bottom: 64px; }
}

/* Hide mobile CTA on desktop */
.mobile-cta { display: none; }

/* ============================================
   PAGE-SPECIFIC: Inner pages
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 120px 0 48px; text-align: center;
}
.page-header h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

.content-section { padding: 60px 0; }
.content-section + .content-section { padding-top: 0; }
.content-section h2 { margin-bottom: 16px; }
.content-section p { max-width: 800px; }

/* Team cards */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.team-card {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  background: var(--white); border-radius: 10px; padding: 24px;
  border: 1px solid rgba(0,0,0,0.06);
}
.team-card img { width: 160px; height: 200px; object-fit: cover; object-position: top center; border-radius: 8px; }
.team-card h3 { margin-bottom: 2px; }
.team-card .team-title { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 0.9rem; color: var(--mid-gray); margin-bottom: 0; }

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 100px 1fr; }
  .team-card img { width: 100px; height: 130px; }
}

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.value-item {
  text-align: center; padding: 24px 12px;
  background: var(--white); border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
}
.value-item .card-icon { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: 12px; }
.value-item h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 6px; }
.value-item p { font-size: 0.8rem; color: var(--mid-gray); margin-bottom: 0; }

@media (max-width: 768px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* Form styles */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.9rem;
  margin-bottom: 6px; color: var(--dark);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid #ddd;
  border-radius: 6px; font-size: 1rem; font-family: var(--font);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,134,171,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* Contact info */
.contact-info { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.contact-info .icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(46,134,171,0.1); display: flex; align-items: center; justify-content: center; color: var(--accent); }

/* Impact cards for donate */
.impact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.impact-card {
  text-align: center; padding: 32px 20px; background: var(--white);
  border-radius: 10px; border: 2px solid var(--light-gray);
  transition: border-color 0.2s;
}
.impact-card:hover { border-color: var(--accent); }
.impact-amount { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.impact-desc { color: var(--mid-gray); font-size: 0.95rem; }
@media (max-width: 640px) { .impact-cards { grid-template-columns: 1fr; } }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.compare-table th { background: var(--navy); color: white; padding: 12px 16px; text-align: left; font-size: 0.9rem; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.compare-table tr:nth-child(even) { background: var(--light-gray); }


/* ============================================
   SOCIAL PROOF / IMPACT NUMBERS
   ============================================ */
.proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 48px;
}
.proof-item {
  text-align: center; padding: 32px 16px;
  background: var(--white); border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.proof-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.proof-number {
  font-size: 2.2rem; font-weight: 800; color: var(--navy);
  margin-bottom: 8px; line-height: 1.1;
}
.proof-label {
  font-size: 0.9rem; color: var(--mid-gray); line-height: 1.4;
}
.proof-quote {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: 32px; background: var(--light-gray); border-radius: 10px;
  border-left: 4px solid var(--gold);
}
.proof-quote blockquote {
  font-size: 1.15rem; font-style: italic; color: var(--dark);
  line-height: 1.7; margin-bottom: 12px;
}
.proof-quote cite {
  font-size: 0.9rem; color: var(--mid-gray); font-style: normal; font-weight: 600;
}

@media (max-width: 768px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* ============================================
   REACH GRID (about.html)
   ============================================ */
.reach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 800px; margin: 0 auto;
}
.reach-item {
  text-align: center; padding: 24px;
  background: var(--white); border-radius: 8px;
}
.reach-value {
  font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 6px;
}
.reach-label {
  color: var(--mid-gray); font-size: 0.9rem;
}
@media (max-width: 640px) {
  .reach-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================
   SERVICE OUTCOME BULLETS
   ============================================ */
.service-outcomes {
  margin: 16px 0 8px; padding: 16px 20px;
  background: var(--light-gray); border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.service-outcomes .outcome-heading {
  font-weight: 600; color: var(--navy); font-size: 0.9rem;
  margin-bottom: 8px;
}
.service-outcomes ul {
  list-style: none; padding: 0; margin: 0;
}
.service-outcomes li {
  position: relative; padding-left: 20px; font-size: 0.9rem;
  color: var(--mid-gray); line-height: 1.6; margin-bottom: 4px;
}
.service-outcomes li::before {
  content: '\2713'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}