/* RAM RELEASE RC2: QA-tested 5-column footer spacing. Production-specific unique stylesheet. */
footer.footer .footer-content > div { min-width: 0; }
footer.footer .contact-item { flex-wrap: wrap; gap: 8px !important; margin-bottom: 12px !important; }
footer.footer .footer-links { gap: 10px !important; }
footer.footer .footer-title { margin-bottom: 14px !important; }
footer.footer .contact-item, footer.footer .footer-links a { overflow-wrap: anywhere; }
@media (min-width: 1200px) {
  footer.footer { padding: 42px 0 24px !important; }
  footer.footer .footer-content {
    grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr) !important;
    align-items: start !important;
    column-gap: 18px !important;
    row-gap: 18px !important;
    margin-bottom: 26px !important;
  }
}
@media (min-width: 600px) and (max-width: 1199px) {
  footer.footer { padding: 40px 0 24px !important; }
  footer.footer .footer-content {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 28px 22px !important;
    margin-bottom: 26px !important;
  }
  footer.footer .footer-content > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  footer.footer { padding: 34px 0 105px !important; }
  footer.footer .footer-content {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    column-gap: 14px !important;
    row-gap: 24px !important;
    margin-bottom: 26px !important;
  }
  footer.footer .footer-content > div:first-child,
  footer.footer .footer-content > div:nth-child(4),
  footer.footer .footer-content > div:last-child { grid-column: 1 / -1; }
  footer.footer .footer-content > div:nth-child(4) .footer-links {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    column-gap: 14px !important;
    row-gap: 10px !important;
  }
  footer.footer .footer-bottom { gap: 8px !important; }
  footer.footer .footer-links { gap: 9px !important; }
}
@media (max-width: 350px) {
  footer.footer .footer-content { grid-template-columns: minmax(0,1fr) !important; }
  footer.footer .footer-content > div { grid-column: 1 / -1; }
  footer.footer .footer-content > div:nth-child(4) .footer-links { grid-template-columns: minmax(0,1fr) !important; }
}
/* RAM RELEASE RC2: scoped SEO city page styling. */
main.seo-page, main.seo-page * { box-sizing:border-box; }
main.seo-page {
  color-scheme:light;
  direction:rtl;
  text-align:right;
  width:100%;
  max-width:1180px;
  min-width:0;
  margin:0 auto;
  padding:130px 24px 20px;
  background:#f7fafb;
  color:#173147;
}
main.seo-page > header.seo-hero {
  display:block;
  width:100%;
  margin:0 auto 28px;
  padding:44px 48px;
  background:linear-gradient(120deg,#e7f4f1,#fff);
  border:1px solid #d9e8e9;
  border-radius:22px;
  position:relative;
  top:auto;
  box-shadow:0 8px 28px rgba(18,56,66,.04);
}
main.seo-page .seo-hero-content,
main.seo-page .seo-content-container { width:100%; max-width:1020px; margin:0 auto; }
main.seo-page .seo-badge { display:inline-block; color:#0b7168; font-size:14px; line-height:1.7; font-weight:700; margin-bottom:12px; }
main.seo-page .seo-hero h1 { font-size:clamp(30px,3.3vw,42px); line-height:1.5; font-weight:800; color:#122f42; margin:0 0 15px; }
main.seo-page .seo-hero .seo-lead { max-width:900px; font-size:17px; line-height:2; color:#405668; margin:0; }
main.seo-page > section.seo-content-section {
  width:100%;
  max-width:100%;
  margin:0 auto 35px;
  padding:38px 48px;
  border:1px solid #e3eaed;
  border-radius:20px;
  background:#fff;
  box-shadow:0 6px 28px rgba(15,23,42,.03);
}
main.seo-page .seo-content-container h2 { font-size:25px; line-height:1.55; font-weight:800; color:#153349; margin:32px 0 11px; }
main.seo-page .seo-content-container h2:first-child { margin-top:0; }
main.seo-page .seo-content-container h3 { font-size:19px; line-height:1.55; font-weight:750; color:#155750; margin:0 0 12px; }
main.seo-page .seo-content-container p { font-size:16px; line-height:2; color:#445666; margin:0 0 16px; }
main.seo-page .seo-features-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:25px 0 32px; }
main.seo-page .seo-feature-card { min-width:0; background:#f2f8f7; border:1px solid #dceae8; border-radius:15px; padding:24px 26px; }
main.seo-page .seo-feature-card p { margin:0; }
@media(max-width:767px) {
  main.seo-page { padding:110px 14px 16px; }
  main.seo-page > header.seo-hero { padding:22px 18px; border-radius:17px; margin-bottom:18px; }
  main.seo-page .seo-badge { font-size:13px; margin-bottom:9px; }
  main.seo-page .seo-hero h1 { font-size:25px; line-height:1.45; }
  main.seo-page .seo-hero .seo-lead { font-size:14px; line-height:1.85; }
  main.seo-page > section.seo-content-section { padding:27px 22px; border-radius:17px; margin-bottom:16px; }
  main.seo-page .seo-content-container h2 { font-size:21px; line-height:1.6; margin:24px 0 10px; }
  main.seo-page .seo-content-container h3 { font-size:17px; }
  main.seo-page .seo-content-container p { font-size:14px; line-height:1.9; }
  main.seo-page .seo-features-grid { grid-template-columns:minmax(0,1fr); gap:12px; margin:20px 0 26px; }
  main.seo-page .seo-feature-card { padding:19px; }
}
/* RAM QA FIRST PAINT V1. Only the pre-rendered project/client sections. */
@media (prefers-reduced-motion: reduce) {
  #ram-clients-v1 .ram-clients-track { animation: none !important; will-change: auto; }
  #ram-clients-v1 .ram-clients-group[aria-hidden="true"] { display: none; }
  #projects.ram-projects-marquee-ready .ram-projects-marquee-set[aria-hidden="true"] { display: none; }
}
