/* Admin-uploaded icon/photo containment. The vendor theme (main.css) never
   constrains these <img> dimensions because its own bundled icons were all
   pre-sized to match the design (~50-70px). Now that these fields accept any
   admin-uploaded image with no dimension limit (only a file-size cap), an
   oversized upload renders at its natural size with nothing to contain it —
   breaking the circular badge layout and overflowing into the next section.
   Fixes a real bug: uploading a large tech-badge icon overflowed past its
   296px circle into the FAQ section below it. */
.feature-wrapper .feature-items .feature-box .icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.achievement-section .achievement-area .achievement-icon-items .icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.testimonial-card .testimonial-top .author-info img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Override font-display for the two FontAwesome fonts PageSpeed flagged
   (fa-brands-400, fa-solid-900). Vendor file assets/css/all.min.css declares
   these as font-display:block (text stays invisible up to 3s while the font
   loads); redeclaring the exact same family/weight/src here with
   font-display:swap — loaded after all.min.css — wins for that font-face
   signature, so text shows immediately in a fallback font instead of
   waiting/hiding. Kept as a redeclaration rather than editing the vendor
   file, so a theme update to all.min.css can't silently lose the fix. */
@font-face {
  font-family: "Font Awesome 5 Brands";
  font-display: swap;
  font-weight: 400;
  src:
    url(../webfonts/fa-brands-400.woff2) format("woff2"),
    url(../webfonts/fa-brands-400.ttf) format("truetype");
}

@font-face {
  font-family: "Font Awesome 5 Pro";
  font-display: swap;
  font-weight: 900;
  src:
    url(../webfonts/fa-solid-900.woff2) format("woff2"),
    url(../webfonts/fa-solid-900.ttf) format("truetype");
}

/* Custom GSAP-driven headline for the hero section: a lime "spotlight" pill
   scans back and forth across the first line, revealing a dark-colored copy
   of the same text underneath, while the second line stays static.

   Specificity note: legacy vendor rule `.hero-1 .hero-content h1 span` (in
   assets/css/main.css) tints every <span> inside the hero h1 lime by
   default and outranks a single class selector. The colors below are
   !important on purpose to win against that vendor rule. */

.hero-scan-line {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.hero-scan-line__base {
  color: var(--white, #fff) !important;
}

.hero-scan-pill {
  position: absolute;
  top: calc(50% - 0.62em);
  left: 0;
  height: 1.24em;
  width: clamp(130px, 19vw, 230px);
  border-radius: 999px;
  background: var(--theme, #eaff48);
  overflow: hidden;
  display: block;
  pointer-events: none;
  will-change: transform;
}

.hero-scan-pill__text {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 0.06em;
  color: var(--black, #000) !important;
  white-space: nowrap;
  will-change: transform;
}

.hero-scan-static {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  color: var(--white, #fff) !important;
}

.hero-scan-sparkle {
  display: inline-block;
  color: var(--theme, #eaff48) !important;
  font-size: 0.62em;
  animation: hero-scan-sparkle-pulse 1.8s ease-in-out infinite;
}

@keyframes hero-scan-sparkle-pulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.3) rotate(25deg);
    opacity: 0.7;
  }
}

@media (max-width: 767px) {
  .hero-scan-pill {
    width: clamp(96px, 34vw, 170px);
  }
}

/* Contact page — self-contained styling built on the site's CSS custom
   properties (defined in main.css :root): --theme, --black, --white, --border,
   --bg. Matches the dark reference layout: hero heading, scrolling marquee band,
   then a two-column info + form section. */

.contact-page {
  background-color: var(--black);
}

/* ---- Main two-column section ---- */
.contact-main {
  padding: 100px 0 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Left column */
.contact-info__label {
  color: var(--white);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  margin: 0;
}

.contact-info__email {
  display: inline-block;
  color: var(--theme);
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 5.5vw, 72px);
  line-height: 1.05;
  word-break: break-word;
  margin: 6px 0 40px;
  transition: opacity 0.2s ease;
}

.contact-info__email:hover {
  opacity: 0.85;
  color: var(--theme);
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  padding: 30px;
  margin-bottom: 24px;
}

.contact-card__row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-card__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--theme);
  font-size: 20px;
}

.contact-card__kicker {
  color: #ffffff80;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
}

.contact-card__title {
  color: var(--white);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 4px;
}

.contact-card__text {
  color: #ffffff99;
  font-size: 15px;
  margin: 0;
}

.contact-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffffcc;
  font-size: 15px;
}

.contact-steps__num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 12px;
}

/* Right column — form card */
.contact-form-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  padding: 40px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-field {
  display: flex;
  flex-direction: column;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field label {
  color: #ffffff99;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-field input,
.contact-field textarea {
  background: #ffffff0a;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--white);
  font-size: 15px;
  font-family: "DM Sans", sans-serif;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #ffffff4d;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--theme);
  background: #ffffff14;
}

.contact-field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-budget {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-pill {
  border: 1px solid var(--border);
  background: transparent;
  color: #ffffffcc;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-pill:hover {
  border-color: #ffffff66;
}

.contact-pill.is-active {
  background: var(--theme);
  border-color: var(--theme);
  color: var(--black);
  font-weight: 600;
}

.contact-submit {
  width: 100%;
  margin-top: 30px;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 100px;
  padding: 18px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Unbounded", sans-serif;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(234, 255, 72, 0.12);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 55px rgba(234, 255, 72, 0.22);
}

/* Server-rendered feedback (flash message + per-field validation errors) */
.contact-alert {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.contact-alert--success {
  border-color: var(--theme);
  background: rgba(234, 255, 72, 0.1);
  color: var(--theme);
}

.contact-alert--error {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  color: #ff9b9b;
}

.contact-field__error {
  color: #ff9b9b;
  font-size: 13px;
  margin-top: 8px;
}

/* Honeypot — visually hidden but still focusable-by-bot */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-recaptcha {
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contact-form__note {
  text-align: center;
  color: #ffffff66;
  font-size: 13px;
  margin: 18px 0 0;
}

.contact-form__note a {
  color: #ffffff99;
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 575px) {
  .contact-form-card {
    padding: 26px 20px;
  }
  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}
