/* PrimeSilicon polish layer — loaded after theme + Elementor CSS on every page */

html { scroll-behavior: smooth; }
#home, #about, #services, #contact, #blog { scroll-margin-top: 110px; }
h1, h2, h3, .aiero-heading, .post-title { text-wrap: balance; }
p { text-wrap: pretty; }
img { image-rendering: auto; }
::selection { background: rgba(69, 208, 189, .28); }

/* Hero slider: the counter card now stands on its own (video thumbnail removed) */
.aiero-content-slider-widget .counter-column {
  width: auto !important;
  min-width: 300px;
  padding: 26px 46px !important;
  box-shadow: 0 18px 50px rgba(8, 6, 40, .28);
}
.aiero-content-slider-widget .content-slider .slider-item { background-position: center center !important; }

/* "Design your next AI chip" — capability marquee (replaces customer-logo carousel) */
.ps-marquee {
  position: relative; overflow: hidden; margin-top: 46px; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ps-marquee-track { display: flex; width: max-content; animation: ps-marquee 38s linear infinite; }
.ps-marquee:hover .ps-marquee-track { animation-play-state: paused; }
.ps-marquee-dup { display: flex; }
.ps-marquee-item {
  flex: none; margin-right: 14px; padding: 14px 26px; border-radius: 999px;
  font-family: Sora, sans-serif; font-size: 17px; font-weight: 500; line-height: 1.2; white-space: nowrap; color: #1f1f1f;
  background: #fff; border: 1px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(107deg, #45d0bd 0%, #2c84c8 55%, #8258c8 100%);
  background-origin: border-box; background-clip: padding-box, border-box;
}
@keyframes ps-marquee { to { transform: translateX(-50%); } }

/* "Silicon we build for the AI era" grid (replaces customer-logo grid) */
.elementor-5912 .elementor-element.elementor-element-9fdef32 { width: 30%; }
.elementor-5912 .elementor-element.elementor-element-809f300 { width: 70%; }
.ps-ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 34px; width: 100%; }
.ps-ai-item { color: rgba(255, 255, 255, .72); }
.ps-ai-grid .ps-ai-item p { color: rgba(255, 255, 255, .7); }
.ps-ai-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 16px;
  border-radius: 14px; color: #45d0bd; background: rgba(69, 208, 189, .1); border: 1px solid rgba(69, 208, 189, .28);
}
.ps-ai-icon svg { width: 24px; height: 24px; }
.ps-ai-grid .ps-ai-title { margin: 0 0 8px !important; padding: 0; font-size: 18px; line-height: 1.3; font-weight: 500; color: #fff !important; letter-spacing: 0; }
.ps-ai-item p { margin: 0; font-size: 14px; line-height: 1.6; }
@media (max-width: 1199px) {
  .ps-ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .elementor-5912 .elementor-element.elementor-element-9fdef32,
  .elementor-5912 .elementor-element.elementor-element-809f300 { width: 100%; }
  .ps-ai-grid { grid-template-columns: 1fr; gap: 24px; }
  .ps-marquee-item { font-size: 15px; padding: 11px 20px; }
}

/* Featured projects: smoother hover on cards */
.project-item-media img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.project-item:hover .project-item-media img { transform: scale(1.04); }

/* Project pages: neutral visual in place of client logos */
.ps-project-visual { overflow: hidden; border-radius: 25px; }
.ps-project-visual img { display: block; width: 100%; height: 100%; max-height: 640px; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ps-marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .ps-marquee-dup { display: none; }
  .project-item-media img { transition: none; }
}

/* Project meta: the theme hid line breaks on phones, which ran values together ("Physical DesignTiming Closure") */
.single-project .project-post-content .project-post-meta-item br { display: initial; }

/* Card background swapped for a 2x upscale: keep the original 736px framing, just sharper */
.elementor-5912 .elementor-element.elementor-element-5e8459b > .elementor-widget-wrap,
.elementor-5912 .elementor-element.elementor-element-5e8459b > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-size: 736px auto !important; }

/* About section: keep the whole outlined "PST" on screen (theme pulled it 18% off the left edge on wide screens) */
.elementor-5912 .elementor-element.elementor-element-548a7df > .elementor-widget-container { margin-left: 0 !important; }
@media (min-width: 1601px) { .elementor-5912 .elementor-element.elementor-element-548a7df .special-text { font-size: 340px; } }

