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

:root {
  --warm: #f5f0e8;
  --stone: #c4b8aa;
  --graphite: #2e2a26;
  --mid: #7a6e64;
  --light: #ece7df;
  --accent: #8a7d72;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--warm);
  color: var(--graphite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(122,110,100,0.2);
  transition: background 0.3s;
}

.logo {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--graphite);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 8px;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--mid);
  cursor: pointer;
  padding: 6px 10px;
  background: rgba(122,110,100,0.1);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}
.lang-switch:hover {
  background: rgba(122,110,100,0.2);
  color: var(--graphite);
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 0.5px;
  background: var(--graphite);
  transition: all 0.3s;
  transform-origin: center;
}

.menu-btn.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--graphite);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.open { transform: translateY(0); }

.mobile-menu a {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--warm);
  text-decoration: none;
  letter-spacing: 0.05em;
  opacity: 0.85;
  padding: 8px 0;
  transition: opacity 0.2s;
}

.mobile-menu a:hover { opacity: 1; }

/* HERO */
.hero {
  height: 100svh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 48px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #c8beb2 0%, #9a8f83 35%, #6b6058 65%, #433c36 100%);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,25,20,0.65) 0%, rgba(30,25,20,0.1) 50%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.65);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 10vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--warm);
  margin-bottom: 28px;
}

.hero-title em { font-style: italic; }

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
  text-decoration: none;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 32px;
  height: 0.5px;
  background: rgba(245,240,232,0.5);
}

/* SECTIONS */
section { padding: 64px 24px; }

.section-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--graphite);
  margin-bottom: 24px;
}

.section-title em { font-style: italic; }

.body-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: #5a5248;
}

/* PROJECTS */
#projects { background: var(--light); padding: 64px 0; }

.projects-header {
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.link-line {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 0.5px solid var(--accent);
  padding-bottom: 2px;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.project-card.featured { aspect-ratio: 3/2; }

.project-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25,20,16,0.72) 0%, rgba(25,20,16,0.1) 50%, transparent 100%);
  transition: background 0.4s;
  pointer-events: none;
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(25,20,16,0.82) 0%, rgba(25,20,16,0.2) 60%, transparent 100%);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px;
  z-index: 2;
}

.project-cat {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
  margin-bottom: 5px;
}

.project-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--warm);
  display: block;
  margin-bottom: 2px;
}

.project-loc {
  font-size: 11px;
  color: rgba(245,240,232,0.55);
  letter-spacing: 0.05em;
}

/* ABOUT */
#about { background: var(--warm); }

.about-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 5.5vw, 28px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--graphite);
  border-left: 1.5px solid var(--stone);
  padding-left: 20px;
  margin: 28px 0;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 36px;
  border-top: 0.5px solid rgba(122,110,100,0.2);
}

.pillar {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 0.5px solid rgba(122,110,100,0.2);
  align-items: flex-start;
}

.pillar-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
  min-width: 28px;
  padding-top: 1px;
}

.pillar-body h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--graphite);
}

.pillar-body li,
.pillar-body p {
  font-size: 13px;
  font-weight: 300;
  color: #7a6e64;
  line-height: 1.55;
}

.pillar { flex-wrap: wrap; }
.pillar-body { flex: 1 1 0; min-width: 0; }

/* Optional image above a pillar or step, full width at 4:3. */
.block-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex-basis: 100%;
  grid-column: 1 / -1;
  margin-bottom: 14px;
}

/* Item texts may hold paragraphs and lists; they take the p styles of their item. */
.block-text p + p,
.block-text p + ul,
.block-text ul + p { margin-top: 8px; }
.block-text ul { list-style: none; padding: 0; }
.block-text li { position: relative; padding-left: 14px; font-size: inherit; }
.block-text li::before { content: '–'; position: absolute; left: 0; }
.block-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* PROCESS */
#process { background: var(--graphite); color: var(--warm); }
#process .section-tag { color: var(--stone); }
#process .section-title { color: var(--warm); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 36px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0;
  padding: 20px 0;
  border-bottom: 0.5px solid rgba(245,240,232,0.1);
  align-items: start;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: rgba(245,240,232,0.2);
  line-height: 1;
}

