:root {
  --bg: #f5f0e8;
  --bg-soft: #fbf8f2;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --text: #231c15;
  --muted: #6f6357;
  --line: rgba(35, 28, 21, 0.1);
  --line-strong: rgba(35, 28, 21, 0.18);
  --primary: #8a6440;
  --primary-dark: #6a4a2e;
  --primary-soft: #e9d7c4;
  --cream: #f8f1e5;
  --sand: #d7c7b4;
  --dark: #14110d;
  --dark-soft: #221b15;
  --success: #2e7d5b;
  --danger: #bb4d4d;
  --shadow: 0 22px 60px rgba(20, 17, 13, 0.12);
  --shadow-soft: 0 10px 30px rgba(20, 17, 13, 0.08);
  --radius: 8px;
  --radius-lg: 24px;
  --container: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Jost", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: var(--container);
  max-width: none;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 72px);
}

section {
  padding: 104px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(138, 100, 64, 0.24);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.hero-btns .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.pricing-card .btn-outline {
  border-color: var(--line-strong);
  background: transparent;
}

.pricing-card .btn-outline:hover {
  border-color: var(--primary);
  background: rgba(138, 100, 64, 0.06);
}

.btn-white {
  color: var(--dark);
  background: #fff;
}

.btn-white-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(138, 100, 64, 0.1);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading,
.hero-title,
.cta-title {
  margin: 20px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 60px;
  line-height: 0.96;
  font-weight: 600;
}

.hero-title span{
    font-size: 25px !important;    
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3.55rem);
}

.hero-title em,
.section-heading em,
.cta-title em {
  font-style: italic;
  color: var(--primary-soft);
}

.section-heading em {
  color: var(--primary);
}

