/* ---------------------------------------------------------------
   N2iT Security — site styles
   Brand palette + base typography + layout primitives.
   --------------------------------------------------------------- */

:root {
  /* Brand palette */
  --navy:        #1F3A5F;   /* primary brand */
  --navy-dark:   #16294A;   /* hover / footer */
  --teal:        #0E7C8E;   /* CTA + accent */
  --teal-dark:   #096170;
  --slate:       #5A6A7E;   /* secondary text */
  --ink:         #1A1F2E;   /* body text */
  --bg-soft:     #E4ECF4;   /* alternating section bg — bumped from #F4F6FA so it actually shows */
  --bg-tint:     #DAEDF0;   /* light teal-tinted section, for second alternation */
  --bg-card:     #FFFFFF;
  --border:      #D5DCE6;   /* slightly stronger so cards stand out on tinted bg */
  --success:     #1B8A5A;

  /* Type scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;

  /* Spacing + layout */
  --max-w: 1120px;
  --max-w-narrow: 760px;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(31,58,95,0.06), 0 4px 12px rgba(31,58,95,0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: var(--fs-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-lg); }
p  { margin: 0 0 1em; }
ul { padding-left: 1.25rem; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ---------- Layout ---------- */
.wrap     { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.25rem; }
section   { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

/* Teal accent bar before section headings — adds color where it's mostly text */
section:not(.section-navy):not(.cta-strip):not(.hero) h2 {
  position: relative; padding-top: 0.5rem;
}
section:not(.section-navy):not(.cta-strip):not(.hero) h2::before {
  content: ""; display: block;
  width: 44px; height: 4px; border-radius: 2px;
  background: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section-navy .eyebrow { color: #79D5E1; }
.lede { font-size: var(--fs-md); color: var(--slate); max-width: 60ch; }
.section-navy .lede { color: #C7D2DE; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-mark { width: 28px; height: 28px; }
.brand-text { font-weight: 700; color: var(--navy); font-size: var(--fs-md); letter-spacing: -0.01em; }
.brand-text .accent { color: var(--teal); }

.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: var(--fs-base);
  text-decoration: none;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.is-current { color: var(--navy); border-bottom: 2px solid var(--teal); padding-bottom: 2px; }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--teal); color: #fff !important;
  padding: 0.55rem 1rem; border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--teal-dark); }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  padding: 0.5rem; color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: var(--fs-base);
  text-decoration: none !important;
  border: 0; cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.btn-primary { background: var(--teal); color: #fff !important; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary {
  background: transparent;
  color: var(--navy) !important;
  border: 1.5px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff !important; }
.section-navy .btn-secondary { color: #fff !important; border-color: #fff; }
.section-navy .btn-secondary:hover { background: #fff; color: var(--navy) !important; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-tint) 100%);
  padding: 5rem 0 4.5rem;
  border-top: 4px solid var(--teal);
  position: relative;
}
.hero h1 { max-width: 18ch; margin-bottom: 1rem; }
.hero .lede { font-size: var(--fs-lg); margin-bottom: 1.5rem; color: var(--ink); }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem; align-items: center;
  padding: 1.75rem 2rem;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(31,58,95,0.18);
  margin-top: -2rem;     /* lifts the bar into the hero */
  position: relative;
  z-index: 2;
}
.trust-item {
  text-align: center; font-size: var(--fs-xs); color: #79D5E1;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- Cards / grids ---------- */
.grid-3, .grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);  /* color accent across the top */
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31,58,95,0.12);
}
.card h3 { margin-top: 0; }
.card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--teal); color: #fff;  /* solid teal block */
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(14,124,142,0.3);
}
.card .icon svg { width: 24px; height: 24px; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-weight: 600; margin-top: 0.5rem;
}

