/* Dr Software - small additions (loaded after the template CSS) */

/* email subscription boxes */
.subscribe-msg { min-height: 1.4em; margin-top: 10px; font-size: 15px; font-weight: 600; }
.subscribe-note { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.subscribe-note a { text-decoration: underline; }

/* on the green newsletter banner */
.ch-newsletter-wrap .subscribe-msg,
.ch-newsletter-wrap .subscribe-note { text-align: center; color: #0d2216; }
.ch-newsletter-wrap .subscribe-msg.err { color: #5b0a0a; }
.ch-newsletter-wrap .subscribe-note a { color: #0d2216; }

/* in the (light) footer */
.footer-section .subscribe-note { color: #5f6b64; }
.footer-section .subscribe-note a { color: #078a43; }
.footer-section .subscribe-msg.ok { color: #078a43; }
.footer-section .subscribe-msg.err { color: #c0392b; }

/* Terms & Privacy page */
.legal-page .legal-updated { color: #5f6b64; margin-bottom: 18px; }
.legal-page h2 { margin: 44px 0 14px; font-size: 34px; line-height: 1.2; }
.legal-page h3 { margin: 26px 0 8px; font-size: 22px; line-height: 1.3; }
.legal-page p { margin-bottom: 12px; line-height: 1.8; }
.legal-page a { text-decoration: underline; }
@media (max-width: 575px) { .legal-page h2 { font-size: 28px; } }

/* ---- SEO update: scrolling text strip is now a <p> (decorative), keep the old h1 look ---- */
.text-moving p.mq-title {
  font-family: "Rajdhani";
  font-weight: 400;
  line-height: 1.2;
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) { .text-moving p.mq-title { font-size: 2.5rem; } }

/* ---- contact page map ---- */
.contact-map { padding: 0 0 90px; }
.contact-map .map-frame { border-radius: 8px; overflow: hidden; background: #e9efeb; }
.contact-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.contact-map .map-link { margin-top: 12px; }
.contact-map .map-link a { color: #078a43; text-decoration: underline; }
@media (max-width: 575px) { .contact-map iframe { height: 320px; } .contact-map { padding-bottom: 60px; } }

/* ===== Speed: mobile / touch tweaks ===== */
@media (hover: none), (pointer: coarse) {
  .mouse-circle-mover,
  .mouse-circle-mover-follow { display: none !important; }
}
/* On phones the preloader only covers the page until the scripts have run (see script.js),
   and the desktop menu is hidden so it never flashes before the mobile menu is built. */
@media (max-width: 991px) {
  .main-menu { visibility: hidden; }
  .mean-bar .main-menu, .mobile-menu .main-menu { visibility: visible; }
}

/* ===== UX: hero call-to-action buttons ===== */
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 30px; }
.hero-cta a { margin-right: 0; }
.hero-cta .ch-btn-style-3 { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-cta .ch-btn-style-3:hover { color: #0D2216; }
@media (max-width: 575px) {
  .hero-cta { gap: 10px; }
  .hero-cta a { flex: 1 1 100%; text-align: center; }
}

/* ===== Portfolio page ===== */
.pf-section {
  --pf-card: #fff; --pf-line: #dfe8e2; --pf-text: #0D2216; --pf-muted: #5f6b64;
  --pf-chip-bg: #eaf7ef; --pf-chip-text: #078a43; --pf-shadow: 0 10px 30px rgba(13,34,22,.08);
}
.pf-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 56px; }
.pf-btn {
  padding: 11px 26px; border-radius: 40px; border: 1px solid var(--pf-line); background: transparent;
  color: var(--pf-text); font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.pf-btn:hover { border-color: #00D563; }
.pf-btn.is-active { background: #00D563; border-color: #00D563; color: #0D2216; }
.pf-btn:focus-visible, .pf-thumb:focus-visible { outline: 3px solid #00D563; outline-offset: 3px; }
.pf-col { margin-bottom: 48px; }
.pf-col[hidden] { display: none !important; }

.pf-card {
  height: 100%; margin-bottom: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--pf-card); border: 1px solid var(--pf-line); border-radius: 10px; box-shadow: var(--pf-shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pf-card:hover { transform: translateY(-6px); border-color: #00D563; }
.pf-thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: #0b1d14; overflow: hidden; line-height: 0;
}
.pf-thumb img { width: 100%; height: auto; aspect-ratio: 1.4 / 1; object-fit: cover; display: block; transition: transform .6s ease; }
.pf-card:hover .pf-thumb img { transform: scale(1.04); }
.pf-zoom {
  position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%;
  background: #00D563; color: #0D2216; display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; line-height: 1;
}
.pf-card:hover .pf-zoom, .pf-thumb:focus-visible .pf-zoom { opacity: 1; transform: none; }
@media (hover: none) { .pf-zoom { opacity: 1; transform: none; } }

.pf-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.pf-cat {
  position: relative; display: inline-block; align-self: flex-start; padding-left: 52px;
  font-size: 16px; line-height: 30px; color: var(--pf-chip-text); font-weight: 600;
}
.pf-cat:before { content: ""; position: absolute; left: 0; top: 50%; width: 42px; height: 1px; background: currentColor; }
.pf-body h2 { margin: 4px 0 0; font-size: 32px; font-weight: 700; line-height: 130%; color: var(--pf-text); }
.pf-body .pf-sub { margin: 2px 0 14px; font-size: 18px; font-weight: 600; color: var(--pf-muted); }
.pf-body .pf-desc { margin: 0 0 20px; line-height: 1.75; color: var(--pf-muted); }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pf-chip { padding: 5px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; background: var(--pf-chip-bg); color: var(--pf-chip-text); }
@media (max-width: 575px) {
  .pf-col { margin-bottom: 32px; }
  .pf-body { padding: 22px 20px 26px; }
  .pf-body h2 { font-size: 26px; }
  .pf-filter { margin-bottom: 36px; gap: 8px; }
  .pf-btn { padding: 9px 18px; font-size: 15px; }
}

/* image viewer */
.pf-lightbox {
  position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
  padding: 56px 70px; background: rgba(5,14,9,.97);
}
.pf-lightbox[hidden] { display: none; }
.pf-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.pf-lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.pf-lightbox figcaption { margin-top: 14px; color: #eaf2ed; font-size: 17px; font-weight: 600; }
.pf-lb-close, .pf-lb-nav {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12);
  border-radius: 50%; width: 46px; height: 46px; font-size: 30px; line-height: 1; transition: background .2s ease, color .2s ease;
}
.pf-lb-close:hover, .pf-lb-nav:hover { background: #00D563; color: #0D2216; }
.pf-lb-close { top: 16px; right: 16px; }
.pf-lb-nav { top: 50%; margin-top: -23px; padding-bottom: 4px; }
.pf-lb-prev { left: 12px; } .pf-lb-next { right: 12px; }
@media (max-width: 575px) { .pf-lightbox { padding: 64px 12px; } .pf-lb-nav { top: auto; bottom: 12px; margin: 0; } }

/* ===== Facebook feed carousel (portfolio page) ===== */
.fb-feed-area {
  --pf-card: #fff; --pf-line: #dfe8e2; --pf-text: #0D2216; --pf-muted: #5f6b64; --pf-chip-text: #078a43;
  --pf-shadow: 0 10px 30px rgba(13,34,22,.08);
  padding: 20px 0 110px;
}
.fb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.fb-title .fb-eyebrow {
  display: block; font-family: "Rajdhani", sans-serif; font-size: 18px; font-weight: 700; line-height: 27px;
  letter-spacing: 4px; text-transform: uppercase; color: #078a43;
}
.fb-title h2 { margin: 5px 0 0; font-size: 44px; font-weight: 700; line-height: 1.2; color: var(--pf-text); }
.fb-title h2 .fb-accent { color: #078a43; }
.fb-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.fb-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid #b3c5b9; background: transparent;
  color: var(--pf-text); font-size: 28px; line-height: 1; padding: 0 0 4px; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.fb-arrow:hover { background: #00D563; border-color: #00D563; color: #0D2216; }
.fb-arrow:focus-visible, .fb-track:focus-visible { outline: 3px solid #00D563; outline-offset: 3px; }
.fb-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 30px; margin: 0 -4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.fb-track::-webkit-scrollbar { display: none; }
.fb-card {
  flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden;
  background: var(--pf-card); border: 1px solid var(--pf-line); border-radius: 10px; box-shadow: var(--pf-shadow);
  transition: transform .3s ease, border-color .3s ease;
}
.fb-card:hover { transform: translateY(-5px); border-color: #00D563; }
.fb-media { position: relative; display: block; line-height: 0; background: #0b1d14; overflow: hidden; aspect-ratio: 1 / 1; }
.fb-media::before {
  content: ""; position: absolute; inset: -20px; background: var(--fb-bg) center / cover no-repeat;
  filter: blur(18px) brightness(.55); transform: scale(1.1);
}
.fb-media img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .6s ease; }
.fb-card:hover .fb-media img { transform: scale(1.05); }
.fb-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.fb-date { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pf-chip-text); }
.fb-body .fb-text {
  margin: 0; line-height: 1.65; color: var(--pf-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.fb-body .fb-link { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--pf-chip-text); text-decoration: none; }
.fb-body .fb-link:hover { text-decoration: underline; }
.fb-follow { text-align: center; margin-top: 10px; }
.fb-feed-area .fb-follow a.fb-btn {
  display: inline-block; padding: 16px 38px; border-radius: 8px; background: #00D563; color: #0D2216;
  font-size: 18px; font-weight: 700; text-decoration: none; transition: background .25s ease, transform .25s ease;
}
.fb-feed-area .fb-follow a.fb-btn:hover { background: #0D2216; color: #00D563; transform: translateY(-2px); }
@media (max-width: 991px) {
  .fb-title h2 { font-size: 36px; }
  .fb-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 575px) {
  .fb-feed-area { padding-bottom: 80px; }
  .fb-head { flex-direction: column; align-items: center; margin-bottom: 24px; }
  .fb-title { text-align: center; }
  .fb-title h2 { font-size: 30px; }
  .fb-title .fb-eyebrow { font-size: 15px; }
  .fb-card { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .fb-track { scroll-behavior: auto; } .fb-card, .fb-media img { transition: none; } }

/* ===== Footer subscribe box: readable typed text in light theme ===== */
.footer-section .subscribe .form-field input { color: #0D2216; border-color: #cfd8d2; background: transparent; }
.footer-section .subscribe .form-field input::placeholder { color: #6b7a72; opacity: 1; }
.footer-section .subscribe .form-field input:focus { border-color: #00D563; }
.footer-section .subscribe .form-field input:-webkit-autofill,
.footer-section .subscribe .form-field input:-webkit-autofill:focus { -webkit-text-fill-color: #0D2216; caret-color: #0D2216; }

/* centre a lone card when a filter leaves an odd number of projects */
.pf-grid { justify-content: center; }
