/*!
Theme Name: Will Sparrow Tech
Description: A sophisticated WordPress theme crafted for technology companies, software development firms, and engineering service providers. Features a modern dark-to-light design aesthetic with clean typography, hero sections, client trust indicators, and multi-location support. Perfect for showcasing software services, electronics design, manufacturing solutions, and building credibility through experience highlights and client testimonials.
Author: Will Sparrow Technologies
Author URI: https://willsparrow.com
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: will-sparrow-tech
Domain Path: /languages
Tags: business, corporate, technology, software-development, engineering, manufacturing, electronics, professional-services, full-width-template, custom-header, custom-background, custom-menu, featured-images, threaded-comments, translation-ready, client-showcase, statistics-counter, multi-location, hero-banner
*/

/*
Will Sparrow Tech WordPress Theme
Inspired by Will Sparrow Technologies - Software, Electronics & Manufacturing Solutions
Copyright (C) 2024 Will Sparrow Technologies

Design Features:
- Clean navigation with service dropdowns
- Hero sections with dual CTA buttons
- Client logo carousel showcase
- Statistics counters with experience highlights
- Multi-column service layouts
- Professional footer with global locations
- Mobile-responsive hamburger navigation
- Trust indicators and brand showcases

Target Industries:
- Software Development Companies
- Electronics Design Firms
- Manufacturing & Engineering Services
- Technology Solution Providers
- Professional Service Companies

This theme is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
*/

/* 
===============================
Will Sparrow Tech Theme Styles
===============================
Shaping the Future with Innovative Solutions
*/

/* CSS Reset
---------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

b,
strong {
	font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
	padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
	padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-small);
	margin-bottom: 0;
	margin-top: 20px;
	text-align: center;
}

img,
figure {
	max-width: 100%;
	height: auto;
}

/* Temporary fix for text-decoration-thickness in Firefox */
@-moz-document url-prefix() {
	a {
		text-decoration-thickness: .1rem !important;
	}
}

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
	font: inherit;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
	appearance: none;
}

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	color: var(--wp--preset--color--main);
	border-radius: 5px;
	border: solid 1px var(--wp--preset--color--border-light);
	padding: .5em 1em;
	font-size: var(--wp--preset--font-size--small);
	background-color: #fff;
}

input:focus-visible,
textarea:focus-visible {
	outline-color: var(--wp--preset--color--primary);
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

label {
	width: 100%;
	display: block;
}

::placeholder {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.75;
}

/* Helper styles
---------------------------------------------------------------------------- */

a.more-link {
	display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--tertiary);
	padding: 3px 5px;
	position: relative;
	border-radius: 3px;
}

.wp-block-categories {
	position: relative;
}

/* Adjust terms at bottom of posts */
.single .wp-block-group .wp-block-post-terms,
.blog .wp-block-group .wp-block-post-terms {
	margin-bottom: -8px !important;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
	margin-bottom: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding .wp-block-post-template li:last-child .wp-block-separator {
	display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
	display: none;
}

.wp-block-group:empty:has(+ .comment-respond) {
	display: none;
}

.row-logos > figure {
	flex-shrink: 1 !important;
}

/* Sticky header */

body:not(.wp-admin) header:has(>.is-position-sticky) {
	position: sticky;
	top: calc( 0px + var( --wp-admin--admin-bar--height, 0px ) );
	z-index: 100;
}

/* Account for admin bar on mobile */

@media (max-width: 600px) {
	header:has(>.is-position-sticky) {
		top: 0;
	}
}

/* Mobile helper classes */

@media (max-width: 781px) {
	.ws-hide-on-mobile {
		display: none;
	}

	.ws-unstick-mobile {
		position: static;
	}

	header:has(>.ws-unstick-mobile) {
		position: static;
	}
}


/* Hide site title when logo exists */
.logo-title-container .wp-block-site-logo + .wp-block-site-title {
    display: none;
}

/* Show site title when logo is empty/missing */
.logo-title-container .wp-block-site-logo:empty + .wp-block-site-title,
.logo-title-container .wp-block-site-logo[style*="display: none"] + .wp-block-site-title {
    display: block;
}