/**
 * Marra Shop – section system for Elementor pages (homepage and any page that uses the classes).
 *
 * One spacing scale, built on 15px:
 *   --m-s1  15px  between elements inside a group (label → title → text, buttons, card content)
 *   --m-s2  30px  between groups (header → content, cards in a grid, text → buttons)
 *   --m-s3  45px  inside panels on larger screens
 *   --m-s4  60px  between columns of a split section; section padding on phones
 *   --m-s6  90px  section padding on larger screens
 *
 * Alignment: everything starts on the left edge of the site container (same edge as the logo).
 *
 * Classes (set on Elementor elements under Advanced → Classes):
 *   ms-section  top-level section        ms-stack   text column (gap 15)
 *   ms-hero     first section            ms-actions row of buttons
 *   ms-band     text left, button right  ms-grid    cards in columns
 *   ms-split    two columns              ms-tile    one card · ms-panel adds padding
 *   ms-eyebrow · ms-title · ms-lead · ms-text · ms-small · ms-tile-title · ms-num · ms-quote · ms-media
 *   ms-btn + ms-btn--primary | ms-btn--ghost | ms-btn--light
 *   ms-section--joined  no top padding (same background as the section before)
 *   ms-section--flush   no padding (full-width component, e.g. trust bar)
 *   ms-section--dark    dark background
 *
 * Selectors start with "body .elementor" so they win over Elementor's per-element styles.
 *
 * @package marra-shop
 */

/* Sections ------------------------------------------------------------------ */
body .elementor .ms-section {
	display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--m-s2);
	min-width: 0; margin: 0;
	padding-block: var(--m-section-y);
	padding-inline: var(--m-edge);
	text-align: left;
}
body .elementor .ms-section--joined { padding-block-start: 0; }
body .elementor .ms-section--flush { gap: 0; padding: 0; }
/* Hero: same edges and gaps; on phones the photo sits below the text, so it keeps room at the bottom. */
body .elementor .ms-hero { justify-content: center; gap: var(--m-s2); text-align: left; }
@media (max-width: 767px) { body .elementor .ms-hero { justify-content: flex-start; } }
body .elementor .ms-hero .ms-stack { max-width: 34rem; }
/* Hero photo: no box behind the text – a soft ivory fade over the photo instead.
   Desktop: from the left (the photo has a calm area there). Phones: from the top, jewellery below. */
body .elementor .ms-hero { position: relative; isolation: isolate; background-repeat: no-repeat; }
body .elementor .ms-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(90deg, rgba(250, 247, 240, .92) 0%, rgba(250, 247, 240, .78) 32%, rgba(250, 247, 240, 0) 60%);
}
@media (max-width: 767px) {
	/* The photo is a wide panorama: show the jewellery group across the bottom, text above on ivory. */
	body .elementor .ms-hero { --hero-photo: 20rem; min-height: 0; padding-block-end: calc(var(--hero-photo) + var(--m-s2)); background-color: var(--m-ivory); background-size: auto var(--hero-photo); background-position: 71% 100%; }
	body .elementor .ms-hero::before {
		background: linear-gradient(180deg, var(--m-ivory) 0, var(--m-ivory) calc(100% - var(--hero-photo)), rgba(250, 247, 240, 0) calc(100% - var(--hero-photo) + 4.5rem));
	}
}
body .elementor .ms-section > .ms-stack.ms-panel { max-width: 36rem; }

/* Groups -------------------------------------------------------------------- */
body .elementor .ms-inner { display: flex; flex-direction: column; align-items: stretch; gap: var(--m-s2); width: 100%; max-width: none; min-width: 0; margin: 0; padding: 0; }
body .elementor .ms-stack { display: flex; flex-direction: column; align-items: flex-start; gap: var(--m-s1); min-width: 0; max-width: none; margin: 0; padding: 0; text-align: left; }
body .elementor .ms-actions { display: flex; flex-flow: row wrap; align-items: center; gap: var(--m-s1); margin: 0; padding: 0; }
body .elementor .ms-stack > .ms-actions:not(:first-child) { margin-top: var(--m-s1); }
/* Elementor gives containers width: 100%; groups size to their content (sections still stretch them). */
body .elementor .ms-stack, body .elementor .ms-actions, body .elementor .ms-tile { width: auto; }

