/* Studio refinement — buttercream piping, satin ribbons and quiet movement. */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --soft-shadow: 0 18px 50px #3b211f0c;
}

/* A slim reading line doubles as a quiet cherry accent in the navigation. */
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 110;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cherry);
  transform: scaleX(0);
  transform-origin: right;
}
[dir=ltr] .reading-progress span { transform-origin: left; }
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled {
  background: #fffbf4f5;
  box-shadow: 0 8px 30px #3b211f08;
}
.main-nav > a[aria-current=location] { color: var(--cherry); }
.main-nav > a[aria-current=location]::after { width: 100%; }
.main-nav > a { white-space: nowrap; }
.nav-actions { gap: 18px; }
.language-button { min-height: 44px; }
.motion-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.motion-button[hidden] { display: none; }
.motion-button .icon { width: 17px; height: 17px; flex-basis: 17px; }
.motion-button span { font-size: 9px; }
.motion-button:hover { color: var(--cherry); background: #b8344b09; }
.motion-button.is-paused { color: var(--cherry); }
.motion-button:disabled { opacity: .65; cursor: default; }

/* Photo frames stay clear of the original images: no tint, filter or zoom crop. */
.hero { isolation: isolate; }
.hero::before {
  content: '';
  position: absolute;
  width: 58%;
  height: 78%;
  inset-inline-end: -3%;
  inset-block-start: 4%;
  background: radial-gradient(ellipse, #f1e8da80, transparent 69%);
  z-index: -2;
  pointer-events: none;
}
.hero-description { font-size: 15px; line-height: 2.05; }
.hero-main-photo { box-shadow: var(--soft-shadow); }
.hero-outline {
  border-color: #98a67f;
  border-radius: 210px 210px 5px 5px;
}
.hero-outline::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid #b8c7a04d;
  border-radius: inherit;
}
.hero-small-photo { box-shadow: 0 18px 40px #3b211f20; }
.hero-bow {
  position: absolute;
  width: 133px;
  height: 85px;
  right: -36px;
  top: -15px;
  color: var(--cherry);
  transform: rotate(16deg);
  z-index: 2;
  pointer-events: none;
}
.hero-badge {
  background: transparent;
  box-shadow: none;
  width: 118px;
  height: 118px;
  top: 6px;
  left: -4px;
  isolation: isolate;
}
.hero-badge .badge-seal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--pistachio);
  z-index: -1;
}
.hero-note { font-size: 11px; }
.hero-bottom { padding-block: 23px; }

/* The ribbon echoes a piped edge; the words themselves remain still. */
.occasion-ribbon { position: relative; margin-block: 7px; }
.occasion-ribbon::before,
.occasion-ribbon::after {
  content: '';
  height: 10px;
  position: absolute;
  inset-inline: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, var(--cream) 7px, transparent 7.8px) 0 0 / 22px 10px repeat-x;
}
.occasion-ribbon::before { inset-block-end: 100%; }
.occasion-ribbon::after { inset-block-start: 100%; transform: rotate(180deg); }
.ribbon-inner { padding-block: 28px; }

