:root {
  --dark: #1c0707;
  --gold: #a7823d;
  --red: #B3383F;
  --cream: #E0D5C5;
  --bg: #e8dfd0;
}

body {
  background-color: var(--bg);
  color: #2b2320;
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: var(--red);
  text-decoration: none;
}
a:hover {
  color: var(--dark);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background-color: var(--dark);
  z-index: 1045;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.35);
}
.sidebar.open {
  transform: translateX(0);
}

.sidebar-logo {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-logo img {
  max-width: 190px;
  width: 100%;
  height: auto;
}

.sidebar-nav {
  flex: 1 0 auto;
}
.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-nav a {
  display: block;
  padding: 1.1rem 2rem;
  color: #f2e9dd;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--gold);
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
}
.topbar-logo img {
  height: 56px;
  width: auto;
}
.topbar-toggle {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
}
.topbar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.hero-side {
  position: fixed;
  top: 0;
  left: 280px;
  bottom: 0;
  width: 370px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1035;
}

.page-hero {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100px;
}

.page-content {
  background-color: var(--bg);
  padding-top: 2.5rem;
  padding-bottom: 6rem;
}

.page-content.overlay-card {
  margin-top: -140px;
}

.content-card {
  background-color: var(--bg);
  padding: 2rem;
  border-radius: 4px;
}

h1.page-title {
  position: relative;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  text-align: center;
}
h1.page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--dark);
}

/* Home */
.home-portrait {
  max-width: 260px;
  width: 100%;
  border: 1px solid var(--dark);
  padding: 4px;
  background: var(--bg);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--dark);
  color: #f2e9dd;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-badge i {
  color: var(--gold);
}

h2.section-subtitle {
  position: relative;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 1.75rem;
  padding-bottom: 0.75rem;
}
h2.section-subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--dark);
}
h2.section-subtitle.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.step-box h3 {
  font-size: 1.05rem;
}
.step-box p {
  font-size: 0.92rem;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.home-cta .btn {
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
}
.home-cta .btn-outline-dark {
  color: var(--dark);
  border-color: var(--dark);
}
.home-cta .btn-outline-dark:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.portfolio-masonry.home-preview {
  column-count: 2;
}
@media (min-width: 576px) {
  .portfolio-masonry.home-preview { column-count: 3; }
}
@media (min-width: 992px) {
  .portfolio-masonry.home-preview { column-count: 3; }
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fadeInUp 0.6s ease both;
  }
  .fade-in-1 { animation-delay: 0s; }
  .fade-in-2 { animation-delay: 0.1s; }
  .fade-in-3 { animation-delay: 0.2s; }
  .fade-in-4 { animation-delay: 0.3s; }
  .fade-in-5 { animation-delay: 0.4s; }
  .fade-in-6 { animation-delay: 0.5s; }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-box {
  background: var(--cream);
  border: 1px solid var(--dark);
  border-radius: 4px;
  padding: 2rem 1.5rem 1.5rem;
  margin-top: 45px;
  margin-bottom: 1.5rem;
  position: relative;
  height: calc(100% - 1.5rem);
}
.faq-icon {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 85px;
  height: 85px;
  line-height: 85px;
  text-align: center;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--dark);
  color: var(--cream);
  font-size: 2rem;
}
.faq-box h3 {
  margin-top: 2.5rem;
  font-size: 1.15rem;
  text-align: center;
}

.portfolio-filter .btn {
  border-radius: 0;
  color: var(--dark);
  background: transparent;
  border: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0.25rem 0.5rem;
}
.portfolio-filter .btn.active,
.portfolio-filter .btn:hover {
  background: var(--dark);
  color: #fff;
}

.portfolio-masonry {
  column-count: 2;
  column-gap: 0.85rem;
}
@media (min-width: 576px) {
  .portfolio-masonry { column-count: 3; }
}
@media (min-width: 992px) {
  .portfolio-masonry { column-count: 4; }
}
@media (min-width: 1600px) {
  .portfolio-masonry { column-count: 5; }
}

.portfolio-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 0.85rem;
}
.portfolio-item figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #000;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.portfolio-item a:hover img {
  transform: scale(1.06);
}
.portfolio-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.portfolio-item a:hover .caption {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-item a:hover figure {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.contact-info {
  font-size: 1.1rem;
  font-weight: 600;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  background-color: #efefef;
  padding: 0.85rem 0;
}
.site-footer .social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.site-footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  transition: background-color 0.2s ease;
}
.site-footer .social-icon:hover {
  background: var(--gold);
  color: var(--dark);
}

.btn-accept {
  background: var(--gold);
  border: none;
  color: #1c0707;
  font-weight: 600;
}
.btn-accept:hover {
  background: #8f6b2f;
  color: #fff;
}

@media (max-width: 767px) {
  .page-content.overlay-card {
    margin-top: -80px;
  }
  .content-card {
    padding: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .sidebar {
    transform: translateX(0);
    box-shadow: none;
  }
  .content-wrapper {
    margin-left: calc(280px + 300px);
  }
  .page-hero {
    display: none;
  }
  .page-content.overlay-card {
    margin-top: 0;
    padding-top: 4rem;
  }
  .site-footer {
    left: calc(280px + 300px);
  }

  body.page-no-hero .content-wrapper {
    margin-left: 280px;
  }
  body.page-no-hero .site-footer {
    left: 280px;
  }
}