body .elementor .ms-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--m-s2);
	width: 100%; min-width: 0; margin: 0; padding: 0;
}
body .elementor .ms-tile { display: flex; flex-direction: column; align-items: flex-start; gap: var(--m-s1); min-width: 0; margin: 0; padding: 0; }
body .elementor .ms-tile > .ms-actions { margin-top: auto; padding-top: var(--m-s1); }
body .elementor .ms-panel { padding: var(--m-s2); }
@media (min-width: 900px) { body .elementor .ms-panel { padding: var(--m-s3); } }

body .elementor .ms-split, body .elementor .ms-band { flex-direction: column; align-items: stretch; gap: var(--m-s2); }
body .elementor .ms-band { align-items: flex-start; }
@media (min-width: 900px) {
	body .elementor .ms-split { flex-direction: row; align-items: center; gap: var(--m-s4); }
	body .elementor .ms-split > * { flex: 1 1 0; min-width: 0; max-width: none; width: auto; }
	body .elementor .ms-band { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--m-s4); }
	body .elementor .ms-band > .ms-stack { flex: 1 1 auto; }
	body .elementor .ms-band > .ms-actions { flex: none; }
}

/* Type ---------------------------------------------------------------------- */
body .elementor .ms-eyebrow { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
body .elementor .ms-title {
	margin: 0; max-width: 24ch; font-size: clamp(2.25rem, 4.2vw, 3.4rem); line-height: 1.08;
	overflow-wrap: break-word; text-wrap: balance;
}
body .elementor .ms-title--hero { max-width: 16ch; font-size: clamp(2.75rem, 5.6vw, 4.3rem); line-height: 1.04; }
body .elementor .ms-lead { margin: 0; max-width: 40rem; font-size: 1rem; line-height: 1.7; }
body .elementor .ms-text { margin: 0; font-size: .9rem; line-height: 1.65; }
body .elementor .ms-small { margin: 0; font-size: .8rem; line-height: 1.5; }
body .elementor .ms-tile-title { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.15; }
body .elementor .ms-num { margin: 0; line-height: 1; }
body .elementor .ms-quote { margin: 0; line-height: 1.2; }
body .elementor .ms-media, body .elementor img.ms-media, body .elementor .ms-media img { display: block; width: 100%; height: auto; margin: 0; }

/* Buttons (same look as the shop's buttons) ---------------------------------- */
body .elementor .ms-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: 0 var(--m-s2);
	border: 1px solid transparent; border-radius: var(--m-radius);
	font-family: var(--m-font-body); font-size: .78rem; font-weight: 500; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
body .elementor .ms-btn--primary { background: var(--m-black); border-color: var(--m-black); color: var(--m-white); }
body .elementor .ms-btn--primary:hover, body .elementor .ms-btn--primary:focus-visible { background: var(--m-ink); border-color: var(--m-ink); color: var(--m-white); }
body .elementor .ms-btn--ghost { background: transparent; border-color: var(--m-line-strong); color: var(--m-ink); }
body .elementor .ms-btn--ghost:hover, body .elementor .ms-btn--ghost:focus-visible { background: var(--m-sand); border-color: var(--m-sand); color: var(--m-ink); }
body .elementor .ms-hero .ms-btn--ghost, body .elementor .ms-panel .ms-btn--ghost { background: var(--m-white); }
body .elementor .ms-btn--light { background: var(--m-sand); border-color: var(--m-sand); color: var(--m-ink); }
body .elementor .ms-btn--light:hover, body .elementor .ms-btn--light:focus-visible { background: var(--m-white); border-color: var(--m-white); color: var(--m-ink); }
@media (max-width: 479px) { body .elementor .ms-btn { white-space: normal; text-align: center; } }

/* Accordion (FAQ) ------------------------------------------------------------ */
body .elementor .ms-accordion { width: 100%; margin: 0; padding: 0; gap: 0; }
body .elementor .ms-accordion > details { border-bottom: 1px solid var(--m-line-strong); }
body .elementor .ms-accordion > details:first-child { border-top: 1px solid var(--m-line-strong); }
body .elementor .ms-accordion__head { padding: var(--m-s1) 0; cursor: pointer; }
body .elementor .ms-accordion__body { padding: 0 0 var(--m-s1); }

/* Components placed inside sections ------------------------------------------ */
body .elementor .ms-section .trust-bar__list { padding-inline: 0; }
body .elementor .ms-section--flush .trust-bar__list { padding-inline: var(--m-gutter); }
body .elementor .ms-section .mps-slider { margin: 0; }