/* Office map: location cards over an interactive map */
.ps-map { position: relative; height: 560px; border-radius: 25px; overflow: hidden; background: #e9edf1; }
.ps-map-frame, .ps-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ps-map-shield { display: none; }
/* push Google's own place card off-canvas behind our panel and centre the pin in the visible area */
.ps-map-frame iframe { filter: grayscale(1); left: -380px; right: auto; width: calc(100% + 380px); max-width: none !important; }
.ps-map-locations > li.ps-loc { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ps-map-locations > li.ps-loc::before, .ps-map-locations > li.ps-loc::after { content: none !important; display: none !important; }
.ps-map-locations { position: absolute; z-index: 2; top: 24px; left: 24px; width: 320px; max-height: calc(100% - 48px); overflow: auto; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ps-loc { display: flex; background: #fff; border-radius: 10px; box-shadow: 0 6px 22px rgba(15, 23, 42, .14); overflow: hidden; border-left: 3px solid transparent; transition: background .2s, border-color .2s; }
.ps-loc.is-active { background: #eaf1fd; border-left-color: #2c84c8; }
.ps-loc-main { box-sizing: border-box; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 16px 14px 16px 15px; text-align: left; background: none; border: 0; border-right: 1px solid #2c84c8; cursor: pointer; font: inherit; color: inherit; }
.ps-loc-main:focus-visible { outline: 2px solid #2c84c8; outline-offset: -4px; }
.ps-loc-country { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #2c84c8; }
.ps-loc-name { font-family: Sora, sans-serif; font-size: 15px; font-weight: 600; line-height: 1.3; color: #111; }
.ps-loc-addr { font-size: 13px; line-height: 1.5; color: #555; }
.ps-loc-actions { display: flex; gap: 8px; align-items: flex-start; padding: 12px 12px; }
.ps-loc-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #f1f4f8; color: #2c84c8; transition: background .2s; }
.ps-loc-btn:hover { background: #dbe8fb; color: #1d6fb0; }
.ps-loc-btn svg { width: 17px; height: 17px; }
@media (max-width: 767px) {
  .ps-map { height: auto; background: none; border-radius: 0; overflow: visible; }
  .ps-map-locations { position: static; width: auto; max-height: none; margin-bottom: 14px; }
  .ps-map-frame { position: relative; height: 380px; border-radius: 20px; overflow: hidden; }
  .ps-map-frame iframe { left: 0; width: 100%; }
  .ps-map-shield { display: flex; align-items: flex-end; justify-content: center; position: absolute; inset: 0; z-index: 1; padding-bottom: 16px; border: 0; background: transparent; color: #fff; font: 500 13px/1 Manrope, sans-serif; cursor: pointer; }
  .ps-map-shield span { padding: 10px 16px; border-radius: 999px; background: rgba(17, 17, 17, .78); color: #fff; }
  .ps-map.is-live .ps-map-shield { display: none; }
}

/* Contact form (emails info@primesilicon.com) */
.ps-contact-form .ps-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ps-contact-form .ps-invalid { border-color: #d64545 !important; box-shadow: 0 0 0 3px rgba(214, 69, 69, .12) !important; }
.ps-contact-form .wpforms-submit[disabled] { opacity: .65; cursor: wait; }
.ps-form-status { margin: 16px 0 0; font-size: 14px; line-height: 1.55; min-height: 1px; }
.ps-form-status.is-ok { color: #17855f; }
.ps-form-status.is-err { color: #c23b3b; }
.ps-form-status a { color: inherit; text-decoration: underline; }

/* No user accounts on this site */
.header-icon.login-logout { display: none !important; }

/* "Services" / "Explore Services" land on the expertise grid with breathing room under the fixed header */
#services { scroll-margin-top: 150px; }
@media (max-width: 991px) { #services { scroll-margin-top: 110px; } }

/* "Get in Touch" buttons land on the contact form, clear of the fixed header */
#contact { scroll-margin-top: 150px; }
@media (max-width: 991px) { #contact { scroll-margin-top: 110px; } }
