/* Mahjaan — styles theme.json cannot express (block styles, paper texture, slider). */

:root {
  --mj-radius: 22px;
  --mj-shadow: 0 10px 30px rgba(61, 74, 79, .07);
  --mj-paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body { background-image: var(--mj-paper-grain); }
::selection { background: var(--wp--preset--color--rose-light); }

/* ------------------------------------------------ header */
.mj-header { position: relative; z-index: 20; }
.mj-header .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--teal); }
.mj-header .wp-block-navigation a { text-decoration: none; padding: .2rem .1rem; position: relative; }
.mj-header .wp-block-navigation .current-menu-item > a::after,
.mj-header .wp-block-navigation a:hover::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 4px; border-radius: 4px;
  background: var(--wp--preset--color--mustard); opacity: .85;
}
.mj-brand { display: flex; align-items: center; gap: .6rem; }
.mj-brand img { width: 54px; height: auto; }
.mj-brand-text { line-height: 1.3; }
.mj-brand-text .wp-block-site-title { margin: 0; }
.mj-brand-text p { margin: 0; font-size: .82rem; color: var(--wp--preset--color--muted); }

/* ------------------------------------------------ rainbow heading */
.is-style-rainbow .mj-c-teal { color: var(--wp--preset--color--teal); }
.is-style-rainbow .mj-c-rose { color: var(--wp--preset--color--rose); }
.is-style-rainbow .mj-c-mustard { color: var(--wp--preset--color--mustard); }
.is-style-rainbow .mj-c-blue { color: var(--wp--preset--color--blue); }
.is-style-rainbow .mj-c-sage { color: var(--wp--preset--color--sage); }
/* in the editor (no server rendering of the spans) show a soft gradient instead */
.editor-styles-wrapper .is-style-rainbow:not(:has(span[class^="mj-c-"])) {
  background: linear-gradient(90deg, var(--wp--preset--color--teal), var(--wp--preset--color--rose), var(--wp--preset--color--mustard), var(--wp--preset--color--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------ buttons */
.wp-block-button.is-style-outline-soft .wp-block-button__link {
  background: transparent; color: var(--wp--preset--color--teal);
  border: 2px solid var(--wp--preset--color--teal);
}
.wp-block-button.is-style-outline-soft .wp-block-button__link:hover {
  background: var(--wp--preset--color--teal); color: #fff;
}
.wp-block-button__link { transition: background-color .2s, color .2s, transform .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.mj-btn-teal .wp-block-button__link { background: var(--wp--preset--color--teal); color: #fff; }
.mj-btn-teal .wp-block-button__link:hover { background: var(--wp--preset--color--rose); }

/* ------------------------------------------------ cards */
.is-style-card {
  border-radius: var(--mj-radius); overflow: hidden; box-shadow: var(--mj-shadow);
  background-image: var(--mj-paper-grain);
  transition: transform .25s, box-shadow .25s;
}
.is-style-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(61, 74, 79, .11); }
.is-style-paper { border-radius: 28px; background-image: var(--mj-paper-grain); }

.mj-services .wp-block-column { display: flex; }
.mj-services .is-style-card { display: flex; flex-direction: column; width: 100%; }
.mj-services .is-style-card > .wp-block-buttons:last-child,
.mj-services .is-style-card > .mj-go:last-child { margin-top: auto; }
.mj-services figure { margin: 0; }
.mj-services figure img { width: 100%; height: 190px; object-fit: contain; }

.mj-go { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: #fff !important; text-decoration: none !important; font-size: 1.25rem; line-height: 1;
  transition: transform .2s; }
.mj-go:hover { transform: translateX(-4px); }
.mj-go.teal { background: var(--wp--preset--color--teal); }
.mj-go.rose { background: var(--wp--preset--color--rose); }
.mj-go.mustard { background: var(--wp--preset--color--mustard); }
.mj-go.blue { background: var(--wp--preset--color--blue); }
.mj-go.sage { background: var(--wp--preset--color--sage); }

/* ------------------------------------------------ images */
.mj-art { display: block; width: 100%; height: auto; }
.wp-block-image.is-style-blob img { border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; }

/* ------------------------------------------------ watercolor band */
.wp-block-separator.is-style-watercolor, .mj-band {
  border: 0 !important; height: 70px !important; max-width: none !important; width: 100%;
  background: url("../img/divider.svg") center / 1200px 70px repeat-x; opacity: 1;
}

/* ------------------------------------------------ testimonials */
.mj-testimonials { position: relative; }
.mj-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
.mj-track::-webkit-scrollbar { display: none; }
.mj-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; padding: .5rem 0 0; }
.mj-slide blockquote { margin: 0 0 1rem; font-size: 1.15rem; line-height: 2.1; color: var(--wp--preset--color--ink); }
.mj-slide figcaption { color: var(--wp--preset--color--muted); font-size: .92rem; }
.mj-controls { display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; }
.mj-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #c9cfcf; background: transparent;
  color: var(--wp--preset--color--ink); font-size: 1.1rem; cursor: pointer; transition: all .2s; }
.mj-arrow:hover { border-color: var(--wp--preset--color--teal); color: var(--wp--preset--color--teal); }
.mj-dots { display: flex; gap: 6px; margin-inline-start: auto; }
.mj-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--wp--preset--color--rose); opacity: .35; cursor: pointer; }
.mj-dot.is-active { opacity: 1; width: 22px; border-radius: 6px; }

