/* ============================================================
   Gorilla Cyber Security — shared stylesheet
   Visual system reconstructed faithfully from gorillatechnology.com
   (Divi theme): Instrument Serif + Inter, cream/yellow/ink palette,
   rounded yellow buttons, cream sections with a yellow footer bar.
   ============================================================ */

:root {
  --cream:  #fdf8ed;   /* page + section background */
  --yellow: #ffdd24;   /* primary accent, buttons, hero, footer bar */
  --head:   #333333;   /* headings (exact GT value) */
  --ink:    #000000;   /* body text (exact GT value) */
  --white:  #ffffff;
  --blue:   #cbdff3;   /* brand soft blue accent */
  --sand:   #e0d7ce;   /* brand sand accent */
  --dark:   #1e1f26;   /* dark feature-band background */
  --rule:   rgba(0,0,0,0.12);

  --maxw: 1480px;      /* GT row max-width */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 30px;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography (exact gorillatechnology.com values) ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  color: var(--head);
  margin: 0 0 0.3em;
  line-height: 1.15;
  letter-spacing: normal;
}
h1 { font-size: 96px; line-height: 1.15; }
h2 { font-size: 48px; line-height: 1; }
h3 { font-size: 32px; line-height: 1.15; }
h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--head);
  margin: 0 0 0.4em;
}
h4 { font-size: 24px; line-height: 36px; }

p { margin: 0 0 1.2em; font-size: 18px; line-height: 30px; font-weight: 500; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { font-weight: 700; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--head);
  opacity: 0.65;
  margin: 0 0 14px;
}

