/* ============================================
   CMS BLOCK STYLES — Unified
   Styles for all CMS page blocks rendered by
   app/Views/frontend/blocks/*.tpl
   ============================================
   Replaces per-page CSS (photowalk.css, photoshoot.css,
   realestate.css, home.css) with a single generic file
   that targets CMS class names.
   ============================================ */

/* ============================================
   CONTAINER — shared wrapper inside blocks
   ============================================ */
.container {
  padding: 0 5vw;
}

/* ============================================
   HERO BLOCK — Inner Pages (.page-header)
   template: hero.tpl  (when bg_image is set)
   ============================================ */
/* .page-header base is in common.css.
   Hero bg-image is set inline by hero.tpl template. */

/* ============================================
   HERO BLOCK — Home Page (.hero-home)
   template: hero.tpl  (when bg_image is NOT set)
   ============================================ */
.hero-home {
  min-height: 100vh;
  margin-top: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: white;
}

.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-home h1 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-home .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 3vw, 28px);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero-home .hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-home .btn-hero {
  display: inline-block;
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hero-home .btn-hero:hover {
  background: white;
  color: #111;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
  stroke: white;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ============================================
   TEXT BLOCK
   template: text.tpl
   Classes: .text-section, .text-with-image,
   .text-image, .text-content, .text-body,
   .text-layout-default, .text-layout-image-left,
   .text-layout-image-right, .highlight-box
   ============================================ */
.text-section {
  padding: 40px 0;
}

/* Decorative underline on section h2 inside text blocks */
.text-section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.text-section h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-text-darker);
  margin-top: 15px;
}

/* -- Two-column layout (image-left / image-right) -- */
.text-with-image {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1000px;
}

/* image-right: swap column widths and reverse order */
.text-layout-image-right .text-with-image {
  grid-template-columns: 1fr 1.5fr;
  direction: rtl;
}

.text-layout-image-right .text-with-image > * {
  direction: ltr;
}

/* Image column */
.text-image {
  position: relative;
  margin-top: 75px; /* align with text, not heading */
}

.text-image img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
}

.text-image img:hover {
  transform: scale(0.97);
}

/* Text column */
.text-content h2 {
  margin-bottom: 30px;
}

.text-content h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-text-darker);
  margin-top: 15px;
}

.text-content p {
  font-size: 1.15em;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  line-height: 1.5em;
}

.text-content a {
  color: var(--color-brand);
  text-decoration: underline;
}

/* Default layout (no image) */
.text-body {
  font-size: 1.15em;
  color: var(--color-text-dark);
  line-height: 1.5em;
}

.text-body p {
  margin-bottom: 24px;
}

/* Lists in text body (What's Included etc.) */
.text-body ul {
  list-style: none;
  padding: 0;
}

.text-body li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 300;
}

.text-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-brand);
  border-radius: 50%;
}

/* -- Background variant (bg-alt) -- */
.text-section.bg-alt {
  background: var(--color-bg-alt);
  padding: 80px 5vw;
}
.text-section.bg-alt .text-with-image {
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.text-section.bg-alt .text-image {
  margin-top: 0;
}
.text-section.bg-alt .text-image img {
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* -- Highlight box (bulleted list with brand dots) -- */
.highlight-box {
  padding: 0;
  margin-top: 20px;
}

.highlight-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-box li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-weight: 300;
  line-height: 1.5em;
}

.highlight-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-brand);
  border-radius: 50%;
}

/* ============================================
   GALLERY BLOCK
   template: gallery.tpl
   Classes: .gallery-section, .gallery,
   .gallery-grid, .gallery-masonry, .gallery-item
   ============================================ */
.gallery-section {
  padding: 0;
  margin: 30px auto;
}

.gallery-heading {
  text-align: center;
  margin-bottom: 30px;
}
.gallery-heading::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-text-darker);
  margin: 15px auto 0;
}

.gallery {
  display: grid;
  gap: 20px;
}

