/* ==========================================================
   GREYVANE CONSULTING GROUP — Dark Luxury Theme
   Aesthetic: Old money consulting × modern cybersecurity
   Fonts: Cormorant Garamond (heading) + Outfit (body)
   ========================================================== */

:root {
  --bg-deep: #0A0E17;
  --bg-card: #111827;
  --bg-elevated: #1A2035;
  --bg-surface: #0F1420;
  --text-ivory: #F0EDE6;
  --text-muted: #8A8F9C;
  --text-dim: #5A6072;
  --accent-steel: #7C93AE;
  --accent-steel-bright: #9DB4CC;
  --accent-gold: #C9A96E;
  --accent-gold-bright: #DBBF8A;
  --border-subtle: rgba(124, 147, 174, 0.12);
  --border-hover: rgba(124, 147, 174, 0.3);
  --glow-steel: rgba(124, 147, 174, 0.06);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --max-width: 1140px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-ivory);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* Grain texture overlay */
.grain-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* Links */
a { color: var(--accent-steel); text-decoration: none; transition: color 0.3s var(--ease-out); }
a:hover { color: var(--accent-steel-bright); }

/* Scroll fade-in animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   HEADER / NAV
   ========================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-ivory);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.logo span { color: var(--accent-steel); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-ivory); }

.nav-links a.cta-nav {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.5rem 1.4rem;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.3s var(--ease-out);
}
.nav-links a.cta-nav:hover {
  background: var(--accent-gold);
  color: var(--bg-deep);
}

.nav-email {
  font-size: 0.75rem !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--text-dim) !important;
  border-left: 1px solid var(--border-subtle);
  padding-left: 2rem !important;
  margin-left: 0.5rem;
}
.nav-email:hover { color: var(--accent-steel) !important; }

/* Mobile nav */
.nav-toggle { display: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-ivory); margin: 5px 0;
  transition: 0.3s var(--ease-out);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    padding: 1.5rem 2rem; gap: 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.active { display: flex; }
  .nav-email { border-left: none; padding-left: 0 !important; margin-left: 0; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10rem 2rem 8rem;
  text-align: center;
  position: relative;
}

/* Atmospheric fog glow */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(124, 147, 174, 0.07) 0%,
    rgba(124, 147, 174, 0.03) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Secondary warm glow */
.hero::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-30%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(201, 169, 110, 0.04) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero .tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent-steel);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeDown 1s var(--ease-out) 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  color: var(--text-ivory);
  opacity: 0;
  animation: fadeDown 1s var(--ease-out) 0.4s forwards;
}

.hero .subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.9;
  opacity: 0;
  animation: fadeDown 1s var(--ease-out) 0.6s forwards;
}

.hero .cta-group {
  display: flex; gap: 1.2rem;
  justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: fadeDown 1s var(--ease-out) 0.8s forwards;
}

/* Divider line under hero */
.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--accent-steel);
  margin: 0 auto 1.5rem;
  opacity: 0.4;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-deep);
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  transition: all 0.3s var(--ease-out);
}
.btn-primary:hover {
  background: var(--accent-gold-bright);
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.2);
}

.btn-secondary {
  border: 1px solid var(--border-hover);
  color: var(--text-ivory);
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  transition: all 0.3s var(--ease-out);
}
.btn-secondary:hover {
  border-color: var(--accent-steel);
  color: var(--accent-steel-bright);
  transform: translateY(-1px);
}

/* ==========================================================
   SECTIONS
   ========================================================== */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-dark {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.section-dark section { margin: 0 auto; }

h2 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h2 .accent { color: var(--accent-steel); }

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 3.5rem;
  max-width: 520px;
  line-height: 1.7;
}

/* Section label / eyebrow */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: block;
}

/* ==========================================================
   SERVICES GRID
   ========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.service-card {
  background: var(--bg-deep);
  padding: 2.5rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent-steel), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
  background: var(--bg-card);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-ivory);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
}

.service-icon {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  display: block;
  opacity: 0.7;
}

/* Step numbers in How It Works */
.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-steel);
  opacity: 0.15;
  margin-bottom: 0.5rem;
  display: block;
  line-height: 1;
}

/* ==========================================================
   STATS BAR
   ========================================================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  padding: 2rem 0;
}

.stat {
  padding: 2rem 1rem;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number, .stat h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-steel);
  line-height: 1;
  transition: all 0.6s var(--ease-out);
}

.stat p {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.8rem;
  letter-spacing: 0.03em;
  font-weight: 400;
}

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
}

/* ==========================================================
   WHY GREYVANE / ABOUT
   ========================================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.about-values { list-style: none; }
.about-values li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.about-values li:first-child { border-top: 1px solid var(--border-subtle); }
.about-values li:hover { padding-left: 0.5rem; color: var(--text-ivory); }
.about-values li strong {
  color: var(--text-ivory);
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================
   CTA SECTION
   ========================================================== */
.cta-section {
  text-align: center;
  padding: 7rem 2rem;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(201, 169, 110, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 1.2rem;
  position: relative;
}
.cta-section p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ==========================================================
   ASSESSMENT FORM
   ========================================================== */
.assessment-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  color: var(--text-ivory);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 300;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-steel);
  box-shadow: 0 0 0 3px var(--glow-steel);
}

.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); }

/* ==========================================================
   BLOG
   ========================================================== */
.blog-list { list-style: none; }
.blog-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s;
}
.blog-item:hover { padding-left: 1rem; }
.blog-item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.blog-item h3 a { color: var(--text-ivory); }
.blog-item h3 a:hover { color: var(--accent-gold); }
.blog-meta {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}
.blog-item p { color: var(--text-muted); font-weight: 300; }

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 3rem;
  text-align: center;
  background: var(--bg-surface);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-logo {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-ivory);
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--accent-steel); }

.footer-content p {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  font-weight: 300;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-dim) !important;
  font-size: 0.9rem !important;
  margin: 0.5rem 0 1.5rem !important;
}

.footer-links { margin-top: 1rem; }
.footer-links a {
  color: var(--text-dim);
  margin: 0 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}
.footer-links a:hover { color: var(--accent-steel); }

/* ==========================================================
   INNER PAGES (services, about, blog, assessment)
   ========================================================== */
section h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

section h2 {
  margin-top: 2rem;
}

section h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

/* Markdown content tables */
section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

section table th {
  text-align: left;
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 2px solid var(--border-hover);
  background: var(--bg-surface);
}

section table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.9rem;
}

section table tr:hover td {
  background: var(--bg-card);
  color: var(--text-ivory);
}

section table strong { color: var(--accent-gold); font-weight: 600; }

/* Markdown lists */
section ul, section ol {
  padding-left: 1.2rem;
  color: var(--text-muted);
}
section li {
  margin-bottom: 0.5rem;
  font-weight: 300;
}
section li strong { color: var(--text-ivory); font-weight: 500; }

/* Horizontal rules */
section hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 3rem 0;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
  .hero { padding: 6rem 1.5rem 4rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero .subtitle { font-size: 0.95rem; }
  section { padding: 4rem 1.5rem; }
  h2 { font-size: 2rem; }
  section h1 { font-size: 2.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-bar .stat-number, .stats-bar .stat h3 { font-size: 2.2rem; }
}
