/*
Theme Name:   No Tolls
Theme URI:    https://keeporegonfreeways-tollfree.com
Description:  Genesis child theme for keeporegonfreeways-tollfree.com
Author:       Cyphon Digital
Author URI:   https://cyphondigital.com/?keeporegonfreeways-tollfree.com
Template:     genesis
Template Version: 3.4.0
Version:      1.0.0
Text Domain:  no-tolls
*/

html {
	font-size: 16px;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	line-height: 1.6;
	color: #333;
}

/* ===== Header Styles ===== */
.site-header {
	width: 100%;
	padding: 1.5rem 0;
	transition: background-color 0.3s ease;
	position: relative;
}

.header-inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
	min-width: 0;
}

.logo-link {
	display: inline-block;
	line-height: 1;
	flex-shrink: 0;
}

.site-logo {
	max-width: 200px;
	height: auto;
	display: block;
	width: 100%;
}

.site-tagline {
	margin: 0;
	font-size: 0.875rem;
	color: #666;
	line-height: 1.4;
	max-width: 150px;
	word-wrap: break-word;
}

.primary-navigation {
	margin-left: auto;
	flex-grow: 0;
	display: flex;
	align-items: center;
	position: relative;
}

.primary-navigation .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
	align-items: center;
}

.primary-navigation .menu li {
	position: relative;
	white-space: nowrap;
}

.primary-navigation .menu a {
	display: block;
	padding: 0.5rem 0;
	text-decoration: none;
	color: inherit;
	font-weight: 500;
	transition: color 0.2s ease;
	font-size: 1rem;
}

.primary-navigation .menu a:hover,
.primary-navigation .menu a:focus {
	color: #0066cc;
	outline: none;
}

.primary-navigation .menu li.current-menu-item > a {
	color: #0066cc;
	border-bottom: 2px solid #0066cc;
	padding-bottom: calc(0.5rem - 2px);
}

