/* ============================================
   GRALEVO — Global Stylesheet
   ============================================ */

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

:root {
  --navy:     #0B0F1A;
  --midnight: #1E2A5E;
  --blue:     #4A5FD4;
  --electric: #7B8FE8;
  --teal:     #1D9E75;
  --teal-lt:  #5DCAA5;
  --slate:    #6B7A99;
  --text:     #E8EAF0;
  --muted:    #8892AA;
  --border:   rgba(74,95,212,0.2);
  --radius:   12px;
}

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

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.15; color: #fff; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 500; }
em { font-style: italic; color: var(--electric); }
p  { color: var(--muted); line-height: 1.75; margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 500; }
a  { color: inherit; text-decoration: none; }

/* ---- LAYOUT ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--teal);
  letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1.5rem;
}
.section-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--teal); }

.divider { width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--blue), transparent); }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(11,15,26,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
  transition: padding 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-text { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  font-size: 13px; font-weight: 500; padding: 8px 20px;
  border: 0.5px solid var(--blue); border-radius: 6px; color: var(--electric);
  transition: background 0.2s;
}
.nav-cta:hover { background: rgba(74,95,212,0.15); }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--text); }

@media(max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; padding: 12px 28px;
  border-radius: 8px; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #5a6fe0; }
.btn-outline { background: transparent; color: var(--electric); border: 0.5px solid var(--blue); }
.btn-outline:hover { background: rgba(74,95,212,0.12); }

/* ---- CARDS ---- */
.card {
  background: rgba(255,255,255,0.02);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(74,95,212,0.5); }

/* ---- PILL ---- */
.pill {
  display: inline-block; font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(74,95,212,0.18); color: var(--electric);
}
.pill-teal { background: rgba(29,158,117,0.18); color: var(--teal-lt); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 9rem 0 5rem; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; right: -100px; top: 50%; transform: translateY(-50%);
  opacity: 0.04; pointer-events: none; animation: float 10s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(-50%) rotate(0deg); } 50%{ transform: translateY(-52%) rotate(4deg); } }

.hero-eyebrow { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--teal); letter-spacing: 0.15em; margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; max-width: 700px; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 3rem; border-top: 0.5px solid var(--border); }
.hero-stat-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 4px; }
.hero-stat-num span { color: var(--teal); }
.hero-stat-label { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--slate); letter-spacing: 0.08em; }

/* ---- SERVICES GRID ---- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 3rem; }
@media(max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card { padding: 2rem; }
.service-num { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--blue); margin-bottom: 1rem; display: block; }
.service-card h3 { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; color: #fff; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; }
.service-list { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 4px; }
.service-list li { font-size: 12px; color: var(--slate); padding-left: 14px; position: relative; }
.service-list li::before { content: '—'; position: absolute; left: 0; color: var(--blue); }

/* ---- MATURITY BAR ---- */
.maturity-steps { display: flex; flex-direction: column; gap: 2px; margin-top: 2.5rem; }
.maturity-step { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.5rem; border-radius: 8px; transition: background 0.2s; cursor: default; }
.maturity-step:hover { background: rgba(74,95,212,0.06); }
.ms-num { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: rgba(255,255,255,0.2); min-width: 28px; }
.ms-content {}
.ms-title { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 2px; }
.ms-desc { font-size: 12px; color: var(--muted); }
.ms-bar { height: 3px; border-radius: 2px; margin-top: 6px; }
.ms-1 .ms-bar { background: rgba(74,95,212,0.3); width: 20%; }
.ms-2 .ms-bar { background: rgba(74,95,212,0.45); width: 38%; }
.ms-3 .ms-bar { background: rgba(74,95,212,0.6); width: 58%; }
.ms-4 .ms-bar { background: rgba(74,95,212,0.8); width: 78%; }
.ms-5 .ms-bar { background: var(--blue); width: 100%; }

/* ---- PRODUCTS ---- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 3rem; }
@media(max-width: 900px) { .products-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width: 580px) { .products-grid { grid-template-columns: 1fr; } }

.product-mini {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  background: rgba(255,255,255,0.015);
  transition: border-color 0.2s, transform 0.2s;
}
.product-mini:hover { border-color: rgba(74,95,212,0.5); transform: translateY(-2px); }
.product-mini-tag { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 10px; display: block; }
.product-mini h4 { color: #fff; margin-bottom: 6px; font-size: 1rem; }
.product-mini p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---- SECTORS ---- */
.sectors-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2rem; }
.sector-badge { padding: 8px 18px; border-radius: 20px; border: 0.5px solid var(--border); font-size: 13px; color: var(--muted); transition: all 0.2s; }
.sector-badge:hover { border-color: var(--blue); color: var(--electric); }

/* ---- REFERENCES ---- */
.refs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 2.5rem; }
@media(max-width: 640px) { .refs-grid { grid-template-columns: repeat(2,1fr); } }
.ref-card { padding: 1.25rem; text-align: center; border-radius: 8px; border: 0.5px solid var(--border); }
.ref-sector { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--teal); letter-spacing: 0.1em; display: block; margin-bottom: 4px; }
.ref-name { font-size: 13px; font-weight: 500; color: var(--text); }

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, rgba(30,42,94,0.7), rgba(74,95,212,0.15));
  border: 0.5px solid rgba(74,95,212,0.35);
  border-radius: 20px; padding: 4rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); max-width: 500px; }
.cta-band p { color: var(--muted); max-width: 460px; margin-top: 0.75rem; }

/* ---- FOOTER ---- */
footer {
  border-top: 0.5px solid var(--border);
  padding: 3rem 0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: #fff; }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--slate); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero { padding: 9rem 0 4rem; border-bottom: 0.5px solid var(--border); }
.page-hero h1 { max-width: 680px; margin-bottom: 1.25rem; }
.page-hero p  { font-size: 1.1rem; max-width: 540px; }

/* ---- CONTACT FORM ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
@media(max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 12px; font-family: 'DM Mono', monospace; color: var(--slate); letter-spacing: 0.08em; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--border); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 14px; outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--navy); }
.contact-info h4 { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--electric); margin-bottom: 0.5rem; margin-top: 2rem; }
.contact-info h4:first-child { margin-top: 0; }
.contact-info p { font-size: 14px; margin-bottom: 0; }

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 3rem; }
@media(max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
.about-values { display: flex; flex-direction: column; gap: 12px; margin-top: 2rem; }
.about-value { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border-radius: 8px; border: 0.5px solid var(--border); }
.av-icon { width: 32px; height: 32px; border-radius: 6px; background: rgba(74,95,212,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; color: var(--electric); }
.av-content h4 { font-family: 'DM Sans', sans-serif; font-size: 14px; color: #fff; margin-bottom: 3px; }
.av-content p { font-size: 13px; margin: 0; }

/* ---- PULL QUOTE ---- */
.pull-quote { border-left: 2px solid var(--blue); padding: 1.25rem 1.75rem; margin: 2.5rem 0; background: rgba(74,95,212,0.05); border-radius: 0 8px 8px 0; }
.pull-quote p { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-style: italic; color: var(--electric); margin: 0; }

/* ---- ANIMATIONS ---- */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
