:root {
  --accent: #ffd000;
  --white: #ffffff;
  --muted: #bfbfbf;
}

/* GLOBAL RESET */
* { box-sizing: border-box; }

/* HEADER */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1500;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* NAVIGATION BAR */
.nav {
  max-width: 1100px;
  margin: 0 auto;
  height: 88px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--accent);
  font-size: 18px;
  text-decoration: none;
}
.logo {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 12px rgba(255,165,0,0.3), 0 0 28px rgba(255,140,0,0.2);
  animation: beaconPulse 1.5s infinite ease-in-out;
}
@keyframes beaconPulse {
  0%,100% { box-shadow:0 0 12px rgba(255,165,0,0.3),0 0 28px rgba(255,140,0,0.2); }
  50% { box-shadow:0 0 24px rgba(255,165,0,0.9),0 0 48px rgba(255,140,0,0.8); }
}
.logo::after {
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle, rgba(255,165,0,0.35) 0%, rgba(255,165,0,0.05) 80%),
    linear-gradient(90deg, rgba(255,165,0,0) 0%, rgba(255,165,0,0.8) 50%, rgba(255,165,0,0) 100%);
  background-blend-mode: screen;
  filter: blur(2.5px);
  transform: translateX(-100%);
  animation: sweepX 1.5s linear infinite;
  pointer-events:none;
}
@keyframes sweepX { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* CONTACT INLINE */
.contact-inline {
  display: flex;
  gap: 12px;
  align-items: center;
}
.phone { font-weight: 700; font-size: 16px; color: var(--white); }

/* DESKTOP NAVIGATION */
.main-nav {
  display:flex;
  gap:28px;
  list-style:none;
  margin:0; padding:0;
}
.main-nav > li { position:relative; }
.main-nav > li > a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 2px;
  display: inline-block;
  transition: color 0.2s ease;
}
.main-nav > li > a:hover { color: var(--accent); }

/* DROPDOWN */
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left:0;
  min-width: 190px;
  background: #0f0f0f;
  border-radius: 10px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s ease;
  z-index: 2000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.dropdown li a:hover {
  background: var(--accent);
  color: #111;
  box-shadow: 0 0 12px rgba(255,208,0,0.6);
}

/* HAMBURGER */
.mobile-bar {
  display: none;
  justify-content: flex-end;
  position: fixed;
  top: 100px; /* maināms atkarībā no header */
  left:0;
  width:100%;
  height:46px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  z-index:1600;
  align-items:center;
  padding:0 16px;
}
.hamburger {
  background:none;
  border:none;
  width:36px;
  height:26px;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  cursor:pointer;
}
.hamburger span {
  height:3px;
  width:100%;
  background: var(--accent);
  border-radius:3px;
  box-shadow:0 0 8px rgba(255,208,0,0.7);
}

/* MOBILE NAV */
.mobile-nav {
  position: fixed;
  top: 134px;
  left:0;
  width:100%;
  background:#0f0f0f;
  display:none;
  flex-direction: column;
  z-index:1500;
  padding:10px 0;
}
.mobile-nav a {
  padding:14px 20px;
  color: var(--white);
  text-decoration: none;
  font-weight:600;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:hover,
.mobile-nav a:focus { background: var(--accent); color:#111; box-shadow: 0 0 12px rgba(255,208,0,0.6); }
.mobile-nav.open { display:flex; }

/* MOBILE NAV – atdalīt summary no dropdown, hover/focus efektu uzlabošana */
@media (max-width:768px) {

  /* Summary (Evakuators) stils */
  .mobile-nav details summary {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08); /* atdalošā līnija */
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }

/* Dropdown pilsētu stils mobilajā */
.mobile-nav details ul {
  display: flex;
  flex-direction: column;  /* pilsētas viena zem otras */
  gap: 8px;                /* vertikālā atstarpe */
  padding: 10px 0;
  margin:0;
}

/* Droplet saites stils */
.mobile-nav details a {
  display: block;
  white-space: normal;     /* ļauj tekstam iet uz nākamo rindu, ja vajag */
  padding: 10px 20px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-bottom:1px solid rgba(255,255,255,0.06);
}

  /* Hover/focus + open efekts gan summary, gan saites */
  .mobile-nav details[open] > summary,
  .mobile-nav details summary:focus,
  .mobile-nav details a:focus,
  .mobile-nav details a:hover,
  .mobile-nav > a:focus,
  .mobile-nav > a:hover {
    background: var(--accent);
    color: #111;
    box-shadow: 0 0 12px rgba(255,208,0,0.6);
  }

  /* Dropdown vienkārša vizuāla atdalīšana */
  .mobile-nav details[open] > summary {
    border-bottom: none; /* lai līnija nepārklājas ar dropdown */
  }
}

/* RESPONSIVE SHOW/HIDE */
@media(max-width:900px){
  .main-nav { display:none; }
  .mobile-bar { display:flex; }
}
/* Līnija zem hamburgera tikai atvērtam menu */
.mobile-bar {
  border-bottom: none; /* default bez līnijas */
}

.mobile-nav.open + .mobile-bar {
  border-bottom:1px solid rgba(255,255,255,0.08);
}