.step-content h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--warm);
  margin-bottom: 6px;
}

.step-content li,
.step-content p {
  font-size: 13px;
  font-weight: 300;
  color: rgba(245,240,232,0.55);
  line-height: 1.6;
}

/* GALLERY */
#gallery { background: var(--light); padding: 64px 0; }
#gallery .section-tag,
#gallery .section-title { padding: 0 24px; }
#gallery .section-title { margin-bottom: 32px; }

.gallery-filters {
  display: flex;
  gap: 0;
  padding: 0 24px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-filters::-webkit-scrollbar { display: none; }

.filter-btn {
  background: none;
  border: 0.5px solid rgba(122,110,100,0.3);
  border-right: none;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-btn:last-child { border-right: 0.5px solid rgba(122,110,100,0.3); }
.filter-btn.active, .filter-btn:hover { background: var(--graphite); color: var(--warm); border-color: var(--graphite); }

.gallery-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 0 3px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { aspect-ratio: 2/3; }
.gallery-item.square { aspect-ratio: 1/1; }
.gallery-item.wide { aspect-ratio: 16/7; }

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}

.gallery-item:hover img { transform: scale(1.05); }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,16,12,0.96);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox.open { display: flex; }

.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: rgba(245,240,232,0.7);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.lightbox-img {
  max-width: 94vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 1px;
}

.lightbox-caption {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 300;
  color: rgba(245,240,232,0.55);
  letter-spacing: 0.05em;
}

/* SERVICES */
#services { background: var(--warm); }

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
  border-top: 0.5px solid rgba(122,110,100,0.2);
}

.service {
  padding: 22px 0;
  border-bottom: 0.5px solid rgba(122,110,100,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}

.service-left h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--graphite);
  margin-bottom: 4px;
}

.service-left li,
.service-left p {
  font-size: 12px;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.5;
}

.service-arrow {
  color: var(--stone);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.service-left { flex: 1; }

.service-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
}

.service:hover .service-arrow { transform: translateX(4px); }

/* CONTACT */
#contact {
  background: var(--graphite);
  color: var(--warm);
  padding: 64px 24px 80px;
}

#contact .section-tag { color: var(--stone); }
#contact .section-title { color: var(--warm); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 0.5px solid rgba(245,240,232,0.1);
}

.form-field label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.45);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--warm);
  padding: 0;
  outline: none;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(245,240,232,0.3); }

.form-field select option { background: var(--graphite); color: var(--warm); }

/* Стилове за чекбокс */
.form-field input[type="checkbox"] {
  accent-color: #c9a96e;
  flex-shrink: 0;
}

.form-field input[type="checkbox"]:checked {
  background-color: #c9a96e;
}

.form-field.error input[type="checkbox"] {
  outline: 2px solid #e74c3c;
  outline-offset: 2px;
}
/* Лек контур около чекбокса в контактната форма */
#contact input[type="checkbox"] {
  outline: 1px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}
.submit-btn {
  margin-top: 36px;
  background: none;
  border: 0.5px solid rgba(245,240,232,0.4);
  color: var(--warm);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: all 0.25s;
  align-self: flex-start;
}

.submit-btn:hover { background: rgba(245,240,232,0.08); }

.contact-info {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-info-item p:first-child {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  margin-bottom: 6px;
}

.contact-info-item p:last-child {
  font-size: 14px;
  font-weight: 300;
  color: rgba(245,240,232,0.8);
  line-height: 1.6;
}

.contact-info-item a,
.contact-info-item a:visited,
.contact-info-item a:active {
  color: inherit;
  text-decoration: underline;
}
.contact-info-item a:hover {
  color: inherit;
  text-decoration: underline;
}

/* FOOTER */
footer {
  background: #1a1612;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer span {
  font-size: 10px;
  color: rgba(245,240,232,0.3);
  letter-spacing: 0.08em;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  text-decoration: none;
}

/* SCROLL REVEAL (hidden state only once script.js has added html.js) */
.reveal {
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
#contact label[for="terms"] {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255,255,255,0.6);
}
/* Скриваме reCAPTCHA логото по подразбиране */
.grecaptcha-badge {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Показваме го само когато сме в контакт секцията */
.grecaptcha-badge.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

