/* ===== Home header: fixed wrapper keeps nav on screen while hero scrolls ===== */
body.home-page #site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

body.home-page .site-header {
  position: relative;
  top: auto;
}

body.home-page .site-header.is-scrolled {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}

body.home-page .header-top {
  transition: none;
}

body.home-page .site-header.is-scrolled .header-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  min-height: 0;
  max-height: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: none;
  overflow: hidden;
}

/* ===== Hero Carousel ===== */
.hero-carousel {
  padding: 0;
  background: var(--color-bg);
  width: 100%;
}

.hero-frame {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  height: clamp(320px, 42vw, 680px);
  background: #1a1a1a;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(44, 44, 44, 0.32);
  pointer-events: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-slide.active {
  display: flex;
  pointer-events: auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  max-width: 640px;
  animation: heroTextIn 0.8s ease;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-white);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 40px;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}

.hero-btn {
  background: rgba(201, 169, 166, 0.88);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.hero-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(201, 169, 166, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 14px;
  z-index: 2;
  border-radius: var(--radius-round);
  transition: background 0.2s, border-color 0.2s;
}

.hero-arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }

/* ===== Services ===== */
.services-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
}

.services-section .container,
.blog-section .container,
.team-section .container,
.gallery-section .container {
  max-width: var(--container-wide);
}

.services-header,
.team-header,
.blog-header {
  margin-bottom: 72px;
  text-align: center;
}

.services-title,
.team-title,
.blog-title {
  font-size: var(--font-size-section);
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 20px;
}

.blog-title {
  margin-bottom: 12px;
}

.services-subtitle,
.team-subtitle,
.blog-subtitle {
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-lead);
  line-height: 1.8;
  color: var(--color-text-lead);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 13px;
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  order: 2;
  padding-top: 28px;
}

.service-card-image {
  order: 1;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-card-desc {
  font-size: 14px;
  font-weight: var(--font-weight-lead);
  line-height: 1.8;
  color: var(--color-text-lead);
  order: 3;
  margin-bottom: 28px;
}

.service-card-btn {
  order: 4;
  align-self: flex-start;
}

/* ===== About ===== */
.about-section {
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--section-pad) var(--container-side);
}

.about-card {
  padding: 0;
}

.about-title {
  font-size: var(--font-size-section);
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 28px;
}

.about-text {
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-lead);
  line-height: 1.8;
  color: var(--color-text-lead);
  margin-bottom: 40px;
}

.about-image {
  margin: 0;
}

.about-image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
}

/* ===== Team ===== */
.team-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.team-card-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card-name {
  font-size: 12px;
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}

.team-card-role {
  font-size: 13px;
  font-weight: var(--font-weight-lead);
  color: var(--color-text-lead);
  margin-top: 6px;
}

/* ===== Blog ===== */
.blog-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
}

.blog-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
}

.blog-card-image .blog-tag,
.blog-card-image .blog-tags-group {
  z-index: 1;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-sm);
  background: var(--color-btn-bg);
  color: var(--color-text);
}

.blog-tag--gold {
  color: var(--color-text);
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

.blog-tags-group {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tags-group .blog-tag {
  position: static;
}

.blog-card-title {
  font-size: 15px;
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.05em;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.blog-card-meta svg {
  width: 12px;
  height: 12px;
}

.blog-card-desc {
  font-size: 14px;
  font-weight: var(--font-weight-lead);
  line-height: 1.8;
  color: var(--color-text-lead);
  margin-bottom: 28px;
  flex: 1;
}

.blog-card-btn {
  align-self: flex-start;
}

/* ===== Gift ===== */
.gift-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  min-height: clamp(400px, 48vw, 560px);
  display: flex;
  align-items: center;
}

.gift-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gift-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gift-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(250, 250, 247, 0.62);
}

.gift-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--section-pad) var(--container-side);
}

.gift-content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.gift-title {
  font-size: var(--font-size-section);
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.gift-desc {
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-lead);
  line-height: 1.8;
  color: var(--color-text-lead);
  margin-bottom: 40px;
}

.gift-btn {
  margin: 0 auto;
}

/* ===== Gallery ===== */
.gallery-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
}

.gallery-title {
  font-size: var(--font-size-section);
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 72px;
}

.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ===== Feedback ===== */
.feedback-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
}

.feedback-title {
  font-size: var(--font-size-section);
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 48px;
}

.feedback-icon {
  display: none;
}

.feedback-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.feedback-slides {
  position: relative;
  flex: 1;
  min-height: 160px;
}

.feedback-slide {
  position: absolute;
  inset: 0;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feedback-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.feedback-text {
  font-size: 16px;
  font-weight: var(--font-weight-lead);
  line-height: 1.8;
  color: var(--color-text-lead);
  margin-bottom: 24px;
}

.feedback-text::before {
  content: "\201C";
  color: var(--color-accent);
  margin-right: 4px;
}

.feedback-text::after {
  content: "\201D";
  color: var(--color-accent);
  margin-left: 4px;
}

.feedback-author {
  font-size: 12px;
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}

.feedback-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-btn-bg);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-round);
  cursor: pointer;
  color: var(--color-text);
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.feedback-arrow:hover {
  background: var(--color-btn-bg-hover);
  border-color: var(--color-btn-bg-hover);
  color: var(--color-white);
}

/* ===== Map ===== */
.map-section {
  padding: var(--section-pad) var(--container-side);
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
}

.map-header {
  text-align: center;
  margin-bottom: 40px;
}

.map-title {
  font-size: var(--font-size-section);
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.map-building {
  font-size: 15px;
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.map-address {
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-lead);
  color: var(--color-text-lead);
}

.map-wrap {
  max-width: var(--container-wide);
  margin: 0 auto;
}

.map-iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.map-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 380px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-btn-bg);
  text-align: center;
  padding: 32px;
  transition: background 0.2s;
}

.map-fallback:hover {
  background: var(--color-accent-soft);
}

.map-fallback.is-visible {
  display: flex;
}

.map-fallback-label {
  font-size: 12px;
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
}

.map-fallback-address {
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-lead);
  color: var(--color-text-lead);
  line-height: 1.6;
}