/* Standard grid */
.gallery-grid {
  grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
}

/* Masonry variant — grid with JS-calculated row spans */
.gallery-masonry {
  grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
  grid-auto-rows: 8px;
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-item a {
  display: block;
}

/* Masonry items — no fixed aspect-ratio, JS sets grid-row-end span */
.gallery-masonry .gallery-item {
  aspect-ratio: auto;
}

.gallery-masonry .gallery-item img {
  height: 100%;
}

/* ============================================
   LIGHTBOX (for gallery with show_lightbox)
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 16px 20px;
  border-radius: 8px;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   TESTIMONIALS BLOCK
   template: testimonials.tpl
   Selector root: #testimonials
   Classes: .slider, .track, .slide, .card,
   .head, .name, .flag, .local-stars, .txt,
   .more, .nav.prev, .nav.next
   ============================================ */
#testimonials {
  color: var(--text);
  contain: layout style;
}

#testimonials .header {
  text-align: center;
  margin-bottom: 24px;
}

#testimonials h2 {
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

#testimonials h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-dark));
  border-radius: 2px;
}

#testimonials .rating {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#testimonials .rating .stars {
  display: inline-flex;
  gap: 2px;
}

#testimonials .rating .nums {
  opacity: .8;
}

#testimonials .rating .g {
  font-weight: 700;
}

/* Slider Controls */
.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider .nav {
  appearance: none;
  background: linear-gradient(135deg, #ffffff, #fffbf7);
  border: 1.5px solid rgba(var(--color-brand-light-rgb), 0.2);
  border-radius: 9999px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(var(--color-brand-light-rgb), 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(10, 10, 12, 0.7);
  font-weight: 600;
  transition: all 0.2s ease;
}

.slider .nav:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  border-color: var(--color-brand);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.3);
}

.slider .nav:disabled {
  opacity: .3;
  cursor: not-allowed;
  background: var(--color-bg-alt);
  border-color: var(--border);
}

.slider .nav:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* Track */
.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.track:focus {
  outline: none;
}

/* Slide */
.slide {
  flex-shrink: 0;
}

/* Testimonial Card */
#testimonials .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(var(--color-brand-light-rgb), 0.15);
  background: linear-gradient(to bottom, #fffbf7, #ffffff);
  box-shadow: 0 2px 12px rgba(var(--color-brand-light-rgb), 0.08);
}

#testimonials .card:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(var(--color-brand-light-rgb), 0.08);
}

.head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--color-brand-light-rgb), 0.1);
}

.name {
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: rgba(10, 10, 12, 0.95);
}

.local-stars {
  display: inline-flex;
  gap: 2px;
}

/* Text with clamp/expand */
.txt {
  font-weight: 300;
  line-height: 1.5em;
  max-height: 4.5em;
  overflow: hidden;
  position: relative;
  color: var(--color-text-dark);
  font-size: 1rem;
}

#testimonials .card .txt {
  max-height: 16em;
  --fade-h: 7.5em;
}

#testimonials .card.expanded .txt {
  max-height: none;
}

#testimonials .card.clamped .txt::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--fade-h);
  background: linear-gradient(
    to top,
    #ffffff 10%,
    rgba(255, 255, 255, 0.85) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.35) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

#testimonials .card.expanded .txt::before {
  content: none !important;
  height: 0 !important;
}

