@font-face {
  font-family: Henrietta;
  src: url(assets/fonts/henrietta.woff2) format("woff2"),
       url(assets/fonts/henrietta.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IntervogueSoft';
  src: url('assets/fonts/IntervogueSoft-Med.eot');
  src: url('assets/fonts/IntervogueSoft-Med.eot?#iefix') format('embedded-opentype'),
       url('assets/fonts/IntervogueSoft-Med.woff') format('woff'),
       url('assets/fonts/IntervogueSoft-Med.ttf') format('truetype'),
       url('assets/fonts/IntervogueSoft-Med.svg#IntervogueSoft-Med') format('svg');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --rem-base: 16px;
  --color-cream: #FFF0D3;
  --color-sand: #FBF1CC;
  --color-dark: #34312A;
  --color-gray: #5B5B5B;
  --color-background: #FEF9E7;
  --grid-gap: 2.5rem;
  --grid-margin: 5rem;
  --header-height: 6rem;
}

@media (max-width: 1024px) {
  :root {
    --grid-margin: 1.5rem;
    --grid-gap: 1rem;
    --header-height: 5.5rem;
  }
}

html {
  font-size: var(--rem-base);
  height: auto; /* Fix: override html{height:100%} from assets/index-CW9y8c-Y.css which breaks iOS touch scroll */
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-dark);
  overflow-x: hidden;
  background-color: var(--color-background);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: none;
}

@media (prefers-reduced-motion: reduce) {
  /* Momentum scroll disabled via JS */
}

h1, h2, h3 {
  font-family: Henrietta, serif;
  margin: 0;
}

h1 {
  font-size: 3.75rem;
  line-height: 4rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 3rem;
  line-height: 3.5rem;
}

h3 {
  font-size: 2.75rem;
  line-height: 3rem;
}

h4 {
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 3rem;
  margin: 0;
  color: var(--color-dark);
  text-align: center;
}

h5 {
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin: 0 0 2rem;
  color: #fff;
}

.grid-container {
  max-width: 100%;
  margin: 0 var(--grid-margin);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

.header {
  width: 100%;
  z-index: 1;
  padding: 2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: background-color 0.3s;
}

.header * {
  pointer-events: auto;
}

.header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}

.header.menu-open {
  background-color: #fff;
  z-index: 100;
}

