/* Theme tokens */
:root {
  /* Colors */
  --bg-deep:   #0b2740;
  --bg-deeper: #081d31;
  --bg-slate:  #d9d9d9;
  --ink:       #0e2537;
  --ink-soft:  #2e4b63;
  --brand:     #163e5a;
  --accent:    #d9d9d9;
  --white:     #d9d9d9;

  /* Layout */
  --nav-h: 90px;                 
  --container-w: 1120px;
  --section-pad-y: 80px;        
  --section-pad-x: 24px;
}

/* Base / Resets */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--accent);
  background: var(--bg-slate);
  padding-top: var(--nav-h);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

section { scroll-margin-top: calc(var(--nav-h) + 12px); }

.container {
  width: min(var(--container-w), 100%);
  margin-inline: auto;
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  color: #d9d9d9; 
  text-decoration: none; 
}

.brand__logo-img {
  height: 150px; 
  width: auto;
}

 .nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 16px 28px;
  z-index: 50;
 background: rgba(239, 238, 234, 0.3);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: #d9d9d9;
  transition: background 0.3s ease;
}

.nav__links {
  display: flex; 
  align-items: center; 
  gap: 26px;
  list-style: none; 
  margin: 0; 
  padding: 0;
}

.nav__links a {
  color: #2e5e82; 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 14px;
  padding: 6px 8px; 
  border-radius: 8px; 
  transition: 
  background .2s ease;
}
.nav__links a:hover,
.nav__links a.is-active { background: rgba(255,255,255,.12); }

.burger {
  display: none; width: 38px; height: 38px;
  border: 1px solid #b2b0b0; border-radius: 10px;
  background: transparent; color: #b2b0b0;
}

section {
  padding: var(--section-pad-y) var(--section-pad-x);
  display: grid; 
  place-items: center;
}

#home {
  min-height: 100vh;
  color: var(--ink);
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #cfd8df 0%, #9fb1be 35%, #7a95a7 70%, #617f95 100%);
}

#home .angled {
  position: absolute; 
  inset: 0; 
  pointer-events: none; 
  opacity: .55;
}

.hero {
  display: grid; 
  align-items: center; 
  gap: 28px;
  grid-template-columns: 1.2fr .9fr;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.2vw, 64px);
  line-height: 1.05;
  color: #0b2b3f;
}

.hero p  { 
    font-size: clamp(14px, 1.3vw, 18px); 
    color: #1c3d53; 
    max-width: 720px; }

.cta {
  display: inline-block; 
  margin-top: 24px; 
  padding: 14px 22px; 
  border-radius: 14px;
  background: #d9d9d9; 
  color: #0b2740; 
  font-weight: 700; 
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.dark {
  color: #0b2740;
  position: relative; 
  overflow: hidden;
  background:
  linear-gradient(135deg, #d9d9d9 0%, #90a6b6 40%, #6c879b 100%);
}
.circuit::before {
  content: ""; 
  position: absolute; 
  inset: 0; 
  pointer-events: none; 
  opacity: .25;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(130,207,255,.35) 2px, transparent 3px),
    radial-gradient(circle at 22% 36%, rgba(130,207,255,.25) 2px, transparent 3px),
    radial-gradient(circle at 88% 26%, rgba(130,207,255,.22) 2px, transparent 3px),
    linear-gradient(90deg, rgba(120,200,255,.2) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(120,200,255,.2) 1px, transparent 1px);
  background-size: 120px 120px, 140px 140px, 160px 160px, 32px 32px, 32px 32px;
  background-position: 0 0, 40px 60px, 80px 80px, 0 0, 0 0;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.9));
}

.section-title { 
    font-size: clamp(34px, 4vw, 52px); 
    margin: 0 0 22px; 
}

.lead { 
    color: #0b2740; 
}

.about p { 
    line-height: 1.75; 
    font-weight: 400; 
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;         
}

.card {
  display: flex; 
  flex-direction: column;
  background: #0f2e4a; 
  color: #d9d9d9;
  border-radius: 18px; 
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 16px 36px rgba(0,0,0,.32); 
}

.card__img {
  width: 100%; 
  height: 220px; 
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.card__body { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    padding: 20px; 
}

.card__title { 
    font-size: 20px; 
    line-height: 1.2; 
    margin: 0; 
    min-height: 2.4em; 
}

.card__text  { 
    color: #d9d9d9; 
    font-size: 15px; 
    line-height: 1.7; 
    margin: 0; 
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
}

.form {
  padding: 18px; 
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
}

label { 
    display: block; 
    font-size: 14px; 
    margin: 12px 0 6px; 
}

input, textarea {
  width: 100%; 
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,.25); 
  border-radius: 12px;
  background: #d9d9d9; 
  color: #0b2740;  
  outline: none;
}

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

.btn {
  display: inline-block; 
  margin-top: 14px; 
  padding: 12px 18px; 
  border: 0; 
  border-radius: 12px;
  background: #d9d9d9; 
  color: #0b2740; 
  font-weight: 800; 
  cursor: pointer;
}

.contact-block { 
    display: grid; 
    gap: 12px; 
    align-content: start; 
}
.contact-block b { 
    display: block; 
    margin-top: 8px; 
}

footer {
  background: #06192b; 
  color: #d9d9d9;
  text-align: center; 
  padding: 18px 16px; 
  font-size: 14px;
}

footer a { color: #d9d9d9; 
    font-weight: 700; 
    text-decoration: none; 
}

.contact-link {
  color: var(--ink);     
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.wa {
  position: fixed; 
  right: 18px; 
  bottom: 18px; 
  z-index: 60;
  width: 65px; 
  height: 65px; 
  border-radius: 60%;
  display: grid; 
  place-items: center;
  text-decoration: none; 
  color: #d9d9d9;
  background: #d9d9d9; 
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; 
}             
  

  .nav { 
    padding: 14px 18px; 
}

  .nav__links {
    position: fixed; 
    top: calc(var(--nav-h) + 6px); 
    right: 16px;
    display: none; 
    flex-direction: column; 
    gap: 10px;
    background: #0b2740; 
    padding: 12px; 
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
  }

  .nav__links.open { 
    display: flex; 
}

  .burger { 
    display: inline-grid; 
    place-items: center; 
}

  /* Hero tighter on mobile to remove excess space */
  #home { min-height: auto; padding: 60px 20px; }
  .hero { gap: 20px; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