.section-sub,
.hero-desc,
.cta-desc {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

#header.is-scrolled {
  background: rgba(16, 13, 10, 0.84);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 88px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  width: auto;
  max-width: 188px;
  max-height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.site-logo-img {
  height: 60px;
}

.logo-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.logo-tag {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a,
.header-call {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.22s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-soft), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav a:hover,
.nav a.is-active,
.header-call:hover {
  color: #fff;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--primary-soft);
  font-weight: 600;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-call svg {
  flex: 0 0 auto;
}

.hamburger {
  appearance: none;
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.hamburger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  padding: 28px 24px 32px;
  background: rgba(20, 17, 13, 0.97);
  transform: translateX(108%);
  transition: transform 0.28s ease;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-close {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.mobile-nav a {
  color: #fff;
  font-size: 1.1rem;
}

.mobile-nav a.is-active {
  color: var(--primary-soft);
  font-weight: 600;
}

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 72px;
  overflow: hidden;
  color: #fff;
  background: #1a1410;
}

#hero > .container {
  position: relative;
  z-index: 2;
}

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1a1410;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-left-overlay {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: min(64vw, 1060px);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 52%, rgba(12, 10, 8, 0.58) 0%, rgba(12, 10, 8, 0.38) 42%, rgba(12, 10, 8, 0) 72%),
    linear-gradient(90deg, rgba(12, 10, 8, 0.9) 0%, rgba(12, 10, 8, 0.72) 42%, rgba(12, 10, 8, 0.28) 78%, rgba(12, 10, 8, 0) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge,
.cta-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hero-desc {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.hero-stat-card {
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-stat-card strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.15rem;
  line-height: 1;
}

.hero-stat-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.hero-scroll {
  position: absolute;
  right: 30px;
  bottom: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 64px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

#about {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.about-grid,
.why-grid,
.faq-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  align-items: center;
}

.about-images {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: end;
}

.about-img {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.about-img:first-child {
  height: 460px;
  min-height: 0;
}

.about-img:last-child {
  height: 280px;
  transform: translateY(42px);
}

.about-img img,
.why-image img,
.faq-image img,
.ba-img img,
.portfolio-image img,
.blog-image img,
.blog-image video,
.blog-full-media img,
.blog-full-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img,
.why-image,
.faq-image,
.ba-img,
.portfolio-image,
.blog-image {
  position: relative;
}

.about-img::after,
.why-image::after,
.faq-image::after,
.ba-img::after,
.portfolio-image::after,
.blog-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.about-badge-float {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: -18px;
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.about-badge-float strong,
.why-image-badge strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.about-feature-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.about-feature-title {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.about-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-grid,
.gallery-grid,
.pricing-grid,
.testimonials-grid,
#testimonials-grid,
.blog-grid,
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card,
.portfolio-card,
.pricing-card,
.testimonial-card,
.blog-card,
.contact-form,
.contact-info-block,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.service-card:hover,
.pricing-card:hover,
.testimonial-card:hover,
.blog-card:hover,
.contact-info-block:hover,
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(20, 17, 13, 0.12);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(138, 100, 64, 0.14);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.service-card h3,
.portfolio-card h3,
.pricing-card h3,
.blog-card h3 {
  margin: 18px 0 10px;
  font-size: 1.32rem;
  line-height: 1.2;
}

.service-card p,
.pricing-copy,
.portfolio-content p,
.blog-card p,
.testimonial-meta,
.faq-answer p {
  margin: 0;
  color: var(--muted);
}

.service-points,
.pricing-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-points li,
.pricing-list li {
  position: relative;
  padding-left: 18px;
}

.service-points li::before,
.pricing-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.service-link,
.portfolio-link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.service-link {
  margin-top: auto;
  padding-top: 22px;
}

#why {
  color: #fff;
  background: linear-gradient(180deg, #201812, #100d0a);
}

#why .section-sub {
  color: rgba(248, 241, 229, 0.74);
}

#why .section-heading em,
#before-after .section-heading em {
  color: var(--sand);
}

.why-image,
.faq-image {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.why-image-badge {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.why-features {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.why-feature {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.why-feature-mark {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 999px;
  background: rgba(138, 100, 64, 0.12);
  position: relative;
}

.why-feature-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.why-feature h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.why-feature p {
  margin: 0;
  color: var(--muted);
}

#why .why-feature {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

#why .why-feature-mark {
  background: rgba(255, 255, 255, 0.18);
}

#why .why-feature-mark::after {
  background: var(--primary-soft);
}

#why .why-feature p {
  color: rgba(248, 241, 229, 0.72);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-steps + .process-steps {
  margin-top: 18px;
}

.process-step {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.process-num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.process-num-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(138, 100, 64, 0.12);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.process-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.process-desc {
  margin: 10px 0 0;
  color: var(--muted);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.portfolio-card,
.blog-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-image,
.blog-image {
  height: 280px;
  overflow: hidden;
}

.portfolio-image img,
.blog-image img,
.blog-image video {
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-image img,
.blog-card:hover .blog-image img,
.blog-card:hover .blog-image video {
  transform: scale(1.04);
}

.portfolio-content,
.blog-content {
  padding: 22px;
}

.portfolio-chip,
.blog-meta span:first-child,
.pricing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(138, 100, 64, 0.12);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-meta,
.blog-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.blog-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--primary-dark);
  font-weight: 600;
}

.blog-view-all {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.blog-media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: rgba(138, 100, 64, 0.12);
  color: var(--primary-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.blog-list {
  display: grid;
  gap: 28px;
}

.blog-full-card {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.blog-full-media {
  min-height: 320px;
  background: rgba(138, 100, 64, 0.1);
}

.blog-full-content {
  padding: 34px;
}

.blog-full-meta {
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.blog-full-meta time {
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-full-card h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
}

.blog-full-excerpt {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.75;
}

.blog-full-body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  white-space: normal;
}

.blog-empty {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.blog-empty h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.blog-empty p {
  margin: 0;
  color: var(--muted);
}

#before-after {
  background: linear-gradient(180deg, #16120e, #231b15);
}

#before-after .section-sub {
  color: rgba(215, 199, 180, 0.82);
}

.ba-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.ba-card-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 340px;
}

.ba-img {
  min-height: 340px;
}

.ba-label {
  position: absolute;
  top: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(20, 17, 13, 0.74);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.ba-label.before {
  left: 18px;
}

.ba-label.after {
  right: 18px;
}

.ba-divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.32);
}

.ba-info {
  padding: 20px 22px 24px;
  color: #fff;
}

.ba-info-title {
  font-size: 1.12rem;
  font-weight: 600;
}

.ba-info-loc {
  color: rgba(248, 241, 229, 0.72);
  font-size: 0.92rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
  gap: 16px 22px;
  width: 100%;
}

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  height: auto;
  min-height: 0;
  margin: 0;
  border-radius: 22px;
  background: #120f0c;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  grid-row: span 12;
}

.gallery-card:nth-child(4n + 1) {
  grid-row: span 16;
}

.gallery-card:nth-child(4n + 2) {
  grid-row: span 10;
}

.gallery-card:nth-child(4n + 3) {
  grid-row: span 14;
}

.gallery-card:nth-child(5n) {
  grid-row: span 18;
}

.gallery-card:nth-child(7n) {
  grid-row: span 11;
}

.gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.055);
  filter: saturate(0.95);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 64%;
  padding: 86px 24px 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 17, 13, 0), rgba(20, 17, 13, 0.78) 46%, rgba(20, 17, 13, 0.96));
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.42s ease, opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay-inner {
  max-height: 210px;
  overflow: auto;
  scrollbar-width: thin;
}

.gallery-overlay h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 2vw, 2.25rem);
  line-height: 1.02;
  font-weight: 600;
}

.gallery-overlay p {
  margin: 10px 0 0;
  color: rgba(248, 241, 229, 0.78);
  font-size: 0.96rem;
}

@media (hover: none) {
  .gallery-overlay {
    opacity: 1;
    transform: none;
  }

  .gallery-card:hover .gallery-image {
    transform: none;
    filter: none;
  }
}

.pricing-card {
  position: relative;
  padding: 28px;
}

.pricing-card.featured {
  border-color: rgba(138, 100, 64, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 228, 213, 0.92));
}

.pricing-price {
  margin: 18px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  line-height: 1;
}

.pricing-card .btn {
  margin-top: 24px;
}

.team-group-photo {
  width: 100%;
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 6;
}

.team-group-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.team-card {
  min-height: 320px;
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.team-card img {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
}

.team-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.28rem;
}

.team-role {
  margin: 0 0 12px;
  color: rgba(248, 241, 229, 0.72);
  font-size: 0.94rem;
}

.team-desc {
  margin: 0;
  color: rgba(248, 241, 229, 0.62);
  font-size: 0.9rem;
  line-height: 1.65;
}

.testimonial-card {
  padding: 28px;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonial-slider::before,
.testimonial-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 72px;
  pointer-events: none;
}

.testimonial-slider::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), rgba(248, 244, 237, 0));
}