/* Clearer buttons, restrained hover feedback, comfortably sized tap targets. */
.button {
  border-radius: 7px;
  box-shadow: 0 5px 12px #b8344b10;
  transition: background .25s, border-color .25s, transform .35s var(--ease-out), box-shadow .35s;
}
.button .arrow, .text-link .arrow { transition: transform .35s var(--ease-out); }
@media (hover:hover) and (pointer:fine) {
  .button:hover { transform: translateY(-3px); box-shadow: 0 10px 23px #3b211f18; }
  .button:hover .arrow, .text-link:hover .arrow { transform: translate(3px, -3px); }
}
.button:active { transform: translateY(0); }
.text-link { text-underline-offset: 5px; }

/* The final studio photograph becomes an intentional feature across the grid. */
.filters { gap: 9px; margin-block-end: 15px; }
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-size: 12px;
  padding: 9px 17px;
}
.filter-count {
  font: 10px/1 DM, Arabic, sans-serif;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #3b211f08;
  opacity: .75;
}
.filter.active .filter-count { background: #fffbf421; opacity: 1; }
.gallery-status { font-size: 10px; color: var(--muted); margin-block-end: 25px; }
.gallery { gap: 48px 29px; }
.gallery-card { animation: none; }
.gallery-image {
  border-radius: 12px;
  box-shadow: 0 3px 0 #3b211f04;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.gallery-image:hover > img { opacity: 1; }
.gallery-card-caption { padding-block-start: 20px; }
.gallery-card p { font-size: 12px; line-height: 2; margin-block-start: 7px; }
.gallery-card h3 { font-size: 23px; }
.gallery-category { font-size: 10px; }
.gallery-open { width: 44px; height: 44px; }
@media (hover:hover) and (pointer:fine) {
  .gallery-image:hover { transform: translateY(-5px); box-shadow: 0 18px 38px #3b211f14; }
}
.gallery-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 65px;
  align-items: center;
  padding: 35px;
  background: var(--cream);
  border-radius: 14px;
  position: relative;
  border: 1px solid #3b211f0e;
}
.gallery-featured .gallery-image { max-width: 330px; justify-self: center; }
.gallery-featured .gallery-card-caption { padding: 15px 0; max-width: 450px; }
.gallery-featured .gallery-category { margin-block-end: 17px; }
.gallery-featured h3 { font-size: 43px; line-height: 1.45; }
.gallery-featured p { font-size: 14px; margin-block: 16px 20px; }
.featured-link { color: var(--cherry); font-size: 12px; }
.collection-bottom > p { font-size: 13px; }

/* An oversized rosette and a finer photo frame make the craft section distinct. */
.craft { padding-block: 115px; }
.craft-rosette {
  position: absolute;
  width: 300px;
  height: 300px;
  inset-inline-start: -100px;
  inset-block-start: -150px;
  color: var(--pistachio);
  opacity: .2;
  transform: rotate(12deg);
  pointer-events: none;
}
.craft-grid { position: relative; z-index: 1; }
.craft-photo::before {
  content: '';
  position: absolute;
  inset: -14px 14px 55px -14px;
  border: 1px solid #b8c7a052;
  border-radius: 190px 190px 4px 4px;
  z-index: -1;
}
.craft-description { font-size: 14px; }
.craft-details h3 { font-size: 14px; }
.craft-details p { font-size: 11px; }
.craft-photo figcaption { font-size: 11px; }
.video-note > svg { color: var(--cherry); }
.video-play { transition: box-shadow .3s; }
.video-play:focus-visible { outline-offset: 12px; }
.video-caption h3 { font-size: 14px; }
.video-frame { box-shadow: var(--soft-shadow); }
.video-caption { align-items: baseline; }
.video-caption > span { white-space: nowrap; }

/* Three steps with small drawn motifs, rather than another row of cards. */
.how { background: #f0f1e6; position: relative; }
.how h2 { font-size: clamp(45px, 4.4vw, 64px); }
.steps article { position: relative; padding-block-start: 28px; }
.step-icon {
  position: absolute;
  inset-inline-end: 4px;
  inset-block-start: 20px;
  width: 46px;
  height: 46px;
  color: #718057;
}
.steps p { font-size: 13px; }
.step-number { color: #718057; }
.order-panel { border-radius: 16px; box-shadow: var(--soft-shadow); }
.order-copy { isolation: isolate; }
.order-copy h2 { font-size: clamp(48px, 4.7vw, 68px); }
.order-copy > p:not(.eyebrow) { font-size: 14px; }
.order-bow {
  position: absolute;
  width: 175px;
  height: 110px;
  inset-inline-end: -8px;
  inset-block-end: -6px;
  color: #84966a;
  transform: rotate(-15deg);
  opacity: .8;
  z-index: -1;
  pointer-events: none;
}
.order-location { max-width: 70%; }
.order-form h3 { font-size: 20px; }
.form-intro { font-size: 12px; }
.field label { font-size: 12px; }
.field input, .field select, .field textarea {
  border-radius: 6px;
  font-size: 14px;
  min-height: 49px;
  background: #fffefb;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px #b8344b08; }
.button-form { font-size: 13px; }
.form-note { font-size: 10px; text-wrap: pretty; }
.faq-section h2 { font-size: 55px; }
.faq-intro { font-size: 13px; }
.faqs summary { font-size: 14px; padding-block: 24px; transition: color .2s; }
.faqs summary:hover, .faqs details[open] summary { color: var(--cherry); }
.faqs details p { font-size: 13px; }
.faqs details[open] p { animation: answer-in .35s var(--ease-out); }
.site-footer { position: relative; }
.footer-cherries { width: 37px; height: 37px; color: var(--cherry); margin-block-end: 14px; }
.footer-contact { font-size: 12px; }
.footer-contact > a { min-height: 28px; }
.lightbox { border-radius: 16px; }
.lightbox[open] { animation: dialog-in .35s var(--ease-out); }
.circle-button[hidden] { display: none; }
.floating-whatsapp { padding-block: 14px; }

/* Progressive enhancement: unrevealed content is readable even when JS fails. */
[data-motion=on] [data-reveal].is-revealed {
  animation: studio-reveal .85s var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}
[data-motion=on] .hero-badge[data-running=true] { animation: seal-drift 7s ease-in-out infinite; }
[data-motion=on] [data-reveal].is-revealed .line-ornament {
  animation: ribbon-draw 1.6s var(--ease-out) both;
  animation-delay: .2s;
}
[data-page-hidden=true] .hero-badge { animation-play-state: paused !important; }
[data-motion=off] { scroll-behavior: auto; }
[data-motion=off] *, [data-motion=off] *::before, [data-motion=off] *::after {
  animation: none !important;
  transition: none !important;
}
@keyframes studio-reveal {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes seal-drift {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}
@keyframes answer-in {
  from { opacity: 0; translate: 0 -5px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes dialog-in {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes ribbon-draw {
  from { stroke-dasharray: 420; stroke-dashoffset: 420; opacity: .25; }
  to { stroke-dasharray: 420; stroke-dashoffset: 0; opacity: 1; }
}

/* The English edition uses its own measure, rather than compressed Arabic spacing. */
[lang=en] .hero-description { font-size: 15px; }
[lang=en] .hero-note { font-size: 10px; }
[lang=en] .gallery-category { font-size: 9px; }
[lang=en] .gallery-card p { font-size: 13px; }
[lang=en] .gallery-featured h3 { font-size: 41px; }
[lang=en] .gallery-featured p { font-size: 14px; }
[lang=en] .order-copy h2 { font-size: clamp(47px, 4.5vw, 64px); }
[lang=en] .field input, [lang=en] .field select, [lang=en] .field textarea { font-size: 14px; }

@media (max-width:1199px) {
  .main-nav { gap: 20px; }
  .nav-shell { gap: 18px; }
  .nav-actions { gap: 12px; }
  .motion-button span { display: none; }
  .hero-description { font-size: 14px; }
  .hero-bow { width: 110px; height: 70px; right: -20px; top: -16px; }
  .hero-badge { width: 100px; height: 100px; }
  .gallery-featured { gap: 45px; }
  .craft { padding-block: 90px; }
  .order-copy h2 { font-size: 57px; }
  [lang=en] .order-copy h2 { font-size: 52px; }
}
@media (max-width:900px) {
  .nav-actions { gap: 8px; }
  .main-nav { gap: 16px; }
  .hero-description, [lang=en] .hero-description { font-size: 13px; }
  .hero-badge { width: 84px; height: 84px; left: -7px; top: 2px; }
  .hero-bow { width: 88px; height: 57px; right: -13px; top: -15px; }
  .filter { font-size: 11px; padding-inline: 13px; }
  .gallery { gap: 33px 20px; }
  .gallery-card h3 { font-size: 21px; }
  .gallery-card p, [lang=en] .gallery-card p { font-size: 11px; }
  .gallery-category, [lang=en] .gallery-category { font-size: 8px; }
  .gallery-featured { padding: 25px; gap: 32px; }
  .gallery-featured h3, [lang=en] .gallery-featured h3 { font-size: 32px; }
  .gallery-featured p, [lang=en] .gallery-featured p { font-size: 12px; }
  .craft-description { font-size: 12px; }
  .craft-details h3 { font-size: 12px; }
  .craft-details p { font-size: 10px; }
  .video-caption h3 { font-size: 11px; }
  .order-copy { padding-inline: 25px; }
  .order-copy h2 { font-size: 49px; }
  [lang=en] .order-copy h2 { font-size: 45px; }
  .order-copy > p:not(.eyebrow) { font-size: 12px; }
  .order-form { padding-inline: 25px; }
  .order-form h3 { font-size: 18px; }
  .field label { font-size: 11px; }
  .form-intro { font-size: 11px; }
  .button-form { font-size: 12px; }
  .faq-section h2 { font-size: 47px; }
  .footer-contact { font-size: 10px; }
}
@media (max-width:640px) {
  .nav-shell { gap: 12px; }
  .nav-order { display: none; }
  .motion-button { min-width: 36px; width: 36px; padding-inline: 3px; }
  .motion-button span { display: none; }
  .nav-actions { gap: 8px; }
  .language-button { padding-inline: 6px; }
  .hero { padding-block-start: 41px; gap: 30px; }
  .hero-description, [lang=en] .hero-description {
    font-size: 14px;
    max-width: 350px;
    line-height: 2;
  }
  [lang=en] .hero-description { line-height: 1.85; }
  .hero-buttons { gap: 15px; }
  .hero-buttons .button { font-size: 12px; padding-inline: 17px; }
  .hero-buttons .text-link { font-size: 12px; }
  .hero-note { font-size: 10px; }
  .hero-art { padding-block-start: 10px; margin-block-start: 12px; }
  .hero-bow { width: 90px; height: 58px; right: -1px; top: -8px; }
  .hero-badge { width: 88px; height: 88px; left: 0; top: 8px; }
  .hero-outline { inset: 23px 7px 52px 78px; }
  .hero-main-photo figcaption { font-size: 9px; }
  .hero-bottom { padding-block: 18px; }
  .ribbon-inner { padding-block: 24px; }
  .section-intro { font-size: 14px; }
  .collection h2 { font-size: clamp(44px, 13vw, 60px); }
  .filter { font-size: 10px; padding: 8px 12px; gap: 6px; }
  .filter-count { font-size: 9px; width: 18px; height: 18px; min-width: 18px; }
  .filters { gap: 7px; margin-block-end: 12px; }
  .gallery-status { font-size: 10px; margin-block-end: 23px; }
  .gallery { gap: 30px 15px; }
  .gallery-image { border-radius: 8px; }
  .gallery-open { width: 32px; height: 32px; inset-inline-end: 8px; inset-block-end: 8px; }
  .gallery-card-caption { padding-block-start: 15px; }
  .gallery-card h3 { font-size: 21px; line-height: 1.5; }
  .gallery-card p, [lang=en] .gallery-card p { font-size: 11px; line-height: 1.9; }
  .gallery-category, [lang=en] .gallery-category { font-size: 8px; }
  .gallery-featured { grid-template-columns: 1fr; gap: 0; padding: 22px; }
  .gallery-featured .gallery-image { max-width: 240px; }
  .gallery-featured .gallery-card-caption { text-align: start; padding-block: 25px 4px; }
  .gallery-featured .gallery-category { margin-block-end: 10px; }
  .gallery-featured h3, [lang=en] .gallery-featured h3 { font-size: 30px; }
  .gallery-featured p, [lang=en] .gallery-featured p { font-size: 13px; margin-block: 12px 14px; }
  .collection-bottom > p { font-size: 12px; }
  .collection-bottom .text-link { font-size: 11px; }
  .craft { padding-block: 73px; }
  .craft-rosette { width: 230px; height: 230px; inset-block-start: -135px; inset-inline-start: -45px; }
  .craft-description { font-size: 14px; }
  .craft-details { gap: 14px; }
  .craft-details h3 { font-size: 12px; }
  .craft-details p { font-size: 10px; }
  .craft-photo { margin-block-start: 10px; }
  .craft-photo::before { inset: -10px 10px 47px -10px; }
  .craft-photo figcaption { font-size: 10px; }
  .video-note > p { font-size: 12px; }
  .video-caption h3 { font-size: 11px; line-height: 1.7; }
  .steps article { grid-template-columns: 45px minmax(0, 1fr); }
  .step-icon { position: static; grid-column: 1; grid-row: 3; width: 37px; height: 37px; margin-block-start: 8px; }
  .steps article h3 { grid-column: 2; grid-row: 1; }
  .steps article p { grid-column: 2; grid-row: 2 / 4; font-size: 13px; }
  .step-number { grid-row: 1 / 3; }
  .order-panel { border-radius: 12px; }
  .order-copy { padding: 37px 25px 43px; }
  .order-copy h2 { font-size: clamp(43px, 12vw, 57px); }
  .order-copy > p:not(.eyebrow) { font-size: 14px; }
  .order-form { padding: 31px 23px; }
  .order-form h3 { font-size: 20px; }
  .form-intro { font-size: 12px; }
  .field label { font-size: 11px; }
  .field input, .field select, .field textarea,
  .field input[type=date], [lang=en] .field input,
  [lang=en] .field select, [lang=en] .field textarea { font-size: 16px; min-height: 48px; }
  .field input[type=date] { padding-inline: 5px; font-size: 16px; }
  .button-form { font-size: 13px; }
  .form-note { font-size: 11px; }
  .order-bow { width: 138px; height: 87px; }
  .faq-section h2 { font-size: 51px; }
  .faq-intro { font-size: 12px; }
  .faqs summary { font-size: 14px; padding-block: 22px; }
  .faqs details p { font-size: 13px; }
  .footer-contact { font-size: 12px; }
  .footer-message > p { font-size: 24px; }
  .footer-cherries { width: 29px; height: 29px; margin-block-end: 9px; }
  .lightbox { border-radius: 12px; }
  .lightbox-copy p { font-size: 13px; }
  .lightbox-copy .button { font-size: 12px; }
  [lang=en] .hero-note { font-size: 10px; }
  [lang=en] .order-copy h2 { font-size: 48px; }
  [lang=en] .video-caption h3 { font-size: 11px; }
}
@media (max-width:359px) {
  .hero-buttons { gap: 10px; }
  .hero-buttons .button { padding-inline: 13px; font-size: 11px; gap: 8px; }
  .hero-buttons .text-link { font-size: 10px; }
  .hero-description { font-size: 13px; }
  .filter { padding-inline: 10px; font-size: 9px; }
  .gallery-card h3 { font-size: 19px; }
  .gallery-card p { font-size: 10px; }
  .gallery-category { font-size: 7px; }
  .gallery-featured { padding: 18px; }
  .order-copy, .order-form { padding-inline: 19px; }
  .button-form { font-size: 12px; }
}
@media (max-width:400px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
