/* ==========================================================================
   Saif Al Madeena – content section components
   Works alongside the theme (styles.css). Colours come from the theme's
   utility classes (bg-primary, text-primary, bg-secondary, bg-light) where
   possible; --sam-accent mirrors the theme orange for tints and borders.
   ========================================================================== */
:root {
    --sam-accent: #d97736;
    --sam-accent-soft: rgba(217, 119, 54, 0.08);
    --sam-accent-line: rgba(217, 119, 54, 0.28);
    --sam-ink: #1d2733;
    --sam-muted: #5f6b78;
    --sam-line: #e7e9ee;
    --sam-card: #ffffff;
    --sam-radius: 10px;
}

/* ---------- section rhythm ---------- */
.sam-content > .sam-block { margin-bottom: 3.25rem; }
.sam-content > .sam-block:last-child { margin-bottom: 0; }
.sam-content p { line-height: 1.75; }
.sam-content a:not([class]) { color: var(--sam-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sam-content a:not([class]):hover { text-decoration-thickness: 2px; }

.sam-h2 { font-size: 1.85rem; line-height: 1.25; font-weight: 800; margin-bottom: 1rem; color: var(--sam-ink); }
.sam-h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 700; margin-bottom: .75rem; color: var(--sam-ink); }
.sam-lead { font-size: 1.12rem; line-height: 1.75; color: var(--sam-ink); }
.sam-tagline { font-size: 1.15rem; font-weight: 600; color: var(--sam-muted); margin-bottom: 1.25rem; }
.sam-emph { font-weight: 700; color: var(--sam-ink); }
.sam-hero-img { border-radius: var(--sam-radius); width: 100%; height: auto; display: block; margin-bottom: 2rem; }
@media (max-width: 767px) { .sam-h2 { font-size: 1.5rem; } }

/* eyebrow label – re-uses theme .section-title-01 span styling */
.sam-eyebrow { margin-bottom: .6rem; }

/* ---------- pain points (problem) ---------- */
.sam-pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.25rem 0; padding: 0; list-style: none; }
.sam-pain { display: flex; gap: 12px; align-items: flex-start; background: var(--sam-card); border: 1px solid var(--sam-line); border-radius: var(--sam-radius); padding: 16px 18px; transition: border-color .25s, box-shadow .25s; }
.sam-pain:hover { border-color: var(--sam-accent-line); box-shadow: 0 8px 24px rgba(16, 24, 40, .06); }
.sam-pain .sam-ico-sm { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sam-accent-soft); color: var(--sam-accent); font-size: 13px; margin-top: 2px; }
.sam-pain p { margin: 0; line-height: 1.6; }
@media (max-width: 575px) { .sam-pains { grid-template-columns: 1fr; } }

/* ---------- the real cost (callout) ---------- */
.sam-alert { position: relative; background: var(--sam-accent-soft); border: 1px solid var(--sam-accent-line); border-left: 5px solid var(--sam-accent); border-radius: var(--sam-radius); padding: 28px 30px 26px; }
.sam-alert .sam-alert-head { display: flex; align-items: center; gap: 14px; margin-bottom: 1rem; }
.sam-alert .sam-alert-head .sam-h2 { margin: 0; }
.sam-alert .sam-ico { flex: 0 0 48px; }
.sam-alert p:last-child { margin-bottom: 0; }
.sam-x-list { list-style: none; padding: 0; margin: 1rem 0; }
.sam-x-list li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px dashed var(--sam-accent-line); line-height: 1.6; }
.sam-x-list li:last-child { border-bottom: 0; }
.sam-x-list li::before { content: "\e646"; font-family: 'themify'; position: absolute; left: 0; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--sam-accent); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 575px) { .sam-alert { padding: 22px 18px; } }

/* ---------- icons ---------- */
.sam-ico { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }

/* ---------- service cards ---------- */
.sam-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 1.25rem 0 1.5rem; }
.sam-cards.sam-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sam-card { position: relative; background: var(--sam-card); border: 1px solid var(--sam-line); border-radius: var(--sam-radius); padding: 24px 22px 22px; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.sam-card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--sam-accent); transition: width .35s; }
.sam-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16, 24, 40, .08); border-color: transparent; }
.sam-card:hover::after { width: 100%; }
.sam-card .sam-num { display: inline-block; font-weight: 800; font-size: .95rem; letter-spacing: .5px; margin-bottom: .5rem; }
.sam-card .sam-h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.sam-card p { margin: 0; line-height: 1.65; color: var(--sam-muted); }
.sam-card.sam-card-wide { grid-column: 1 / -1; }
@media (max-width: 991px) { .sam-cards.sam-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .sam-cards, .sam-cards.sam-cards-3 { grid-template-columns: 1fr; } }

