/* =========================================================
   Ebuka Akara — Premium overrides on top of Jitavo template
   Loaded after style.css. Tightens border-radius for a
   sharper, more premium feel and adds dark/light theming.
   ========================================================= */

/* ── Sharper corners on work tiles, service icons, galleries ── */
.works-wrapper-3 .work-box .thumb .image,
.work-details-area .section-title-wrapper .title-thumb,
.work-details-area .gallery-wrapper .image,
.work-details-area .gallery-wrapper-2 .image,
.image-wrapper.parallax-view img,
.image-wrapper.parallax-view video {
  border-radius: 6px !important;
}

.services-wrapper-3 .service-box .thumb {
  border-radius: 8px !important;
}

.contact-formfield input,
.contact-formfield select,
.comment-formfield input {
  border-radius: 4px !important;
}

/* Offcanvas / side menu logo card etc */
.side-info-content,
.offset-widget-box {
  border-radius: 0 !important;
}

/* ══════════════════════════════════════
   DARK / LIGHT MODE TOGGLE
   ══════════════════════════════════════ */

/* Theme toggle button — sits next to the CTA in header */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  margin-inline-end: 12px;
}
.theme-toggle-btn:hover { background: rgba(128,128,128,0.08); }
.theme-toggle-btn svg { width: 18px; height: 18px; stroke: var(--primary); }
.theme-toggle-btn .icon-sun  { display: none; }
.theme-toggle-btn .icon-moon { display: block; }
body.dark .theme-toggle-btn .icon-sun  { display: block; }
body.dark .theme-toggle-btn .icon-moon { display: none; }

.header__main-right { display: flex; align-items: center; }

/* ── Fill gaps the template's own .dark rules miss, scoped to our 6 pages ── */

/* Body background + base text */
body.dark {
  background-color: #171717;
  color: var(--primary);
}
body.dark p,
body.dark .text { color: var(--secondary); }
body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5,
body.dark .title { color: var(--primary); }

/* Header / nav */
body.dark .header-area-3 { background-color: rgba(23,23,23,0.85); }
body.dark .header-area-3.sticky-header,
body.dark .header-area-3.header-sticky { background-color: rgba(23,23,23,0.95); }
body.dark .header__logo img { filter: invert(1) brightness(2); }
body.dark .menu .desktop-menu-list a { color: var(--primary); }
body.dark .menu .desktop-menu-list a:hover { color: var(--secondary); }

/* Side offcanvas logo */
body.dark .offset-logo img { filter: invert(1) brightness(2); }

/* Work tiles, blog thumbs keep their photos; only chrome/text need flipping */
body.dark .work-box .content .title a,
body.dark .blog .content .title { color: var(--primary); }
body.dark .work-box .meta .date,
body.dark .work-box .meta .tag,
body.dark .blog .meta .date,
body.dark .blog .meta .tag { color: var(--secondary); }

/* Service boxes */
body.dark .service-box .content .title a { color: var(--primary); }
body.dark .service-box .content .text { color: var(--secondary); }
body.dark .service-box .thumb { background-color: #1f1f1f; }
body.dark .service-svg { color: var(--primary); }

/* Contact form fields */
body.dark .contact-formfield input,
body.dark .contact-formfield select,
body.dark .comment-formfield input {
  background-color: #1f1f1f;
  border-color: var(--border);
  color: var(--primary);
}
body.dark .contact-formfield input::placeholder,
body.dark .comment-formfield input::placeholder { color: var(--secondary); }

/* Footer */
body.dark .footer-area-2 { background-color: #141414; }
body.dark .footer-nav-list a { color: var(--secondary); }
body.dark .footer-nav-list a:hover { color: var(--primary); }
body.dark .copyright-text .text,
body.dark .copyright-text .text a { color: var(--secondary); }

/* Page title / meta tags / borders */
body.dark .meta-item .title,
body.dark .meta-item .text,
body.dark .meta .name,
body.dark .meta .tag,
body.dark .meta .date { color: var(--secondary); }
body.dark .tags-wrapper .tag {
  border-color: var(--border);
  color: var(--secondary);
}

/* rr-btn outline variant on dark bg */
body.dark .rr-btn-group .b,
body.dark .rr-btn-group .c { color: var(--primary); }
body.dark .rr-btn-underline { color: var(--primary); }

/* Mobile hamburger / meanmenu */
body.dark .mean-container .mean-bar { background: #171717; }
body.dark .mean-container a.meanmenu-reveal span { background: var(--primary); }
body.dark .mean-container .mean-nav ul li a { color: var(--primary); border-color: var(--border); }

/* ══════════════════════════════════════
   TINYMCE BODY CONTENT — proper typography
   for raw HTML coming from the admin editor
   (no template classes, so style directly)
   ══════════════════════════════════════ */
.blog-details-area .section-details .text-wrapper p,
.work-details-area .section-info .text-wrapper p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--secondary);
  text-align: left;
}
.blog-details-area .section-details .text-wrapper p:not(:first-child),
.work-details-area .section-info .text-wrapper p:not(:first-child) {
  margin-top: 22px;
}
.blog-details-area .section-details .text-wrapper h2,
.work-details-area .section-info .text-wrapper h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-top: 44px;
  margin-bottom: 18px;
  text-align: left;
}
.blog-details-area .section-details .text-wrapper h3,
.work-details-area .section-info .text-wrapper h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 14px;
  text-align: left;
}
.blog-details-area .section-details .text-wrapper strong,
.work-details-area .section-info .text-wrapper strong {
  font-weight: 700;
  color: var(--primary);
}
.blog-details-area .section-details .text-wrapper ul,
.blog-details-area .section-details .text-wrapper ol,
.work-details-area .section-info .text-wrapper ul,
.work-details-area .section-info .text-wrapper ol {
  margin: 22px 0;
  padding-inline-start: 24px;
  color: var(--secondary);
  line-height: 1.8;
}
.blog-details-area .section-details .text-wrapper li,
.work-details-area .section-info .text-wrapper li {
  margin-bottom: 8px;
}
.blog-details-area .section-details .text-wrapper a,
.work-details-area .section-info .text-wrapper a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-details-area .section-details .text-wrapper img,
.work-details-area .section-info .text-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 28px 0;
  display: block;
}
.blog-details-area .section-details .text-wrapper blockquote,
.work-details-area .section-info .text-wrapper blockquote {
  border-inline-start: 3px solid var(--primary);
  padding-inline-start: 22px;
  margin: 28px 0;
  font-size: 19px;
  font-style: italic;
  color: var(--secondary);
}

