:root {
  /* Vanja Accounting & Consulting – Navy + Sand */
  --bg: #f2eee8; /* песоклива подлога */
  --surface: #ffffff; /* карти/површини */
  --muted: #60666f; /* секундарен текст */
  --text: #0f172a; /* темно сина (Midnight Navy) */
  --brand: #0f172a; /* примарна */
  --brand-2: #1e2b4a; /* подлабока нијанса */
  --accent: #c7a465; /* топол месинг за нагласување */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.glass {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid rgba(15, 23, 42, 0.25);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.18);
  transition: 0.2s transform, 0.2s box-shadow, 0.2s background;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.92),
    rgba(30, 43, 74, 0.92)
  );
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

.btn.secondary {
  background: transparent;
  color: var(--brand);
  border-color: rgba(15, 23, 42, 0.25);
  box-shadow: none;
}

/* ================= NAV ================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.25rem;
  gap: 1.75rem;
}

/* BRAND / LOGO */

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.15rem 0 !important;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 80px;
  height: 80px;
  display: block;
}

.logo-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
  color: #0f172a;
  white-space: nowrap;
}

/* мала значка ако ја користиш некаде */
.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 2px solid var(--brand);
  color: var(--brand);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* X копче – по дифолт скриено */
.nav-close {
  display: none;
}

/* NAV LINKS – desktop */

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 14px;
}

.nav-links a {
  margin: 5px;
}

/* секој item во нав */
.nav-item {
  position: relative;
}

/* самиот линк во нав (главно мени) */
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #0f172a;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.12s ease;
}

/* hover ефект – мал „pill“ + сенка */
.nav-item > a:hover {
  background: #f9fafb;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

/* активен линк */
.nav-item > a.is-active {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.5);
  color: var(--brand);
}

/* =============== MEGA MENU (desktop) =============== */

/* DESKTOP mega menu – поместено налево */
.mega {
  position: absolute;
  top: calc(100% + 0.2rem);
  max-width: min(680px, calc(100vw - 2rem));
  display: none;
  width: 512px;
  max-width: min(680px, calc(100vw - 2rem)); /* да не излегува од екранот */

  display: none;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  padding: 1.1rem 1.25rem;
  animation: mega-fade 0.7s ease-out;
  margin-right: 200px;!important;
}

/* покажи го mega кога е hover на родителот (desktop) */
.nav-item.has-mega:hover .mega {
  display: block;
  /* padding-left: 100px; */
  /* margin-right: 100px; */
}

.mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 2rem;
  row-gap: 0.75rem;
}

.mega h5 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #020617;
}

.mega ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega li + li {
  margin-top: 2px;
}

.mega li a {
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #0f172a;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mega li a:hover {
  background: #f9fafb;
  border-color: rgba(15, 23, 42, 0.06);
}

.mega strong {
  font-weight: 700;
}

/* CTA во навигација */

.nav-ctas {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* базен стил за копчиња во нав */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}

.nav-btn--primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.nav-btn--primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.nav-btn--outline {
  background: #ffffff;
  color: var(--brand);
  border-color: rgba(37, 99, 235, 0.35);
}

