:root {
    --bg: #FAFAF8;
    --ink: #1A1A18;
    --ink-soft: #55554F;
    --line: #DBDAD3;
    --panel: #F1F0EA;
    --beige: #D8CCB8;
    --sp-25: 25px;
    --sp-50: 50px;
    --sp-75: 75px;
    --sp-100: 100px;
  }

* { box-sizing: border-box; margin: 0; padding: 0; }

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

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--sp-50); }

/* Банер в горната част на всяка вътрешна страница (page.php, template-about,
   template-projects, single-projects, 404, index, search) */
.page-banner { padding-top: 220px; padding-bottom: var(--sp-75); }

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 64px;
    letter-spacing: 0.01em;
    margin-top: 10px;
    overflow-wrap: break-word;
  }

.cta-center { text-align: center; }

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 40;
    padding: var(--sp-50) 0 var(--sp-25);
    background: transparent;
    transition: background 0.4s ease;
  }

header.scrolled {
    background: rgba(26,26,24,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

.logo img {
    height: 75px;
    width: auto;
    display: block;
  }

nav {
    display: flex;
    align-items: center;
    gap: var(--sp-50);
  }

nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
  }

nav a {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    letter-spacing: calc(0.14em + 1pt);
    text-transform: uppercase;
    font-weight: 400;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

nav a:hover {
    color: var(--beige);
    border-bottom-color: var(--beige);
  }

.lang-toggle {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 8px;
  }

.lang-toggle b { color: #fff; font-weight: 500; border-bottom: 1px solid #fff; padding-bottom: 2px; }

.lang-toggle span { color: rgba(255,255,255,0.5); }

.lang-divider {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.4);
  }

.hero {
    position: relative;
    padding: 0;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
  }

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.6s ease;
  }

.hero img.active {
    opacity: 1;
  }

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,8,0.35) 0%, rgba(10,10,8,0.05) 30%, rgba(10,10,8,0.15) 70%, rgba(10,10,8,0.55) 100%);
  }

.hero-gutter {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1px;
    background: rgba(255,255,255,0.25);
    z-index: 2;
  }

.scroll-cue {
    position: fixed;
    bottom: 100px;
    right: var(--sp-50);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    background: rgba(26,26,24,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease;
    border: none;
    border-radius: 0;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
  }

.scroll-cue:hover {
    background: rgba(26,26,24,0.55);
  }

.scroll-cue .icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
  }

.scroll-cue.at-bottom .icon { transform: rotate(180deg); }

.hero-dots {
    position: absolute;
    bottom: var(--sp-50);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
  }

.hero-dots span {
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    transition: background 0.4s ease;
    cursor: pointer;
  }

.hero-dots span.active {
    background: #fff;
  }

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-bottom: var(--sp-75);
  }

.hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-100);
    align-items: flex-end;
  }

.hero-title-col {
    padding-right: var(--sp-50);
  }

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 44px;
    line-height: 1.25;
    color: #fff;
    letter-spacing: 0.01em;
  }

.hero-meta-col {
    padding-left: var(--sp-50);
    text-align: right;
  }

.hero-meta {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    letter-spacing: 0.12em;
    line-height: 2;
    text-transform: uppercase;
  }

.hero-meta strong { color: #fff; font-weight: 500; }

section { padding: var(--sp-100) 0; }

.eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: var(--sp-25);
  }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--sp-50);
  }

.section-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 34px;
    letter-spacing: 0.01em;
    margin-bottom: var(--sp-25);
    cursor: pointer;
  }

.section-link {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, border-color 0.3s ease;
  }

.section-link svg {
    width: 18px;
    height: 18px;
  }

.section-link:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
  }

.about {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-75);
    align-items: start;
  }

.about::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--line);
  }

.about-text {
    padding-left: var(--sp-75);
  }

.btn-outline {
    display: inline-block;
    margin-top: var(--sp-100);
    padding: 16px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(216,204,184,0);
    transition: background 0.7s ease-in-out, border-color 0.7s ease-in-out, color 0.7s ease-in-out;
  }

.btn-outline:hover {
    background: #1a1a18;
    border-color: #1a1a18;
    color: #fff;
  }

.about-graphic {
    width: 100%;
    max-width: 380px;
  }

.about-text p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink-soft);
    font-weight: 300;
    max-width: 460px;
  }

.about-text p + p { margin-top: var(--sp-25); }

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

.project-card {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--panel);
    cursor: pointer;
  }

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(85%) contrast(1.02);
    transition: filter 0.8s ease;
  }

.project-card:hover img {
    filter: grayscale(0%) contrast(1.02);
  }

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,8,0) 45%, rgba(10,10,8,0.72) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--sp-25);
    opacity: 0;
    transition: opacity 0.5s ease;
  }

.project-card:hover .project-overlay {
    opacity: 1;
  }

.project-index {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.1em;
  }

.project-card-num {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
  }

.project-card:hover .project-card-num {
    opacity: 1;
  }

.section-title-caps {
    text-transform: uppercase;
    font-size: 30px;
  }

.project-name {
    color: #fff;
  }

.project-name .type {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 6px;
    font-weight: 400;
  }

.project-name .title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.01em;
  }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--sp-50);
    padding-bottom: var(--sp-50);
    align-items: end;
  }