.more {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  background: none;
  border: none;
  color: rgba(var(--color-brand-light-rgb), 0.85);
  cursor: pointer;
  font-weight: 500;
  padding: 6px 0;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.more:hover {
  color: var(--color-brand);
  font-weight: 600;
}

/* Flag icons */
.flag {
  width: 20px;
  margin-right: 6px;
  height: 14px;
  display: inline-block;
  border: 1px solid rgba(var(--color-brand-light-rgb), 0.2);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(var(--color-brand-light-rgb), 0.1);
}

.flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   PRICING BLOCK
   template: pricing.tpl
   Classes: .pricing-section, .pricing-heading,
   .pricing-subtitle, .pricing-cards,
   .pricing-card, .pricing-card--highlighted,
   .pricing-badge, .pricing-card-name,
   .pricing-card-subtitle, .pricing-card-price,
   .pricing-price-suffix, .pricing-features,
   .pricing-cta, .pricing-addons,
   .pricing-addons-heading, .pricing-addons-list,
   .pricing-addon, .pricing-addon-info,
   .pricing-addon-desc, .pricing-addon-price,
   .pricing-footer, .pricing-cta-section,
   .pricing-section-cta
   ============================================ */
.pricing-section {
  padding: 40px 0;
  background: var(--color-bg-cta);
}

.pricing-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Decorative line under pricing heading */
.pricing-heading::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-text-darker);
  margin: 15px auto 0;
}

.pricing-subtitle {
  text-align: center;
  color: var(--color-muted);
  font-size: 1.15em;
  margin-bottom: 40px;
}

/* Card grid — auto-fit responsive */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Compact layout when only 2 cards */
.pricing-cards:has(> :nth-child(2):last-child) {
  max-width: 700px;
}

/* Wide layout for 4+ cards */
.pricing-cards:has(> :nth-child(4)) {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
}

/* Individual card */
.pricing-card {
  position: relative;
  border: 2px solid var(--border);
  padding: 32px 24px;
  text-align: left;
  border-radius: 16px;
  background: var(--color-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Highlighted / popular card */
.pricing-card--highlighted {
  border-color: var(--color-brand-light);
  border-width: 2px;
  box-shadow: 0 8px 24px rgba(var(--color-brand-light-rgb), 0.15);
  transform: scale(1.02);
  padding-top: 44px;
}

/* Badge (e.g. "Most Popular") */
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.35);
  white-space: nowrap;
}

/* Card name & subtitle */
.pricing-card-name {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--color-text);
}

.pricing-card-subtitle {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0 0 16px;
  font-weight: 400;
}

/* Price */
.pricing-card-price {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--color-primary);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-price-suffix {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-muted);
}

/* Features list */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  padding: 0 0 0 28px;
  position: relative;
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-brand);
  font-weight: 700;
}

/* Card CTA button */
.pricing-cta {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 14px 24px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--border-strong);
}

.pricing-cta:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-brand-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* Highlighted card gets a primary CTA */
.pricing-card--highlighted .pricing-cta {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.3);
}

.pricing-card--highlighted .pricing-cta:hover {
  background: linear-gradient(135deg, #C27A1C, #A56409);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--color-brand-rgb), 0.4);
}

/* Addons section */
.pricing-addons {
  margin-top: 40px;
  padding: 28px;
  background: var(--color-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-addons-heading {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 20px;
  color: var(--color-text);
  font-weight: 600;
}

.pricing-addons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-addon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--color-bg-alt);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.pricing-addon-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.pricing-addon-desc {
  display: block;
  font-size: 0.85em;
  color: var(--color-muted);
  font-weight: 300;
}

.pricing-addon-price {
  font-weight: 600;
  color: var(--color-brand);
  font-size: 1em;
  white-space: nowrap;
  margin-left: 16px;
  min-width: 110px;
  text-align: right;
}

/* Footer text */
.pricing-footer {
  margin-top: 40px;
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-footer p {
  margin: 12px 0;
  font-size: 1em;
  line-height: 1.6;
}

.pricing-footer .pricing-ready-text {
  font-size: 1.2em;
  font-weight: 500;
  margin-top: 24px;
  margin-bottom: 0;
}

/* Section-level CTA */
.pricing-cta-section {
  text-align: center;
  margin-top: 20px;
}

.pricing-section-cta {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: white;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(var(--color-brand-rgb), 0.35);
}

.pricing-section-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-brand-rgb), 0.5);
  background: linear-gradient(135deg, #C27A1C, #A56409);
  text-decoration: none;
}

/* ============================================
   FAQ BLOCK
   template: faq.tpl
   Classes: .faq-section, .faq-heading,
   .faq-subtitle, .faq-list, .faq-item,
   .faq-question, .faq-icon, .faq-answer,
   .faq-answer-inner
   ============================================ */
.faq-section {
  padding: 40px 0;
}

.faq-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.faq-heading::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-text-darker);
  margin: 15px auto 0;
}