.lead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  color: var(--head);
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section--cream { background-color: var(--cream); }
.section--sand  { background-color: var(--sand); }
.section--blue  { background-color: var(--blue); }
.center { text-align: center; }
.measure { max-width: 760px; margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

/* ---------- Buttons (exact gorillatechnology.com values) ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 22px;
  border: 0;
  border-radius: 20px;
  background-color: var(--yellow);
  color: #000000;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover { background-color: #000000; color: #ffffff; text-decoration: none; }
.btn--dark { background-color: #000000; color: #ffffff; letter-spacing: .75px; }
.btn--dark:hover { background-color: var(--yellow); color: #000000; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--head); color: var(--head); }
.btn--ghost:hover { background-color: #000; color: #fff; box-shadow: inset 0 0 0 2px #000; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* ---------- Header (transparent, overlaps hero; solidifies on scroll) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background-color: var(--cream);
  border-bottom-color: var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 40px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { height: 26px; width: auto; display: block; }
.brand svg path { fill: #000; }
.brand .brand-tag {
  font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1.35;
  letter-spacing: 2px; text-transform: uppercase; opacity: .6;
  padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--rule);
  max-width: 78px;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: .75px; text-transform: uppercase; color: rgba(0,0,0,.6);
}
.nav a:hover { text-decoration: none; color: #000; }
.nav .btn--dark { color: #fff; }
.nav .btn--dark:hover { color: #000; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  background-color: #b7ddf4;
  background-image: url("assets/hero-safes.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 124px 40px 120px; }
.hero-content { max-width: 600px; text-align: center; }
.hero h1 { color: var(--head); margin-bottom: 18px; }
.hero .hero-eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin: 0 0 6px; color: var(--head);
}
.hero .hero-locations {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; opacity: .6; margin: 0 0 26px;
}
.hero .hero-sub { font-size: 20px; line-height: 32px; max-width: 540px; margin: 0 auto 28px; }
.hero .btn-row { justify-content: center; }
.hero--inner { padding: 0; }
.hero--inner .hero-inner { padding: 110px 40px 96px; }

/* interior page hero — IT-style photo treatment (sand + ascending arrows) */
.page-hero {
  background-color: var(--sand);
  background-image: url("assets/services-desk-scaled.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.page-hero .hero-inner { padding: 116px 40px 96px; }
.page-hero .hero-content { text-align: center; }
.page-hero .hero-sub { margin-left: auto; margin-right: auto; }
.page-hero .btn-row { justify-content: center; }
.page-hero .eyebrow { opacity: .7; }

/* per-page hero photos */
.page-hero.hero--banana {
  background-color: #acd5ee;
  background-image: url("assets/hero-banana.jpg");
}
.page-hero.hero--maze {
  background-color: #fedd7c;
  background-image: url("assets/hero-maze.jpg");
}

/* ---------- Cards / panels ---------- */
.card { }
.card h3 { margin-bottom: .35em; }
.feature-band {
  background-color: var(--dark);
  color: var(--cream);
}
.feature-band h2, .feature-band h3 { color: var(--cream); }
.feature-band .eyebrow { color: var(--yellow); opacity: 1; }
.feature-band .lead, .feature-band p { color: var(--cream); }
.feature-band .btn { background: var(--yellow); color:#000; }
.feature-band .btn:hover { background:#fff; color:#000; }
.feature-band .alert-num { color: var(--yellow); }

.three-up { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 8px; }
.three-up .num {
  font-family: var(--serif); font-size: 30px; line-height:1; color: var(--ink);
  opacity:.35; margin-bottom: 10px;
}

/* mapped list (NIST functions etc.) */
.maplist { list-style: none; padding: 0; margin: 18px 0 0; }
.maplist li { padding: 12px 0; border-top: 1px solid var(--rule); }
.maplist li:last-child { border-bottom: 1px solid var(--rule); }
.maplist strong { font-family: var(--sans); }

/* feature checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--rule);
  font-size: 17px; line-height: 26px;
}
.checklist li:before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--yellow);
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* simple two-col list */
.cols-2 { columns: 2; column-gap: 48px; }
.cols-2 li { break-inside: avoid; }

/* stat row */
.stat-row { display:flex; flex-wrap:wrap; gap: 14px 40px; margin-top: 22px; }
.stat-row .stat { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing:.3px; }
.stat-row .stat span { display:block; font-family: var(--serif); font-size: 30px; font-weight:400; }

/* contact details */
.contact-grid { display:grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.contact-details p { margin: 0 0 14px; }
.contact-details .label { font-family: var(--sans); font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; opacity:.55; margin:0; }
.urgent-band { background: var(--dark); color: var(--cream); border-radius: 16px; padding: 26px 30px; margin-top: 10px; }
.urgent-band a:not(.btn) { color: var(--yellow); }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.field .req { color: #b3261e; }
.field input, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--rule); border-radius: 12px;
  padding: 13px 15px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,221,36,.55); }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.18); }
.field .err { font-family: var(--sans); font-size: 12.5px; color: #b3261e; display: none; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-family: var(--sans); font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--yellow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-family: var(--sans); font-size: 15px; padding: 14px 16px; border-radius: 12px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f6ec; color: #1d6b39; }
.form-status.bad { background: #fdeceb; color: #b3261e; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }


.site-footer { background-color: var(--cream); padding: 70px 0 0; border-top: 1px solid var(--rule); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px 56px;
}
.footer-grid h4 { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-size: 15px; }
.footer-grid a:hover { opacity:.6; text-decoration:none; }
.footer-brand svg { height: 22px; }
.footer-brand svg path { fill: #000; }
.footer-brand p { font-size: 15px; line-height: 24px; margin-top: 16px; max-width: 320px; opacity:.8; }
.footer-bar { background-color: var(--yellow); }
.footer-bar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 40px;
  display:flex; flex-wrap:wrap; gap: 8px 24px; justify-content: space-between;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  h1 { font-size: 72px; }
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .three-up, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cols-2 { columns: 1; }
  .container, .header-inner, .footer-grid, .footer-bar-inner { padding-left: 24px; padding-right: 24px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         flex-direction: column; align-items: flex-start; gap: 0;
         background: var(--cream); border-bottom: 1px solid var(--rule); padding: 8px 24px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav .btn { margin-top: 10px; }
  .nav-toggle { display: block; }
  /* photographic heroes: solid colour up top, full image as a band at the bottom */
  .hero, .page-hero { background-size: contain; background-position: center bottom; }
  .hero .hero-inner, .page-hero .hero-inner { padding: 96px 24px 58vw; }
}
@media (max-width: 767px) {
  h1 { font-size: 58px; line-height: 1.15; }
  h2 { font-size: 34px; line-height: 1.1; }
  h3 { font-size: 28px; }
  .lead { font-size: 21px; line-height: 31px; }
  .hero .hero-sub { font-size: 18px; line-height: 28px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .brand .brand-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 3px solid var(--head); outline-offset: 2px; }

/* ============================================================
   Expanded site: mega-menu, footer, FAQ, related, tables, quiz
   ============================================================ */

/* ----- Mega menu ----- */
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: .75px; text-transform: uppercase; color: rgba(0,0,0,.6); padding: 6px 0;
}
.nav-link:hover, .nav-item:hover .nav-link, .nav-item.open .nav-link { color: #000; }
.nav-caret { transition: transform .2s; opacity: .7; }
.nav-item:hover .nav-caret, .nav-item.open .nav-caret { transform: rotate(180deg); }
.nav-panel {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--cream); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.14); padding: 18px; min-width: 240px;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; z-index: 120;
}
/* invisible bridge so the cursor never leaves the hover area crossing the gap */
.nav-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px;
}
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel, .nav-item.open .nav-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}
.nav-panel--wide { min-width: 620px; }
.nav-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.nav-col { display: flex; flex-direction: column; }
.nav-col-h { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; opacity: .5; margin-bottom: 8px; }
.nav-panel a { display: block; font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--ink); padding: 6px 0; }
.nav-panel a:hover { color: #000; text-decoration: none; opacity: .65; }
.nav-cta { margin-left: 8px; }

/* ----- Blue hero (frameworks/resources) ----- */
.page-hero.hero--blue { background-color: var(--blue); background-image: none; }

/* ----- FAQ ----- */
.faq { margin-top: 10px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative;
  font-family: var(--serif); font-size: 23px; line-height: 1.3; color: var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 28px;
  font-family: var(--sans); font-weight: 300; color: var(--head); opacity: .6; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-a { padding: 0 0 20px; }
.faq .faq-a p { font-size: 17px; line-height: 28px; margin: 0; }

/* ----- Related cards ----- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.related-card { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px;
  font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--head); transition: border-color .2s; }
.related-card:hover { text-decoration: none; border-color: var(--head); }
.related-card .arr { color: var(--yellow); font-weight: 700; font-size: 18px; }

/* ----- Table ----- */
.gtable { width: 100%; border-collapse: collapse; margin-top: 18px; font-family: var(--sans); font-size: 16px; }
.gtable th, .gtable td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.gtable th { font-weight: 700; background: var(--white); color: var(--head); }
.gtable tr:hover td { background: rgba(0,0,0,.02); }

/* ----- Glossary ----- */
.glossary { margin: 0; }
.gl-term { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.gl-term dt { font-family: var(--serif); font-size: 22px; color: var(--head); margin-bottom: 4px; }
.gl-term dd { margin: 0; font-size: 17px; line-height: 27px; }

/* ----- Bios ----- */
.bio h2 { margin-bottom: 2px; }
.bio .bio-role { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; opacity: .55; margin: 0 0 14px; }
.bio { display: flex; gap: 36px; align-items: flex-start; }
.bio-photo { flex: 0 0 auto; width: 240px; height: 300px; border-radius: 14px; overflow: hidden;
  background: var(--white); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(100%); }
.bio-text { flex: 1 1 auto; min-width: 0; }
@media (max-width: 640px) {
  .bio { flex-direction: column; align-items: center; text-align: center; }
  .bio-photo { width: 200px; height: 250px; }
}

/* ----- Self-assessment quiz ----- */
.quiz { background: var(--white); border: 1px solid var(--rule); border-radius: 18px; padding: 28px; max-width: 780px; margin: 0 auto; }
.quiz .q { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.quiz .q:last-of-type { border-bottom: 0; }
.quiz .q p { font-weight: 600; margin: 0 0 10px; }
.quiz .opts { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.quiz label { display: flex; gap: 9px; align-items: center; font-size: 15px; font-weight: 500; cursor: pointer; }
.quiz label input { width: 17px; height: 17px; accent-color: var(--yellow); }
.quiz-result { margin-top: 22px; padding: 22px; border-radius: 14px; background: var(--sand); display: none; }
.quiz-result.show { display: block; }
.quiz-result .btn-row { justify-content: flex-start; }
.quiz-bar { height: 14px; border-radius: 8px; background: rgba(0,0,0,.1); overflow: hidden; margin: 12px 0; }
.quiz-bar span { display: block; height: 100%; background: var(--yellow); }

/* ----- Expanded footer ----- */
.footer-top { max-width: var(--maxw); margin: 0 auto; padding: 0 40px 44px;
  display: grid; grid-template-columns: 1.4fr 3fr; gap: 40px; }
.footer-brand svg { height: 22px; }
.footer-brand svg path { fill: #000; }
.footer-brand p { font-size: 15px; line-height: 24px; margin-top: 16px; max-width: 320px; opacity: .82; }
.footer-brand .footer-contact { font-size: 14px; opacity: .7; }
.footer-brand .footer-contact a { text-decoration: none; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.footer-links h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 12px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; line-height: 1.5; }
.footer-links a { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; font-weight: 500; }
.footer-links a:hover { opacity: .6; text-decoration: none; }

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px 0; }
  .nav-panel { position: static; transform: none; opacity: 1; visibility: hidden;
    display: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 10px 12px;
    min-width: 0; background: transparent; }
  .nav-item.open .nav-panel { display: block; visibility: visible; transform: none; }
  .nav-panel--wide { min-width: 0; }
  .nav-cols { grid-template-columns: 1fr; gap: 12px; }
  .nav-cta { margin: 12px 0 0; }
  .nav { max-height: calc(100vh - 72px); overflow-y: auto; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-links { grid-template-columns: 1fr; }
  .gtable, .gtable thead, .gtable tbody, .gtable tr, .gtable th, .gtable td { display: block; }
  .gtable thead { display: none; }
  .gtable td { border-bottom: 0; padding: 6px 0; }
  .gtable tr { border-bottom: 1px solid var(--rule); padding: 12px 0; }
}
