/* ===== ROOT + COLORS ===== */
:root {
  --primary: #0d0c75;
  --accent: #ff7a00;
  --accent-dark: #e66a00;
  --bg: #f5f7fb;
  --text: #2c2c2c;
  --bg-color: #1e293b;
  --text-greyish: #444;
  --heading-color: #0f172a;
  --heading-border-color: #2563eb;
  --whiteish: #eee;
  --white: #ffffff;
  --footer-color: #cbd5e1;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px #00000014;
  --button: #1d4ed8;
  --comunitate: #00adec;
  --locuire: #e74856;
  --administratie: #f8a23f;
  --mediu: #00cc6a;
  --mobilitate: #c239b3;
  --economie: #00b7c3;
  --monitor: #3179b6;
}

body.dark-mode {
  --bg: #020617;
  --text: #e2e8f0;
  --heading-color: #f8fafc;
  --white: #0f172a;
  --whiteish: #1e293b;
  --text-greyish: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  --text: #e5e7eb;
  --text-greyish: #94a3b8;
  --heading-color: #f9fafb;
  --heading-border-color: #3b82f6;
  --button: #2563eb;
  --border: rgba(255, 255, 255, 0.06);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  --button: #3b82f6;
  --accent: #fb923c;
  --accent-dark: #ea580c;
}
/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* outline: 1px solid red; */
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
mark {
  background-color: var(--accent);
  color: var(--white);
  padding: 2px 4px;
  border-radius: 4px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* .highlight {
  background: var(--accent);
  color: var(--white);
} */
/* ===== HEADINGS ===== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: -0.5px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  border-left: 5px solid var(--heading-border-color);
  padding-left: 12px;
}
h3 {
  margin-bottom: 10px;
}
body.dark-mode h2 {
  color: var(--heading-color);
  border-left: 5px solid var(--heading-border-color);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
body.dark-mode section h2 {
  color: var(--heading-color);
}
body.dark-mode section h2 span {
  color: var(--heading-border-color);
}
body.dark-mode h3 {
  color: #e2e8f0;
}
body.dark-mode section > div,
body.dark-mode .card {
  background: linear-gradient(145deg, #0f172a, #020617);
}
/* ===== HEADER ===== */
#theme-toggle {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  margin-left: 10px;
  color: var(--text);
  transition: 0.3s;
}

#theme-toggle:hover {
  transform: scale(1.1);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  /* background: linear-gradient(135deg, var(--accent), var(--primary)); */
  /* background: var(--heading-color); */
  color: var(--white);
  position: sticky;
  top: 0;
  height: 130px;
  z-index: 1000;
}
.lang-theme {
  display: flex;
}
/* Button style */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  padding: 12px 16px;
  font-size: 18px;
  border: none;
  border-radius: 50%;
  background-color: var(--button);
  color: white;
  cursor: pointer;
  transition: opacity 0.3s;
}
#backToTop:hover {
  background-color: var(--heading-border-color);
}
.logo {
  width: 120px;
  transition: transform 0.3s;
  border-radius: 42% 42% 85% 85%;
}
.logo:hover {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
}
/* ===== SEARCH ===== */
.search-form {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.search-form input {
  max-width: 100px;
  border: none;
  padding: 10px 15px;
  outline: none;
}
.search-form button {
  background: var(--accent);
  border: none;
  color: var(--white);
  padding: 10px 16px;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
  font-weight: 500;
  border-radius: 20px;
}
.search-form button:hover {
  background: var(--accent-dark);
}
/* ===== NAVBAR ===== */
nav {
  position: static;
  z-index: 1000;
}
nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* NAV LINKS */
nav a {
  /* padding: 10px 16px; */
  border-radius: var(--radius);
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
  color: var(--section-color);
  text-decoration: none;
}
nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}
a {
  color: var(--heading-border-color);
  transition: 0.2s;
}
body.dark-mode a:hover {
  color: #93c5fd;
}
/* a:hover {
  color: var(--heading-border-color);
} */
/* ===== SPLIT MENU ===== */

