/* VIEI site stylesheet (cleaned + consolidated)
   Drop-in replacement for assets/css/styles.css
*/

* { box-sizing: border-box; }

:root{
  /* Core theme */
  --bg: #0b1220;
  --bg-2: #14244b;                 /* used in background gradient */
  --card: rgba(15,27,51,.72);
  --text: #e8eefc;
  --muted: #b8c4e6;

  /* Brand accents */
  --accent: #f7c948;

  /* UI */
  --border: rgba(255,255,255,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Base */
html, body{
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(1200px 800px at 20% 10%, var(--bg-2) 0%, var(--bg) 60%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

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

a{ color: var(--accent); text-decoration: none; }
a:hover, a:focus{ text-decoration: underline; }

/* Layout helpers */
.container{
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header / Nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15,27,51,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  position: relative; /* for mobile nav positioning */
}

.brand{ display: inline-flex; align-items: center; }
.brand img{
  /* gives the logo subtle separation on dark header */
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}

/* Desktop nav */
.nav{
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a{
  display: inline-block;
  padding: .65rem .6rem;
  border-radius: .65rem;
  color: var(--text);
  text-decoration: none;
}

.nav a:hover{
  color: var(--accent);
  text-decoration: none;
}

.nav a[aria-current="page"]{
  color: var(--accent);
  font-weight: 700;
  background: rgba(247,201,72,.10);
  border: 1px solid rgba(247,201,72,.35);
}

/* Mobile menu button */
.nav-toggle{
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.nav-toggle:hover{
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero{ padding: 3rem 0 2rem; }
.lead{
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 65ch;
}

/* Grid cards */
.grid{
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem 0 2rem;
}

.grid article{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Buttons */
.btn{
  display: inline-block;
  padding: 10px 18px;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px; /* pill */
  background: var(--accent);
  color: #111;
  border: 1px solid rgba(0,0,0,.15);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  opacity: .95;
  text-decoration: none;
}

.btn:active{
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
}

/* Secondary button (optional) */
.btn-secondary{
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(247,201,72,.55);
}
.btn-secondary:hover{
  background: rgba(247,201,72,.10);
  text-decoration: none;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.5rem 0;
  color: var(--muted);
  background: rgba(15,27,51,.72);
}

.small{ font-size: .875rem; color: var(--muted); }

/* Forms */
label{ display: block; margin-top: .75rem; color: var(--text); }
input, textarea{
  width: 100%;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: rgba(255,255,255,.04);
  color: var(--text);
}
input:focus, textarea:focus{
  outline: 2px solid rgba(247,201,72,.35);
  outline-offset: 2px;
}

.contact-form{ max-width: 640px; }

/* Return-to-home button block */
.page-close{
  display: flex;
  justify-content: center;
  margin: 40px 0 10px;
}

.close-btn{
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(15,27,51,.90);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
  font-weight: 600;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.close-btn:hover{
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px){
  .grid{ grid-template-columns: 1fr; }

  .nav-toggle{ display: inline-block; }

  /* Dropdown menu */
  .nav{
    display: none;
    flex-direction: column;
    gap: .25rem;
    position: absolute;
    top: 64px;
    right: 1rem;
    min-width: 220px;
    padding: .5rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(15,27,51,.96);
    box-shadow: var(--shadow);
  }
  .nav.show{ display: flex; }

  .nav a{
    padding: .75rem .75rem;
    border-radius: 12px;
  }
}