.testimonial-slider::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), rgba(248, 244, 237, 0));
}

.testimonial-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: testimonial-scroll 42s linear infinite;
  will-change: transform;
}

.testimonial-slider:hover .testimonial-track,
.testimonial-slider:focus-within .testimonial-track {
  animation-play-state: paused;
}

.testimonial-slide {
  flex: 0 0 min(560px, calc((100vw - 192px - 48px) / 3));
  min-height: 315px;
}

@keyframes testimonial-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 12px));
  }
}

.testimonial-stars {
  color: var(--primary);
  letter-spacing: 0.12em;
}

.testimonial-quote {
  margin: 18px 0 20px;
  font-size: 1.05rem;
}

.testimonial-name {
  font-size: 1.02rem;
  font-weight: 600;
}

.faq-image {
  min-height: 640px;
}

.faq-list,
#faq-section {
  display: grid;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--text);
}

.faq-question span:first-child {
  font-size: 1.02rem;
  font-weight: 600;
}

.faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, padding 0.2s ease;
}

.faq-answer p {
  padding: 0 24px 0;
}

.faq-item.is-open .faq-answer {
  max-height: 200px;
}

.faq-item.is-open .faq-answer p {
  padding-bottom: 24px;
}

.contact-grid {
  align-items: stretch;
}

.contact-info-block {
  display: flex;
  gap: 16px;
  padding: 22px 22px 24px;
  margin-bottom: 16px;
}

.contact-info-block > div:nth-child(2) {
  flex: 1;
}

.contact-info-icon,
.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 58px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(138, 100, 64, 0.12);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-info-title {
  font-size: 1rem;
  font-weight: 600;
}

.contact-info-text {
  color: var(--muted);
}

.contact-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1f8d5a;
  color: #fff;
  font-weight: 600;
}

.contact-form {
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.94rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(138, 100, 64, 0.55);
  box-shadow: 0 0 0 4px rgba(138, 100, 64, 0.1);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: rgba(187, 77, 77, 0.7);
}

.form-error {
  display: none;
  margin-top: 8px;
  color: var(--danger);
  font-size: 0.86rem;
}

.form-error.is-visible {
  display: block;
}

.form-submit {
  width: 100%;
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(46, 125, 91, 0.1);
  color: var(--success);
}

.form-success.is-visible {
  display: block;
}

.form-success.is-error {
  background: rgba(187, 77, 77, 0.1);
  color: var(--danger);
}

.form-submit:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

#cta-banner {
  padding-top: 0;
}

.portfolio-cta-spacer #cta-banner {
  padding-top: 64px;
}

