:root {
  --cream: #fbf7f2;
  --paper: #fffdf9;
  --brown: #663826;
  --brown-soft: #8f5f4a;
  --blush: #dfb4a9;
  --sand: #dfc3a3;
  --line: rgba(102, 56, 38, 0.13);
  --shadow: 0 14px 40px rgba(104, 65, 48, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--brown);
  background:
    radial-gradient(circle at 12% 7%, rgba(223, 180, 169, 0.22), transparent 25rem),
    linear-gradient(180deg, #f8efe7 0, var(--cream) 38rem);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

main { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

a { color: inherit; }

.site-header {
  width: min(100% - 2rem, 43rem);
  margin-inline: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark img {
  display: block;
  width: 4.15rem;
  height: 4.15rem;
  object-fit: contain;
}

.language-toggle {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  background: rgba(255, 253, 249, 0.72);
  font: 600 0.78rem/1 Arial, sans-serif;
  cursor: pointer;
}

.language-toggle span:first-child { font-size: 1rem; }
.language-icon {
  width: 1rem;
  height: 1rem;
  display: inline-grid;
  place-items: center;
  color: #8b604d;
}
.language-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  width: min(100% - 2rem, 38rem);
  margin-inline: auto;
  padding: 1.25rem 0 3.25rem;
  text-align: center;
  animation: fade-up 700ms cubic-bezier(.2,.7,.2,1) both;
}

.hero::before {
  content: "";
  display: block;
  width: 9.25rem;
  height: 9.25rem;
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  background: url("assets/min-so-logo.png") center / contain no-repeat;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brown-soft);
  font: 700 0.72rem/1.4 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 10vw, 4.15rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-statement {
  font-size: clamp(2.1rem, 9vw, 3.65rem);
}

.hero-copy {
  max-width: 29rem;
  margin: 1rem auto 1.75rem;
  color: var(--brown-soft);
  font: 400 1rem/1.7 Arial, sans-serif;
}

.social-links {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.social-card {
  min-height: 5rem;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: 2.9rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  border: 1px solid rgba(102, 56, 38, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 7px 22px rgba(104, 65, 48, 0.06);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.whatsapp-link {
  min-height: 4.45rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: 2.9rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  border-radius: 1.25rem;
  color: #fffaf5;
  background: #7a4a36;
  box-shadow: 0 11px 26px rgba(102, 56, 38, 0.18);
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-link:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(102, 56, 38, 0.23); }
.whatsapp-link:active { transform: scale(0.99); }
.whatsapp-link > span:nth-child(2) { display: grid; gap: 0.25rem; }
.whatsapp-link strong { font-size: 1.05rem; }
.whatsapp-link small { color: rgba(255, 250, 245, 0.72); font: 400 0.74rem/1.2 Arial, sans-serif; }
.whatsapp-link .arrow { color: #fffaf5; }

.whatsapp-icon {
  width: 2.9rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0.95rem;
  color: var(--brown);
  background: #f4e4da;
}

.whatsapp-icon svg { width: 1.55rem; fill: currentColor; }

.section-shell {
  width: min(100% - 2rem, 60rem);
  margin-inline: auto;
  padding: 4.25rem 0;
}

.section-heading { margin-bottom: 1.75rem; }
.section-heading.centered { text-align: center; }
.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--brown-soft);
  font: 700 0.69rem/1.3 Arial, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h2 {
  max-width: 31rem;
  margin: 0;
  font-size: clamp(1.85rem, 7.5vw, 3.35rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.centered h2 { margin-inline: auto; }

.about {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.about::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -5rem;
  top: 1rem;
  width: 12rem;
  height: 12rem;
  border: 1px dashed rgba(143, 95, 74, 0.2);
  border-radius: 50%;
}

.about-copy {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 253, 249, 0.64);
  box-shadow: 0 10px 35px rgba(104, 65, 48, 0.05);
}

.about-copy p { margin: 0; color: var(--brown-soft); font-size: 1.03rem; line-height: 1.8; }

.categories { padding-top: 3rem; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.category-card {
  min-width: 0;
  padding: 1.15rem 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 253, 249, 0.7);
  text-align: center;
  transition: transform 180ms ease, background-color 180ms ease;
}
.category-card:nth-child(2) { background: rgba(245, 228, 218, 0.64); }
.category-card:nth-child(3) { background: rgba(233, 215, 196, 0.55); }
.category-card:hover { transform: translateY(-3px) rotate(-0.5deg); background: var(--paper); }
.category-art { width: 4rem; height: 4rem; margin: auto; display: grid; place-items: center; color: var(--brown-soft); }
.category-art svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.category-card h3 { margin: 0.6rem 0 0; font-size: 0.94rem; font-weight: 600; }

.gallery { padding-top: 3rem; }
.gallery-carousel {
  position: relative;
  min-width: 0;
  padding-bottom: 1.5rem;
}
.gallery-viewport {
  direction: ltr;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-track {
  display: flex;
  gap: 0.85rem;
}
.gallery-item {
  flex: 0 0 86%;
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #eadfd5;
  box-shadow: 0 10px 30px rgba(104, 65, 48, 0.09);
  opacity: 0.72;
  scroll-snap-align: start;
  transform: scale(0.985);
  transform-origin: center;
  transition: opacity 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}
.gallery-item.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 14px 34px rgba(104, 65, 48, 0.15);
}
.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}
.gallery-item:hover img { transform: scale(1.015); }
.gallery-control {
  position: absolute;
  z-index: 2;
  top: calc(50% - 1.75rem);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(102, 56, 38, 0.13);
  border-radius: 50%;
  color: var(--brown);
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 8px 22px rgba(104, 65, 48, 0.14);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}
.gallery-control:hover { transform: scale(1.05); background: var(--paper); }
.gallery-control span { font: 400 2rem/0.8 Arial, sans-serif; transform: translateY(-0.06em); }
.gallery-previous { left: 0.55rem; }
.gallery-next { right: 0.55rem; }
.gallery-pagination {
  min-height: 0.75rem;
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.42rem;
  direction: ltr;
}
.gallery-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(102, 56, 38, 0.24);
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}
.gallery-dot.is-active { width: 1.25rem; background: var(--brown-soft); }

body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 4.75rem 0.75rem 1.25rem;
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr) 2.9rem;
  align-items: center;
  gap: 0.35rem;
  color: #fffaf5;
  background: rgba(30, 19, 15, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 180ms ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-stage {
  grid-column: 2;
  min-width: 0;
  margin: 0;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 0.75rem;
}
.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  border-radius: 1rem;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  transition: opacity 150ms ease;
}
.lightbox-stage img.is-changing { opacity: 0.35; }
.lightbox-stage figcaption {
  min-width: 3.75rem;
  color: rgba(255, 250, 245, 0.78);
  font: 500 0.78rem/1 Arial, sans-serif;
  text-align: center;
  direction: ltr;
}
.lightbox-close,
.lightbox-control {
  border: 1px solid rgba(255, 250, 245, 0.2);
  color: #fffaf5;
  background: rgba(255, 250, 245, 0.1);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}
.lightbox-close:hover,
.lightbox-control:hover { transform: scale(1.05); background: rgba(255, 250, 245, 0.18); }
.lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.lightbox-close span { font: 300 2rem/1 Arial, sans-serif; }
.lightbox-control {
  width: 2.9rem;
  height: 3.5rem;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
}
.lightbox-control span { font: 300 2.4rem/0.8 Arial, sans-serif; transform: translateY(-0.06em); }
.lightbox-previous { grid-column: 1; }
.lightbox-next { grid-column: 3; }

.site-footer {
  width: min(100% - 2rem, 60rem);
  margin: 0 auto;
  padding: 2.25rem 0 2.75rem;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer img { width: 3.6rem; height: 3.6rem; object-fit: contain; }
.site-footer p { margin: 0.15rem 0 0; font-weight: 600; }
.site-footer a { color: var(--brown-soft); font: 500 0.79rem/1.2 Arial, sans-serif; text-decoration: none; }
.site-footer small { margin-top: 0.6rem; color: var(--brown-soft); font: 400 0.74rem/1.2 Arial, sans-serif; }
.site-footer .fb-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 12px;
  border-radius: 50%;
  vertical-align: middle;
  background: #a9725b;
  animation: fb-dot 2.5s ease-in-out infinite;
}
.footer-credit {
  display: inline-flex;
  gap: 0.2rem;
  align-items: baseline;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.site-footer .powered-by-label {
  color: rgba(107, 68, 51, 0.72);
  font-size: 0.68rem;
  font-weight: 400;
  white-space: nowrap;
}
.site-footer .fb-link {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  font-family: Space Grotesk, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none !important;
  direction: ltr;
  unicode-bidi: isolate;

  /* Warm-brown animated gradient */
  color: #8f5f4a;
  background: linear-gradient(
    90deg,
    #8f5f4a,
    #b88670,
    #d2a28c,
    #8f5f4a
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% auto;
  animation: fb-gold 5s ease-in-out infinite;
  transition: filter 0.3s ease;
}

/* Hover: slightly darker / stronger */
.site-footer .fb-link:hover {
  filter: brightness(0.72);
}

/* Underline: hidden until hover, expands from center */
.site-footer .fb-link::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:0%;
  height:1px;
  transform:translateX(-50%);
  background:linear-gradient(
    90deg,
    transparent,
    #8f5f4a,
    #b88670,
    #d2a28c,
    #8f5f4a,
    transparent
  );
  transition:width .5s ease-in-out;
}

.site-footer .fb-link:hover::after{
  width:100%;
}

@keyframes fb-gold {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fb-dot {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.8); opacity: 1; }
}

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 1.2rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: #6b4433;
  background: var(--brown);
  box-shadow: var(--shadow);
  font: 500 0.78rem/1.3 Arial, sans-serif;
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

html[dir="rtl"] body,
html[dir="rtl"] body :where(p, h1, h2, h3, a, button, span, strong, small) {
  font-family: "Cairo", Arial, sans-serif;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2 {
  letter-spacing: 0;
  line-height: 1.35;
  text-wrap: balance;
}
html[dir="rtl"] .hero-statement {
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1.28;
}
html[dir="rtl"] h2 { font-size: clamp(1.65rem, 6vw, 2.7rem); }
html[dir="rtl"] #about-title { font-size: clamp(1.6rem, 5.7vw, 2.55rem); }
html[dir="rtl"] #categories-title { font-size: clamp(1.55rem, 5.5vw, 2.45rem); }
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .section-kicker {
  letter-spacing: 0;
  line-height: 1.7;
}
html[dir="rtl"] .hero-copy { line-height: 1.9; }
html[dir="rtl"] .about-copy p { line-height: 2; }
html[dir="rtl"] .social-card, html[dir="rtl"] .whatsapp-link { text-align: right; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

.social-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(102, 56, 38, 0.2); }
.social-card:active { transform: translateY(0) scale(0.99); }

.social-icon {
  width: 2.9rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0.95rem;
  color: var(--brown);
  background: #f3ddd7;
}

.facebook .social-icon { background: #ead9cc; }
.social-icon svg { width: 1.35rem; height: 1.35rem; fill: currentColor; stroke: currentColor; stroke-width: 1.8; }
.instagram .social-icon svg { fill: none; }
.instagram .social-icon .fill { fill: currentColor; stroke: none; }

.social-copy { display: grid; gap: 0.25rem; }
.social-copy strong { font-size: 1.05rem; font-weight: 600; }
.social-copy :where(small, .social-handle) { color: var(--brown-soft); font: 400 0.78rem/1 Arial, sans-serif; }
.social-handle {
  direction: ltr;
  unicode-bidi: isolate-override;
  display: inline-block;
  justify-self: start;
  font-family: Arial, sans-serif;
  text-align: left;
  white-space: nowrap;
}
html[dir="rtl"] .social-handle { justify-self: end; }
.footer-instagram { direction: ltr; unicode-bidi: isolate; }
.arrow { color: var(--brown-soft); font: 400 1.2rem/1 Arial, sans-serif; }

:focus-visible { outline: 3px solid rgba(143, 95, 74, 0.38); outline-offset: 3px; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 42rem) {
  .site-header { padding-top: 1.5rem; }
  .hero { padding-top: 0.75rem; }
  .hero::before { width: 11rem; height: 11rem; }
  .social-links { grid-template-columns: 1fr 1fr; }
  .whatsapp-link { width: calc(50% - 0.375rem); margin-inline: auto; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-item { flex-basis: calc(50% - 0.425rem); }
}

@media (min-width: 52rem) {
  .about { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: center; }
  .section-shell { padding-block: 5.75rem; }
  .gallery { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 3.5rem; align-items: center; }
  .gallery .section-heading { margin-bottom: 0; }
  .gallery-carousel { grid-column: 2; width: 100%; }
}

@media (max-width: 480px) {
  .site-footer small { white-space: nowrap; }
  .site-footer .fb-dot { margin: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