nav .dropdown-menu.split-menu {
  display: flex;
  flex-direction: row;
  width: 80%;
  /* height: 100%; */
  position: absolute;
  top: 100%;
  left: 0;
  padding: 25px;
  box-shadow: var(--shadow);
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  transform: translateY(10px);
  border-radius: 0 0 12px 12px;
  /* background-color: inherit */
  background-color: var(--white);
  color: var(--section-color) !important;
}
.dropdown:hover .split-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
/* ===== LEFT SIDE ===== */
.menu-left {
  width: 30%;
  border-right: 1px solid var(--whiteish);
}
.menu-left ul {
  list-style: none;
}
.menu-left li {
  padding: 10px;
  border-radius: 6px;
  transition: 0.2s;
}
.menu-left li:hover,
.menu-left li.active {
  color: var(--section-color);
  background-color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
/* ===== RIGHT SIDE ===== */
.menu-right {
  width: 30%;
  /* height: 100%; */
  color: var(--section-color) !important;
}

.menu-right .menu-content {
  display: none;
  flex-direction: column;
}
.menu-right .menu-content.active {
  display: flex;
}
.menu-right a {
  padding: 12px;
  color: var(--section-color);
  border-bottom: 1px solid var(--whiteish);
  transition: 0.2s;
}
.menu-right a:hover {
  color: var(--section-color);
  background-color: var(--white);
  padding-left: 6px;
  border-radius: 3px;
  padding: 12px;
}
/* ===== SCROLLBAR ===== */
.menu-right::-webkit-scrollbar {
  width: 6px;
}
.menu-right::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
/* ===== HOVER COLORS ===== */
.dropdown.comunitate {
  --section-color: var(--comunitate);
}
.dropdown.locuire {
  --section-color: var(--locuire);
}
.dropdown.administratie {
  --section-color: var(--administratie);
}
.dropdown.mediu {
  --section-color: var(--mediu);
}
.dropdown.mobilitate {
  --section-color: var(--mobilitate);
}
.dropdown.economie {
  --section-color: var(--economie);
}
.dropdown.monitor {
  --section-color: var(--monitor);
}
.dropdown > a {
  color: var(--section-color);
}
.dropdown:hover > a {
  color: var(--section-color);
}
.dropdown > a::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--section-color);
  color: var(--white);
  transform: scaleX(0);
  transition: transform 0.5s;
}
.dropdown:hover > a::after {
  transform: scaleX(1);
}
.dropdown:hover .split-menu {
  border-bottom: 4px solid var(--section-color);
  border-right: 4px solid var(--section-color);
  background-color: color-mix(in srgb, var(--section-color) 15%, var(--white));
}
/* ===== SECTION ===== */
section {
  margin-top: 50px;
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
  border-top: 1px solid var(--border);
}
section > div {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary);
}
section h3 {
  color: var(--primary);
  margin-bottom: 20px;
}
.cards {
  /* background: #fff; */
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
#home {
  height: 450px;
  background: url(/assets/images/heart.png) center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
#home::before {
  content: "";
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
}
/* .profile-card {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  /* max-width: 680px; */
/* margin: auto; */
/* } */
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}
/* profile cards */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--heading-border-color);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}
.btn,
.btn-link {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--heading-border-color);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}
.btn:hover,
.btn-link:hover {
  background: var(--button);
  transform: scale(1.03);
}
.consilieri-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.consilier-card .card {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.consilier-card .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}
.card ul {
  padding-left: 20px;
}
.card ul li {
  margin-bottom: 6px;
}
.icon-text {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* ===== GALLERY ===== */
#gallery {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}
#gallery h2 {
  margin-bottom: 25px;
  text-align: center;
}
/* ===== IMAGES ===== */
#gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
/* ===== HOVER EFFECT ===== */
#gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
/* ===== FOOTER ===== */
.modern-footer {
  background: var(--bg);
  color: var(--text);
  margin-top: 60px;
}
/* 🚨 EMERGENCY BAR */
.emergency-bar {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-weight: 600;
}
/* GRID */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
}
/* TITLES */
.footer-col h3 {
  color: #f8fafc;
  margin-bottom: 15px;
}
/* TEXT */
.footer-col p,
.footer-col a {
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}
/* LINKS */
.footer-col a:hover {
  color: var(--accent);
}
/* LIST */
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
/* SOCIALS */
.socials a {
  margin-right: 10px;
  font-size: 18px;
  color: var(--accent);
  transition: 0.3s;
}
.socials a:hover {
  color: var(--accent);
}
/* 📧 NEWSLETTER */
.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  outline: none;
  background: #111827;
  color: #e5e7eb;
}
.newsletter button {
  background: var(--button);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.newsletter button:hover {
  background: var(--heading-border-color);
}
/* 🗺️ MAP */
.footer-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  filter: grayscale(20%) contrast(95%);
}
/* BOTTOM */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
}
/* DARK MODE IMPROVEMENTS */
body.dark-mode .newsletter input {
  background: var(--white);
  color: var(--text);
}
/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  nav {
    width: 100%;
  }
  /* cleaner UI */
  nav > ul > li > a {
    font-size: 14px;
    padding: 14px;
  }
  /* simplify split menu */
  /* .menu-left {
    width: 100%;
  } */
  .menu-right {
    display: none;
  }
  .menu-right.active {
    display: block;
  }
  /* back button visible */
  .back-button {
    display: block;
    padding: 12px;
    background: #f5f5f5;
  }
  #gallery img {
    height: 180px;
  }
  nav .menu-left {
    width: 45%;
  }
  nav .menu-right {
    width: 55%;
  }
}
@media (max-width: 768px) {
  header {
    padding: 10px;
  }
  .logo {
    width: 90px;
  }
  /* make nav wider for usability */
  nav {
    width: 85%;
  }
  /* bigger tap targets */
  nav > ul > li > a {
    font-size: 15px;
    padding: 16px;
  }
  /* split menu becomes full width */
  .dropdown-menu.split-menu {
    display: flex;
    left: 0;
    width: 100%;
    flex-direction: column;
  }
  .menu-left,
  .menu-right {
    width: 50%;
  }
}
@media (max-width: 900px) {
  header {
    background: var(--heading-color);
    z-index: 1000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
  }
  header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
  }
  header.scrolled nav a {
    color: var(--text);
  }
  .logo {
    position: fixed;
    right: 10px;
    top: 10px;
  }
  .search-form {
    margin-left: auto;
  }
  .search-form {
    position: fixed;
    top: 5px;
    right: 115px;
  }
  #theme-toggle {
    position: fixed;
    top: 45px;
    right: 130px;
  }
  #lang-toggle {
    position: fixed;
    top: 80px;
    right: 130px;
  }
  .search-form input,
  .search-form label {
    display: none;
  }
  .search-form button {
    padding: 10px;
    border-radius: 50%;
    background-color: transparent;
  }
  .menu-toggle {
    display: block;
    position: fixed;
    left: 15px;
    top: 15px;
    z-index: 1100;
    color: var(--text);
    cursor: pointer;
  }
  nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 80%;
    height: 85vh;
    background: var(--white);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1100;
  }
  nav.active {
    transform: translateX(0);
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 900;
  }
  body.nav-open nav > ul {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 40%;
  }
  body.dark-mode header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
  }
  nav > ul {
    width: 37%;
    gap: 0;
    flex-direction: column;
    border-right: 1px solid var(--whiteish);
  }
  nav > ul > li > a {
    /* display: block; */
    /* flex-direction: row; */
    padding: 14px;
    font-size: 16px;
    color: var(--text);
    border-left: 4px solid transparent;
    border-left-width: 5px;
    border-bottom: 1px solid var(--whiteish);
    transition: all 0.2s ease;
    width: 100%;
  }
  nav > ul > li > a:hover {
    background: var(--bg);
    padding-left: 20px;
  }
  /* .dropdown.active .split-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  } */
  .dropdown.active > a {
    background: var(--bg);
    font-size: 18px;
  }
  body > header > nav > ul > li.dropdown > div > div.menu-left > ul > li {
    font-size: 14px;
  }
  .menu-content a {
    font-size: 14px;
  }
  .dropdown-menu {
    width: 30%;
  }
  .dropdown.comunitate > a {
    border-left-color: var(--comunitate);
    border-bottom-color: var(--comunitate);
  }
  .dropdown.locuire > a {
    border-left-color: var(--locuire);
    border-bottom-color: var(--locuire);
  }
  .dropdown.administratie > a {
    border-left-color: var(--administratie);
    border-bottom-color: var(--administratie);
  }
  .dropdown.mediu > a {
    border-left-color: var(--mediu);
    border-bottom-color: var(--mediu);
  }
  .dropdown.mobilitate > a {
    border-left-color: var(--mobilitate);
    border-bottom-color: var(--mobilitate);
  }
  .dropdown.economie > a {
    border-left-color: var(--economie);
    border-bottom-color: var(--economie);
  }
  .dropdown.monitor > a {
    border-left-color: var(--monitor);
    border-bottom-color: var(--monitor);
  }
  /* DROPDOWN CONTAINER = RIGHT SIDE */
  /* .dropdown {
    position: static;
  }
  nav .dropdown-menu.split-menu {
    position: absolute;
    top: 0;
    left: 31%;
    width: 70%;
    height: 85vh;
    display: flex;
    flex-direction: row;
    border-radius: 0;
    /* overflow: hidden; */
  /* } */
  /* LEFT SIDE */
  nav .dropdown-menu.split-menu {
    display: flex;
    padding-top: 0;
    top: 0;
    left: 35%;
  }
  .container {
    top: 0;
  }
  .menu-left {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    border-right: 5px solid var(--whiteish);
  }
  .dropdown.comunitate .menu-left,
  .dropdown.comunitate .menu-right {
    background-color: var(--comunitate);
  }
  .dropdown.locuire .menu-left,
  .dropdown.locuire .menu-right {
    background-color: var(--locuire);
  }
  .dropdown.administratie .menu-left,
  .dropdown.administratie .menu-right {
    background-color: var(--administratie);
  }
  .dropdown.mediu .menu-left,
  .dropdown.mediu .menu-right {
    background-color: var(--mediu);
  }
  .dropdown.mobilitate .menu-left,
  .dropdown.mobilitate .menu-right {
    background-color: var(--mobilitate);
  }
  .dropdown.economie .menu-left,
  .dropdown.economie .menu-right {
    background-color: var(--economie);
  }
  .dropdown.monitor .menu-left,
  .dropdown.monitor .menu-right {
    background-color: var(--monitor);
  }
  .menu-left li {
    padding: 15px 10px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--white);
  }
  /* RIGHT SIDE */
  .menu-right {
    display: block;
    flex: 1;
    height: 100%;
    overflow-y: auto;
    /* position: relative; */
    transform: none;
    border-left: 4px solid var(--border);
    padding-left: 10px;
  }
  .menu-right a {
    color: var(--white);
  }
  .menu-right.active {
    transform: none;
  }
  .back-button {
    display: block;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
  }
}