/* ---------- Service detail blocks ---------- */
.service-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}
.service-block h3 { margin-top: 0; color: var(--navy); }
.service-block::before {
  content: ""; position: absolute; top: 0; left: -6px; width: 6px; height: 28px;
  background: var(--navy); border-radius: 2px 0 0 0;
}
.service-meta {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 0.5rem 1rem; margin: 1rem 0; font-size: var(--fs-base);
}
.service-meta dt { font-weight: 600; color: var(--navy); }
.service-meta dd { margin: 0; color: var(--ink); }
@media (max-width: 600px) {
  .service-meta { grid-template-columns: 1fr; gap: 0.15rem; }
  .service-meta dd { margin-bottom: 0.5rem; }
}

/* ---------- Testimonial ---------- */
.testimonial {
  text-align: center; max-width: 720px; margin: 0 auto;
  background: #fff; padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--teal);
  box-shadow: 0 6px 24px rgba(31,58,95,0.10);
}
.testimonial blockquote {
  margin: 0 0 1rem; padding: 0;
  font-size: var(--fs-xl); color: var(--ink);
  line-height: 1.4; font-weight: 500;
}
.testimonial blockquote::before { content: "\201C"; color: var(--teal); margin-right: 0.1em; font-size: 1.5em; line-height: 0; }
.testimonial blockquote::after  { content: "\201D"; color: var(--teal); margin-left: 0.05em; font-size: 1.5em; line-height: 0; }
.testimonial cite {
  display: block; font-style: normal; font-size: var(--fs-base); color: var(--slate);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 0.5rem; max-width: 22ch; margin-inline: auto; }
.cta-strip p  { color: #C7D2DE; max-width: 50ch; margin: 0 auto 1.5rem; }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 2.5rem; }
.faq-group h3 { color: var(--navy); margin-bottom: 1rem; }
details.faq {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
details.faq:last-of-type { border-bottom: 1px solid var(--border); }
details.faq > summary {
  cursor: pointer; font-weight: 600; color: var(--navy);
  list-style: none; position: relative; padding-right: 2rem;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 1.4rem; color: var(--teal); line-height: 1;
}
details.faq[open] > summary::after { content: "\2212"; }
details.faq > div { margin-top: 0.75rem; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.contact-info { font-size: var(--fs-base); }
.contact-info dt { font-weight: 600; color: var(--navy); margin-top: 1rem; }
.contact-info dd { margin: 0; color: var(--ink); }
.form-frame {
  width: 100%; min-height: 720px; border: 0; border-radius: var(--radius);
  background: var(--bg-soft);
}
.form-placeholder {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 2rem; background: var(--bg-soft); color: var(--slate);
  font-size: var(--fs-base);
}
.form-placeholder strong { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark); color: #C7D2DE; padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4em; }
.site-footer a { color: #C7D2DE; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-text { color: #fff; }
.site-footer .brand-text .accent { color: #79D5E1; }
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--fs-xs);
}
.footer-bar a { margin-left: 1rem; }

/* ---------- Misc utilities ---------- */
.center { text-align: center; }
.muted { color: var(--slate); }
.text-balance { text-wrap: balance; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.placeholder-note {
  display: inline-block; padding: 0.1rem 0.4rem;
  background: #FFF3CD; color: #5C4A00; border-radius: 4px;
  font-size: 0.85em; font-weight: 600;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a, .nav-cta {
    display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  }
  .nav-cta { margin-top: 0.5rem; border-bottom: 0; text-align: center; }
}

/* ---------- Responsive typography ---------- */
@media (max-width: 720px) {
  :root {
    --fs-2xl: 1.875rem;
    --fs-3xl: 2.25rem;
    --fs-xl: 1.375rem;
  }
  section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
}

/* ---------- Form fields ---------- */
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block; font-weight: 600; color: var(--navy);
  margin-bottom: 0.4rem; font-size: var(--fs-base);
}
.form-field input,
.form-field textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: var(--fs-base);
  color: var(--ink); background: #fff;
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,124,142,0.12);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-required { color: var(--teal); }
.form-success {
  display: none; margin-top: 1rem; padding: 1.25rem 1.5rem;
  background: #E8F5EE; border-radius: var(--radius);
  color: var(--success); font-weight: 500;
}