/* Submenu Styles */
.primary-navigation .menu ul {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	min-width: 200px;
	position: absolute;
	top: 100%;
	left: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.primary-navigation .menu li:hover > ul {
	opacity: 1;
	visibility: visible;
}

.primary-navigation .menu ul li {
	padding: 0;
	white-space: normal;
}

.primary-navigation .menu ul a {
	padding: 0.75rem 1rem;
	border: none;
	font-size: 0.95rem;
}

.primary-navigation .menu ul a:hover,
.primary-navigation .menu ul a:focus {
	background: #f5f5f5;
	outline: none;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	line-height: 1;
	flex-shrink: 0;
	color: inherit;
	transition: color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
	color: #0066cc;
	outline: none;
	transform: scale(1.05);
}

/* ===== Content Area Styles ===== */
.site-container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-inner {
	max-width: 1300px !important;
	margin: 0 auto !important;
	padding: 2rem 1.5rem !important;
	width: 100% !important;
	flex: 1;
	box-sizing: border-box;
}

.content-sidebar-wrap {
	max-width: 100%;
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}

main.content {
	flex: 1;
	min-width: 0;
}

.entry-header {
	margin-bottom: 1.5rem;
}

.entry-title {
	font-size: 2rem;
	margin: 0 0 1rem 0;
	line-height: 1.2;
}

.entry-content {
	line-height: 1.8;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.entry-content img,
.entry-content video {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ===== Footer Styles ===== */
.site-footer {
	width: 100%;
	margin-top: 3rem;
	transition: background-color 0.3s ease;
}

.footer-inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
	box-sizing: border-box;
	width: 100%;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-column {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.footer-content > * {
	line-height: 1.6;
}

.footer-content h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.125rem;
}

.footer-content p {
	margin: 0 0 1rem 0;
	font-size: 0.95rem;
}

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

.footer-content li {
	margin-bottom: 0.5rem;
}

.footer-content a {
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
}

.footer-content a:hover,
.footer-content a:focus {
	opacity: 0.7;
	outline: none;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	flex-wrap: wrap;
}

.footer-copyright {
	font-size: 0.875rem;
	opacity: 0.7;
	line-height: 1.5;
	margin: 0;
}

.footer-navigation {
	margin-left: auto;
	margin-bottom: 0;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.footer-menu li {
	margin: 0;
}

.footer-menu a {
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
	display: inline-block;
	padding: 0.25rem 0;
	font-size: 0.95rem;
}

.footer-menu a:hover,
.footer-menu a:focus {
	opacity: 0.7;
	outline: none;
}

/* ===== Responsive Design - Tablet (768px and below) ===== */
@media (max-width: 768px) {
	html {
		font-size: 15px;
	}

	.site-header {
		padding: 1rem 0;
	}

	.header-inner {
		padding: 0 1rem;
		gap: 0.75rem;
		align-items: flex-start;
	}

	.header-brand {
		gap: 0.75rem;
	}

	.site-logo {
		max-width: 150px;
	}

	.site-tagline {
		display: none;
	}

	.primary-navigation {
		width: 100%;
		order: 3;
		margin-left: 0;
		flex-grow: 0;
	}

	.menu-toggle {
		display: flex;
		justify-content: center;
		align-items: center;
		margin-left: auto;
		padding: 0.5rem;
		font-size: 2rem;
		min-height: 44px;
		min-width: 44px;
	}

	.primary-navigation .menu {
		display: flex;
		flex-direction: column;
		gap: 0;
		width: 100%;
		background: #f9f9f9;
		border: 1px solid #ddd;
		border-radius: 4px;
		padding: 0.5rem 0;
		margin-top: 0.5rem;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
		z-index: 999;
	}

	.primary-navigation .menu.show {
		max-height: 500px;
		opacity: 1;
		visibility: visible;
	}

	.primary-navigation .menu li {
		width: 100%;
		border-bottom: 1px solid #eee;
		white-space: normal;
	}

	.primary-navigation .menu li:last-child {
		border-bottom: none;
	}

	.primary-navigation .menu a {
		padding: 0.75rem 1rem;
		font-size: 0.95rem;
	}

	.primary-navigation .menu li.current-menu-item {
		background-color: #e3e3e3;
	}

	.primary-navigation .menu li.current-menu-item > a {
		color: #333;
		border-bottom: none;
		padding-bottom: 0.75rem;
	}

	.primary-navigation .menu ul {
		position: static;
		opacity: 1;
		visibility: visible;
		border: none;
		box-shadow: none;
		background: #f5f5f5;
		margin: 0;
		padding: 0;
	}

	.primary-navigation .menu li:hover > ul {
		display: none;
	}

	.primary-navigation .menu ul li {
		border: none;
	}

	.primary-navigation .menu ul a {
		padding-left: 2rem;
		font-size: 0.9rem;
	}

	.site-inner {
		padding: 1.5rem 1rem !important;
	}

	.content-sidebar-wrap {
		gap: 1.5rem;
	}

	.entry-title {
		font-size: 1.5rem;
	}

	.footer-content {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 1.5rem;
		margin-bottom: 1.5rem;
		padding-bottom: 1.5rem;
	}

	.footer-inner {
		padding: 1.5rem 1rem;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-navigation {
		margin-left: 0;
		width: 100%;
	}

	.footer-menu {
		flex-direction: column;
		gap: 0.75rem;
		justify-content: flex-start;
	}
}

/* ===== Responsive Design - Mobile (480px and below) ===== */
@media (max-width: 480px) {
	html {
		font-size: 14px;
	}

	.site-header {
		padding: 0.75rem 0;
	}

	.header-inner {
		padding: 8px 0.75rem;
		gap: 0.5rem;
	}

	.header-brand {
		gap: 0.5rem;
	}

	.site-logo {
		max-width: 120px;
	}

	.primary-navigation .menu {
		gap: 0;
		font-size: 0.9rem;
	}

	.primary-navigation .menu a {
		padding: 0.5rem 0.75rem;
		font-size: 0.9rem;
	}

	.menu-toggle {
		padding: 0.5rem;
		font-size: 2rem;
	}

	.site-inner {
		padding: 1rem 0.75rem !important;
	}

	.entry-title {
		font-size: 1.25rem;
	}

	.content-sidebar-wrap {
		flex-direction: column;
		gap: 1rem;
	}

	.footer-inner {
		padding: 1rem 0.75rem;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 1rem;
		margin-bottom: 1rem;
		padding-bottom: 1rem;
	}

	.footer-menu {
		flex-direction: column;
		gap: 0.5rem;
	}

	.footer-copyright {
		padding-top: 0.75rem;
		font-size: 0.8rem;
	}
}

/* ===== Responsive Design - Small Mobile (320px) ===== */
@media (max-width: 360px) {
	html {
		font-size: 13px;
	}

	.header-inner {
		padding: 0 0.5rem;
		gap: 0.25rem;
	}

	.site-logo {
		max-width: 100px;
	}

	.menu-toggle {
		padding: 0.4rem;
		font-size: 1.75rem;
	}

	.site-inner {
		padding: 0.75rem 0.5rem !important;
	}

	.entry-title {
		font-size: 1.1rem;
	}

	.primary-navigation .menu a {
		padding: 0.4rem 0.5rem;
		font-size: 0.85rem;
	}

	.footer-inner {
		padding: 0.75rem 0.5rem;
	}

	.footer-content {
		gap: 0.75rem;
	}

	.footer-menu {
		gap: 0.25rem;
	}
}

/* ===== Print Styles ===== */
@media print {
	.menu-toggle,
	.primary-navigation .menu.show {
		display: none;
	}

	.site-header,
	.site-footer {
		page-break-inside: avoid;
	}
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ===== Form Row/Column Layout ===== */
.column-form {
	display: grid;
	gap: 15px;
	margin-bottom: 15px;
}

.columns-1 {
	grid-template-columns: 1fr;
}

.columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.column-form > div > p {
	margin: 0;
}

.column-form .cf7-cf-turnstile {
	margin-bottom: -45px;
}

@media (max-width: 768px) {
	.columns-1,
	.columns-2,
	.columns-3,
	.columns-4 {
		grid-template-columns: 1fr;
	}
}

/* ===== Block Styles ===== */
.wp-block-columns.is-layout-flex {
	width: 100%;
}

.wp-block-columns.is-layout-flex .wp-block-column {
	flex: 1 1 0;
	min-width: 0;
}

.wp-block-columns.is-layout-flex .wp-block-column:only-child {
	flex-basis: 100% !important;
	width: 100% !important;
}

/* ===== Contact Form 7 Styles ===== */
.wpcf7-form-control {
	width: 100%;
	box-sizing: border-box;
}

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio),
select {
	height: 35px;
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 8px 0.75rem;
	font-family: inherit;
	font-size: inherit;
	transition: border-color 0.2s ease;
}

select.wpcf7-form-control {
	padding: 6px 0.75rem !important;
	background: #fff !important;
}

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio):focus {
	border-color: #666;
	outline: none;
}

.wpcf7-form-control[aria-invalid="true"] {
	border-color: red !important;
}

.wpcf7-not-valid-tip {
	font-size: 11px !important;
}

textarea.wpcf7-form-control {
	height: auto;
	width: 100%;
	padding: 8px 0.75rem;
	resize: vertical;
	min-height: 100px;
	box-sizing: border-box;
}

textarea.wpcf7-form-control:focus {
	border-color: #666;
}

select.wpcf7-form-control:focus {
	border-color: #666;
}

.wpcf7-submit {
	height: 35px;
	padding: 0 1.5rem;
	border-radius: 5px;
	border: 1px solid #0066cc;
	background: #0066cc;
	color: #fff;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	width: auto !important;
}

.wpcf7-submit:hover,
.wpcf7-submit:focus {
	background: #0052a3;
	border-color: #0052a3;
	outline: none;
}

@media (prefers-color-scheme: dark) {
	body {
		color: #e0e0e0;
		background-color: #1a1a1a;
	}

	.primary-navigation .menu ul {
		background: #2a2a2a;
		border-color: #444;
	}

	.primary-navigation .menu ul a:hover {
		background: #333;
	}

	.footer-copyright {
		opacity: 0.8;
	}

	.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio) {
		background: #222;
		color: #e0e0e0;
		border-color: #444;
	}

	.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio):focus {
		border-color: #666;
	}

	textarea.wpcf7-form-control {
		background: #222;
		color: #e0e0e0;
	}

	select.wpcf7-form-control {
		background: #222;
		color: #e0e0e0;
	}
}
