/*
Theme Name: Polygon Investments
Theme URI: https://polygoninvestments.co.ke
Author: Yola
Description: Custom Elementor-ready theme for Polygon Investments Limited. Built as a lightweight canvas theme — Elementor controls everything, including header and footer (via Theme Builder templates with an Entire Site condition) and every page's content (native widgets/containers, no HTML embeds).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: polygon-investments
*/

/* ==========================================================================
   Base reset — kept intentionally minimal. Elementor (via Theme Builder for
   header/footer, and native containers for page content) owns essentially
   all visual styling; this file only covers global typography defaults and
   a couple of grid safety-net utility classes below.
   ========================================================================== */

:root {
	--polygon-navy: #0A1B4D;
	--polygon-navy-light: #0F2461;
	--polygon-blue: #0057E0;
	--polygon-blue-hover: #0046B8;
	--polygon-bg-light: #F2F6FD;
	--polygon-text-dark: #1A2338;
	--polygon-text-body: #4B5468;
	--polygon-border: #E3E8F3;
	--polygon-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--polygon-font);
	color: var(--polygon-text-dark);
	margin: 0;
	background: #ffffff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   Elementor safety-net: services grid
   Native Elementor "Grid Container" settings (Layout tab → Container Type:
   Grid) already do this. This class is added as a backup so the 4×2 grid
   holds even before those per-container settings are touched.
   ========================================================================== */

.polygon-services-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

@media (max-width: 1024px) {
	.polygon-services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* Services page (3-column grid, matches the page mockup) */
.polygon-services-grid-3col {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.polygon-services-grid-3col {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.polygon-services-grid-3col {
		grid-template-columns: 1fr;
	}
}

/* About Us — Our Values (5 across) */
.polygon-values5-grid {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 900px) {
	.polygon-values5-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.polygon-values5-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* About Us — Leadership (3 across) */
.polygon-leadership-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
	.polygon-leadership-grid {
		grid-template-columns: 1fr;
	}
}

/* Why Choose Us page — reasons grid (4 across, 2 rows, last row partial) */
.polygon-whychoose-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
	.polygon-whychoose-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.polygon-whychoose-grid {
		grid-template-columns: 1fr;
	}
}
