/* t53: site-wide responsive proportions (SMA-12).
   Loaded last on every page (from include/header.php, after all <head> CSS).
   Goal: nothing oversized on 1366x786-class laptops, 1920x1080 kept as it was.
   Method: vertical spacing and tall illustrations follow the viewport HEIGHT (vh), so they
   reach the old values at 1080px tall and shrink proportionally on shorter laptop screens;
   large headings follow the viewport WIDTH (vw) with the old size as the ceiling.
   Everything is scoped to >=992px or >=1200px, so tablet and mobile layouts are unchanged. */

/* ---------- 1. Section rhythm (desktop and laptop) ---------- */
@media (min-width:1200px){
	/* inner pages: shared section padding (80px at 1080px tall, ~58px at 786px) */
	body.sb-inner .page-about-us,
	body.sb-inner .page-services,
	body.sb-inner .page-service-single,
	body.sb-inner .page-work-single,
	body.sb-inner .page-blog,
	body.sb-inner .page-single-post,
	body.sb-inner .page-contact-us,
	body.sb-inner .page-testimonials,
	body.sb-inner .page-team,
	body.sb-inner .page-faq,
	body.sb-inner .our-blog,
	body.sb-inner .our-testimonials,
	body.sb-inner .error-page{
		padding-top:clamp(56px, 7.4vh, 80px);
		padding-bottom:clamp(56px, 7.4vh, 80px);
	}
	body.sb-inner div.our-vision-mission{
		padding-top:clamp(80px, 10.2vh, 110px);
		padding-bottom:clamp(86px, 11.1vh, 120px);
	}
	body.sb-inner .our-faqs{ padding-top:clamp(70px, 9.26vh, 100px); }
	body.sb-inner .google-map{ padding-bottom:clamp(56px, 7.4vh, 80px); }

	/* inner-page banner: keep the top (clears the fixed header), trim the space under the title */
	body.sb-inner .page-header,
	body.sb-inner .page-header.bg-section{ padding-bottom:clamp(62px, 8.33vh, 90px); }

	/* homepage sections */
	body .sb-apps{ padding-top:clamp(76px, 10.2vh, 110px); padding-bottom:clamp(84px, 11.1vh, 120px); }
	body .sb-mod,
	body .sb-proc{ padding-top:clamp(62px, 8.33vh, 90px); padding-bottom:clamp(62px, 8.33vh, 90px); }
	body .sb-ind{ padding-top:clamp(62px, 8.33vh, 90px); padding-bottom:clamp(56px, 7.4vh, 80px); }
	body .sb-clients{ padding-top:clamp(70px, 9.26vh, 100px); padding-bottom:clamp(70px, 9.26vh, 100px); }
	body .sb-trust{ padding-top:clamp(56px, 7.4vh, 80px); padding-bottom:clamp(50px, 6.5vh, 70px); }
	body .sb-blog{ padding-top:clamp(62px, 8.33vh, 90px); padding-bottom:clamp(66px, 8.9vh, 96px); }
	body .sb-inq{ padding-bottom:clamp(62px, 8.33vh, 90px); }
}

/* ---------- 2. Illustrations follow the viewport height ---------- */
@media (min-width:992px){
	/* About robots (were 784px / 691px / 645px tall on a 786px screen). The figure's max-width is
	   derived from a height budget (73vh / 68vh x the PNG aspect ratio), so the image keeps width:100%,
	   its width/height attributes still reserve space (no layout shift) and 1920x1080 is unchanged. */
	body.sb-inner .page-about-us .about-us-img .sb-about-robot{ max-width:clamp(260px, 48.4vh, 520px); }  /* 597x900 */
	body.sb-inner .sb-about-what .about-us-img .sb-about-robot{ max-width:clamp(280px, 54.9vh, 520px); }  /* 677x900 */
	body.sb-inner .our-faqs .our-faqs-img .sb-faq-robot{ max-width:clamp(240px, 45.9vh, 435px); }          /* 607x900 */
}
@media (min-width:1200px){
	/* blog article cover photo (2:1, was 645px tall on a 786px screen) */
	body.sb-inner .post-image img{ max-height:max(420px, 70vh); }
	/* contact map */
	body.sb-inner .google-map-iframe,
	body.sb-inner .google-map-iframe iframe{ height:clamp(420px, 70vh, 600px); }
}

/* ---------- 3. Typography: large headings scale with the viewport width ---------- */
@media (min-width:992px){
	/* inner-page banner title (64px at 1920, ~46px at 1366) */
	body.sb-inner .page-header .page-header-box h1{ font-size:clamp(36px, 3.4vw, 55px); }
	/* section titles that reuse the banner style (Solutions listing: Market / Corporate Solutions) */
	body.sb-inner .page-team .page-header-box h1{ font-size:clamp(32px, 2.9vw, 56px); }
	/* article / module / solution body headings (were a fixed 54px) */
	body.sb-inner .service-entry h2,
	body.sb-inner .work-entry h2,
	body.sb-inner .post-entry h2{ font-size:clamp(32px, 2.8vw, 54px); }
	/* section intro paragraphs (17px at 1920, ~15.5px at 1366) */
	body.sb-inner .section-title p{ font-size:clamp(15px, calc(10.6px + .36vw), 17px); }
}
@media (min-width:1200px){
	/* homepage "SmartBooks Applications" was the only fixed 54px homepage title */
	body .sb-apps-title{ font-size:clamp(40px, 2.8vw, 54px); }
}