.footer-full-divider {
    position: relative;
    width: 100%;
    height: 1px;
    background: transparent;
    margin-bottom: var(--sp-50);
  }

.footer-logo {
    display: block;
    margin-bottom: var(--sp-25);
  }

.footer-logo img {
    height: 70px;
    width: auto;
    display: block;
  }

.footer-col-right {
    text-align: right;
    align-items: flex-end;
    display: flex;
    flex-direction: column;
  }

.footer-col a.footer-email {
    display: block;
    font-size: 18px;
    font-weight: 300;
    color: #fff;
    line-height: 1.3;
    width: fit-content;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
  }

.footer-col a.footer-email:hover {
    border-bottom-color: rgba(255,255,255,0.6);
  }

.footer-col a.footer-phone {
    display: block;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    margin-top: 12px;
  }

.footer-col p, .footer-col a {
    display: block;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    line-height: 2;
  }

.footer-col a {
    width: fit-content;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
  }

.footer-col a:hover {
    border-bottom-color: rgba(255,255,255,0.85);
  }

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: var(--sp-25);
  }

.footer-social a {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    transition: border-color 0.25s ease, color 0.25s ease;
  }

.footer-social a:hover {
    border-color: #fff;
    color: #fff;
  }

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: var(--sp-25);
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
  }

.footer-bottom-legal {
    display: flex;
    align-items: center;
    justify-content: center;
  }

.footer-bottom-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.3);
    margin: 0 var(--sp-25);
  }

.footer-bottom-credit {
    text-align: right;
  }

.footer-bottom a {
    color: rgba(255,255,255,0.6);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
  }

/* ============================================================
   Mobile navigation (hamburger)
   Скрит на desktop; показва се само под 860px, за да отваря/
   затваря навигацията, когато "nav ul" е скрит на мобилни.
   ============================================================ */

.hamburger {
    display: none;
    position: relative;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
  }

.hamburger-line:nth-child(1) { top: 5px; }
.hamburger-line:nth-child(2) { top: 12px; }
.hamburger-line:nth-child(3) { top: 19px; }

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    top: 12px;
    transform: rotate(45deg);
  }

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
  }

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    top: 12px;
    transform: rotate(-45deg);
  }

.hamburger:focus-visible {
    outline: 1px solid #FFFFFF;
    outline-offset: 4px;
  }

@media (max-width: 860px) {
    .hamburger {
      display: block;
    }

    /* По-малко лого + по-плътен nav отстоящ, за да не се "сплесква"
       логото (flexbox иначе би го свил, ако логото + nav заедно не се
       събират в наличната ширина на тесни телефони). */
    .logo img {
      height: 52px;
    }

    nav {
      gap: 16px;
    }

    nav ul {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 0;
      margin: 0;
      background: rgba(26,26,24,0.97);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    nav.nav-open ul {
      max-height: 60vh;
      opacity: 1;
      visibility: visible;
      padding: var(--sp-25) var(--sp-25);
    }

    nav ul li {
      border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    nav ul li:last-child {
      border-bottom: none;
    }

    nav a {
      display: block;
      padding: 14px 2px;
    }

    /* Универсални mobile корекции (споделени от всички страници) */
    .wrap { padding: 0 var(--sp-25); }
    .page-banner { padding-top: 160px; }
    .page-title { font-size: 42px; }

    /* "Избрани проекти" заглавието се пренася на 2 реда на телефон -
       бутонът "Всички" вече минава ПОД него и е ляво подравнен, вместо
       да остане притиснат вдясно (където се реже/застъпва). */
    .section-head {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }

    .footer-grid { grid-template-columns: 1fr; gap: var(--sp-50); }
    .footer-col-right { text-align: left; align-items: flex-start; }
    .footer-bottom { grid-template-columns: 1fr; gap: var(--sp-25); text-align: center; }
    .footer-bottom-legal { justify-content: center !important; }
    .footer-bottom-credit { text-align: center; }

    .scroll-cue { padding: 8px; gap: 0; right: var(--sp-25); }
    .scroll-cue .label { display: none; }
    .scroll-cue .icon { width: 20px; height: 20px; }
    .scroll-cue .icon svg { width: 20px; height: 20px; }
  }

@media (min-width: 861px) {
    .footer-col a.tel-link:hover {
      border-bottom-color: transparent;
      color: rgba(255,255,255,0.7);
    }
  }

/* ============================================================
   Cookie consent bar (footer.php markup, показва се на всяка страница)
   ============================================================ */

.cookie-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    max-width: 480px;
    width: calc(100% - 50px);
    background: var(--beige);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  }

.cookie-bar p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
    font-weight: 400;
    margin: 0;
  }

.cookie-actions { display: flex; gap: 12px; }

.cookie-btn {
    flex: 1;
    padding: 10px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--ink);
    transition: background 0.25s ease, color 0.25s ease;
  }

.cookie-accept {
    background: var(--ink);
    color: #fff;
  }

.cookie-accept:hover { background: #000; }

.cookie-reject {
    background: transparent;
    color: var(--ink);
  }

.cookie-reject:hover { background: rgba(26,26,24,0.08); }

.cookie-bar.hidden { display: none; }

@media (max-width: 480px) {
    .cookie-bar { bottom: 15px; width: calc(100% - 30px); }
  }