/* ---------- why choose (dark panel) ---------- */
.sam-why { border-radius: var(--sam-radius); padding: 36px 34px; color: rgba(255, 255, 255, .85); position: relative; overflow: hidden; }
.sam-why::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(217, 119, 54, .12); pointer-events: none; }
.sam-why .sam-h2 { color: #fff; position: relative; }
.sam-why p { color: rgba(255, 255, 255, .8); position: relative; }
.sam-why .section-title-01 span { color: var(--sam-accent) !important; }
.sam-checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; position: relative; }
.sam-checks li { display: flex; gap: 14px; align-items: flex-start; }
.sam-checks .sam-ico-sm { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.sam-checks strong, .sam-checks .sam-check-title { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; line-height: 1.4; }
.sam-checks span.sam-check-desc { display: block; line-height: 1.6; color: rgba(255, 255, 255, .75); }
.sam-checks a { color: #fff; }
.sam-why .sam-why-note { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 767px) { .sam-checks { grid-template-columns: 1fr; } .sam-why { padding: 28px 20px; } }

/* ---------- process timeline ---------- */
.sam-steps { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: samstep; }
.sam-step { position: relative; padding: 0 0 26px 72px; min-height: 56px; }
.sam-step::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 4px; width: 2px; background: linear-gradient(var(--sam-accent-line), var(--sam-line)); }
.sam-step:last-child { padding-bottom: 0; }
.sam-step:last-child::before { display: none; }
.sam-step .sam-step-num { position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; color: #fff; box-shadow: 0 0 0 6px var(--sam-accent-soft); }
.sam-step .sam-h3 { margin: 0 0 .3rem; padding-top: 4px; }
.sam-step p { margin: 0; color: var(--sam-muted); line-height: 1.65; }

/* ---------- inline CTA strip (inside main column) ---------- */
.sam-inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border: 1px dashed var(--sam-accent-line); border-radius: var(--sam-radius); padding: 18px 22px; background: #fff; }
.sam-inline-cta p { margin: 0; font-weight: 600; color: var(--sam-ink); }

/* ---------- FAQ ---------- */
.sam-faq-section { padding-top: 90px; padding-bottom: 90px; }
.sam-faq-aside { position: sticky; top: 120px; }
.sam-faq-aside .sam-h2 { font-size: 2.1rem; }
.sam-faq-aside .sam-help { margin-top: 1.75rem; background: #fff; border-radius: var(--sam-radius); padding: 22px; border: 1px solid var(--sam-line); }
.sam-faq-aside .sam-help .sam-help-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sam-faq-aside .sam-help .sam-help-row:last-child { margin-bottom: 0; }
.sam-faq-aside .sam-help a { color: var(--sam-ink); font-weight: 600; text-decoration: none; }
.sam-faq-aside .sam-help a:hover { color: var(--sam-accent); }
.sam-faq-aside .sam-help .sam-ico { width: 40px; height: 40px; font-size: 16px; flex: 0 0 40px; }
.sam-faq { display: flex; flex-direction: column; gap: 12px; }
.sam-faq details { background: #fff; border: 1px solid var(--sam-line); border-radius: var(--sam-radius); transition: border-color .25s, box-shadow .25s; }
.sam-faq details[open] { border-color: var(--sam-accent-line); box-shadow: 0 10px 28px rgba(16, 24, 40, .06); }
.sam-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 1.04rem; color: var(--sam-ink); line-height: 1.45; }
.sam-faq summary::-webkit-details-marker { display: none; }
.sam-faq summary:hover { color: var(--sam-accent); }
.sam-faq summary:focus-visible { outline: 2px solid var(--sam-accent); outline-offset: 2px; border-radius: var(--sam-radius); }
.sam-faq .sam-faq-toggle { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sam-accent-soft); color: var(--sam-accent); font-size: 12px; transition: transform .3s, background .3s, color .3s; }
.sam-faq details[open] .sam-faq-toggle { transform: rotate(45deg); background: var(--sam-accent); color: #fff; }
.sam-faq .sam-faq-body { padding: 0 22px 20px; color: var(--sam-muted); }
.sam-faq .sam-faq-body p { margin: 0 0 .6rem; line-height: 1.7; }
.sam-faq .sam-faq-body p:last-child { margin-bottom: 0; }
@media (max-width: 991px) { .sam-faq-aside { position: static; margin-bottom: 2rem; } .sam-faq-section { padding-top: 70px; padding-bottom: 70px; } }

/* ---------- closing CTA band ---------- */
.sam-cta { background-color: #1b2533; padding-top: 90px; padding-bottom: 90px; }
.sam-cta .sam-cta-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; text-align: center; }
.sam-cta h2 { color: #fff; font-size: 2.3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.sam-cta p { color: rgba(255, 255, 255, .85); font-size: 1.08rem; line-height: 1.75; margin-bottom: .75rem; }
.sam-cta p.sam-cta-kicker { color: #fff; font-weight: 700; font-size: 1.2rem; }
.sam-cta a:not([class]) { color: #fff; text-decoration: underline; }
.sam-cta .sam-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 1.75rem; }
.sam-cta .sam-cta-actions img { width: 18px; vertical-align: -3px; margin-right: 4px; }
.sam-btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .6); color: #fff !important; font-weight: 700; text-decoration: none !important; transition: background .25s, border-color .25s, color .25s; }
.sam-btn-ghost:hover { background: #fff; border-color: #fff; color: var(--sam-ink) !important; }
@media (max-width: 767px) { .sam-cta h2 { font-size: 1.75rem; } .sam-cta { padding-top: 70px; padding-bottom: 70px; } }

/* ---------- homepage blocks ---------- */
.sam-home-section { padding-top: 100px; padding-bottom: 100px; }
.sam-home-section .sam-head { max-width: 760px; margin: 0 auto 2.75rem; text-align: center; }
.sam-home-section .sam-head .sam-h2 { font-size: 2.4rem; }
.sam-home-section .sam-alert { height: 100%; }
@media (max-width: 767px) { .sam-home-section { padding-top: 70px; padding-bottom: 70px; } .sam-home-section .sam-head .sam-h2 { font-size: 1.8rem; } }
.why-choose .features.sam-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.why-choose .sam-why-note { color: rgba(255, 255, 255, .85); text-align: center; max-width: 820px; margin: 2rem auto 0; line-height: 1.75; }
.why-choose .cta a { text-decoration: none; }
