/* =========================
   GRENYION ADVISORY — MODERN CYBER CONSULTING THEME
   Inspired by polished cybersecurity consulting layouts:
   bold hero sections, sticky navigation, card grids, subtle motion,
   clear CTAs, and trust-building content blocks.
========================= */

:root {
  --bg: #020b1f;
  --bg-deep: #010714;
  --navy: #061a36;
  --navy-soft: #0b2748;
  --panel: rgba(9, 28, 55, 0.72);
  --panel-light: rgba(13, 42, 76, 0.9);
  --line: rgba(255, 255, 255, 0.10);
  --line-green: rgba(92, 190, 79, 0.42);
  --text: #f5f8fc;
  --muted: #b8c7d9;
  --muted-2: #8193aa;
  --green: #5cbe4f;
  --green-dark: #2f8c3f;
  --blue: #2b65f6;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(43, 101, 246, 0.18), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(92, 190, 79, 0.13), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  z-index: -1;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  line-height: 1.08;
}

h1, h2 {
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  max-width: 980px;
}

h3 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  margin-bottom: 18px;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding-left: 1.15rem;
  color: var(--muted);
}

li {
  margin-bottom: 10px;
  line-height: 1.55;
}

strong {
  color: var(--white);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 42px 0;
}

/* =========================
   HEADER / NAV
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 18px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(1, 7, 20, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: padding 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

header.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(1, 7, 20, 0.94);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

header h1 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

header h1::before {
  content: "G";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(43, 101, 246, 0.32), rgba(92, 190, 79, 0.26));
  border: 1px solid var(--line-green);
  color: var(--white);
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav a:hover,
nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

/* =========================
   PROMO BANNER
========================= */
.banner {
  max-width: none;
  margin: 0;
  padding: 14px 22px;
  text-align: center;
  border-bottom: 1px solid var(--line-green);
  background:
    linear-gradient(90deg, rgba(92, 190, 79, 0.18), rgba(43, 101, 246, 0.16)),
    rgba(5, 18, 38, 0.96);
}

.banner p {
  display: inline-block;
  margin: 0 14px 0 0;
  color: var(--white);
  font-size: 0.95rem;
}

.banner .cta {
  padding: 9px 15px;
  font-size: 0.82rem;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  position: relative;
  max-width: none;
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 110px 22px 90px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 26, 54, 0.55), rgba(1, 7, 20, 0.8)),
    radial-gradient(circle at 50% 10%, rgba(43, 101, 246, 0.30), transparent 35%);
}

.hero::before {
  content: "";
  position: absolute;
  width: min(760px, 86vw);
  height: min(760px, 86vw);
  border: 1px solid rgba(92, 190, 79, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 190, 79, 0.09), transparent 58%);
  filter: blur(1px);
  animation: slowPulse 7s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg-deep));
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h2 {
  margin: 0 auto 22px;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 1.16rem;
}

.hero .cta + .cta,
section .cta + .cta {
  margin-left: 12px;
}

@keyframes slowPulse {
  0%, 100% { transform: scale(0.98); opacity: 0.65; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* =========================
   CTA BUTTONS
========================= */
.cta,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #04101e;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(92, 190, 79, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.cta::after,
button::after {
  content: "→";
  transition: transform 0.22s ease;
}

.cta:hover,
button:hover {
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 18px 42px rgba(92, 190, 79, 0.32);
  filter: brightness(1.04);
}

.cta:hover::after,
button:hover::after {
  transform: translateX(4px);
}

/* =========================
   SECTION LAYOUT
========================= */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 22px;
}

section > p {
  max-width: 760px;
}

section h3::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

/* =========================
   CARDS / SERVICE GRID
========================= */
.cards,
.service-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card,
section li {
  position: relative;
}

.card,
.service-card {
  min-height: 190px;
  padding: 26px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(12, 38, 72, 0.86), rgba(4, 17, 36, 0.86));
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.card::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(92,190,79,0.7), rgba(43,101,246,0.2), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.card::after,
.service-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92,190,79,0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.card:hover,
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(92,190,79,0.45);
  box-shadow: 0 24px 64px rgba(0,0,0,0.36), 0 0 0 1px rgba(92,190,79,0.12);
}

.card:hover::before,
.service-card:hover::before,
.card:hover::after,
.service-card:hover::after {
  opacity: 1;
}

.card h4,
.service-card h4 {
  position: relative;
  z-index: 1;
}

.card p,
.service-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.card .read-more,
.service-card .read-more {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-weight: 800;
}

/* Turn regular bullet-list sections into a cleaner consulting-style visual block */
section:not(.banner):not(.hero) > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 0;
  margin-top: 24px;
  list-style: none;
}

section:not(.banner):not(.hero) > ul > li {
  margin: 0;
  padding: 18px 18px 18px 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 28, 55, 0.58);
  color: var(--muted);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

section:not(.banner):not(.hero) > ul > li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 0 18px rgba(92,190,79,0.32);
}

section:not(.banner):not(.hero) > ul > li:hover {
  transform: translateY(-4px);
  border-color: var(--line-green);
  background: rgba(13, 42, 76, 0.72);
}

/* =========================
   FORMS
========================= */
form {
  max-width: 760px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 28, 55, 0.68);
  box-shadow: var(--shadow);
}

label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(1, 7, 20, 0.76);
  color: var(--text);
  font: inherit;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(92,190,79,0.85);
  box-shadow: 0 0 0 4px rgba(92,190,79,0.14);
  background: rgba(1, 7, 20, 0.92);
}

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

/* =========================
   SCROLL / MOTION HELPERS
========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-glow {
  transform-style: preserve-3d;
}

/* =========================
   FOOTER
========================= */
footer {
  max-width: none;
  margin-top: 42px;
  padding: 38px 22px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(1, 7, 20, 0.82);
}

footer p {
  margin: 0;
  color: var(--muted-2);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .cards,
  .service-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
  }

  nav a {
    padding-left: 0;
  }

  .banner p {
    display: block;
    margin: 0 0 12px;
  }

  .hero {
    min-height: 560px;
    padding-top: 82px;
  }

  section {
    padding: 54px 18px;
  }

  .cards,
  .service-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero .cta + .cta,
  section .cta + .cta {
    margin-left: 0;
    margin-top: 12px;
  }

  .cta,
  button {
    width: 100%;
  }
}

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