/* ==========================================================================
   Teksol theme: WordPress + Elementor compatibility layer.
   The design itself is in site.css / residential.css (unchanged originals).
   ========================================================================== */

/* 1. Elementor Global Colors and Global Fonts drive the original design tokens.
      Elementor prints the --e-global-* variables on the body (kit class), so the
      mapping lives on body. Fallbacks are the original values, so the site looks
      identical with or without Elementor. */
body {
	--lime: var(--e-global-color-primary, #8DC63F);
	--ink: var(--e-global-color-secondary, #1D2023);
	--text: var(--e-global-color-text, #1D2023);
	--deep: var(--e-global-color-accent, #3F6C12);
	--lime-2: var(--e-global-color-tklime2, #A4D65E);
	--ink-2: var(--e-global-color-tkink2, #2A2E32);
	--paper: var(--e-global-color-tkpaper, #F4F6F1);
	--paper-2: var(--e-global-color-tkpaper2, #E6EAE1);
	--line: var(--e-global-color-tkline, #E3E7DE);
	--muted: var(--e-global-color-tkmuted, #4B5157);
	--body-c: var(--e-global-color-tkbody, #3A3F44);
	--on-dark: var(--e-global-color-tkondark, #C9CED3);
	--d: var(--e-global-typography-primary-font-family, "Saira"), "Arial Narrow", system-ui, sans-serif;
	--b: var(--e-global-typography-text-font-family, "Inter"), system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--b);
	color: var(--text);
}
.h2, .hero h1 { font-weight: var(--e-global-typography-primary-font-weight, 800); }
.eb { font-family: var(--e-global-typography-secondary-font-family, "Saira"), "Arial Narrow", system-ui, sans-serif; font-weight: var(--e-global-typography-secondary-font-weight, 700); }

/* 2. Elementor wrappers around Teksol sections add no spacing or layout of their own. */
.e-con.tk-page {
	--padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
	--gap: 0px 0px; --row-gap: 0px; --column-gap: 0px;
	--container-max-width: 100%; --content-width: 100%; --width: 100%;
	padding: 0; gap: 0; max-width: 100%;
}
.e-con.tk-page > .elementor-element { width: 100%; max-width: 100%; margin: 0; }
.elementor-widget[class*="elementor-widget-teksol-"] { margin: 0; }
.elementor-widget[class*="elementor-widget-teksol-"] > .elementor-widget-container { margin: 0; padding: 0; }

/* 3. Theme Builder header/footer: Elementor's wrappers must not trap the sticky header
      or the fixed mobile call bar, so they take no box of their own. */
.elementor-location-header,
.elementor-location-header > .e-con,
.elementor-location-header > .e-con > .e-con-inner,
.elementor-location-header .elementor-widget-teksol-header,
.elementor-location-header .elementor-widget-teksol-header > .elementor-widget-container,
.elementor-location-footer,
.elementor-location-footer > .e-con,
.elementor-location-footer > .e-con > .e-con-inner,
.elementor-location-footer .elementor-widget-teksol-footer,
.elementor-location-footer .elementor-widget-teksol-footer > .elementor-widget-container { display: contents; }

/* 4. Elementor editor: keep panels/menus usable and show hidden helper elements while editing. */
.elementor-editor-active .hp-field { position: absolute !important; }
.elementor-editor-active .hdr { position: relative; }

/* 5. Pages and posts that are not built with Elementor (new pages from the block editor). */
.tk-entry { margin-top: 28px; max-width: 76ch; font-size: 17px; line-height: 1.7; color: var(--body-c); }
.tk-entry > * + * { margin-top: 1.1em; }
.tk-entry h2, .tk-entry h3, .tk-entry h4 { font-family: var(--d); font-weight: 800; line-height: 1.15; color: var(--text); margin-top: 1.6em; }
.tk-entry h2 { font-size: clamp(26px, 2.6vw, 34px); }
.tk-entry h3 { font-size: 22px; }
.tk-entry ul, .tk-entry ol { padding-left: 1.3em; }
.tk-entry ul { list-style: disc; }
.tk-entry ol { list-style: decimal; }
.tk-entry li + li { margin-top: .4em; }
.tk-entry img { border-radius: 14px; }
.tk-entry blockquote { border-left: 4px solid var(--lime); padding-left: 18px; color: var(--text); }
.tk-entry .alignwide { max-width: 1192px; }
.tk-entry .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 6px; background: var(--lime); color: #15200A; font-weight: 700; text-decoration: none; }
.tk-thumb { margin-top: 26px; border-radius: 16px; overflow: hidden; }
.tk-thumb img { width: 100%; }
.tk-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.tk-post { text-decoration: none; }
.tk-post-img { display: block; margin: -26px -26px 18px; border-radius: 16px 16px 0 0; overflow: hidden; aspect-ratio: 16/9; }
.tk-post-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-pager { margin-top: 30px; }
.tk-pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-pager .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 600; }
.tk-pager .page-numbers.current { background: var(--lime); border-color: var(--lime); color: #15200A; }
@media (max-width: 960px) { .tk-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tk-posts { grid-template-columns: 1fr; } }

/* 6. WordPress core classes. */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption.wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 8px; }
