/*
Theme Name: Sarvo Solutions
Template: twentytwentyfive
Description: Clean white child theme of Twenty Twenty-Five for sarvosol.com.
Version: 1.0
Text Domain: sarvosol
*/

/* ---------- Header ---------- */
.sv-header {
	border-top: 10px solid var(--wp--preset--color--accent-1);
	border-bottom: 1px solid #ececec;
	background: #fff;
}
.sv-phone a { color: var(--wp--preset--color--accent-1) !important; }

/* Green accents */
main h1.wp-block-post-title,
main h1.wp-block-heading {
	display: inline-block;
	border-bottom: 3px solid var(--wp--preset--color--accent-1);
	padding-bottom: .25rem;
}
h3.wp-block-heading,
.sv-card h3 a { color: var(--wp--preset--color--accent-1); }
.sv-features li::marker { color: var(--wp--preset--color--accent-1); }
.wp-block-quote { border-left-color: var(--wp--preset--color--accent-1); }
.sv-topbar {
	gap: 1rem;
}
.sv-logo img {
	display: block;
	height: 64px;
	width: auto;
	max-width: 100%;
}
.sv-phone a {
	color: #1a1a1a;
	font-weight: 600;
	font-size: 1.15rem;
	text-decoration: none;
	white-space: nowrap;
}
.sv-phone a:hover { color: var(--wp--preset--color--accent-1); }
.sv-phone .sv-phone-label {
	display: block;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #6b6b6b;
	text-align: right;
}
.sv-nav .wp-block-navigation-item__content { padding: .35rem 0; }
.sv-nav .current-menu-item > a,
.sv-nav .current-menu-ancestor > a { color: var(--wp--preset--color--accent-1); }

/* ---------- Text + picture rows (alternating) ---------- */
.sv-row.wp-block-columns { gap: 3rem; align-items: flex-start; }
.sv-row .sv-pic img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
@media (min-width: 782px) {
	.sv-row.sv-pic-left { flex-direction: row-reverse; }
	.sv-row .sv-pic { position: sticky; top: 2rem; }
}

/* Lists */
.sv-features li { margin-bottom: .55rem; }
.sv-modules { columns: 2; column-gap: 2rem; }
@media (max-width: 600px) { .sv-modules { columns: 1; } }

/* Home cards: 4 across on desktop, 2 on tablets, 1 on phones */
.sv-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
@media (max-width: 1000px) { .sv-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .sv-cards { grid-template-columns: 1fr; } }
.sv-card { border: 1px solid #ececec; border-top: 4px solid var(--wp--preset--color--accent-1); border-radius: 10px; overflow: hidden; background: #fff; height: 100%; }
.sv-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.sv-card .sv-card-body { padding: 1rem 1.25rem 1.25rem; }
.sv-card h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.sv-card h3 a { text-decoration: none; color: inherit; }
.sv-card p { margin: 0; font-size: .95rem; color: #555; }

/* ---------- Contact form ---------- */
.sv-form .wpcf7-form p { margin: 0 0 1.1rem; }
.sv-form label { display: block; font-weight: 600; font-size: .95rem; }
.sv-form input[type="text"],
.sv-form input[type="email"],
.sv-form select,
.sv-form textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: .35rem;
	padding: .7rem .8rem;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	font: inherit;
	background: #fff;
}
.sv-form textarea { min-height: 150px; }
.sv-form input:focus, .sv-form select:focus, .sv-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 1px;
	border-color: transparent;
}
.sv-form .sv-count { display: block; margin-top: .3rem; font-size: .85rem; color: #6b6b6b; }
.sv-form .wpcf7-captchac { display: block; margin: .35rem 0; border: 1px solid #cfcfcf; border-radius: 4px; }
.sv-form .sv-captcha input { max-width: 200px; }
.sv-form input[type="submit"] {
	background: var(--wp--preset--color--accent-1);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: .8rem 2rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.sv-form input[type="submit"]:hover { background: #1a1a1a; }

/* ---------- Footer ---------- */
.sv-footer {
	background: var(--wp--preset--color--accent-2);
	border-top: 3px solid var(--wp--preset--color--accent-1);
	font-size: .9rem;
	color: #444;
}
.sv-footer a { color: #333; }

/* ---------- Phones ---------- */
@media (max-width: 781px) {
	.sv-logo img { height: 44px; }
	.sv-phone a { font-size: 1rem; }
	.sv-phone .sv-phone-label { display: none; }
	.sv-row.wp-block-columns { gap: 1.5rem; }
}
@media (max-width: 380px) {
	.sv-logo img { height: 36px; }
	.sv-phone a { font-size: .9rem; }
}
