: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; }

.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-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #eadfd5;
  box-shadow: 0 10px 30px rgba(104, 65, 48, 0.09);
}
.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); }

.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; }

.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: #fffaf5;
  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 small { color: var(--brown-soft); font: 400 0.78rem/1 Arial, sans-serif; }
.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-grid { grid-template-columns: repeat(3, 1fr); }
}

@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-grid { grid-column: 2; width: 100%; }
}

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