/*
Theme Name: Scale Genic Hybrid Theme
Theme URI: https://scalegenic.com/
Author: Scale Genic
Author URI: https://scalegenic.com/
Description: A modern, premium, responsive, SEO-friendly, and fully customizable hybrid WordPress theme for Scale Genic. Supports Gutenberg and Elementor.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scalegenic
*/

/* 
 * Base CSS resets and utility classes. 
 * Global colors and typography are handled by theme.json 
 */

:root {
	--sg-header-height: 80px;
	--sg-transition: all 0.3s ease;
	--sg-shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
	--sg-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
	--sg-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1);
	--sg-radius-sm: 6px;
	--sg-radius-md: 12px;
	--sg-radius-lg: 24px;
	--sg-radius-pill: 9999px;
}

body {
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-color: var(--wp--preset--color--pale-green);
	color: var(--wp--preset--color--body-text);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	color: var(--wp--preset--color--primary-green);
	font-weight: 700;
	margin-top: 0;
	line-height: 1.2;
}

a {
	color: var(--wp--preset--color--primary-green);
	text-decoration: none;
	transition: var(--sg-transition);
}

a:hover {
	opacity: 0.8;
}

/* Container */
.sg-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* Buttons */
.sg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	border-radius: var(--sg-radius-pill);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: var(--sg-transition);
	cursor: pointer;
	border: none;
}

.sg-btn-primary {
	background-color: var(--wp--preset--color--cta-yellow);
	color: var(--wp--preset--color--dark-text);
}

.sg-btn-primary:hover {
	background-color: #e5ad06;
	color: var(--wp--preset--color--dark-text);
	transform: translateY(-2px);
}

.sg-btn-secondary {
	background-color: transparent;
	color: var(--wp--preset--color--primary-green);
	border: 2px solid var(--wp--preset--color--primary-green);
}

.sg-btn-secondary:hover {
	background-color: var(--wp--preset--color--primary-green);
	color: var(--wp--preset--color--white);
}

/* Cards */
.sg-card {
	background: var(--wp--preset--color--white);
	border-radius: var(--sg-radius-md);
	padding: 32px;
	box-shadow: var(--sg-shadow-sm);
	transition: var(--sg-transition);
}

.sg-card:hover {
	box-shadow: var(--sg-shadow-hover);
	transform: translateY(-4px);
}

/* Header */
.site-header {
	background: var(--wp--preset--color--pale-green);
	padding: 20px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header .sg-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 32px;
}

.main-navigation a {
	color: var(--wp--preset--color--dark-text);
	font-weight: 500;
	font-size: 15px;
}

.main-navigation a:hover {
	color: var(--wp--preset--color--primary-green);
}

/* Footer */
.site-footer {
	background-color: var(--wp--preset--color--primary-green);
	color: var(--wp--preset--color--white);
	padding: 80px 0 40px;
	margin-top: 80px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 40px;
	margin-bottom: 60px;
}

.footer-col h3 {
	color: var(--wp--preset--color--white);
	font-size: 18px;
	margin-bottom: 24px;
}

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

.footer-col ul li {
	margin-bottom: 12px;
}

.footer-col ul li a {
	color: var(--wp--preset--color--secondary-green);
}

.footer-col ul li a:hover {
	color: var(--wp--preset--color--white);
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: var(--wp--preset--color--secondary-green);
}

/* Grids */
.sg-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.sg-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

/* Utilities */
.sg-eyebrow {
	display: block;
	color: var(--wp--preset--color--secondary-green);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	margin-bottom: 16px;
}

.sg-section {
	padding: 80px 0;
}

.sg-section-light {
	background: var(--wp--preset--color--white);
}

.text-center {
	text-align: center;
}

/* Forms */
.sg-input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #e2e8f0;
	border-radius: var(--sg-radius-sm);
	font-family: inherit;
	font-size: 15px;
	box-sizing: border-box;
	transition: var(--sg-transition);
}

.sg-input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary-green);
	box-shadow: 0 0 0 3px rgba(15, 70, 45, 0.1);
}

/* Responsive elements */
img {
	max-width: 100%;
	height: auto;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 992px) {
	.footer-widgets {
		grid-template-columns: 1fr 1fr;
	}
	.sg-grid-3 {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.footer-widgets {
		grid-template-columns: 1fr;
	}
	.sg-grid-3, .sg-grid-2 {
		grid-template-columns: 1fr;
	}
	.main-navigation {
		display: none; /* Add mobile menu toggle later */
	}
}