/* ── Top spacing fix since page-title-area was removed on Work/Blog/Contact ── */
.work-area-work-page,
.blog-area-2,
.contact-area-contact-page {
  padding-top: 140px;
}
@media (max-width: 991px) {
  .work-area-work-page,
  .blog-area-2,
  .contact-area-contact-page {
    padding-top: 110px;
  }
}
@media (max-width: 575px) {
  .work-area-work-page,
  .blog-area-2,
  .contact-area-contact-page {
    padding-top: 90px;
  }
}

/* ── Buttons: less pill, more premium rounded-rectangle ── */
.rr-btn {
  border-radius: 8px !important;
}

/* ── Remove the top border line on the footer ── */
.footer-area-2 .footer-widget-wrapper-box {
  border-top: none !important;
}

/* ── Service grid: 3 services, not the template's default 4 ── */
.services-wrapper-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media only screen and (max-width: 991px) {
  .services-wrapper-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 575px) {
  .services-wrapper-3 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* ══════════════════════════════════════
   BLOG DETAIL — reading progress bar
   ══════════════════════════════════════ */
#readProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--primary);
  z-index: 9998;
  transition: width 0.1s linear;
}

/* ══════════════════════════════════════
   BLOG DETAIL — photo-first hero with
   title overlaid bottom-left
   ══════════════════════════════════════ */
.blog-hero-photo {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 460px;
  max-height: 720px;
  overflow: hidden;
  margin-top: 0;
}
.blog-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.05) 70%, transparent 100%);
}
.blog-hero-photo-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding-bottom: 56px;
  z-index: 2;
}
.blog-hero-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.blog-hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 900px;
  margin-bottom: 18px;
}
.blog-hero-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}
.blog-hero-meta span:not(:last-child)::after {
  content: '·';
  margin-inline-start: 16px;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
  .blog-hero-photo { height: 50vh; min-height: 340px; }
  .blog-hero-photo-content { padding-bottom: 32px; }
}

/* ══════════════════════════════════════
   BLOG DETAIL — body + sidebar layout
   ══════════════════════════════════════ */
.blog-body-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 40px;
}
.blog-body-main { min-width: 0; }

/* Tighter reading width on the body text itself */
.blog-body-main .section-details .text-wrapper {
  max-width: 680px;
}

@media (max-width: 991px) {
  .blog-body-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ══════════════════════════════════════
   BLOG DETAIL — sidebar "More to read"
   ══════════════════════════════════════ */
.blog-sidebar {
  position: sticky;
  top: 110px;
}
.blog-sidebar-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 22px;
}
.blog-sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.blog-sidebar-post {
  display: flex;
  gap: 12px;
  text-decoration: none;
  align-items: flex-start;
}
.blog-sidebar-post-img {
  width: 76px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.blog-sidebar-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-sidebar-post:hover .blog-sidebar-post-img img { transform: scale(1.06); }
.blog-sidebar-post-body { flex: 1; min-width: 0; }
.blog-sidebar-post-cat {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 4px;
}
.blog-sidebar-post-body h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-sidebar-post-date {
  font-size: 11px;
  color: var(--secondary);
}

@media (max-width: 991px) {
  .blog-sidebar { position: static; }
  .blog-sidebar-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 575px) {
  .blog-sidebar-posts { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   BLOG DETAIL — share buttons
   ══════════════════════════════════════ */
.share-block {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 680px;
}
.share-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
}
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.share-btn svg { width: 17px; height: 17px; }
.share-btn:hover {
  background: var(--primary);
  color: #FCF7F3;
  border-color: var(--primary);
  transform: translateY(-2px);
}
body.dark .share-btn:hover { color: #171717; }
.share-btn.copied {
  background: #166534;
  border-color: #166534;
  color: #fff;
}

/* ══════════════════════════════════════
   BLOG DETAIL — was this helpful
   ══════════════════════════════════════ */
.helpful-block {
  margin-top: 40px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 680px;
  text-align: center;
}
.helpful-q {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
}
.helpful-thanks {
  font-size: 15px;
  color: var(--secondary);
}
.helpful-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
}
.helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.helpful-btn svg { width: 16px; height: 16px; }
.helpful-btn:hover {
  border-color: var(--primary);
  background: rgba(128,128,128,0.06);
}
.helpful-count {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 6px;
}
