/* Home page (සැමට මංගලම්): samata.lk navy + gold, warmed with maroon rose, ivory and blush. */
:root {
    --mg-rose: #8e1d41;
    --mg-rose-soft: #fbeff2;
    --mg-ivory: #fffaf0;
    --mg-gold-soft: #fff1d6;
}

.mg-eyebrow { margin: 0; color: var(--mg-rose); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mg-title { margin: 0; color: var(--c-navy); font-size: clamp(24px, 3.4vw, 34px); line-height: 1.25; }
.mg-title--center, .mg-center { text-align: center; }
.mg-muted { margin: 6px 0 0; color: var(--c-muted); }
.mg-section { display: grid; gap: 18px; padding-block: 44px; }
.mg-btn-ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.mg-btn-outline { border: 1px solid var(--mg-rose); color: var(--mg-rose); background: #fff; }

/* Hero */
.mg-hero { position: relative; padding: 34px 0 28px; overflow: hidden; color: #fff; background:
    radial-gradient(circle at 85% 20%, rgba(245, 166, 35, .28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(142, 29, 65, .55), transparent 50%),
    linear-gradient(135deg, #132c54 0%, #2a1f4e 55%, #5a1a3c 100%); }
.mg-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: repeating-linear-gradient(90deg, var(--c-gold) 0 18px, transparent 18px 26px); opacity: .7; }
.mg-hero__inner { display: grid; gap: 26px; align-items: center; }
.mg-hero__text { display: grid; gap: 14px; }
.mg-hero .mg-eyebrow { color: #ffd27a; }
.mg-hero__h1 { display: grid; gap: 12px; margin: 0; }
.mg-hero__title { display: block; font-size: clamp(30px, 5vw, 50px); line-height: 1.15; font-weight: 800; }
.mg-hero__lead { margin: 0; max-width: 560px; color: #e6ecf6; font-size: 16px; line-height: 1.65; }
.mg-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.mg-hero__media { position: relative; justify-self: center; width: min(100%, 420px); }
.mg-arch { overflow: hidden; aspect-ratio: 4 / 5; border: 6px solid rgba(255, 255, 255, .9); border-radius: 999px 999px 24px 24px; background: linear-gradient(180deg, var(--mg-ivory), var(--mg-gold-soft)); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.mg-arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-arch--cutout img { object-fit: contain; padding: 18px 10px 0; }
.mg-badge { position: absolute; bottom: 18px; left: -8px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #fff; color: var(--c-navy); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.mg-badge__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mg-gold-soft); font-size: 20px; }
.mg-badge strong { display: block; font-size: 14px; }
.mg-badge small { display: block; color: var(--c-muted); font-size: 12px; }

/* Search in the hero */
.mg-search { display: grid; gap: 10px; margin-top: 26px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.mg-search__field { display: grid; gap: 4px; color: var(--c-muted); font-size: 12px; font-weight: 700; }
.mg-search__field select { width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; color: var(--c-navy); font: inherit; font-size: 15px; font-weight: 600; }
.mg-search__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mg-search__go { padding: 14px 20px; border: 0; border-radius: 14px; background: var(--c-gold); color: var(--c-navy); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.mg-search__go:hover { background: #ffb53d; }

/* Trust strip */
.mg-trust { display: grid; gap: 10px; padding-block: 22px; }
.mg-trust__item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #f0e3c0; border-radius: 16px; background: var(--mg-ivory); }
.mg-trust__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; font-size: 18px; box-shadow: 0 2px 8px rgba(19, 44, 84, .08); }
.mg-trust__item strong { display: block; color: var(--c-navy); }
.mg-trust__item small { display: block; color: var(--c-muted); font-size: 13px; line-height: 1.45; }

/* Why us */
.mg-why { padding: 30px 0 40px; background: linear-gradient(180deg, #fff, var(--mg-rose-soft)); }
.mg-why__inner { display: grid; gap: 26px; align-items: center; }
.mg-why__media { justify-self: center; width: min(100%, 360px); }
.mg-circle { overflow: hidden; aspect-ratio: 1; border: 8px solid #fff; border-radius: 50%; background: linear-gradient(180deg, var(--mg-ivory), var(--mg-gold-soft)); box-shadow: 0 0 0 2px var(--c-gold), 0 18px 40px rgba(142, 29, 65, .18); }
.mg-circle img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-why__text { display: grid; gap: 12px; }
.mg-why__text p { margin: 0; color: #334155; line-height: 1.7; }
.mg-why__text .btn { justify-self: start; }
.mg-ticks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mg-ticks li { padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--mg-rose); font-size: 13px; font-weight: 700; }
.mg-ticks li::before { content: "✓ "; }
.mg-stats__title { margin: 30px 0 12px; color: var(--mg-rose); font-size: 15px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.mg-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.mg-stats__item { padding: 16px; border-bottom: 3px solid var(--c-gold); border-radius: 16px; background: #fff; text-align: center; }
.mg-stats dt { color: var(--c-muted); font-size: 13px; font-weight: 600; }
.mg-stats dd { margin: 4px 0 0; color: var(--c-navy); font-size: clamp(24px, 3vw, 32px); font-weight: 800; }

/* Cards */
.mg-cards { display: grid; gap: 14px; }
.mg-card { display: grid; align-content: start; gap: 8px; padding: 20px; border: 1px solid var(--c-line); border-radius: 20px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 6px 18px rgba(19, 44, 84, .05); }
.mg-card h3 { margin: 0; color: var(--c-navy); font-size: 17px; }
.mg-card p { margin: 0; color: #475569; font-size: 14px; line-height: 1.6; }
.mg-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--mg-gold-soft), var(--mg-rose-soft)); font-size: 22px; }
.mg-card--link:hover { border-color: var(--c-gold); }
.mg-card__more { color: var(--mg-rose); font-weight: 700; font-size: 14px; }

/* Newest proposals */
.mg-newest { background: var(--mg-ivory); }
.mg-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.mg-slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.mg-slider > * { scroll-snap-align: start; }
.mg-empty { margin: 0; padding: 18px; border: 1px dashed var(--c-gold); border-radius: 16px; background: #fff; text-align: center; }

/* Plans teaser */
.mg-plans__list { display: grid; gap: 12px; }
.mg-plan { position: relative; display: grid; gap: 4px; padding: 18px; border: 1px solid var(--c-line); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; text-align: center; }
.mg-plan:hover { border-color: var(--c-gold); }
.mg-plan--label { border: 2px solid var(--c-gold); background: linear-gradient(180deg, var(--mg-ivory), #fff); }
.mg-plan__label { justify-self: center; padding: 2px 10px; border-radius: 999px; background: var(--c-gold); color: var(--c-navy); font-size: 11px; font-weight: 800; }
.mg-plan__name { color: var(--mg-rose); font-size: 18px; }
.mg-plan__price { color: var(--c-navy); font-size: 22px; font-weight: 800; }
.mg-plan__price small { color: var(--c-muted); font-size: 13px; font-weight: 600; }
.mg-plan__text { color: #475569; font-size: 13px; line-height: 1.5; }

/* Tools */
.mg-tools { background: linear-gradient(180deg, #fff, #f4f7fc); }

/* FAQ */
.mg-faq { align-items: start; }
.mg-faq__side { display: grid; gap: 14px; }
.mg-faq__list { display: grid; gap: 10px; }
.mg-faq__item { padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 14px; background: #fff; }
.mg-faq__item summary { color: var(--c-navy); font-weight: 700; cursor: pointer; }
.mg-faq__item p { margin: 10px 0 0; color: #475569; line-height: 1.6; }

@media (min-width: 640px) {
    .mg-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mg-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mg-slider { grid-auto-columns: minmax(220px, 40%); }
}

@media (min-width: 960px) {
    .mg-hero { padding: 54px 0 36px; }
    .mg-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .mg-search { grid-template-columns: 1fr 1.3fr 1fr 1fr auto; align-items: end; }
    .mg-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mg-why__inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
    .mg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mg-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mg-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mg-slider { grid-auto-columns: calc((100% - 42px) / 4); }
    .mg-faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
    .mg-plans__list { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
}
