/* Additions to the mirrored WordPress pages. Loaded after the original styles. */

/* WhatsApp call-to-action blocks (replace the old Zoho forms) */
.mc-wa-cta { max-width: 640px; margin: 0 auto; padding: 36px 28px; text-align: center; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .45); }
.mc-wa-cta h3 { margin: 0 0 10px; font-family: Montserrat, sans-serif; font-size: 26px; font-weight: 700; color: #004225; }
.mc-wa-cta p { margin: 0 auto 26px; max-width: 480px; color: #2f3b40; font-size: 16px; line-height: 1.6; }
.mc-wa-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mc-wa-btn, .mc-call-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px; font-family: Montserrat, sans-serif; font-size: 15px; font-weight: 700; text-decoration: none !important; transition: transform .25s, box-shadow .25s, background .25s; }
.mc-wa-btn { background: #25d366; color: #fff !important; box-shadow: 0 10px 22px -10px rgba(37, 211, 102, .8); }
.mc-wa-btn:hover { transform: translateY(-2px); background: #1ebe5b; }
.mc-call-btn { background: #004225; color: #fff !important; }
.mc-call-btn:hover { transform: translateY(-2px); background: #0a5a35; }
.mc-wa-btn svg, .mc-call-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Full-width sections are sized with 100vw, which includes the scrollbar and overflows by a few px */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* ---------- Animations (driven by assets/custom.js; off for reduced-motion users) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero text slides up on page load */
  .mc-anim .mc-hero-in { opacity: 0; animation: mc-up .9s cubic-bezier(.2,.8,.2,1) forwards; }
  @keyframes mc-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

  /* Content fades up as it scrolls into view */
  .mc-anim .mc-reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .mc-anim .mc-reveal.mc-in { opacity: 1; transform: none; }

  /* Photos zoom gently on hover */
  .wp-block-uagb-image__figure, .elementor-widget-image .elementor-widget-container, .uagb-ifb-image-content { overflow: hidden; }
  .wp-block-uagb-image img, .elementor-widget-image img, .uagb-ifb-image-content img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
  .wp-block-uagb-image:hover img, .elementor-widget-image:hover img, .uagb-ifb-image-content:hover img { transform: scale(1.06); }

  /* Cards and info boxes lift on hover */
  .wp-block-uagb-info-box, .elementor-widget-icon-box, .elementor-widget-image-box { transition: transform .4s ease, box-shadow .4s ease; }
  .wp-block-uagb-info-box:hover, .elementor-widget-icon-box:hover, .elementor-widget-image-box:hover { transform: translateY(-6px); }

  /* Buttons lift on hover */
  .wp-block-button__link, .uagb-buttons-repeater, .elementor-button, .ast-button { transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease !important; }
  .wp-block-button__link:hover, .uagb-buttons-repeater:hover, .elementor-button:hover, .ast-button:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(0,0,0,.45); }

  /* WhatsApp buttons pulse */
  .mc-wa-btn { position: relative; }
  .mc-wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: mc-pulse 2.2s infinite; pointer-events: none; }
  .mystickyelements-social-whatsapp, .mystickyelements-social-icon.social-whatsapp { animation: mc-pulse 2.2s infinite; }
  @keyframes mc-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

  /* FAQ items slide slightly on hover */
  .uagb-faq-item { transition: transform .3s ease; }
  .uagb-faq-item:hover { transform: translateX(4px); }
}

/* Phone layout fixes: only screens up to 767px wide (see the media query below) */
/* Technical Specifications page: white logo sat on a white header (also on the original site) */
body.page-id-2601 .site-header,
body.page-id-2601 .main-header-bar { background: #004225 !important; }

@media (max-width: 767px) {
  /* Stop the page from sliding sideways */
  html, body { max-width: 100%; overflow-x: hidden; }
  @supports (overflow: clip) { html, body { overflow-x: clip; } }

  /* Client logo carousel: the -100px side margins (room for desktop arrows) overflow the screen */
  .spectra-image-gallery .slick-list { margin: 0 !important; }
  .spectra-image-gallery .slick-prev,
  .spectra-image-gallery .slick-next { display: none !important; }
  /* ...and each slide's 100px side padding (paired with those margins) left 0px for the logo */
  .spectra-image-gallery .spectra-image-gallery__media-wrapper { padding-left: 12px !important; padding-right: 12px !important; }
  .spectra-image-gallery .slick-dots { position: static; margin-top: 12px; }

  /* Tighter vertical rhythm: desktop spacing leaves big empty gaps on a phone */
  .wp-block-uagb-advanced-heading { padding-top: 14px !important; padding-bottom: 14px !important; }
  .uagb-is-root-container { margin-top: 0 !important; }
  .uagb-block-a6b1f9db { padding-top: 56px !important; padding-bottom: 56px !important; }
  .elementor-section > .elementor-container { padding-left: 0; padding-right: 0; }

  /* Readable text and comfortable tap targets */
  .entry-content p, .entry-content li { font-size: 16px; line-height: 1.65; }
  .uagb-question, .uagb-faq-questions, .uagb-faq-item span { font-size: 16px !important; line-height: 1.45; }
  .main-header-menu a, .ast-mobile-header-content a, .ast-header-break-point .main-navigation a { font-size: 16px !important; padding-top: 12px !important; padding-bottom: 12px !important; }
  .site-footer a, .site-footer li { line-height: 2; }
  a.wp-block-button__link, .uagb-buttons-repeater, .ast-button { min-height: 44px; }

  /* Headings scale down so long titles don't break awkwardly */
  .entry-content h1 { font-size: clamp(28px, 8vw, 36px) !important; line-height: 1.2 !important; }
  .entry-content h2 { font-size: clamp(24px, 7vw, 30px) !important; line-height: 1.25 !important; }

  /* Images and embeds never wider than the screen */
  img, iframe, video { max-width: 100%; }
  iframe { width: 100% !important; }

  /* Elementor pages: the logo bar (102px, overlaid) covered the page title */
  body.page-template-elementor_header_footer .elementor > :first-child { padding-top: 110px !important; }

  /* Side WhatsApp/arrow buttons: bottom corner so they don't cover text */
  .mystickyelements-fixed { right: 0 !important; left: auto !important; top: auto !important; bottom: 16px !important; transform: none !important; }
}
