/* Shared headline scale and compact spacing across the ElvronAI site. */
:root {
  --page-title-size: clamp(30px, 2.5vw, 36px);
  --section-title-size: clamp(28px, 2.5vw, 34px);
  --page-heading-gap: 7px;
  --page-section-gap: 20px;
}

/* Keep the homepage hero distinct; align its section titles and dividers. */
body:not(.software-page):not(.experts-page):not(.freelancer-profile-page-body) #main-content > .section .section-heading {
  gap: var(--page-section-gap);
  margin-bottom: 18px;
}
body:not(.software-page):not(.experts-page):not(.freelancer-profile-page-body) #main-content > .section .section-heading .section-kicker {
  margin-bottom: var(--page-heading-gap);
}
body:not(.software-page):not(.experts-page):not(.freelancer-profile-page-body) #main-content > .section .section-heading h2 {
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}
#main-content > .top-expertise-section > .container {
  padding: clamp(20px, 2.3vw, 30px) !important;
}

/* Eight verified service cards, five process steps, and four AI feature cards. */
.services-section .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-section .process-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.technology-section .technology-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Experts uses the same scale without disturbing its search and filter behavior. */
.experts-page .experts-directory-heading h1 {
  font-size: var(--page-title-size);
}

/* Software catalog, product details, and the custom-software enquiry. */
.software-page .catalog-intro {
  gap: 20px;
  margin-top: 10px;
  padding: 22px 26px;
}
.software-page .catalog-intro .section-kicker { margin-bottom: var(--page-heading-gap); }
.software-page .catalog-intro h1,
.software-page .detail-summary h1 {
  font-size: var(--page-title-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}
.software-page .catalog-intro h1 + p,
.software-page .detail-summary > p { margin-top: 8px; }
.software-page .catalog-heading h2,
.software-page .custom-guide > h2,
.software-page .product-detail-grid > div > h2:first-child {
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}
.software-page .catalog-heading { margin-bottom: 14px; }
.software-page .catalog-filters { padding: 18px !important; }
.software-page .catalog-section:not(.product-detail-intro):not(.product-detail-grid):not(.custom-layout) {
  padding-block: var(--page-section-gap);
}
.software-page .product-detail-intro,
.software-page .product-detail-grid,
.software-page .custom-layout {
  margin-block: 14px;
  padding: 24px;
}
.software-page .breadcrumbs { margin-top: 10px; }

/* The talent landing keeps its larger hero but follows the tighter text rhythm. */
.talent-layout { gap: clamp(28px, 4vw, 72px); padding-block: clamp(36px, 4vw, 60px); }
.talent-intro .kicker { margin-bottom: 14px; }
.talent-intro .intro-copy { margin-top: 17px; }
.talent-intro .benefit-list { margin-top: 24px; gap: 16px; }
.talent-intro .trust-note { margin-top: 24px; padding-top: 16px; }

/* Freelancer account pages retain their form layout and reduce empty framing. */
.freelancer-profile-page-body .profile-page-main { padding-block: 24px 48px; }
.freelancer-profile-page-body .login-view { margin-top: 16px; }
.freelancer-profile-page-body .login-hero { padding: 24px; }
.freelancer-profile-page-body .login-hero h1,
.freelancer-profile-page-body .profile-not-found h1,
.freelancer-profile-page-body .settings-hero h1 {
  font-size: var(--page-title-size);
  line-height: 1.1;
  letter-spacing: -1px;
}
.freelancer-profile-page-body .login-hero > p:last-child { margin-top: 8px; }
.freelancer-profile-page-body .login-form { padding: 20px 24px 22px; }
.freelancer-profile-page-body .settings-hero { padding: 22px; }
.freelancer-profile-page-body .settings-card { margin-top: 12px; }

/* Standalone ELVY demo: align its text gaps while preserving the interactive hero. */
.elvy-prototype .copy { margin: 17px 0 18px; }
.elvy-prototype .feature-row { margin-bottom: 20px; }

@media (max-width: 700px) {
  :root { --page-section-gap: 18px; }
  .services-section .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-section .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .software-page .catalog-intro { padding: 20px; }
  .software-page .product-detail-intro,
  .software-page .product-detail-grid,
  .software-page .custom-layout { margin-block: 10px; padding: 20px; }
  .talent-layout { gap: 28px; padding: 34px 20px 48px; }
  .freelancer-profile-page-body .profile-page-main { padding-block: 18px 36px; }
  .freelancer-profile-page-body .login-hero,
  .freelancer-profile-page-body .login-form { padding-inline: 20px; }
}

@media (max-width: 600px) {
  .services-section .service-grid,
  .technology-section .technology-grid { grid-template-columns: 1fr; }
}
