/* ============================================================
   POWERGENICS — shared design system
   Palette: logo blues on white / soft grey
   Type: Space Grotesk (display) + Manrope (body)
   ============================================================ */

:root {
  --navy:      #0A3D91;
  --navy-deep: #072B66;
  --blue:      #1B7FE0;
  --blue-br:   #2B8FE8;
  --sky:       #4FA8F0;
  --ink:       #0F1B2D;
  --slate:     #5A6B80;
  --line:      #E2E9F2;
  --grey:      #EEF3F9;
  --grey-soft: #F7F9FC;
  --white:     #FFFFFF;

  --grad: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--sky) 100%);
  --grad-deep: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--blue) 100%);

  --shadow-sm: 0 2px 8px rgba(10,61,145,.06);
  --shadow-md: 0 12px 34px rgba(10,61,145,.12);
  --shadow-lg: 0 30px 70px rgba(7,43,102,.22);

  --r: 16px;
  --r-lg: 26px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; position: relative; }
.section--grey { background: var(--grey-soft); }

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: var(--blue); display: inline-block;
}

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--slate); font-size: 1.08rem; margin-top: 18px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em;
  color: var(--navy);
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-weight: 600; font-size: .95rem; color: var(--ink);
  padding: 9px 16px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--blue); background: var(--grey); }
.nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--grad); color: #fff !important;
  padding: 11px 22px !important; border-radius: 12px !important;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--grad) !important; filter: brightness(1.05); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 1rem; padding: 15px 30px; border-radius: 13px;
  cursor: pointer; border: 0; transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.06); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.6px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--navy); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-3px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translate(3px,-3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: 88px 0 130px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(43,143,232,.10), transparent 60%),
    radial-gradient(900px 500px at -5% 20%, rgba(10,61,145,.06), transparent 55%),
    var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 60px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  margin-bottom: 24px;
}
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.hero-lead {
  font-size: 1.18rem; color: var(--slate); max-width: 520px; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/4.4;
  background: var(--grad-deep);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: luminosity; opacity: .82;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,61,145,.28), rgba(43,143,232,.05) 50%, rgba(7,43,102,.42));
}
.hero-badge {
  position: absolute; left: -22px; bottom: 42px;
  background: #fff; border-radius: 18px; padding: 20px 26px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px;
  z-index: 3;
}
.hero-badge .big {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 2rem; color: var(--navy); line-height: 1;
}
.hero-badge small { color: var(--slate); font-size: .82rem; font-weight: 600; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats {
  background: var(--grad-deep); color: #fff;
  border-radius: var(--r-lg); padding: 52px 40px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 28px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  margin-top: -70px;
}
.stats::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,168,240,.35), transparent 70%);
}
.stat { position: relative; z-index: 2; }
.stat b {
  font-family: 'Space Grotesk', sans-serif; display: block;
  font-size: clamp(2rem, 3.5vw, 2.9rem); font-weight: 700; letter-spacing: -.02em;
}
.stat span { color: #cfe2fb; font-size: .95rem; font-weight: 600; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.14); padding-left: 28px; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--grad); transition: width .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { width: 100%; }
.card-ico {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(27,127,224,.12), rgba(79,168,240,.06));
  color: var(--blue);
}
.card-ico svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .97rem; }
.card .tag {
  display: inline-block; margin-top: 16px; font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--blue);
  background: rgba(27,127,224,.08); padding: 5px 11px; border-radius: 20px;
}