/* ------------------------------------------------ articles */
.mj-articles .wp-block-post { border-radius: var(--mj-radius); background: var(--wp--preset--color--cream);
  box-shadow: var(--mj-shadow); overflow: hidden; background-image: var(--mj-paper-grain); transition: transform .25s; }
.mj-articles .wp-block-post:hover { transform: translateY(-4px); }
.mj-articles .wp-block-post-featured-image { margin: 0; aspect-ratio: 16 / 10; background: var(--wp--preset--color--sage-light); }
.mj-articles .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.mj-articles .mj-fallback-image img { object-fit: contain; padding: .5rem; }
.mj-articles .wp-block-post-title a { text-decoration: none; color: inherit; }
.mj-articles .wp-block-post-title a:hover { color: var(--wp--preset--color--teal); }

/* ------------------------------------------------ footer */
.mj-footer a { text-decoration: none; color: inherit; }
.mj-footer a:hover { color: var(--wp--preset--color--teal); }
.mj-footer .mj-col + .mj-col { border-inline-start: 1px solid rgba(61, 74, 79, .12); padding-inline-start: 2rem; }
.mj-contact { list-style: none; padding: 0; margin: 0; }
.mj-contact li { display: flex; gap: .6rem; align-items: center; margin-bottom: .55rem; }
.mj-contact li span { color: var(--wp--preset--color--teal); }
.mj-badge { background: var(--wp--preset--color--sage-light); color: var(--wp--preset--color--teal); font-weight: 700;
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; padding: 1.2rem 1.4rem; text-align: center; line-height: 1.6; transform: rotate(-6deg); display: inline-block; }

/* ------------------------------------------------ decorations */
.mj-deco { position: relative; }
.mj-float { position: absolute; pointer-events: none; opacity: .9; }

@media (max-width: 781px) {
  .mj-footer .mj-col + .mj-col { border: 0; padding-inline-start: 0; }
  .mj-hide-mobile { display: none !important; }
  .mj-services figure img { height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------ fixes */
body { overflow-x: clip; }
.wp-block-separator.is-style-watercolor.alignfull { width: 100vw; margin-inline: calc(50% - 50vw) !important; }
/* calendar icon for booking buttons (emoji renders differently on every phone) */
.mj-ico-cal .wp-block-button__link::before {
  content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-inline-end: .45em; vertical-align: -.18em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 600px) and (max-width: 1100px) {
  .mj-services > .wp-block-columns { flex-wrap: wrap !important; }
  .mj-services > .wp-block-columns > .wp-block-column { flex-basis: calc(50% - .75rem) !important; }
}
.mj-brand-name { margin: 0; }
.mj-brand-name a { color: var(--wp--preset--color--teal); text-decoration: none; }