.faq-subtitle {
  text-align: center;
  color: var(--color-muted);
  margin: 0 0 8px;
  margin-bottom: 2rem;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 400;
  text-align: left;
  color: var(--color-text-darker);
  gap: 10px;
  font-family: inherit;
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
  color: var(--color-text-dark);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 16px 14px;
  line-height: 1.5em;
  color: var(--color-text-dark);
  font-weight: 300;
  font-size: 0.95rem;
}
.faq-answer-inner p {
  margin: 0;
  font-size: inherit;
}

/* ============================================
   STEPS BLOCK
   template: steps.tpl
   Classes: .steps-section, .steps-heading,
   .steps-subtitle, .steps-list, .step-item,
   .step-number, .step-content, .step-title,
   .step-description
   ============================================ */
.steps-section {
  padding: 50px 0;
}

.steps-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.steps-heading::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-text-darker);
  margin: 15px auto 0;
}

.steps-subtitle {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  padding: 20px;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.3);
}

.step-title {
  font-size: 1.15em;
  margin-bottom: 12px;
  color: var(--color-text);
  font-weight: 600;
}

.step-description {
  font-size: 0.95em;
  color: var(--color-text-dark);
  line-height: 1.6;
  font-weight: 300;
}
.step-description p {
  margin: 0;
  font-size: inherit;
}

/* ============================================
   CTA BLOCK
   template: cta.tpl
   Classes: .cta-section, .btn-cta
   ============================================ */
.cta-section {
  background: var(--color-bg-cta);
  text-align: center;
  padding: 50px 20px;
  margin-bottom: 40px;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-text-darker);
  margin: 15px auto 0;
}

.cta-section p {
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-brand);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: var(--color-brand-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-cta svg {
  width: 20px;
  height: 20px;
}

/* Dark CTA variant */
.cta-section--dark {
  background: var(--color-footer);
  color: white;
  padding: 100px 5vw;
  margin-bottom: 0;
}
.cta-section--dark h2 {
  color: white;
}
.cta-section--dark h2::after {
  display: none;
}
.cta-section--dark p {
  color: rgba(255, 255, 255, 0.85);
}

/* Instagram CTA variant — light with standalone icon */
.cta-section--instagram {
  background: var(--color-bg);
  padding: 60px 5vw;
  margin-bottom: 0;
}

.cta-instagram-icon {
  display: block;
  margin: 0.75rem auto 0.25rem;
  width: 48px;
  height: 48px;
  color: var(--color-brand);
  transition: transform 0.2s ease;
}

.cta-instagram-icon:hover {
  transform: scale(1.08);
}

.cta-instagram-icon svg {
  width: 100%;
  height: 100%;
}

.cta-section--instagram .btn-cta {
  background: none;
  color: var(--color-brand);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  padding: 8px 0;
}

.cta-section--instagram .btn-cta:hover {
  background: none;
  transform: none;
  text-decoration: underline;
}

/* ============================================
   BOOKING BLOCK
   template: booking.tpl
   Classes: #booking, .booking-widget
   ============================================ */
#booking {
  min-height: 600px;
  contain: layout;
}

/* ============================================
   CARDS BLOCK
   template: cards.tpl
   Classes: .cards-section, .cards-heading,
   .cards-subtitle, .cards-grid, .card-item,
   .card-item--image-top, .card-item--image-left,
   .card-item--icon, .card-item--link,
   .card-item--simple, .card-item__image,
   .card-item__body, .card-item__icon,
   .card-item__title, .card-item__desc,
   .card-item__link, .card-item__source,
   .card-item__link-icon
   ============================================ */