.cta-inner {
  padding: 54px;
  border-radius: 30px;
  background: linear-gradient(135deg, #7b5736, #3b2a1a);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-title em {
  color: #fff0db;
}

.cta-desc {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.78);
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

footer {
  padding: 90px 0 26px;
  color: #fff;
  background: #120f0c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-desc,
.footer-contact-text,
.footer-copyright {
  color: rgba(255, 255, 255, 0.68);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social svg.is-stroke {
  fill: none;
  stroke: currentColor;
}

.footer-social span {
  line-height: 1;
}

.footer-col-title {
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 600;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover,
.footer-social:hover {
  color: #fff;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-legal-links a:hover {
  color: #fff;
}

.legal-page {
  background: var(--bg-soft);
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-content h2 {
  margin: 30px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.1;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content a {
  color: var(--primary-dark);
  font-weight: 600;
}

.sticky-whatsapp,
.sticky-call {
  position: fixed;
  right: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 18px 36px rgba(20, 17, 13, 0.18);
  z-index: 32;
}

.sticky-whatsapp {
  bottom: 88px;
  background: #22a565;
}

.sticky-call {
  bottom: 20px;
  background: var(--primary);
}

@media (max-width: 1100px) {
  .nav,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .about-features,
  .portfolio-grid,
  .pricing-grid,
  .team-grid,
  .testimonials-grid,
  #testimonials-grid,
  .blog-grid,
  .ba-grid,
  .process-steps,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-slide {
    flex-basis: min(520px, calc((100vw - 80px - 24px) / 2));
  }

  .about-grid,
  .why-grid,
  .faq-grid,
  .contact-grid {
    gap: 30px;
  }
}

@media (max-width: 900px) {
  section {
    padding: 84px 0;
  }

  .about-grid,
  .why-grid,
  .faq-grid,
  .contact-grid,
  .about-features,
  .hero-stats,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid,
  .pricing-grid,
  .team-grid,
  .testimonials-grid,
  #testimonials-grid,
  .blog-grid,
  .ba-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-full-card {
    grid-template-columns: 1fr;
  }

  .testimonial-slide {
    flex-basis: min(520px, 86vw);
  }

  .testimonial-slider::before,
  .testimonial-slider::after {
    width: 28px;
  }

  .blog-full-media {
    min-height: 300px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 8px;
    gap: 12px;
  }

  .gallery-card {
    border-radius: 18px;
  }

  .about-images {
    grid-template-columns: 1fr 1fr;
  }

  .why-image,
  .faq-image {
    min-height: 420px;
  }

  .hero-left-overlay {
    width: 100%;
    background: linear-gradient(90deg, rgba(12, 10, 8, 0.86) 0%, rgba(12, 10, 8, 0.58) 68%, rgba(12, 10, 8, 0.22) 100%);
  }

  .cta-inner {
    padding: 38px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-whatsapp,
  .sticky-call {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  #hero {
    padding-top: 124px;
    min-height: auto;
  }

  .hero-btns,
  .cta-btns {
    flex-direction: column;
  }

  .btn,
  .hero-btns .btn,
  .cta-btns .btn {
    width: 100%;
  }

  .about-images {
    grid-template-columns: 1fr;
  }

  .blog-full-content {
    padding: 24px;
  }

  .blog-full-media {
    min-height: 230px;
  }

  .team-group-photo {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .team-card {
    min-height: 0;
    padding: 28px 20px;
  }

  .legal-content {
    padding: 24px;
  }

  .about-img:first-child,
  .about-img:last-child {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .about-img:last-child {
    transform: none;
  }

  .about-badge-float {
    position: static;
    margin-top: 12px;
  }

  .contact-info-block {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }

  .hero-scroll {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 4px;
    gap: 8px;
  }

  .gallery-card,
  .gallery-card:nth-child(4n + 1),
  .gallery-card:nth-child(4n + 2),
  .gallery-card:nth-child(4n + 3),
  .gallery-card:nth-child(5n),
  .gallery-card:nth-child(7n) {
    grid-row: span 12;
    border-radius: 14px;
  }

  .gallery-card:nth-child(4n + 1) {
    grid-row: span 16;
  }

  .gallery-card:nth-child(4n + 2) {
    grid-row: span 9;
  }

  .gallery-card:nth-child(4n + 3) {
    grid-row: span 14;
  }

  .gallery-card:nth-child(5n) {
    grid-row: span 18;
  }

  .gallery-card:nth-child(7n) {
    grid-row: span 10;
  }

  .gallery-overlay {
    display: none;
  }

  .gallery-card:hover .gallery-image {
    transform: none;
    filter: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .service-card {
    padding: 16px;
    border-radius: 18px;
  }

  .service-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 0.78rem;
  }

  .service-card h3 {
    margin-top: 14px;
    font-size: 1rem;
  }

  .service-card p,
  .service-points li {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .service-points {
    gap: 7px;
    margin-top: 16px;
  }

  .service-link {
    font-size: 0.8rem;
    padding-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: auto;
  }

  .testimonial-slide {
    scroll-snap-align: start;
  }
}
