/* =============================================
   Security Geoff and Friends — Stylesheet
   Bold & Modern: Deep Blue (#1d3557) + Red (#e63946)
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #1d3557;
  --blue-mid:  #2a4a73;
  --blue-light:#457b9d;
  --red:       #e63946;
  --red-dark:  #c1121f;
  --white:     #ffffff;
  --off-white: #f8f9fa;
  --gray-100:  #f1f3f5;
  --gray-200:  #dee2e6;
  --gray-400:  #868e96;
  --gray-600:  #495057;
  --text:      #1d3557;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.hidden { display: none !important; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1;
  text-align: center;
  justify-content: center;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--gray-200);
}
.btn-ghost:hover:not(:disabled) { background: var(--gray-100); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-full { width: 100%; }

/* --- Section Helpers --- */
.section-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--blue);
  margin: 10px 0 14px;
  line-height: 1.2;
}
.section-header p { font-size: 17px; color: var(--gray-600); max-width: 560px; margin: 0 auto; }
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,0.75); }

.section-tag {
  display: inline-block;
  background: rgba(230, 57, 70, 0.1);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}
.section-tag.inverted {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.accent { color: var(--red); }

/* =============================================
   NAVIGATION
   ============================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(29, 53, 87, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.logo-icon { font-size: 22px; }
.logo-accent { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 60%, #1a2e4a 100%);
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.08) 0%, transparent 60%);
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content > *:not(.hero-stats) { grid-column: 1; }
.hero-stats { grid-column: 1 / -1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 24px;
}

#hero h1 {
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}
.stat span { font-size: 13px; color: rgba(255,255,255,0.65); max-width: 150px; line-height: 1.4; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.15); }

/* Shield graphic */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shield-graphic { position: relative; width: 220px; height: 220px; }
.shield-outer {
  width: 140px; height: 140px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.shield-inner {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(230,57,70,0.4);
}
.shield-icon { font-size: 38px; }

.orbit {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
  animation: spin linear infinite;
}
.orbit-1 { width: 170px; height: 170px; margin: -85px; animation-duration: 12s; }
.orbit-2 { width: 210px; height: 210px; margin: -105px; animation-duration: 20s; animation-direction: reverse; }
.orbit-3 { width: 250px; height: 250px; margin: -125px; animation-duration: 30s; }

.orbit-dot {
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(230,57,70,0.6);
  margin-left: -4px;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* =============================================
   SERVICES
   ============================================= */
#services { padding: 100px 0; background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(230,57,70,0.2); }
.service-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), var(--shadow-md);
}
.featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: var(--blue); }
.service-card > p { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin-bottom: 20px; }
.service-list { display: flex; flex-direction: column; gap: 6px; }
.service-list li {
  font-size: 13px;
  color: var(--gray-600);
  padding-left: 18px;
  position: relative;
}
.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* =============================================
   ABOUT
   ============================================= */
#about { padding: 100px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .section-tag { margin-bottom: 12px; }
.about-text h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.15; margin-bottom: 22px; }
.about-text > p { color: var(--gray-600); line-height: 1.75; margin-bottom: 16px; }

.about-pillars { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.pillar { display: flex; align-items: flex-start; gap: 16px; }
.pillar-icon { font-size: 28px; flex-shrink: 0; }
.pillar strong { display: block; font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
.pillar p { font-size: 14px; color: var(--gray-600); }

.about-card {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.about-icon-large { font-size: 56px; margin-bottom: 20px; }
.about-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.about-card > p { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.6; margin-bottom: 28px; }
.about-tags { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.about-tags span {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
}

/* =============================================
   QUIZ
   ============================================= */
#quiz { padding: 100px 0; background: var(--off-white); }

.quiz-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 100px;
  transition: width 0.4s ease;
  width: 20%;
}
.progress-label { font-size: 13px; font-weight: 600; color: var(--gray-400); white-space: nowrap; }

.quiz-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  min-height: 360px;
}

.question { display: none; }
.question.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.q-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.quiz-card h3 { font-size: 20px; font-weight: 700; color: var(--blue); margin-bottom: 24px; line-height: 1.4; }

.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  display: block;
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid var(--gray-200);
  transition: all var(--transition);
  overflow: hidden;
}
.option:hover { border-color: var(--blue-light); background: var(--gray-100); }
.option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.option-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}
.option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  border: 2px solid var(--gray-200);
}
.option-content > span:last-child { font-size: 14px; color: var(--gray-600); line-height: 1.4; }

.option.selected {
  border-color: var(--blue);
  background: rgba(29, 53, 87, 0.04);
}
.option.selected .option-letter {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.option.selected .option-content > span:last-child { color: var(--blue); font-weight: 500; }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 0 4px;
}

/* Quiz Results */
.quiz-results {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  text-align: center;
  animation: fadeIn 0.4s ease;
}
.result-icon { font-size: 60px; margin-bottom: 16px; }
.result-level {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}
.result-score { font-size: 15px; color: var(--gray-400); margin-bottom: 20px; font-weight: 500; }
.result-message {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.result-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.result-cta p { font-size: 15px; color: var(--gray-600); }

/* Risk level colors */
.risk-high   .result-level { color: #c1121f; }
.risk-medium .result-level { color: #e07b39; }
.risk-low    .result-level { color: #2a9d8f; }
.risk-strong .result-level { color: #2d6a4f; }

/* =============================================
   CONTACT
   ============================================= */
#contact {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 28px; }
.contact-step { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.step-num {
  width: 36px; height: 36px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-step strong { display: block; font-size: 15px; color: var(--white); margin-bottom: 4px; }
.contact-step p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.5; }

.contact-assurance {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 28px;
}
.contact-assurance p { font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 500; }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-success, .form-error {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  width: 64px; height: 64px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.form-success h3 { font-size: 22px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.form-success p { color: var(--gray-600); }
.form-error p { color: var(--red); font-size: 14px; font-weight: 500; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--blue); }
.req { color: var(--red); }
.optional { color: var(--gray-400); font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group input.invalid,
.form-group textarea.invalid { border-color: var(--red); }
.field-error { font-size: 12px; color: var(--red); font-weight: 500; min-height: 16px; }

textarea { resize: vertical; min-height: 100px; }

.quiz-result-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(29, 53, 87, 0.05);
  border: 1px solid rgba(29, 53, 87, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 18px;
}

.form-disclaimer {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: #111d2c;
  padding: 48px 0 32px;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand .logo-icon { font-size: 24px; }
.footer-brand .logo-text { color: var(--white); font-size: 17px; font-weight: 700; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  #hero { padding: 88px 20px 48px; }
  #services, #about, #quiz, #contact { padding: 72px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--blue);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; width: 100%; }
  .nav-toggle { display: block; }

  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .quiz-card { padding: 24px 20px; }
  .contact-form-wrap { padding: 28px 20px; }
}