.cards-section {
  padding: 4rem 0;
}

.cards-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.cards-heading::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-text-darker);
  margin: 15px auto 0;
}

.cards-subtitle {
  text-align: center;
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid layouts */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid--grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-grid--grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-grid--grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid--grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Base card */
.card-item {
  background: var(--color-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.card-item:has(.card-item__link):hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Image top style */
.card-item--image-top .card-item__image img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.card-item--image-top .card-item__body {
  padding: 1.25rem;
}

/* Image left style */
.card-item--image-left {
  display: flex;
  align-items: stretch;
}

.card-item--image-left .card-item__image {
  flex-shrink: 0;
  width: 160px;
  overflow: hidden;
}

.card-item--image-left .card-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card-item--image-left:has(.card-item__link):hover .card-item__image img {
  transform: scale(1.05);
}

.card-item--image-left .card-item__body {
  padding: 1.25rem;
  flex: 1;
}

/* Icon style */
.card-item--icon {
  padding: 1.5rem;
  text-align: center;
}

.card-item--icon .card-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  color: var(--color-brand);
  margin-bottom: 1rem;
}

.card-item--icon .card-item__icon svg {
  width: 28px;
  height: 28px;
}

/* Link style */
.card-item--link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  gap: 14px;
}

.card-item--link:hover {
  border-color: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.card-item--link .card-item__title {
  margin: 0;
  font-size: 0.95em;
  color: var(--color-text-darker);
  line-height: 1.4;
}

.card-item--link .card-item__source {
  margin: 0.25rem 0 0;
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand);
}

.card-item--link .card-item__link-icon {
  flex-shrink: 0;
  color: var(--color-muted);
  margin-left: 1rem;
}

.card-item--link:hover .card-item__link-icon {
  color: var(--color-brand);
}

/* Simple style */
.card-item--simple {
  padding: 1.5rem;
}

/* Card inner elements */
.card-item__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: var(--color-text);
}

.card-item__desc {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  line-height: 1.6;
  margin: 0 0 0.75rem;
  font-weight: 300;
}

.card-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95em;
  font-weight: 500;
  color: var(--color-brand);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.card-item__link:hover {
  gap: 10px;
  text-decoration: none;
}

.card-item__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ============================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .cards-grid--grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .logos-cols-5 .logo-item,
  .logos-cols-6 .logo-item,
  .logos-cols-7 .logo-item,
  .logos-cols-8 .logo-item {
    flex: 0 1 calc(33.333% - 3rem);
  }
}

/* ============================================
   RESPONSIVE — TABLET / SMALL (max-width: 900px)
   ============================================ */
