/* =====================================================
   ScanScope — Main Stylesheet
   Colors: #1A3C5E (navy), #2A7FBF (blue), #F4F8FC (light bg),
           #E8EFF6 (border grey), #111827 (text dark)
   Fonts: system-ui stack
   ===================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: #111827;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  color: #2A7FBF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ── Container ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: #2A7FBF;
  color: #ffffff;
  border-color: #2A7FBF;
}

.btn-primary:hover {
  background-color: #1A3C5E;
  border-color: #1A3C5E;
  text-decoration: none;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #2A7FBF;
  border-color: #2A7FBF;
}

.btn-outline:hover {
  background-color: #2A7FBF;
  color: #ffffff;
  text-decoration: none;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.875rem;
}

/* ── Section ── */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: #F4F8FC;
}

.section-dark {
  background-color: #1A3C5E;
  color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1A3C5E;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: #4B6280;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-dark .section-header h2 {
  color: #ffffff;
}

.section-dark .section-header p {
  color: #A8C4DC;
}

/* ── Divider ── */
.divider {
  width: 56px;
  height: 3px;
  background-color: #2A7FBF;
  margin: 16px auto 0;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background-color: #1A3C5E;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #2A7FBF;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 0.7rem;
  color: #A8C4DC;
  font-weight: 400;
  display: block;
  letter-spacing: 0.3px;
  margin-top: -2px;
}

.header-cta {
  font-size: 0.875rem;
  color: #A8C4DC;
}

