/* =========================================
   ME Components
   Sections, panels, grids, cards, callouts, lists, FAQ, trust
   No homepage only rules
   No authority kits
   ========================================= */

/* =========================================
   Sections
   ========================================= */

.me-hero{
  padding:72px 0 34px;
}

@media (max-width:768px){
  .me-hero{
    padding-top:44px;
  }
}

.me-section{
  padding:72px 0;
}

.me-section--alt{
  background:var(--me-surface);
}

/* Anchor offset helper */
.me-section h2{
  scroll-margin-top:100px;
}

/* =========================================
   Panel
   ========================================= */

.me-panel{
  background:var(--me-surface);
  border:1px solid var(--me-border-soft);
  border-radius:var(--me-radius);
  padding:18px;
}

@media (max-width:720px){
  .me-panel{
    padding:14px;
  }
}

/* =========================================
   Grids
   ========================================= */

.me-grid{
  display:grid;
  gap:18px;
  margin-top:18px;
}

.me-grid--2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
.me-grid--3{ grid-template-columns:repeat(3, minmax(0,1fr)); }
.me-grid--4{ grid-template-columns:repeat(4, minmax(0,1fr)); }

@media (max-width:980px){
  .me-grid--4{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .me-grid--3{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

@media (max-width:640px){
  .me-grid--2,
  .me-grid--3,
  .me-grid--4{
    grid-template-columns:1fr;
  }
}

/* =========================================
   Cards
   ========================================= */

.me-card{
  background:var(--me-bg);
  border:1px solid var(--me-border);
  border-radius:var(--me-radius);
  padding:18px;
  box-shadow:var(--me-shadow-soft);
}

.me-card--flat{
  box-shadow:none;
}

.me-card--soft{
  background:rgba(250,249,247,0.72);
  border-color:var(--me-border);
  box-shadow:none;
}

.me-card p{
  margin:0;
  color:var(--me-text);
  line-height:1.65;
}

.me-card p + p{
  margin-top:10px;
}

/* Card links: consistent and restrained */
.me-card a{
  color:var(--me-cta);
  font-weight:650;
  text-decoration:none;
}

@media (min-width:769px){
  .me-card a:hover{
    text-decoration:underline;
  }
}

@media (max-width:768px){
  .me-card a::after{
    content:" →";
    font-size:0.95em;
  }
}

/* =========================================
   Callouts
   ========================================= */

.me-callout{
  margin-top:18px;
  padding:16px;
  background:rgba(241,236,230,0.55);
  border:1px solid var(--me-border);
  border-radius:var(--me-radius);
}

.me-callout p{
  margin:0;
  color:var(--me-text);
  line-height:1.65;
}

.me-callout p + p{
  margin-top:10px;
}

/* =========================================
   Lists
   ========================================= */

.me-list{
  margin:12px 0 0;
  padding-left:18px;
}

.me-list li{
  margin:6px 0;
  line-height:1.6;
  color:var(--me-text);
}

/* =========================================
   FAQ component using details
   ========================================= */

.me-faq{
  margin-top:14px;
  display:grid;
  gap:10px;
}

.me-faq-item{
  border:1px solid var(--me-border);
  border-radius:var(--me-radius);
  background:var(--me-bg);
  box-shadow:var(--me-shadow-soft);
  overflow:hidden;
}

.me-faq-item summary{
  cursor:pointer;
  padding:14px 48px 14px 16px;
  list-style:none;
  color:var(--me-ink);
  font-weight:650;
  position:relative;
}

.me-faq-item summary::-webkit-details-marker{
  display:none;
}

.me-faq-item summary::after{
  content:"+";
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid var(--me-border);
  color:var(--me-ink);
  font-size:16px;
  font-weight:700;
  line-height:1;
}

.me-faq-item[open] summary::after{
  content:"–";
}

.me-faq-body{
  padding:0 16px 14px;
  color:var(--me-text);
}

.me-faq-body p{
  margin:10px 0 0;
  line-height:1.65;
}

/* =========================================
   Next step box
   ========================================= */

.me-next-step{
  background:var(--me-surface);
  border:1px solid var(--me-border);
  border-radius:var(--me-radius);
  padding:22px 20px;
}

.me-next-step h2{
  margin-top:0;
}

.me-next-step .me-cta-row{
  margin-top:16px;
}

/* =========================================
   Trust module
   ========================================= */

.me-trust-row{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:22px;
  align-items:start;
  margin-top:18px;
}

@media (max-width:820px){
  .me-trust-row{
    grid-template-columns:1fr;
  }
}

.me-trust-photo{
  position:relative;
  max-width:280px;
  border-radius:var(--me-radius);
  overflow:hidden;
  background:var(--me-surface);
  border:1px solid var(--me-border);
  box-shadow:var(--me-shadow-soft);
}

.me-trust-photo img{
  display:block;
  width:100%;
  height:auto;
}

.me-trust-photo::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:54px;
  height:40px;
  background:linear-gradient(to bottom, rgba(241,236,230,0), rgba(241,236,230,1));
  pointer-events:none;
}

.me-trust-badge{
  padding:14px;
  background:rgba(255,255,255,0.90);
  border-top:1px solid var(--me-border);
  display:flex;
  align-items:center;
  justify-content:center;
}

.me-trust-badge img{
  height:30px;
  width:auto;
  max-width:100%;
  display:block;
  image-rendering:-webkit-optimize-contrast;
  transform:translateZ(0);
}

.me-trust-identity{
  margin:0 0 14px;
}

.me-trust-name{
  margin:0 0 4px;
  font-size:20px;
  line-height:1.2;
  color:var(--me-ink);
}

.me-trust-meta{
  margin:0 0 4px;
  font-size:14px;
  color:var(--me-muted);
}

.me-trust-credential{
  margin:0 0 4px;
  font-size:14px;
  font-weight:650;
  color:var(--me-text);
}

.me-trust-experience{
  margin:0;
  font-size:13px;
  color:var(--me-muted);
}

/* =========================================
   Optional hero modifier
   Keep generic and do not target authority wrappers
   ========================================= */

.me-hero--compact .me-h1{
  font-size:clamp(30px, 3.6vw, 44px);
  max-width:20ch;
}