.nav-content {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 500;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.logo {
  height: 3.5rem;
  filter: brightness(0) saturate(100%) invert(100%);
}

.header.menu-open .logo {
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  color: var(--color-cream);
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-link:hover {
  color: #fff;
  text-decoration: underline;
}

.nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px #000;
}

/* Catalog download link styles */
.catalog-download-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.catalog-download-link svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.catalog-download-link:hover svg {
  transform: translateY(2px);
}

.nav-divider {
  width: 1px;
  height: 1rem;
  background-color: #363636;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon {
  color: var(--color-cream);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: #fff;
}

.header.menu-open .social-icon {
  color: var(--color-dark);
}

.header.menu-open .social-icon:hover {
  color: #581b03;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-cream);
  cursor: pointer;
  padding: 0;
  transition: color 0.3s, border-color 0.3s;
  width: 48px;
  height: 48px;
  border: 2px solid transparent;
  align-items: center;
  justify-content: center;
}

/* Hide mobile menu overlay on desktop */
@media (min-width: 1025px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}

.menu-toggle:hover {
  border-color: currentColor;
  border-radius: 2px;
}

.menu-toggle .icon {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s;
}

.menu-toggle .close-icon {
  display: none;
}

.menu-toggle.active {
  color: #581b03;
}

.menu-toggle.active:hover {
  color: #000;
}

.menu-toggle.active .menu-icon {
  display: none;
}

.menu-toggle.active .close-icon {
  display: block;
}

.hero {
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  z-index: 0;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.hero * {
  pointer-events: auto;
}

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-content {
  grid-column: 1 / span 6;
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out 0.2s forwards;
}

.hero .cta-button {
  width: auto;
  padding: 1rem 2rem;
  background-color: #fbf1cc;
  color: #34312a;
}

.hero .cta-button:hover {
  background-color: #fffbf3;
  text-decoration: underline;
}

main {
  position: relative;
  z-index: 2;
  margin-top: 100vh;
  background-color: var(--color-background);
}

.portfolio {
  padding: 6rem 0;
  background-color: var(--color-background);
  color: var(--color-dark);
  font-weight: 400;
}

  .portfolio-text {
    grid-column: 1 / span 9;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .order-steps {
    grid-column: 1 / span 9;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s;
  }



.order-steps.visible {
  opacity: 1;
  transform: translateY(0);
}

.order-steps h5 {
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 3rem;
  margin-bottom: 2rem;
  text-align: left;
  color: var(--color-dark);
}

.steps-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.step {
  flex: 1;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 2.5rem;
  color: var(--color-dark);
  margin: 0;
}

.step p {
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5rem;
  color: var(--color-dark);
  margin: 0;
}

.steps-note {
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5rem;
  color: var(--color-dark);
  margin: 0;
  text-align: left;
}

.portfolio-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-text h3 {
  font-family: Henrietta, serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.portfolio-text.visible h3 {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-content {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  row-gap: calc(var(--grid-gap) + 1rem);
  width: 100%;
  margin: 0;
  padding: 0;
}

.grid-item {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.grid-item.loading {
  opacity: 0;
  transform: translateY(20px);
}



.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  width: 100%;
}

.load-more-btn {
  margin: 0;
  padding: 1rem 2rem;
  width: auto;
  display: inline-block;
}

/* Product grid styles - removed carousel controls */

/* Removed old carousel styles */

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1rem;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Removed old carousel image styles */

.product-caption {
  padding: 0 1rem;
}

.caption-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 0;
}

.caption-header h4 {
  font-family: Henrietta, serif;
  font-size: 1.125rem;
  line-height: 1.2;
  margin: 0;
  color: var(--color-dark);
  text-align: left;
}

.price {
  font-family: Henrietta, serif;
  font-size: 1.125rem;
  line-height: 1.2;
  margin: 0;
  color: var(--color-dark);
  text-align: right;
}

.caption-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 2rem;
}

.caption-content p {
  margin: 0;
}

.product-categories {
  display: none;
}

.product-minimum-order {
  font-family: 'IntervogueSoft', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #34312A;
  margin: 0.5rem 0 1rem 0;
  line-height: 1.4;
  text-align: left;
}

.order-link {
  font-family: 'Henrietta', sans-serif;
  font-size: 1rem;
  color: #5B2F0C;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-link:hover {
  color: #130A02;
  text-decoration: underline;
}

.order-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.order-link:hover svg {
  transform: translateX(4px);
}

/* Klikalny link zdjęcia w siatce produktów */
.product-image-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

/* Klikalny tytuł produktu */
.product-title-link {
  font-family: 'Henrietta', sans-serif;
  color: #5B2F0C;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.product-title-link:hover {
  color: #130A02;
  text-decoration: underline;
}

.product-title-link h4 {
  margin: 0;
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    row-gap: calc(1.5rem + 1rem);
  }
  
  .load-more-container {
    margin-top: 2rem;
  }

  .order-steps h5 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .step-number {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }

  .step p {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .steps-note {
    font-size: 1rem;
    line-height: 1.5rem;
  }


}

@media (max-width: 768px) {
  .portfolio {
    padding: 3rem 0;
  }

  .portfolio-text h3 {
    font-size: 1.75rem;
  }

  .portfolio-text {
    margin-bottom: 2rem;
  }

  .product-caption h4 {
    font-size: 1.25rem;
  }

  .product-caption p {
    font-size: 0.875rem;
  }

  .product-title-link h4 {
    font-size: 1.25rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .load-more-container {
    margin-top: 1.5rem;
  }

  .load-more-btn {
    width: 100%;
  }

  .order-steps h5 {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }

  .steps-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .step {
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
  }

  .step-number {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .step p {
    font-size: 0.875rem;
    line-height: 1.375rem;
  }

  .steps-note {
    font-size: 0.875rem;
    line-height: 1.375rem;
  }

  .order-steps {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 0 2.5rem 0;
    padding: 0;
    text-align: left;
  }


}

.footer-background-container {
  background-image: url('assets/footer_bg.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  width: 100%;
}

.footer-background-container .footer {
  background-color: transparent;
}

.contact {
  padding: 5rem 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background-color: transparent;
  position: relative;
}

.contact .grid-container {
  margin: 0 auto;
  max-width: var(--max-width, 1440px);
  padding: 0 var(--grid-margin);
}

.contact-info {
  grid-column: 1 / span 12;
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-info.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-info a {
  color: #90511f;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: #000;
  text-decoration: underline;
}

.contact-form-section {
  display: none;
}

.footer {
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
  background-color: #fff;
  width: 100%;
}

.footer .grid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer .logo {
  height: auto;
  width: 80px;
  margin-bottom: 1rem;
  filter: none;
}

.footer p {
  color: var(--color-gray);
  font-size: 0.75rem;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  color: #34312A;
  text-decoration: none;
  font-family: 'IntervogueSoft', Arial, sans-serif;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #E7B641;
}

.cta-button {
  font-family: Henrietta, serif;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  background-color: #9a5f30;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  border-radius: 0.5rem;
  width: auto;
}

.cta-button:hover {
  background-color: #8b552b;
  box-shadow: 0 11px 11px rgba(0, 0, 0, 0.05), 0 20px 15px rgba(0, 0, 0, 0.03);
  text-decoration: underline;
}

.cta-button span.mobile-text {
  display: none;
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }

  h3 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  h4 {
    font-size: 1.375rem;
    line-height: 2rem;
    max-width: 100%;
  }

  .header:before {
    display: none;
  }

  .header {
    background: none;
  }

  .header.menu-open {
    background: none;
  }

  .nav-left {
    gap: 0;
  }

  /* Desktop category links - hide on mobile */
  .category-nav-links {
    display: none;
  }

  /* Hide desktop nav-links on mobile */
  .nav-links {
    display: none;
  }

  /* Mobile Menu Overlay - Hidden on mobile by default */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    overflow-y: auto;
    /* Match desktop header padding exactly: 2rem top + var(--grid-margin) sides */
    padding: 2rem var(--grid-margin);
    font-family: 'IntervogueSoft', sans-serif;
    font-weight: 500;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-menu-overlay.active {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    opacity: 1;
  }

  /* Mobile Menu Header - Part of scrollable content */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(88, 27, 3, 0.1);
    /* Remove padding to match desktop positioning exactly */
    margin-left: 0;
    margin-right: 0;
  }

  .mobile-menu-header .logo {
    filter: none;
    height: 3.5rem;
    /* Match desktop logo positioning - no extra margin */
    margin: 0;
  }

  .menu-toggle-mobile {
    display: flex;
    background: none;
    border: none;
    color: #581b03;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    /* Match desktop menu-toggle positioning exactly */
    margin: 0;
    flex-shrink: 0;
  }

  .menu-toggle-mobile:hover {
    border-color: currentColor;
    border-radius: 2px;
  }



  /* Mobile Category Links Section */
  .mobile-menu-overlay .mobile-category-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(88, 27, 3, 0.1);
  }



  /* Contact Section */
  .mobile-menu-overlay .mobile-contact-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(88, 27, 3, 0.1);
  }



  /* Navigation Links Styling - Mobile */
  .mobile-menu-overlay .nav-link {
    width: 100%;
    padding: 0.75rem 0;
    color: #34312A;
    text-decoration: none;
    font-size: 1.125rem;
    line-height: 1.5;
    transition: color 0.3s;
    border: none;
    margin: 0;
    text-transform: capitalize;
  }

  .mobile-menu-overlay .nav-link:hover {
    color: #581b03;
    text-decoration: underline;
  }

  /* Email link should not be capitalized */
  .mobile-menu-overlay .nav-link[href^="mailto:"] {
    text-transform: none;
  }

  /* Remove old dividers */
  .nav-divider {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile Social Links */
  .mobile-menu-overlay .social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: center;
    padding: 0.75rem 0;
    margin-top: 0;
  }



  .mobile-menu-overlay .social-icon {
    color: #34312A;
    transition: color 0.3s, transform 0.3s;
  }

  .mobile-menu-overlay .social-icon:hover {
    color: #581b03;
    transform: scale(1.1);
  }

  .hero {
    min-height: calc(100vh - 5rem);
    margin-bottom: 5rem;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
  }

  .portfolio, .contact {
    padding: 3rem 0;
  }

  .footer-background-container {
    background-size: contain;
    background-position: center bottom;
  }

  .hero-content, .portfolio-text, .portfolio-gallery, .gallery-controls, .contact-form {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .portfolio-content, .portfolio-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-controls {
    flex-direction: row;
    justify-content: flex-start;
  }

  .contact-info {
    grid-column: 1 / -1;
    padding: 0 var(--grid-margin);
  }

  .cta-button {
    width: 100%;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  
  .load-more-btn {
    width: auto !important;
  }

  .cta-button span.desktop-text {
    display: none;
  }

  .cta-button span.mobile-text {
    display: inline;
  }

  .form-group label {
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: left;
  }

  .portfolio-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 300px;
  }

  .gallery-caption {
    padding: 0.75rem;
  }

  .gallery-caption h3 {
    font-size: 1.25rem;
  }

  .gallery-caption p {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-link {
    display: block;
    width: 100%;
    text-align: center;
  }

  .footer-background-container {
    background-size: contain;
    background-position: center bottom;
    /* White background for mobile */
    background-color: #fff !important;
  }

  /* White background for contact and footer sections on mobile */
  .contact {
    background-color: #fff !important;
  }

  .footer {
    background-color: #fff !important;
  }

  .footer-background-container .footer {
    background-color: #fff !important;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0.6;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.hero-content h1 {
  animation: fadeInUp 0.6s ease-out forwards;
}

.hero-content h5 {
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero {
    animation: fadeIn 0.5s ease-out forwards;
  }
  
  .hero-content {
    animation: fadeInUp 0.5s ease-out 0.2s forwards;
  }
  
  .portfolio {
    animation: fadeIn 0.5s ease-out forwards;
  }
  
  .portfolio-text {
    animation: fadeInUpScroll 0.8s ease-out forwards;
  }
}

.about-cookies {
  padding: 6rem 0;
  background-color: var(--color-background);
  color: var(--color-dark);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-image: url("assets/images/bg_about.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.about-content {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  align-items: center;
  padding: 2rem 0;
  position: relative;
  z-index: 2;
}

.about-image {
  grid-column: 1 / span 5;
  position: relative;
  opacity: 1;
}

.parallax-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.8s ease-in-out, 
              transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-image.visible {
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.about-text {
  grid-column: 7 / span 6;
  opacity: 1;
  color: var(--color-dark);
  position: relative;
  z-index: 2;
  text-align: left;
}

.about-text h3 {
  font-family: Henrietta, serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--color-dark);
  margin: 0;
  text-align: left;
}

@media (max-width: 1024px) {
  .about-cookies {
    padding: 3rem 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    grid-column: 1 / -1;
  }

  .about-text {
    grid-column: 1 / -1;
  }

  .about-text h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

.banner {
  display: none;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions .cta-button {
  margin: 0;
}

.disclaimer {
  font-family: 'IntervogueSoft', sans-serif;
  font-size: 0.75rem;
  color: var(--color-gray);
  margin: 0;
  text-align: left;
}

@media (min-width: 1025px) {
  .load-more-btn {
    width: auto;
  }
  
  .form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .form-actions .cta-button {
    margin: 0;
  }
  
  .disclaimer {
    font-size: 0.85rem;
    line-height: 1rem;
    color: var(--color-gray);
    text-align: left;
    margin: 0;
  }
}

.custom-section {
  padding: 4rem 0;
  background-color: var(--color-background);
  color: var(--color-dark);
  width: 100%;
  max-width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.4s;
  font-weight: 400;
}

.custom-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.custom-section.hidden {
  opacity: 0;
  transform: translateY(20px);
}

.custom-section .grid-container {
  max-width: 100%;
  margin: 0 var(--grid-margin);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

.cards-row {
  display: contents;
}

.text-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  margin: 0;
  box-sizing: border-box;
  background: none;
}

.card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background-color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  margin: 0;
  box-sizing: border-box;
  height: 100%;
  min-height: 400px;
}

.card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  flex-shrink: 0;
}

.card h3 {
  font-family: Henrietta, serif;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--color-dark);
  margin: 0;
}

.card-image {
  width: 100%;
  padding: 0 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.card-image img {
  width: 100%;
  height: auto;
  max-width: none;
  min-width: 0;
  object-fit: contain;
}

.card-bottom {
  margin-top: auto;
  padding-top: 3rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card p {
  font-family: 'IntervogueSoft', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-dark);
  margin: 0;
}

/* Animation delays */
.card:nth-child(2) {
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transition-delay: 0.1s;
}

.card:nth-child(3) {
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transition-delay: 0.3s;
}

.card:nth-child(4) {
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transition-delay: 0.5s;
}

.text-card {
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transition-delay: 0.7s;
}

.custom-section.visible .card,
.custom-section.visible .text-card {
  opacity: 1;
  transform: translateX(0);
}

.custom-section.hidden .card,
.custom-section.hidden .text-card {
  opacity: 0;
  transform: translateX(-100px);
}

.cards-carousel-controls {
  display: none;
}

@media (max-width: 1024px) {
  .custom-section {
    padding: 4rem 0;
  }

  .cards-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .card {
    flex: 1 1 calc(50% - 1.5rem);
    min-height: 350px;
    background-color: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
  }

  .card-image {
    padding: 0 1.5rem;
  }

  .card-image img {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .custom-section {
    padding: 4rem 0;
  }

  .custom-section .grid-container {
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
  }

  .text-card {
    grid-column: unset;
    background: none;
    border-radius: 0;
    padding: 0 1.5rem;
    min-height: auto;
    display: block;
    margin: 0 0 2rem 0;
    opacity: 1;
    transform: none;
  }

  .text-card h3 {
    font-family: Henrietta, serif;
    font-size: 2rem;
    line-height: 2.5rem;
    color: var(--color-dark);
    margin: 0;
    text-align: left;
  }

  .cards-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    padding-left: 1.5rem;
    padding-right: 1rem;
    margin: 0;
    position: relative;
    transition: transform 0.3s ease;
    will-change: transform;
    /* Make container wide enough for all 3 cards */
    width: calc(300vw - 6rem);
  }

  .card {
    grid-column: unset;
    /* Card width: show one full card plus 1rem preview of next */
    flex: 0 0 calc(100vw - 1.5rem - 1rem - 1rem);
    min-width: calc(100vw - 1.5rem - 1rem - 1rem);
    max-width: calc(100vw - 1.5rem - 1rem - 1rem);
    min-height: 400px;
    background-color: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* Remove all desktop animations */
    transform: translateX(0) !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .card .card-top {
    flex-shrink: 0;
  }

  .card .card-bottom {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 1.5rem;
  }

  .cards-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 1rem;
    padding: 0 var(--grid-margin);
  }

  .cards-carousel-arrow {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #5B2F0C;
    outline: none;
  }

  .cards-carousel-arrow:hover:not(:disabled) {
    color: #E7B641;
    background: rgba(52, 49, 42, 0.05);
  }

  .cards-carousel-arrow:disabled {
    color: #8F8F8F;
    cursor: not-allowed;
  }

  .cards-carousel-arrow svg {
    width: 24px;
    height: 24px;
  }

  /* Remove all desktop animations */
  .card:nth-child(1),
  .card:nth-child(2),
  .card:nth-child(3) {
    transition: none !important;
    transition-delay: 0s !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
  }

  .card-image {
    padding: 0 1.5rem;
  }

  .card-image img {
    max-width: none;
    width: 100%;
  }
}

.clients {
  padding: 5rem 0 10rem 0;
  background-color: #fff;
}

.clients .grid-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--grid-margin);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clients h3 {
  text-align: center;
  margin: 5rem 0 4rem 0;
  font-family: Henrietta, serif;
  font-size: 2.75rem;
  line-height: 3rem;
  color: var(--color-dark);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.clients h3.visible {
  opacity: 1;
  transform: translateY(0);
}

.clients-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out 0.2s, transform 0.4s ease-out 0.2s;
}

.clients-carousel.visible {
  opacity: 1;
  transform: translateY(0);
}

.clients-track {
  display: flex;
  gap: 2.5rem;
  width: 100%;
  overflow: hidden;
  padding: 0;
  flex-wrap: nowrap;
}

.client-logo {
  flex: 0 0 calc(25% - 1.875rem);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.client-logo img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
}

.clients-carousel .carousel-controls {
  display: flex;
  gap: 1rem;
  margin-top: 4rem;
  justify-content: center;
  width: 100%;
}

.clients-carousel .carousel-arrow {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  color: #5B2F0C;
  outline: none;
}

.clients-carousel .carousel-arrow:focus {
  outline: none;
  box-shadow: none;
}

.clients-carousel .carousel-arrow:focus-visible {
  outline: none;
  box-shadow: none;
}

.clients-carousel .carousel-arrow svg {
  width: 24px;
  height: 24px;
}

.clients-carousel .carousel-arrow svg path {
  stroke-width: 2px;
}

.clients-carousel .carousel-arrow:hover:not(:disabled) {
  color: #E7B641;
  background: rgba(52, 49, 42, 0.05);
}

.clients-carousel .carousel-arrow:disabled {
  color: #8F8F8F;
  background: transparent;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .clients {
    padding: 4rem 0;
  }
  
  .clients .grid-container {
    padding: 0 var(--grid-margin);
  }
  
  .clients h3 {
    font-size: 2rem;
    line-height: 2.5rem;
  }
  
  .clients-track {
    flex-wrap: nowrap;
    gap: 2.5rem;
    padding: 0;
    width: 100%;
  }
  
  .client-logo {
    flex: 0 0 calc(50% - 1.25rem);
    min-width: calc(50% - 1.25rem);
    max-width: calc(50% - 1.25rem);
  }
  
  .carousel-controls {
    margin-top: 2rem;
  }

  .client-logo img {
    max-height: 120px;
  }
}

@media (max-width: 768px) {
  .client-logo {
    flex: 0 0 calc(100% - 0.5rem);
  }
}

.contact-info.visible h4 {
  opacity: 1;
  transform: translateY(0);
}

.contact-info h4:nth-child(1) {
  animation-delay: 0.1s;
}

.contact-info h4:nth-child(2) {
  animation-delay: 0.3s;
}

.contact-info h4:nth-child(3) {
  animation-delay: 0.5s;
}

.contact-info h4 {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.contact-info.visible h4:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

.contact-info.visible h4:nth-child(2) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}

.contact-info.visible h4:nth-child(3) {
  transition-delay: 0.5s;
  opacity: 1;
  transform: translateY(0);
}

.thank-you-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.thank-you-popup.visible {
  opacity: 1;
  visibility: visible;
}

.thank-you-popup.hidden {
  opacity: 0;
  visibility: hidden;
}

.popup-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 33.33%;
  transform: translateY(1rem);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.thank-you-popup.visible .popup-content {
  transform: translateY(0);
  opacity: 1;
}

.thank-you-popup.hidden .popup-content {
  transform: translateY(1rem);
  opacity: 0;
}

.popup-content h3 {
  margin-bottom: 1.5rem;
}

.popup-content p {
  margin-bottom: 3rem;
  line-height: 1.5;
}

.popup-content .cta-button {
  width: auto;
  padding: 1rem 2.5rem;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .popup-content {
    max-width: calc(100% - 2rem);
    margin: 1rem;
  }
}

/* FORCE FOOTER FONT - OVERRIDE ANY GOOGLE FONTS CACHE */
.footer-link, 
.footer-link:not(.no-font),
footer .footer-link,
footer a.footer-link {
  font-family: 'IntervogueSoft', Arial, sans-serif !important;
}

/* Category Filter Tabs */
.category-filter-container {
  width: 100%;
  margin: 2rem 0;
  padding: 0 var(--grid-margin);
}

.category-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0;
}

.category-tab {
  background-color: #ffefd3;
  height: 46px;
  width: auto;
  min-width: 62px;
  border-radius: 8px;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  border: none;
  cursor: pointer;
  font-family: 'Henrietta', serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--color-dark);
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.category-tab:hover {
  background-color: #f4e9d4;
  text-decoration: underline;
}

.category-tab.active {
  background-color: #ffffff;
  height: 46px;
  width: auto;
  min-width: 62px;
  border-radius: 8px;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
}

.category-tab:focus {
  outline: none;
}

@media (max-width: 1024px) {
  .category-filter-container {
    margin: 1.5rem 0;
    padding: 0 var(--grid-margin);
  }
  
  .category-tabs {
    gap: 0.75rem;
  }
  
  .category-tab {
    font-size: 0.8rem;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 42px;
    font-family: 'Henrietta', serif;
  }
  
  .category-tab.active {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .category-filter-container {
    margin: 0 0 1rem 0;
    padding: 0;
    position: relative;
  }
  
  .category-tabs {
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  
  /* Gradient fade effect for edges */
  .category-filter-container::before,
  .category-filter-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
  }
  
  .category-filter-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(254, 249, 231, 0.8), transparent);
  }
  
  .category-filter-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(254, 249, 231, 0.8), transparent);
  }
  
  .category-tab {
    font-size: 0.75rem;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    height: 38px;
    min-width: 50px;
    font-family: 'Henrietta', serif;
    flex-shrink: 0;
  }
  
  .category-tab.active {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    height: 38px;
    min-width: 50px;
    flex-shrink: 0;
  }
}

/* Product Grid Animation */
.product-grid {
  transition: opacity 0.3s ease-in-out;
}

.product-grid.filtering {
  opacity: 0.3;
}

.grid-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.grid-item.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

.grid-item.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* ===== CATEGORY NAVIGATION ===== */
/* Category navigation links styles */
.category-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 3rem;
}

.category-nav-link {
  display: flex;
  align-items: center;
  color: var(--color-cream);
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
  font-family: "IntervogueSoft", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  text-transform: capitalize;
}

.category-nav-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Mobile category links */
.mobile-category-links {
  display: none;
}

/* Mobile styles for category navigation */
@media (max-width: 1024px) {
  .category-nav-links {
    display: none;
  }

  .mobile-category-links {
    display: block;
    width: 100%;
    border-bottom: 2px solid rgba(88, 27, 3, 0.2);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .mobile-category-links .nav-link {
    font-weight: 600;
    color: #581b03;
  }
}

/* SEO Section Styles */
.seo-section {
  background-color: #FEF9E7;
  padding: 4rem 0;
}

.seo-section .portfolio-text h3 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.seo-section .portfolio-text h3.visible {
  opacity: 1;
  transform: translateY(0);
}

.seo-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.seo-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.seo-text p {
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-dark);
  margin: 0;
}

.seo-text.faq-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.seo-text.faq-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Section Styles */
.faq-section {
  background-color: #FEF9E7;
  padding: 4rem 0;
}

.faq-title {
  font-family: 'Henrietta', serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 3rem;
  color: var(--color-dark);
  margin-bottom: 2rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.faq-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.faq-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-question {
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
  margin-top: 0;
}

.faq-answer {
  font-family: 'IntervogueSoft', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-dark);
  margin: 0;
}

.faq-spacer {
  height: 1rem;
  margin: 1rem 0;
  border-bottom: 1px solid rgba(88, 27, 3, 0.1);
}

@media (max-width: 768px) {
  .seo-section .portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1rem;
  }

  .seo-section .content-section {
    order: 1;
  }

  .seo-section .illustration-section {
    order: 2;
  }

  .faq-section {
    padding: 2rem 0;
  }
  
  .faq-title {
    font-size: 2rem;
    line-height: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .faq-question {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }
  
  .faq-answer {
    font-size: 0.95rem;
    line-height: 1.4rem;
  }
}

/* ── Mobile scroll fixes ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hero: wyłącz position: fixed na mobile – zapobiega blokowaniu
     dotyku przez przeglądarkę iOS/Android */
  .hero {
    position: relative;
    min-height: 100svh;
  }

  /* Main: usuń margines, który kompensował fixed hero */
  main {
    margin-top: 0;
  }

  /* Parallax: wyłącz pełnoekranowy overflow hidden – blokuje scroll */
  .parallax-section {
    height: auto;
    min-height: 50vw;
    overflow: visible;
  }

  .parallax-container {
    overflow: visible;
  }

  /* Category tabs: iOS tworzy izolowany kontekst scrolla dla
     overflow-x: auto z -webkit-overflow-scrolling: touch.
     Wyłącz legacy właściwość i wskaż przeglądarcę kierunek scrolla. */
  .category-tabs {
    -webkit-overflow-scrolling: auto;
    overscroll-behavior-x: contain;
  }

  .category-filter-container {
    touch-action: pan-y;
  }

  /* Cards carousel: cards-row ma width: 300vw wewnątrz overflow: hidden —
     iOS wykrywa poziomy overflow i przejmuje gesty pionowe.
     touch-action: pan-y mówi przeglądarce żeby obsługiwała tylko
     pionowy scroll natywnie; poziomy ruch obsługuje JS. */
  .custom-section,
  .custom-section .grid-container {
    touch-action: pan-y;
    overflow: hidden;
  }

  /* Clients track: overflow: hidden z poziomymi elementami */
  .clients-carousel,
  .clients-track {
    touch-action: pan-y;
  }

  /* Wideo dekoracyjne: pointer-events: none zapobiega przechwytywaniu
     dotknięć przez <video> na iOS Safari */
  .section-illustration {
    pointer-events: none;
  }
}
