/* ---------------------------------------------------------
   Samaia — modern portfolio gallery, socials & WhatsApp FAB
--------------------------------------------------------- */

/* ===== GALLERY ===== */
.portfolio-section .section-lead {
  color: #6b6b6b;
}

.gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 0 10px;
}

.gallery-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 22px;
  width: 100%;
  max-width: 1180px;
  perspective: 1400px;
}

.gallery-slide {
  position: relative;
  border: 0;
  padding: 0;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.6s ease, box-shadow 0.6s ease, opacity 0.5s ease;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gallery-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75));
  opacity: 0.9;
  pointer-events: none;
}

.gallery-slide-left,
.gallery-slide-right {
  transform: scale(0.86);
  filter: brightness(0.65) saturate(0.85);
  opacity: 0.75;
}
.gallery-slide-left { transform: scale(0.86) rotateY(9deg) translateX(6%); }
.gallery-slide-right { transform: scale(0.86) rotateY(-9deg) translateX(-6%); }

.gallery-slide-center {
  transform: scale(1.02);
  filter: brightness(1) saturate(1.05);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(232, 215, 140, 0.35);
  aspect-ratio: 4/5;
}
.gallery-slide-center:hover img {
  transform: scale(1.06);
}

.gallery-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
  z-index: 2;
  text-align: left;
}
.gallery-meta small {
  display: block;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: #e8d78c;
  margin-bottom: 4px;
}
.gallery-meta h6 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 500;
}

/* Arrows */
.gallery-arrow {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #1a1a1a;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  z-index: 3;
}
.gallery-arrow:hover {
  background: #111;
  color: #e8d78c;
  transform: translateY(-2px);
}

/* Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}
.gallery-dot {
  width: 30px;
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
  padding: 0;
}
.gallery-dot.is-active {
  background: #b8965a;
  width: 46px;
}

@media (max-width: 900px) {
  .gallery-track {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .gallery-slide-left,
  .gallery-slide-right { display: none; }
  .gallery-arrow { width: 48px; height: 48px; font-size: 1.1rem; }
}

/* ===== LIGHTBOX ===== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 40px;
  animation: lb-fade 0.25s ease-out;
}
@keyframes lb-fade { from { opacity: 0 } to { opacity: 1 } }

.lightbox-figure {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  margin: 0;
  animation: lb-scale 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes lb-scale {
  from { transform: scale(0.94); opacity: 0 }
  to   { transform: scale(1); opacity: 1 }
}
.lightbox-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -46px;
  text-align: center;
  color: #fff;
}
.lightbox-figure figcaption small {
  display: block;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #e8d78c;
  margin-bottom: 4px;
}
.lightbox-figure figcaption h5 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  margin: 0;
}

.lightbox-close,
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  z-index: 2010;
}
.lightbox-close {
  top: 24px;
  right: 24px;
  transform: none;
}
.lightbox-arrow-left { left: 24px; }
.lightbox-arrow-right { right: 24px; }
.lightbox-close:hover,
.lightbox-arrow:hover { background: #e8d78c; color: #111; }

@media (max-width: 600px) {
  .gallery-lightbox { padding: 16px; }
  .lightbox-close { top: 14px; right: 14px; width: 44px; height: 44px; }
  .lightbox-arrow { width: 44px; height: 44px; }
  .lightbox-arrow-left { left: 10px; }
  .lightbox-arrow-right { right: 10px; }
}

/* ===== FLOATING WHATSAPP FAB ===== */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px 14px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  box-shadow: 0 18px 40px -12px rgba(18, 140, 126, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-fab i {
  font-size: 1.5rem;
  line-height: 1;
}
.wa-fab-label {
  white-space: nowrap;
}
.wa-fab:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -12px rgba(18, 140, 126, 0.85);
}
.wa-fab-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.75 }
  100% { transform: scale(1.35); opacity: 0 }
}
@media (max-width: 600px) {
  .wa-fab { padding: 12px; }
  .wa-fab-label { display: none; }
}

/* ===== FOOTER SOCIALS (distinctive) ===== */
.samaia-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.samaia-socials .soc {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-family: "Jost", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.samaia-socials .soc i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.9rem;
  color: #fff;
  transition: background 0.35s ease, color 0.35s ease;
}
.samaia-socials .soc span {
  position: relative;
  z-index: 1;
}
.samaia-socials .soc::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.samaia-socials .soc:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.samaia-socials .soc:hover::before { opacity: 1 }
.samaia-socials .soc:hover span,
.samaia-socials .soc:hover i { color: #fff }

/* Instagram gradient */
.samaia-socials .soc-ig i {
  background: linear-gradient(135deg, #feda75, #fa7e1e 35%, #d62976 65%, #962fbf 85%, #4f5bd5);
}
.samaia-socials .soc-ig::before {
  background: linear-gradient(135deg, #feda75, #fa7e1e 35%, #d62976 65%, #962fbf 85%, #4f5bd5);
}
/* TikTok */
.samaia-socials .soc-tt i {
  background: #111;
  box-shadow: 1px 0 0 #25f4ee, -1px 0 0 #fe2c55;
}
.samaia-socials .soc-tt::before {
  background: linear-gradient(135deg, #25f4ee, #111 45%, #fe2c55);
}
/* WhatsApp */
.samaia-socials .soc-wa i {
  background: linear-gradient(135deg, #25d366, #128c7e);
}
.samaia-socials .soc-wa::before {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

/* ===== PROFESSIONAL FOOTER (overrides base .samaia-footer layout) ===== */
.samaia-footer {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(200, 162, 90, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(200, 162, 90, 0.08), transparent 60%),
    linear-gradient(180deg, #141311 0%, #0e0d0c 100%);
  color: #d9d3c8;
  padding: 80px 0 24px;
  border-top: 1px solid rgba(200, 162, 90, 0.18);
  position: relative;
  overflow: hidden;
}
.samaia-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 90, 0.6), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .samaia-footer { padding: 60px 0 24px; }
}

.footer-brand-col .footer-brand { display: inline-block; margin-bottom: 18px; }
.footer-brand-col .footer-logo {
  height: 72px;
  filter: brightness(0) invert(1);
}
.footer-about {
  font-family: "Jost", sans-serif;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #b8b1a4;
  margin-bottom: 20px;
  max-width: 340px;
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 162, 90, 0.35);
  background: rgba(200, 162, 90, 0.06);
  color: #e6d3ae;
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-badge i { color: #c8a25a; }

.footer-heading {
  font-family: "Cormorant Garamond", serif;
  color: #e6d3ae;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: linear-gradient(90deg, #c8a25a, transparent);
}
.footer-heading-sm { margin-top: 28px; font-size: 1.1rem; }

.footer-links, .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b8b1a4;
  text-decoration: none;
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-links a i {
  font-size: 0.72rem;
  color: #c8a25a;
  transition: transform 0.3s ease;
}
.footer-links a:hover {
  color: #f2e6c8;
  transform: translateX(4px);
}
.footer-links a:hover i { transform: translateX(2px); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #b8b1a4;
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-contact li i {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(200, 162, 90, 0.1);
  border: 1px solid rgba(200, 162, 90, 0.25);
  color: #c8a25a;
  font-size: 0.85rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.footer-contact li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-contact li a:hover { color: #e6d3ae; }
.footer-contact li:hover i { background: #c8a25a; color: #141311; }

.footer-bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .copy,
.footer-bottom .footer-made {
  margin: 0;
  color: #8b857a;
  font-family: "Jost", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