@media (max-width: 900px) {
  /* Gallery */
  .gallery-grid,
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Steps */
  .steps-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Pricing — 4 cards go to 2 columns on tablet */
  .pricing-cards:has(> :nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }

  /* Pricing — highlighted card loses scale on smaller screens */
  .pricing-card--highlighted {
    transform: none;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 800px)
   ============================================ */
@media (max-width: 800px) {
  /* Text block */
  .text-section {
    padding: 24px 0;
  }

  .text-with-image {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .text-layout-image-right .text-with-image {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .text-image {
    margin-top: 0;
    order: 2;
  }

  .text-image img {
    max-width: 240px;
    margin: 0 auto;
    display: block;
  }

  /* bg-alt variant must also stack on mobile */
  .text-section.bg-alt .text-with-image {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .text-section.bg-alt .text-image {
    margin-top: 0;
    order: 2;
  }

  .text-section.bg-alt .text-image img {
    max-width: 240px;
    margin: 0 auto;
    display: block;
  }

  .text-content h2 {
    margin-bottom: 20px;
  }

  .text-content p {
    font-size: 1.15em;
    margin-bottom: 18px;
  }

  .text-section h2 {
    margin-bottom: 18px;
  }

  .highlight-box li {
    margin-bottom: 10px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Hero — Home */
  .hero-home {
    min-height: 90vh;
  }

  /* Pricing */
  .pricing-section {
    padding: 36px 16px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 20px;
  }

  .pricing-subtitle {
    margin-bottom: 28px;
  }

  .pricing-card {
    padding: 20px 18px;
  }

  .pricing-card-name {
    font-size: 19px;
    margin-bottom: 6px;
  }

  .pricing-card-subtitle {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .pricing-card-price {
    font-size: 34px;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .pricing-price-suffix {
    font-size: 15px;
  }

  .pricing-features {
    gap: 10px;
    margin-bottom: 18px;
  }

  .pricing-features li {
    gap: 10px;
    font-size: 15px;
  }

  .pricing-cta {
    padding: 12px 18px;
    font-size: 14px;
  }

  .pricing-addons {
    padding: 20px 16px;
    margin: 28px auto 0;
    max-width: 400px;
  }

  .pricing-addons-heading {
    font-size: 1.1em;
    margin-bottom: 16px;
  }

  .pricing-addon {
    padding: 12px 14px;
  }

  .pricing-addon-desc {
    font-size: 0.8em;
  }

  .pricing-addon-price {
    font-size: 0.95em;
  }

  .pricing-footer {
    padding: 18px;
    margin-top: 28px;
  }

  .pricing-footer p {
    margin: 10px 0;
  }

  .pricing-section-cta {
    padding: 14px 36px;
    font-size: 1em;
  }

  /* CTA */
  .cta-section {
    padding: 36px 16px;
    margin-bottom: 30px;
  }

  /* Testimonials */
  #testimonials h2 {
    margin-bottom: 36px;
  }

  #testimonials .card {
    padding: 20px;
  }

  #testimonials .txt {
    font-size: 1em;
  }

  .slider .nav {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  /* FAQ */
  .faq-question {
    padding: 12px 14px;
    font-size: 1.18em;
  }

  .faq-answer-inner {
    padding: 0 14px 12px;
    font-size: 1.18em;
  }

  /* Cards */
  .cards-grid--grid-2,
  .cards-grid--grid-3,
  .cards-grid--grid-4 {
    grid-template-columns: 1fr;
  }

  .card-item--image-left {
    flex-direction: column;
  }

  .card-item--image-left .card-item__image {
    width: 100%;
    height: 180px;
  }

  .cards-heading {
    font-size: 1.5rem;
  }

  /* Logos */
  .logos-grid--grid {
    gap: 1.5rem 2rem;
  }
  .logos-grid--grid .logo-item {
    flex: 0 1 calc(50% - 2rem);
    min-width: 100px;
  }
  .logo-item__img {
    max-width: 120px;
    max-height: 55px;
  }

  .logos-heading {
    font-size: 1.5rem;
  }

  /* Booking */
  #booking {
    min-height: 500px;
  }

  /* Lightbox */
  .lightbox-prev,
  .lightbox-next {
    padding: 12px 14px;
    font-size: 22px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 32px;
  }
}

/* Track responsive widths for testimonial slider */
@media (min-width: 720px) {
  .track {
    grid-auto-columns: calc(50% - 8px);
  }
}

@media (min-width: 1040px) {
  .track {
    grid-auto-columns: calc(33.333% - 10.7px);
  }
}

/* ============================================
   LOGOS BLOCK
   Classes: .logos-section, .logos-heading,
   .logos-subtitle, .logos-grid, .logo-item,
   .logo-item__link, .logo-item__img
   ============================================ */
.logos-section {
  padding: 4rem 0;
}

.logos-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.logos-heading::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-text-darker);
  margin: 12px auto 0;
}

.logos-subtitle {
  text-align: center;
  color: var(--color-muted);
  font-size: 1.15em;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid layout — flexbox for always-centered logos */
.logos-grid--grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: center;
}
/* Columns setting controls max items per row */
.logos-cols-2 .logo-item { flex: 0 1 calc(50% - 3rem); }
.logos-cols-3 .logo-item { flex: 0 1 calc(33.333% - 3rem); }
.logos-cols-4 .logo-item { flex: 0 1 calc(25% - 3rem); }
.logos-cols-5 .logo-item { flex: 0 1 calc(20% - 3rem); }
.logos-cols-6 .logo-item { flex: 0 1 calc(16.666% - 3rem); }
.logos-cols-7 .logo-item { flex: 0 1 calc(14.285% - 3rem); }
.logos-cols-8 .logo-item { flex: 0 1 calc(12.5% - 3rem); }

/* Row layout */
.logos-grid--row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: center;
}
.logos-grid--row .logo-item {
  flex: 0 0 auto;
}

/* Inline layout */
.logos-grid--inline {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
}
.logos-grid--inline .logo-item {
  flex: 0 0 auto;
}

/* Logo item */
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-width: 120px;
}
.logo-item__link {
  display: block;
  text-decoration: none;
}
.logo-item__img {
  max-width: 160px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Text fallback when no logo image */
.logo-item__text {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  white-space: nowrap;
}

/* Grayscale effect */
.logos-grid--grayscale .logo-item__img {
  filter: grayscale(1);
  opacity: 0.6;
}
.logos-grid--grayscale .logo-item:hover .logo-item__img {
  filter: grayscale(0);
  opacity: 1;
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  /* Hero */
  .hero-home h1 {
    font-size: 42px;
  }

  /* Gallery */
  .gallery-grid,
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item {
    border-radius: 8px;
  }

  /* Steps — horizontal layout on small screens */
  .steps-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    text-align: left;
    padding: 16px;
    background: var(--color-bg-alt);
    border-radius: 12px;
  }

  .step-item .step-number {
    width: 48px;
    height: 48px;
    margin: 0;
    font-size: 20px;
    grid-row: span 2;
    align-self: center;
  }

  .step-item .step-title {
    margin-bottom: 4px;
    align-self: end;
  }

  .step-item .step-description {
    align-self: start;
  }

  .steps-section {
    padding: 30px 0;
  }

  /* Pricing */
  .pricing-section {
    padding: 28px 14px;
  }

  .pricing-cards {
    gap: 16px;
  }

  .pricing-cards:has(> :nth-child(4)) {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card {
    padding: 18px 16px;
  }

  .pricing-card-name {
    font-size: 18px;
  }

  .pricing-card-price {
    font-size: 30px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .pricing-addons {
    padding: 18px 14px;
  }

  .pricing-addon {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .pricing-addon-price {
    margin-left: 0;
    text-align: center;
  }

  .pricing-footer {
    padding: 16px;
  }

  /* CTA */
  .cta-section {
    padding: 28px 14px;
    margin-bottom: 24px;
  }

  .btn-cta {
    padding: 16px 36px;
  }

  /* Logos — small mobile: centered, 2 per row max */
  .logos-grid--grid {
    gap: 1rem 1.5rem;
  }
  .logos-grid--grid .logo-item {
    flex: 0 1 calc(50% - 1.5rem);
    min-width: 80px;
    padding: 0.5rem;
  }
  .logos-section {
    padding: 2.5rem 0;
  }
  .logo-item__img {
    max-width: 100px;
    max-height: 45px;
  }

  /* Testimonials */
  #testimonials .txt {
    font-size: 0.95em;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .track {
    scroll-behavior: auto;
  }

  .text-image img,
  .gallery-item img,
  .pricing-section-cta,
  .pricing-cta,
  .btn-cta,
  .btn-hero,
  .card-item,
  .card-item--image-left .card-item__image img {
    transition: none;
  }

  .scroll-indicator {
    animation: none;
  }
}
