/* ===== ROYSOL - Custom Styles ===== */

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

/* Selection */
::selection {
  background: #82c344;
  color: #284d00;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Glass nav */
.glass-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Hero image gradient overlay */
.hero-overlay {
  background: linear-gradient(to right, #fcf9f8 0%, rgba(252,249,248,0.6) 40%, transparent 100%);
}

/* Asymmetric grid for case studies */
.asymmetric-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .asymmetric-grid {
    grid-template-columns: 1fr;
  }
}

/* Process timeline connector */
.process-connector {
  position: relative;
}
.process-connector::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: -2rem;
  width: 4rem;
  height: 2px;
  background: linear-gradient(to right, #82c344, #c1c9b4);
}
@media (max-width: 768px) {
  .process-connector::after {
    display: none;
  }
}

/* FAQ details marker removal */
details summary::-webkit-details-marker,
details summary::marker {
  display: none;
  content: '';
}
details summary {
  list-style: none;
}

/* FAQ open animation */
details[open] summary .faq-icon {
  transform: rotate(180deg);
}
.faq-icon {
  transition: transform 0.3s ease;
}

/* Hover card lift */
.card-lift {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* CTA glow pulse */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(130,195,68,0.4); }
  50% { box-shadow: 0 0 20px 8px rgba(130,195,68,0.15); }
}
.glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Realization card overlay */
.realization-card .realization-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 40%, transparent 100%);
}

.realization-slideshow {
  position: relative;
  isolation: isolate;
  background: #eae7e7;
}

.realization-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s ease, transform 6s ease;
}

.realization-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.door-card {
  border: 1px solid rgba(35, 31, 32, 0.06);
  border-radius: 12px;
}

.door-thumb {
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: #ffffff;
  cursor: pointer;
}

.door-thumb:hover {
  transform: none;
  box-shadow: none;
}

.door-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.catalog-card {
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 20px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(35, 31, 32, 0.04);
}

.catalog-variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.catalog-variant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.catalog-variant-thumb {
  display: block;
  width: 100%;
  background: #ffffff;
  cursor: pointer;
}

.catalog-variant-thumb img {
  width: 100%;
  height: 210px;
  object-fit: contain;
}

.catalog-variant-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #424939;
}

.catalog-price {
  font-size: 1rem;
  line-height: 1.6;
  color: #231f20;
}

.catalog-price strong {
  font-weight: 800;
}

.catalog-price .price-value {
  color: #82c344;
  font-weight: 800;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.swatch-card {
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 20px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(35, 31, 32, 0.04);
}

.swatch-thumb {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f6f3f2;
  cursor: pointer;
}

.swatch-thumb img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.swatch-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #231f20;
}

.swatch-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 4px;
  background: #82c344;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(35, 31, 32, 0.12);
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.photo-card {
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 20px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(35, 31, 32, 0.04);
}

.photo-card-link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #f6f3f2;
  cursor: pointer;
}

.photo-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.photo-card-title {
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 700;
  color: #231f20;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-nav:hover {
  background: rgba(130, 195, 68, 0.92);
}

.gallery-lightbox-prev {
  left: max(16px, calc(50% - 420px));
}

.gallery-lightbox-next {
  right: max(16px, calc(50% - 420px));
}

@media (max-width: 640px) {
  .catalog-card {
    padding: 18px;
  }

  .catalog-variant-thumb img {
    height: 180px;
  }

  .swatch-thumb img {
    height: 220px;
  }

  .gallery-lightbox-nav {
    width: 46px;
    height: 46px;
  }

  .gallery-lightbox-prev {
    left: 12px;
  }

  .gallery-lightbox-next {
    right: 12px;
  }
}

/* Process step number ring - clean style, no animation */

/* Mobile hamburger (hidden by default, shown on mobile) */
.mobile-menu {
  display: none;
}
@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }
  .desktop-nav {
    display: none;
  }
}

/* Mobile menu panel */
.mobile-menu-panel {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu-panel.open {
  transform: translateX(0);
}

/* Decorative blob */
.blob-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.05;
  pointer-events: none;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
  outline: none;
}

.form-muted-placeholder::placeholder {
  opacity: 0.33;
}

@media (min-width: 768px) {
  .hero-intro-copy {
    font-size: 1.2rem;
    line-height: 1.7rem;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f6f3f2;
}
::-webkit-scrollbar-thumb {
  background: #c1c9b4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #727a67;
}