/* ============================================================
   SPLIT / FEATURE
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-photo {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 5/4.2; background: var(--grad-deep); position: relative;
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .88; mix-blend-mode: luminosity; }
.split-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(10,61,145,.25), rgba(7,43,102,.35));
}
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.ticks li svg { flex: 0 0 auto; margin-top: 3px; color: var(--blue); }
.ticks li b { display: block; font-family: 'Space Grotesk', sans-serif; }
.ticks li small { color: var(--slate); font-weight: 500; }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.proj {
  border-radius: var(--r); overflow: hidden; position: relative;
  aspect-ratio: 4/3.4; box-shadow: var(--shadow-sm);
  background: var(--grad-deep); transition: transform .35s var(--ease), box-shadow .35s;
}
.proj:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.proj img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .5s var(--ease); }
.proj:hover img { transform: scale(1.07); }
.proj::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,43,102,.9) 5%, rgba(10,61,145,.15) 55%, rgba(27,127,224,.05));
}
.proj-body { position: absolute; left: 0; bottom: 0; padding: 26px; z-index: 2; color: #fff; }
.proj-body .kicker {
  font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: #9fcaf5;
}
.proj-body h3 { color: #fff; font-size: 1.3rem; margin: 6px 0 4px; }
.proj-body p { color: #d5e5f9; font-size: .9rem; }
.proj--soon { display: grid; place-items: center; text-align: center; }
.proj--soon .proj-body {
  position: static; padding: 0; display: grid; place-items: center; gap: 6px;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--grad-deep); border-radius: var(--r-lg);
  padding: 70px 56px; color: #fff; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0;
}
.cta-band::before { width: 340px; height: 340px; right: -90px; top: -120px;
  background: radial-gradient(circle, rgba(79,168,240,.4), transparent 70%); }
.cta-band::after { width: 220px; height: 220px; left: -60px; bottom: -100px;
  background: radial-gradient(circle, rgba(27,127,224,.3), transparent 70%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem,3vw,2.5rem); max-width: 620px; }
.cta-band p { color: #cfe2fb; margin-top: 12px; max-width: 520px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.info-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.info-card:last-child { border-bottom: 0; }
.info-ico {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; background: var(--grad);
}
.info-card small { color: var(--slate); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.info-card a, .info-card p { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.info-card a:hover { color: var(--blue); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 40px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--grey-soft);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form .btn-primary { width: 100%; justify-content: center; }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-head {
  background: var(--grad-deep); color: #fff; position: relative; overflow: hidden;
  padding: 84px 0 96px;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}
.page-head::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(79,168,240,.35), transparent 70%);
}
.page-head .eyebrow { color: #7fb6f0; }
.page-head .eyebrow::before { background: #7fb6f0; }
.page-head h1 { color: #fff; font-size: clamp(2.3rem,5vw,3.6rem); position: relative; z-index: 2; }
.page-head p { color: #cfe2fb; max-width: 560px; margin-top: 16px; position: relative; z-index: 2; font-size: 1.1rem; }
.crumbs { position: relative; z-index: 2; font-size: .88rem; color: #9fcaf5; margin-bottom: 18px; font-weight: 600; }
.crumbs a:hover { color: #fff; }

/* ============================================================
   VALUES / GRID SMALL
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.mini {
  padding: 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
}
.mini h3 { font-size: 1.15rem; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.mini h3 .n {
  font-family: 'Space Grotesk', sans-serif; color: var(--blue);
  font-size: .9rem; border: 1.5px solid rgba(27,127,224,.25); border-radius: 8px;
  width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto;
}
.mini p { color: var(--slate); font-size: .96rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #b9c6d8; padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .brand-name { color: #fff; }
.footer-about { margin-top: 18px; font-size: .95rem; max-width: 300px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a:hover { color: var(--sky); }
.footer-contact li { display: flex; gap: 10px; font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; font-size: .88rem; flex-wrap: wrap; }
.footer-tag { font-style: italic; color: var(--sky); font-family: 'Space Grotesk', sans-serif; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .cards, .proj-grid { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 34px 22px; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }

  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 24px;
    transform: translateY(-140%); transition: transform .35s var(--ease); align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 8px; border-radius: 8px; }
  .nav-links li { width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .nav-toggle.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.on span:nth-child(2) { opacity: 0; }
  .nav-toggle.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .section { padding: 66px 0; }
  .cards, .proj-grid, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; padding: 36px 24px; }
  .cta-band { padding: 46px 28px; }
  .form { padding: 26px; }
  .hero-badge { left: 8px; }
  .page-head { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
}
