/* Selamawi theme: base layer. Widgets, header and footer styles live in Selamawi Core. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: #f7f2e8; color: #14284a; font-family: "Mulish", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
:lang(am) body, body:lang(am) { line-height: 1.8; }
img, svg, video { max-width: 100%; height: auto; }
a { color: #8e6823; text-underline-offset: 3px; transition: color .25s; }
a:hover { color: #14284a; }
h1, h2, h3, h4, h5 { font-family: "Bodoni Moda", "Noto Serif Ethiopic", Didot, Georgia, serif; font-weight: 500; line-height: 1.15; color: #14284a; }
::selection { background: #d7b46c; color: #081a37; }
:focus-visible { outline: 3px solid #d7b46c; outline-offset: 3px; border-radius: 4px; }
.site-content:focus { outline: none; }

.sel-skip { position: fixed; z-index: 10000; left: 16px; top: -100px; padding: 12px 18px; border-radius: 10px; background: #d7b46c; color: #081a37; font-weight: 800; text-decoration: none; transition: top .3s; }
.sel-skip:focus { top: 16px; }

.sel-section { padding-block: clamp(56px, 8vw, 100px); }
.sel-prose { max-width: 780px; }
.sel-prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 1.6em 0 .5em; }
.sel-prose h3 { font-size: 1.45rem; margin: 1.4em 0 .4em; }
.sel-prose p, .sel-prose li { color: #34435c; }
.sel-prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 3px solid #d7b46c; font-family: "Bodoni Moda", serif; font-style: italic; font-size: 1.3rem; color: #14284a; }
.sel-prose img { border-radius: 14px; }
.sel-postnav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid #e5dac4; font-weight: 700; }
.sel-pager { margin-top: 40px; }
.sel-pager .nav-links { display: flex; gap: 8px; justify-content: center; }
.sel-pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid #e5dac4; background: #fffdf8; text-decoration: none; color: #14284a; font-weight: 800; transition: .3s; }
.sel-pager .page-numbers.current, .sel-pager .page-numbers:hover { background: #0f2850; color: #fff; border-color: #0f2850; }
.sel-404 { min-height: 70vh; display: grid; align-items: center; }
.sel-404__dove { color: #d7b46c; margin-bottom: 18px; animation: sel-float 6s ease-in-out infinite; }

/* Elementor sections: utility classes used by the bundled pages */
.elementor-section.sel-dark, .e-con.sel-dark { background-color: #081a37; color: #c9d1de; }
.elementor-section.sel-navy, .e-con.sel-navy { background: radial-gradient(90% 120% at 0% 0%, #163a6e 0%, #0f2850 45%, #081a37 100%); color: #c9d1de; }
.elementor-section.sel-paper { background-color: #f7f2e8; }
.elementor-section.sel-ivory { background-color: #fbf7ee; }
.elementor-section.sel-tilet-top { position: relative; }
.elementor-section.sel-tilet-top::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; background: #d7b46c; opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16'%3E%3Cpath d='M0 3 L10 13 L20 3 L30 13 L40 3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") repeat-x left center / 40px 16px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16'%3E%3Cpath d='M0 3 L10 13 L20 3 L30 13 L40 3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") repeat-x left center / 40px 16px; }
.elementor-widget:not(:last-child) { margin-bottom: 0; }
.elementor-section .elementor-container { max-width: 1200px; }
.elementor-widget-sel-hero, .elementor-widget-sel-parallax, .elementor-widget-sel-marquee { width: 100%; }

/* Scroll-to-top with a progress ring */
.sel-top { position: fixed; z-index: 900; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: #0f2850; color: #f1dfb3; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(8, 26, 55, .6); opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .45s cubic-bezier(.22,.8,.24,1), transform .55s cubic-bezier(.22,.8,.24,1), background-color .3s, color .3s; }
.sel-top[hidden] { display: grid; visibility: hidden; }
.sel-top.is-on { opacity: 1; transform: none; visibility: visible; }
.sel-top:hover { background: #d7b46c; color: #081a37; transform: translateY(-4px); }
.sel-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sel-top__ring circle { fill: none; stroke: #d7b46c; stroke-width: 2.5; stroke-dasharray: var(--p, 0) 100; stroke-linecap: round; transition: stroke-dasharray .15s linear; }
.sel-top:hover .sel-top__ring circle { stroke: #081a37; }
.sel-top__arrow { width: 22px; height: 22px; transition: transform .45s cubic-bezier(.22,.8,.24,1); }
.sel-top:hover .sel-top__arrow { transform: translateY(-3px); animation: sel-bob 1s ease-in-out infinite; }
@keyframes sel-bob { 50% { transform: translateY(-6px); } }

.sel-basic-header, .sel-basic-footer { padding: 20px; background: #081a37; color: #fff; }
.sel-basic-header a { color: #d7b46c; font-family: "Bodoni Moda", serif; font-size: 1.6rem; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sel-top, .sel-top__arrow { transition: none; animation: none; } }
