/* ==========================================================================
   Marra Mamba — late corrections. Loaded last of all.
   ========================================================================== */

/* --- Header nav -----------------------------------------------------------
   `flex:1 1 0` + `min-width:0` collapsed the nav widget to width:0, so the
   <li>s stacked even though the <ul> was already flex-row. Size the nav
   columns to their content instead, and let the brand take the slack.      */
.elementor.elementor .e-con.mm-header>.e-con.mm-header__nav{flex:1 1 auto;min-width:0}
.elementor.elementor .e-con.mm-header>.e-con.mm-header__brand{flex:0 1 auto}
.mm-nav{width:auto}
.elementor.elementor .e-con.mm-header__nav>.elementor-widget-navigation-menu{width:auto;max-width:none}

@media(min-width:881px){
  .mm-nav .hfe-nav-menu{
    display:flex !important;flex-direction:row !important;flex-wrap:nowrap;align-items:center;
  }
  .mm-nav .hfe-nav-menu>li.menu-item{display:block;position:relative}
  .mm-nav .hfe-nav-menu>li.menu-item>a.hfe-menu-item{white-space:nowrap}
  .mm-nav .hfe-nav-menu__toggle{display:none !important}
}

/* @media(min-width:1024px){
body .mm-nav .hfe-nav-menu__toggle{display:none !important}
} */
@media(max-width:880px){
  .mm-nav .hfe-nav-menu{flex-direction:column}
}

/* Header rhythm, matching the design's 20px / 10px-on-scroll padding. */
.elementor .e-con.mm-header{padding-top:20px;padding-bottom:20px}
body.mm-scrolled .elementor .e-con.mm-header{padding-top:10px;padding-bottom:10px}

/* --- Footer link lists: drop Elementor's default tick glyph -------------- */
.elementor-widget-icon-list.mm-footer__links .elementor-icon-list-icon,
.elementor-widget-icon-list.mm-footer__legal .elementor-icon-list-icon{display:none !important}
.elementor-widget-icon-list.mm-footer__links .elementor-icon-list-text,
.elementor-widget-icon-list.mm-footer__legal .elementor-icon-list-text{padding-left:0}

/* --- Footer watermark: a faint ghost, never Elementor blue --------------- */
.elementor-widget-heading.mm-footer__watermark .elementor-heading-title{
  color:rgba(243,237,226,.05) !important;
  font-family:'Cormorant Garamond',serif;font-weight:300;
  font-size:clamp(54px,14.5vw,250px);line-height:.85;white-space:nowrap;
}

/* --- Newsletter field needs room under the blurb ------------------------ */
.mm-footer__form{margin-top:6px}
.mm-footer__form .fluentform .ff-t-container{display:block}
.mm-footer__form .fluentform .ff_submit_btn_wrapper{margin-top:0;text-align:left}

/* --- Announcement bar now lives in the header template ------------------ */
.elementor .e-con.mm-announce{overflow:hidden;width:100%}

/* ==========================================================================
   Design-match corrections (verified against Home Page v5 section captures)
   ========================================================================== */

/* --- Miner quote ---------------------------------------------------------
   The design fills the QUOTE TEXT with the scrubbing gradient via
   background-clip:text; the section itself is a flat #F1EBE1. The class now
   sits on the heading widget, so clip the wrapper's background to its text. */
.elementor-widget-heading.mm-scrub--quote{
  -webkit-background-clip:text;background-clip:text;
}
.elementor-widget-heading.mm-scrub--quote .elementor-heading-title{
  color:transparent !important;
  font-size:clamp(32px,4.6vw,68px);line-height:1.15;letter-spacing:-.005em;
}
.elementor.elementor .e-con.mm-quote>.elementor-widget-heading.mm-quote__t{max-width:1100px}
/* Portrait: 124px disc inside a 180px field, cropped to the face. */
.mm-quote__portrait img{
  width:124px;height:124px;border-radius:50%;object-fit:cover;object-position:center 30%;
  box-shadow:0 14px 34px rgba(60,40,20,.25);background:#E3DACB;
}
.mm-quote__portrait{display:flex;align-items:center;justify-content:center;height:180px}