.header-cta a {
  color: #4AA8E0;
  font-weight: 600;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background-color: #1A3C5E;
  color: #ffffff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1 1 520px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(42, 127, 191, 0.25);
  color: #4AA8E0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 20px;
  border: 1px solid rgba(42, 127, 191, 0.4);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero h1 span {
  color: #4AA8E0;
}

.hero p {
  font-size: 1.1rem;
  color: #A8C4DC;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1 1 380px;
  max-width: 460px;
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: rgba(255, 255, 255, 0.07);
  border: 2px dashed rgba(74, 168, 224, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4AA8E0;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar {
  background-color: #F4F8FC;
  padding: 40px 0;
  border-bottom: 1px solid #E8EFF6;
  border-top: 1px solid #E8EFF6;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #2A7FBF;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #4B6280;
  margin-top: 6px;
  font-weight: 500;
}

/* =====================================================
   FEATURES / SERVICES
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  width: 100%;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid #E8EFF6;
  border-radius: 6px;
  padding: 32px 28px;
  text-align: left;
}

.feature-card:hover {
  border-color: #2A7FBF;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: #F4F8FC;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon img {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A3C5E;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #4B6280;
  line-height: 1.6;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
  width: 100%;
}

.step-item {
  text-align: center;
  padding: 0 16px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #2A7FBF;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A3C5E;
  margin-bottom: 10px;
}

.step-item p {
  font-size: 0.875rem;
  color: #4B6280;
  line-height: 1.6;
}

/* =====================================================
   RFC SUMMARIES
   ===================================================== */
.rfc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  width: 100%;
}

.rfc-card {
  background-color: #ffffff;
  border: 1px solid #E8EFF6;
  border-left: 4px solid #2A7FBF;
  border-radius: 0 6px 6px 0;
  padding: 24px;
  text-align: left;
}

.rfc-number {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2A7FBF;
  margin-bottom: 8px;
}

.rfc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1A3C5E;
  margin-bottom: 8px;
}

.rfc-card p {
  font-size: 0.875rem;
  color: #4B6280;
  line-height: 1.55;
}

.rfc-tag {
  display: inline-block;
  background-color: #F4F8FC;
  color: #2A7FBF;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  margin-top: 12px;
  border: 1px solid #E8EFF6;
}

/* =====================================================
   TOOLS / PRODUCTS
   ===================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  width: 100%;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid #E8EFF6;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.product-image {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #E8EFF6;
  display: block;
  object-fit: cover;
  color: #4B6280;
  font-size: 0.8rem;
  border-bottom: 1px solid #E8EFF6;
}

.product-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-badge {
  display: inline-block;
  background-color: #F4F8FC;
  color: #2A7FBF;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid #E8EFF6;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A3C5E;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.875rem;
  color: #4B6280;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1A3C5E;
  margin-bottom: 16px;
}

.product-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: #4B6280;
}

.products-grid .product-card:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 380px;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  width: 100%;
}

.testimonial-card {
  background-color: #ffffff;
  border: 1px solid #E8EFF6;
  border-radius: 6px;
  padding: 28px;
  text-align: left;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #4B6280;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #E8EFF6;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B6280;
  font-size: 0.7rem;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1A3C5E;
}

.author-role {
  font-size: 0.8rem;
  color: #4B6280;
}

/* =====================================================
   BLOG PREVIEW
   ===================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  width: 100%;
}

.blog-card {
  background-color: #ffffff;
  border: 1px solid #E8EFF6;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.blog-image {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #E8EFF6;
  display: block;
  object-fit: cover;
  color: #4B6280;
  font-size: 0.8rem;
}

.blog-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.75rem;
  color: #4B6280;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1A3C5E;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.875rem;
  color: #4B6280;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blog-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2A7FBF;
}

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
  background-color: #2A7FBF;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.cta-banner .btn-primary {
  background-color: #1A3C5E;
  border-color: #1A3C5E;
}

.cta-banner .btn-primary:hover {
  background-color: #0F2740;
  border-color: #0F2740;
}

/* =====================================================
   CONTACTS
   ===================================================== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: #F4F8FC;
  border: 1px solid #E8EFF6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon img {
  width: 22px;
  height: 22px;
}

.contact-item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4B6280;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: #1A3C5E;
  font-weight: 600;
}

.contact-item a:hover {
  color: #2A7FBF;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background-color: #111827;
  color: #A8C4DC;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .brand-name {
  color: #ffffff;
  font-size: 1.3rem;
}

.footer-brand .brand-tagline {
  color: #4B6280;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #4B6280;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: #4B6280;
}

.footer-col ul li a:hover {
  color: #4AA8E0;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #1E2A3A;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #4B6280;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: #4B6280;
}

.footer-bottom-links a:hover {
  color: #4AA8E0;
  text-decoration: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

@media (max-width: 600px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .stats-grid {
    flex-direction: column;
    align-items: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .header-cta {
    display: none;
  }
}

/* =====================================================
   SECTION CENTER ALIGNMENT
   ===================================================== */
.section {
  text-align: center;
}

.section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.section-header {
  max-width: 600px;
  margin: 0 auto;
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1A3C5E;
  color: #ffffff;
  padding: 20px 24px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
  max-height: 90vh;
  overflow-y: auto;
  font-size: 0.9rem;
}

.cookie-banner.show {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner-content {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.cookie-banner-text {
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #4AA8E0;
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.cookie-btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: #4AA8E0;
  color: white;
}

.cookie-btn-accept:hover {
  background-color: #2A7FBF;
}

.cookie-btn-reject {
  background-color: transparent;
  color: #4AA8E0;
  border: 1px solid #4AA8E0;
}

.cookie-btn-reject:hover {
  background-color: rgba(74, 168, 224, 0.1);
}

.cookie-btn-customize {
  background-color: transparent;
  color: #4AA8E0;
  border: 1px solid #4AA8E0;
}

.cookie-btn-customize:hover {
  background-color: rgba(74, 168, 224, 0.1);
}

.cookie-btn-cancel {
  background-color: transparent;
  color: #666;
  border: 1px solid #ccc;
}

.cookie-btn-cancel:hover {
  background-color: #f5f5f5;
}

.cookie-btn-save-prefs {
  background-color: #4AA8E0;
  color: white;
}

.cookie-btn-save-prefs:hover {
  background-color: #2A7FBF;
}

/* Cookie Customize Panel */
.cookie-customize-panel {
  background-color: #f9f9f9;
  border-top: 1px solid #E8EFF6;
  padding: 20px 24px;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 12px;
}

.cookie-customize-content {
  max-width: 1160px;
  margin: 0 auto;
}

.cookie-customize-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1A3C5E;
  margin-bottom: 12px;
}

.cookie-customize-content p {
  font-size: 0.85rem;
  color: #4B6280;
  margin-bottom: 16px;
}

.cookie-preference-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background-color: white;
  border: 1px solid #E8EFF6;
  border-radius: 4px;
}

.cookie-preference-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-preference-item input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-preference-item label {
  cursor: pointer;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cookie-preference-item label strong {
  color: #1A3C5E;
  font-size: 0.9rem;
}

.cookie-required {
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
}

.cookie-preference-item label p {
  margin: 0;
  color: #666;
  font-size: 0.8rem;
}

.cookie-customize-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}
