/* style.css */
:root{
  --bg:#0b1221;
  --bg2:#0a162a;
  --panel:#0f172acc;
  --muted:#cbd5e1;
  --text:#e5e7eb;
  --accent:#67e8f9;
  --accent2:#60a5fa;
  --line:#ffffff1a;
  --chip:#111827;
}

/* reset and base styles */
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:linear-gradient(180deg,var(--bg2),var(--bg));
  color:var(--text);
}

/* global links */
a{
  color:#911313;
  text-decoration:none;
}
a:hover{
  color:#7a0f0f;
  text-decoration:underline;
}

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

.container{
  max-width:1320px;
  margin:0 auto;
  padding:0 24px;
}
@media (min-width:1600px){
  .container{max-width:1440px}
}

/* skip link to jump to content */
.sr-only-focusable{
  position:absolute;
  left:-10000px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.sr-only-focusable:focus{
  position:static;
  width:auto;
  height:auto;
  display:inline-block;
  padding:8px 12px;
  border-radius:8px;
  background:#0c1426;
  border:1px solid var(--line);
  margin:6px;
}

/* top navigation */
.topnav{
  /* previously was position:sticky */
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  backdrop-filter:saturate(140%) blur(10px);
  background:linear-gradient(180deg,#0b1221ee,#0a162add);
  border-bottom:1px solid var(--line);
}

.topnav .wrap{
  display:flex;
  align-items:center;
  gap:18px;
  padding:10px 18px;
  position:relative;
}

/* desktop only, reserve space for cart */
@media (min-width:901px){
  .topnav .wrap{
    padding-right:80px; /* space for button and badge */
  }

  .topnav .calc-cart-header{
    position:absolute;
    right:24px;
    top:50%;
    transform:translateY(-50%);
    order:initial;
  }
}

/* BRAND / LOGO */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  letter-spacing:.2px;
}

/* flex order for brand */
.topnav .brand{
  order:1;
}

.brand-logo{
  display:flex;
  align-items:center;
  height:64px;
}
.brand-logo img{
  display:block;
  height:100%;
  width:auto;
  max-height:64px;
}

/* fallback when there is no logo */
.brand b{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:8px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#041018;
  box-shadow:0 6px 16px #0006 inset;
  font-size:14px;
}

.brand-text{
  color:#e5e7eb;
  font-size:16px;
  white-space:nowrap;
}

/* main menu */
.menu{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-left:auto;
  order:3;
}
.menu a{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#0c1426;
  color:#dbeafe;
  font-weight:700;
  font-size:13px;
}
.menu a.active{
  outline:2px solid var(--accent);
  outline-offset:1px;
}

/* brown info strip */
.age18{
  border-top:1px solid #ffffff1a;
  border-bottom:1px solid #ffffff1a;
  background:#3f1d1d;
  color:#fecaca;
}
.age18 .container{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  text-align:center;
  font-weight:500;
  font-size:12px;
  letter-spacing:.2px;
}
.age18 b{color:#fff}

/* spacing after header */
.header-gap{
  height:120px;
}
@media (max-width:900px){
  .header-gap{
    height:70px;
  }
}

/* burger button for mobile menu */
.burger{display:none}
@media (max-width:900px){
  .burger{
    display:inline-grid;
    place-items:center;
    margin-left:auto;
    width:40px;
    height:40px;
    border-radius:12px;
    cursor:pointer;
    border:1px solid var(--line);
    background:#0c1426;
    color:#dbeafe;
    font-size:22px;
    line-height:1;
    order:2;
  }
  .topnav .menu{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    z-index:1001;
    display:none;
    flex-direction:column;
    gap:10px;
    padding:12px 18px 16px;
    background:linear-gradient(180deg,#0b1221ee,#0a162add);
    border-bottom:1px solid var(--line);
    backdrop-filter:saturate(140%) blur(10px);
    margin-left:0;
    order:unset;
  }
  .topnav .menu.open{display:flex}
  .topnav .menu a{
    display:block;
    width:100%;
    padding:12px 14px;
    text-align:left;
    border-radius:12px;
    border:1px solid var(--line);
    background:#0c1426;
    font-weight:700;
    font-size:15px;
  }
}

/* hero section */
.hero{
  position:relative;
  overflow:hidden;
  padding:84px 0 36px;
  text-align:center;
}
.glow{
  position:absolute;
  inset:-20% -10% auto -10%;
  height:60vh;
  filter:blur(80px);
  opacity:.55;
  background:
    radial-gradient(800px 400px at 15% 10%, #1e3a8a88, transparent 60%),
    radial-gradient(800px 400px at 85% 0%, #0ea5e988, transparent 60%);
}
.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#0b1221aa;
  backdrop-filter:blur(8px);
  box-shadow:0 8px 28px #0006;
  font-weight:700;
}
h1{
  font-size:40px;
  line-height:1.12;
  margin:16px 0 10px;
  text-align:center;
}

.grad{
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.lead{
  color:var(--muted);
  max-width:880px;
  margin:0 auto 12px;
  text-align:center;
}
.sublead{
  color:var(--muted);
  max-width:880px;
  margin:0 auto 22px;
}
.cta{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:14px 18px;
  border-radius:14px;
  text-decoration:none;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#041018;
  font-weight:800;
  box-shadow:0 10px 24px #60a5fa55;
  transition:.2s;
}
.cta:hover{transform:translateY(-2px)}

/* layout in hero so it does not interfere with other .row */
.hero .row{
  display:grid;
  gap:18px;
}
@media(min-width:900px){
  .hero .row{
    grid-template-columns:1.1fr 1fr;
  }
}

/* panels and cards */
.panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:0 12px 36px #0008;
}
.panel h2{
  font-size:22px;
  margin:6px 0 10px;
}
.list{
  display:grid;
  gap:10px;
}
.li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:#0b1221;
  border:1px solid #ffffff12;
  border-radius:12px;
  padding:12px;
}
.li b{color:#fff}

/* 3 column grid */
.grid3{
  display:grid;
  gap:14px;
}
@media(min-width:900px){
  .grid3{grid-template-columns:repeat(3,1fr)}
}

.step,
.card{
  background:#0b1221;
  border:1px solid #ffffff12;
  border-radius:12px;
  padding:14px;
}

/* chips */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.chip{
  background:var(--chip);
  border:1px solid var(--line);
  color:#cbd5e1;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
}

/* old FAQ (basic) */
.faq .q{
  cursor:pointer;
  padding:14px;
  border:1px solid #ffffff14;
  border-radius:12px;
  background:#0b1221;
  margin:8px 0;
}
.faq .a{
  display:none;
  padding:12px 14px;
  background:#091427;
  border:1px solid #ffffff12;
  border-radius:12px;
  margin:-6px 0 10px;
}

/* sticky bottom CTA */
.sticky{
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:900;
  display:flex;
  gap:10px;
  justify-content:center;
}
.sticky a{
  flex:1;
  max-width:220px;
  text-align:center;
  border-radius:999px;
  padding:12px 14px;
  text-decoration:none;
  font-weight:800;
}
.phone{
  background:#22c55e;
  color:#041018;
}
.msg{
  background:#0ea5e9;
  color:#041018;
}
.ghost{
  background:#111827;
  color:#e5e7eb;
  border:1px solid #ffffff18;
}

/* footer */
.footer{
  border-top:1px solid var(--line);
  margin-top:40px;
  padding:22px 0;
  text-align:center;
  color:#94a3b8;
  font-size:13px;
}

/* offset for anchor links when header is fixed */
section[id]{scroll-margin-top:110px}

/* focus styles */
a:focus,
button:focus{
  outline:2px dashed var(--accent);
  outline-offset:2px;
}

/* map container */
#map{
  width:100%;
  height:380px;
  border-radius:14px;
  border:1px solid var(--line);
  overflow:hidden;
}

/* Svilen card - base, vertical layout */
.svilen{
  background:#0b1221;
  border:1px solid #ffffff12;
  border-radius:14px;
  padding:16px;
  text-align:center;
  display:block;
}
.svilen .avatar{
  width:180px;
  height:180px;
  margin:0 auto;
  border-radius:50%;
  overflow:hidden;
  border:3px solid #1f2937;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
}
.svilen .title{
  color:#a5b4fc;
  font-weight:700;
  margin-top:12px;
}
.svilen .meta{
  color:#94a3b8;
  font-size:14px;
  margin-top:6px;
}
.svilen .linkedin{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid #1e3a8a;
  background:#0b244a;
  color:#93c5fd;
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  margin-top:12px;
}

/* Svilen horizontal layout for services pages */
.svilen.svilen-row{
  display:flex;
  align-items:center;
  gap:18px;
  text-align:left;
}
.svilen.svilen-row .avatar{
  margin:0;
  flex-shrink:0;
}
@media (max-width:600px){
  .svilen.svilen-row{
    flex-direction:column;
    text-align:center;
  }
  .svilen.svilen-row .avatar{
    margin:0 auto;
  }
}

/* layout for "Who is behind Injenera" section */
.about-layout{
  display:block;
  gap:18px;
}

/* desktop two columns, text left, card right */
@media (min-width:900px){
  .about-layout{
    display:grid;
    grid-template-columns:1.5fr 1fr;
    align-items:center;
    column-gap:24px;
  }
  .about-layout aside .svilen{
    margin-left:auto;
    max-width:380px;
  }
}

/* mobile, stacked and centered */
@media (max-width:899px){
  .about-layout{
    display:block;
  }
  .about-layout aside .svilen{
    max-width:420px;
    margin:18px auto 0;
  }
}

/* mobile tweaks for headings and panels */
@media (max-width:600px){
  h1{
    font-size:30px;
  }
  .panel{
    padding:14px;
  }
  .hero{
    padding-top:70px;
  }
}

/* ==== FAQ accordion for injenera.org ==== */

.faq-panel {
  margin-top:24px;
}

/* container for all FAQ items */
.faq-list {
  margin-top:16px;
  border-radius:12px;
  background:#ffffff;
  box-shadow:0 18px 40px rgba(15, 23, 42, 0.45);
  overflow:hidden;
}

/* single FAQ item */
.faq-item {
  border-bottom:1px solid #e2e8f0;
}

/* remove last border */
.faq-item:last-child {
  border-bottom:none;
}

/* clickable question row */
.faq-question {
  width:100%;
  padding:14px 18px;
  background:#ffffff;
  border:none;
  outline:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  text-align:left;
  font-size:15px;
  font-weight:500;
  color:#0f172a;
}

/* question text */
.faq-q-text {
  flex:1;
}

/* icon on the right */
.faq-icon {
  font-size:14px;
  transition:transform 0.18s ease;
}

/* hover effect */
.faq-question:hover {
  background:#f8fafc;
}

/* active row */
.faq-item.active .faq-question {
  background:#eff6ff;
}

/* rotate arrow when open */
.faq-item.active .faq-icon {
  transform:rotate(180deg);
}

/* answer body */
.faq-answer {
  padding:0 18px 14px 18px;
  background:#f9fafb;
  font-size:14px;
  color:#1e293b;
}

/* spacing inside answer */
.faq-answer p {
  margin:8px 0;
}

.faq-answer ul {
  margin:8px 0 8px 18px;
}

.faq-answer li {
  margin:3px 0;
}

/* a bit more spacing under intro text on dark background */
.faq-panel .muted {
  margin-bottom:10px;
}

@media (max-width:768px) {
  .faq-list {
    border-radius:10px;
    box-shadow:0 12px 26px rgba(15, 23, 42, 0.5);
  }

  .faq-question {
    padding:12px 14px;
    font-size:14px;
  }

  .faq-answer {
    padding:0 14px 12px 14px;
    font-size:13px;
  }
}

/* price block muted text on dark background */
#price-block small.text-muted {
  color:#ffffff !important;
}

/* general muted text override, uses brand red */
.text-muted {
  color:#911313 !important;
  opacity:1 !important;
}

/* ===============================
   HEADER CART - DESKTOP + MOBILE
   =============================== */

/* cart is flex item inside .wrap, uses order on mobile */
.topnav .calc-cart-header{
  position:relative;
  background:transparent;
  border:none;
  box-shadow:none;
  padding:6px 8px;
  border-radius:999px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  color:#e5e7eb;
  cursor:pointer;

  pointer-events:auto;
  appearance:none;
  -webkit-appearance:none;

  order:4;

  transition:
    background-color .15s ease,
    color .15s ease;
}

/* hover effect */
.topnav .calc-cart-header:hover{
  background:rgba(148,163,184,0.16);
  color:#ffffff;
}

/* SVG icon wrapper */
.topnav .calc-cart-header .cart-icon-svg{
  width:26px;
  height:26px;
  fill:currentColor;
}

/* Font Awesome or emoji icon */
.topnav .calc-cart-header .cart-icon{
  font-size:24px;
  line-height:1;
}

/* badge above the icon */
.topnav .calc-cart-header .cart-badge{
  position:absolute;
  top:-6px;
  right:-6px;

  min-width:20px;
  height:20px;
  padding:0 6px;

  background:#dc3545;
  color:#fff;

  font-size:12px;
  font-weight:700;

  border-radius:999px;
  border:2px solid #020617;

  display:none;
  align-items:center;
  justify-content:center;

  pointer-events:none;
}

/* desktop - pin cart to the right, outside flex flow */
@media (min-width:901px){
  .topnav .calc-cart-header{
    position:absolute;
    right:22px;
    top:50%;
    transform:translateY(-50%);
    order:initial;
  }
}

/* mobile - slightly more compact icon */
@media (max-width:900px){
  .topnav .calc-cart-header{
    padding:6px 8px;
  }
}
@media (max-width:768px){
  .topnav .calc-cart-header{
    padding:4px 6px;
  }
  .topnav .calc-cart-header .cart-icon-svg{
    width:24px;
    height:24px;
  }
  .topnav .calc-cart-header .cart-icon{
    font-size:22px;
  }
}

/* ===============================
   BREADCRUMB ÏÎÄ ÊÀÔßÂÀÒÀ ËÅÍÒÀ
   =============================== */

nav[aria-label="breadcrumb"]{
  background:transparent !important;
  border:0 !important;
  padding:6px 0;
  margin-top:8px;
}

nav[aria-label="breadcrumb"] .breadcrumb{
  margin-bottom:0;
}

nav[aria-label="breadcrumb"],
nav[aria-label="breadcrumb"] a,
nav[aria-label="breadcrumb"] .breadcrumb-item{
  color:#911313 !important;
}

nav[aria-label="breadcrumb"] .breadcrumb-item.active{
  color:#911313 !important;
}

nav[aria-label="breadcrumb"] .breadcrumb-item + .breadcrumb-item::before{
  color:#911313 !important;
}

nav[aria-label="breadcrumb"] a:hover{
  color:#7a0f0f !important;
  text-decoration:underline;
}

/* mobile */
@media (max-width:900px){
  nav[aria-label="breadcrumb"]{
    margin-top:6px;
  }
}