/* --- Shop by category ---------------------------------------------------- */
.mm-cat-row__t .elementor-heading-title{
  text-transform:uppercase;letter-spacing:.04em;
}
/* The design marks the active row with a trailing arrow. */
.elementor .e-con.mm-cat-row{position:relative}
.elementor .e-con.mm-cat-row::after{
  content:"\2192";position:absolute;right:4px;top:50%;transform:translateY(-50%);
  font-family:'Jost',sans-serif;font-size:15px;color:#1A1A1A;
  opacity:0;transition:opacity .35s cubic-bezier(.2,.7,.2,1);pointer-events:none;
}
.elementor .e-con.mm-cat-row:hover::after,
.elementor .e-con.mm-cat-row.is-active::after{opacity:1}
/* Feature card sits at the top of the column, not stretched down it. */
.elementor.elementor .e-con.mm-cats>.e-con.mm-cats__feature{align-self:flex-start}
.mm-cats__feature .elementor-widget-image img{min-height:0;aspect-ratio:7/6;max-height:430px}

/* --- Compare slider: captions top-left / bottom-right, as designed ------- */
.elementor .e-con.mm-compare{width:min(100%,940px)}
.elementor .e-con.mm-compare__cap--a{top:0;bottom:auto;left:0;right:40%;
  background:linear-gradient(180deg,rgba(20,16,12,.8),rgba(20,16,12,0))}
.elementor .e-con.mm-compare__cap--b{top:auto;bottom:0;right:0;left:55%;text-align:right;
  background:linear-gradient(0deg,rgba(20,16,12,.8),rgba(20,16,12,0))}
.mm-compare__handle{width:2px}

/* --- FAQ: tighten rows to the design's rhythm --------------------------- */
.elementor .e-con.mm-faq__q{padding-top:17px;padding-bottom:17px}
.elementor.elementor .e-con.mm-faq>.e-con.mm-faq__intro{flex:1 1 38%}
.mm-faq__sign p{width:22px;height:22px;font-size:12px}

/* Elementor sets .e-con{width:100%}, which beats the caps' left/right offsets
   and stretched both captions across the full stage. Let them size to offsets. */
.elementor .e-con.mm-compare__cap{width:auto}
/* Design opens with category 02 highlighted. */
.elementor .e-con.mm-cat-row.mm-cat-row--open{background:rgba(230,222,210,.5)}
.elementor .e-con.mm-cat-row.mm-cat-row--open::after{opacity:1}
.mm-cat-row--open .elementor-heading-title{color:#1A1A1A !important}

/* --- Portrait text ring --------------------------------------------------
   The design rings the portrait with rotating set-in-a-circle type. Built as
   an encoded SVG background on a pseudo-element so the page needs no HTML
   widget; it is decorative, so it carries aria-hidden semantics by default. */
.mm-quote__portrait{position:relative;width:180px;margin-inline:auto}
.mm-quote__portrait::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 180 180'%3E%3Cdefs%3E%3Cpath id='mmring' fill='none' d='M90,90 m-70,0 a70,70 0 1,1 140,0 a70,70 0 1,1 -140,0'/%3E%3C/defs%3E%3Ctext font-family='Jost, Helvetica, Arial, sans-serif' font-size='9' letter-spacing='5.6' fill='%238C7A62'%3E%3CtextPath xlink:href='%23mmring' startOffset='1%'%3EMINER %C2%B7 NAMMULDI RIDGE %C2%B7 PILBARA WA %C2%B7 %3C/textPath%3E%3C/text%3E%3C/svg%3E") center/contain no-repeat;
  animation:mm-spin 26s linear infinite;
}

/* --- Compare stage: design measures 1040x648 ---------------------------- */
.elementor .e-con.mm-compare{width:min(100%,1040px);aspect-ratio:1040/648}