.nav-btn--outline:hover {
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.nav-btn--ghost {
  background: transparent;
  color: #0f172a;
}

.nav-btn--ghost:hover {
  background: rgba(15, 23, 42, 0.04);
}

/* мала анимација за mega menu */
@keyframes mega-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================== HAMBURGER (MOBILE) ================== */

.nav-toggle {
  display: none; /* desktop: скриено */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* состојба кога е отворено (икс) */
.nav-toggle.nav-toggle-open .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.nav-toggle-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.nav-toggle-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* кога е отворено мени, забрани скрол */
body.nav-menu-open {
  overflow: hidden;
}

/* ================== HERO ================== */

.hero {
  padding: 5rem 0 3.5rem;
  position: relative;
}

.headline {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.sub {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.6rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

.chip svg {
  opacity: 0.8;
}

.card {
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem 1rem;
  align-items: center;
}

.metric strong {
  font-size: -0.4rem;
}

.about-section {
  padding: 3rem 0;
  background-color: #f9fafb;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.about-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  color: #0f172a;
}

.about-content {
  max-width: 850px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.about-content p {
  margin-bottom: 1.4rem;
}

.about-content strong {
  color: #0f172a;
  font-weight: 600;
}

.about-cta {
  background-color: #e5edf7;
  border-radius: 14px;
  padding: 1.6rem 2rem;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.about-cta strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.about-cta .muted {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* SECTIONS */

section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.muted {
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
}

.feature h4 {
  margin: 0.2rem 0 0.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.img-card {
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.img-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.6s ease;
}

.img-card:hover img {
  transform: scale(1.06);
}

.img-caption {
  position: absolute;
  inset: auto 0 0 0;
  font-size: 12px;
  padding: 1rem;
  color: var(--text);
  font-weight: 600;
}

.testi {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.quote {
  flex: 1 1 320px;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.quote p {
  margin: 0.5rem 0 0;
}

.cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.05),
    rgba(30, 43, 74, 0.05)
  );
}

footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

/* MAP */

.map-wrap {
  position: relative;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9; /* keeps map responsive */
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* inputs */

.input {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--text);
  outline: none;
}

.input:focus {
  box-shadow: 0 0 0 4px rgba(30, 43, 74, 0.15);
  border-color: rgba(15, 23, 42, 0.45);
}

/* ===== SERVICE DETAIL (Консултантски услуги) ===== */

.service-section {
  padding: 3.5rem 0 4rem;
  max-width: 900px;
}

.service-article {
  margin-top: 2.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.service-grid h2 {
  margin-top: 0;
}

#contact .glass {
  width: 100%;
  box-sizing: border-box;
  margin: 0; /* без неочекувани движења */
}

.service-grid p {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.service-grid ul {
  padding-left: 1.1rem;
  margin: 0;
}

/* ===== SERVICES INTRO (Услуги страница) ===== */

.services-intro {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  max-width: 1120px;
}

.services-intro-image {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  object-fit: cover;
  max-height: 360px;
}

/* На телефон – текстот прв, па сликата под него */
@media (max-width: 640px) {
  .services-intro {
    display: flex;
    flex-direction: column;
  }
}

/* слика десно */

.service-img-wrap {
  align-self: stretch;
}

.service-img {
  width: 100%;
  max-height: 320px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  object-fit: cover;
  display: block;
}

/* CTA под артиклот */

.service-cta {
  margin-top: 3rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ================== RESPONSIVE ================== */

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

  .features,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .service-img-wrap {
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  /* layout за секции */
  .features,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    justify-content: space-between; /* brand лево, toggle десно */
  }

  .brand {
    transform: translateX(-15px); /* нежно поместување малку лево */
  }

  .logo {
    width: 55px; /* малку помало лого */
    height: 55px;
  }

  .logo-title {
    font-size: 0.7rem; /* намалено за убав mobile scale */
  }

  /* NAV – да не го сече overlay-от */
  .nav {
    position: static;
    background: #ffffff;
    backdrop-filter: none;
  }

  .nav-inner {
    padding: 0.55rem 0.9rem;
    gap: 0.8rem;
  }

  /* покажи hamburger */
  .nav-toggle {
    display: flex;
  }

  /* FULLSCREEN OVERLAY МЕНИ */
  .nav-links {
    position: fixed;
    inset: 0;
    padding: 80px 1.5rem 2rem;
    background: #ffffff; /* БЕЛА позадина */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 40;
  }

  .nav-links.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links > a,
  .nav-item > a {
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
  }

  /* mega – како список под "Услуги" во мобилно мени */
  .nav-item.has-mega {
    width: 100%;
    max-width: 480px;
    text-align: center;
    margin-inline: auto;
  }

  .nav-item.has-mega > a {
    justify-content: center; /* "Услуги" да е центрирано */
  }

  .nav-item.has-mega .mega {
    position: static;
    width: 100%;
    max-width: 480px;
    margin: 0.75rem auto 0;
    box-shadow: none;
    border: none;
    padding: 0;
    display: block; /* КЛУЧНО – секогаш отворено на мобилно */
  }

  .mega-inner {
    grid-template-columns: 1fr;
    row-gap: 0.9rem;
  }

  .nav-item.has-mega .mega {
    display: none;
  }

  /* Кога ќе додадеме .mega-open од JS → се прикажува */
  .nav-item.has-mega.mega-open .mega {
    display: block;
  }

  .nav-item.has-mega .mega {
    left: auto; /* го гасиме старото left:0 */
    right: 1.5rem; /* колку да оддалечиш од десниот раб на container-от */
    max-width: min(680px, calc(100vw - 3rem));
  }

  /* Оневозможи hover логика на мобилен (за секој случај) */
  .nav-item.has-mega:hover .mega {
    display: none;
  }

  .mega h5,
  .mega li a {
    padding-left: 0;
  }
  .nav-ctas {
    margin-top: 1.5rem;
    flex-direction: column;
    width: 100%;
  }

  .nav-ctas .btn,
  .nav-ctas .btn.secondary {
    width: 100%;
    justify-content: center;
  }

  /* X копче – само кога е отворено менито */
  .nav-close {
    display: none;
  }

  .nav-links.nav-open .nav-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: #ffffff;
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .nav-links.nav-open .nav-close:hover {
    background: #f1f5f9;
  }

  #contact .card {
    /* align-items: center: */
    width: 73%;
  }
}

/* ===== MAIN SERVICE LAYOUT (поединечни услуги) ===== */

.service-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.service-main-img {
  width: 100%;
  max-height: 460px;
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.24);
  object-fit: cover;
  display: block;
}

.service-main-badge {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

/* мобилно – текстот прво, слика долу под текстот */
@media (max-width: 640px) {
  .service-main-grid {
    display: flex;
    flex-direction: column;
  }
}
/* ===== ADMIN SECTION (Административни услуги) ===== */

.admin-section {
  padding: 0 0 4rem;
  max-width: 900px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.admin-image {
  width: 100%;
  max-height: 460px;
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(15,23,42,0.24);
  object-fit: cover;
  display: block;
}

/* MOBILE: прво текст, потоа слика */
@media (max-width: 640px) {
  .admin-grid {
    display: flex;
    flex-direction: column;
  }

  .admin-text {
    order: 1;
  }

  .admin-image-wrap {
    order: 2;
  }
}
