/*
Theme Name: iTrip Sarasota & Venice
Theme URI: https://jasonshaffer.net
Author: Jason Shaffer Group
Author URI: https://jasonshaffer.net
Description: Canvas theme for sarasotapropertymanagement.co, built from the approved Shoreline design. The design's top strip, header, footer and shared styles live here, and every page body is raw HTML.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jsg-custom-theme
*/

:root {
	--jsg-font-body: "DM Sans", system-ui, "Segoe UI", Arial, sans-serif;
	--jsg-font-heading: "Figtree", system-ui, "Segoe UI", Arial, sans-serif;

	--jsg-color-bg: #ffffff;
	--jsg-color-text: #3c4f5e;
	--jsg-color-muted: #5a6b78;
	--jsg-color-accent: #3eb4e5;
	--jsg-color-accent-hover: #43c2f7;

	--jsg-header-bg: #ffffff;
	--jsg-header-text: #253746;
	--jsg-footer-bg: #15394b;
	--jsg-footer-text: #d7ecf6;

	--jsg-container: 1200px;

	--sa-ink: var(--jsg-header-text);
	--sa-navy: var(--jsg-footer-bg);
	--sa-on-navy: var(--jsg-footer-text);
	--sa-pale: #eff7fb;
	--sa-link: #0f6f9c;
	--sa-link-hover: #0b5578;
	--sa-gutter: clamp(20px, 4vw, 40px);
}

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

body {
	margin: 0;
	font-family: var(--jsg-font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--jsg-color-text);
	background: var(--jsg-color-bg);
}

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

a {
	color: var(--sa-link);
}

a:hover {
	color: var(--sa-link-hover);
}

.jsg-container,
.sa-wrap {
	max-width: var(--jsg-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--sa-gutter);
	padding-right: var(--sa-gutter);
}

.jsg-main {
	min-height: 50vh;
}

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

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	background: var(--jsg-color-accent);
	color: var(--sa-ink);
	font-weight: 700;
	border-radius: 999px;
	text-decoration: none;
}

.sa-btn:hover {
	filter: brightness(1.08);
}

.sa-input::placeholder {
	color: var(--jsg-color-muted);
	opacity: 1;
}

.sa-input:focus {
	outline: 3px solid var(--jsg-color-accent);
	outline-offset: 1px;
}

.sa-strip {
	background: var(--sa-navy);
	color: var(--sa-on-navy);
	font-size: 14px;
	line-height: 1.4;
}

.sa-strip-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 24px;
}

.sa-strip-text {
	margin: 0;
	padding: 12px 0;
}

.sa-strip a,
.sa-strip a:hover {
	color: #ffffff;
	font-weight: 600;
}

.sa-strip .sa-strip-phone {
	display: inline-block;
	padding: 12px 0;
	text-decoration: none;
}

.sa-header {
	position: relative;
	z-index: 100;
	background: var(--jsg-header-bg);
	border-bottom: 1px solid rgba(37, 55, 70, 0.12);
}

.sa-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 28px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.sa-brand,
.sa-brand:hover {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 46px;
	color: var(--jsg-header-text);
	text-decoration: none;
}

.sa-brand img {
	display: block;
	width: 138px;
	height: 38px;
}

.sa-brand-place {
	border-left: 1px solid rgba(37, 55, 70, 0.28);
	padding-left: 14px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}

.sa-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sa-nav {
	display: flex;
	align-items: center;
	gap: 2px;
}

.sa-nav-list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sa-nav-list a {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 15.5px;
	font-weight: 500;
	color: var(--jsg-header-text);
	text-decoration: none;
}

.sa-nav-list a:hover {
	background: var(--sa-pale);
	color: var(--jsg-header-text);
}

.sa-nav-list .current-menu-item > a,
.sa-nav-list a[aria-current="page"] {
	background: var(--sa-pale);
	font-weight: 700;
}

.sa-cta,
.sa-cta:hover {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--jsg-color-accent);
	color: var(--sa-ink);
	font-size: 15.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.sa-menu {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(37, 55, 70, 0.35);
	border-radius: 12px;
	background: #ffffff;
	color: var(--jsg-header-text);
	cursor: pointer;
}

.sa-menu svg {
	display: block;
}

.sa-menu .sa-menu-close,
body.jsg-nav-open .sa-menu .sa-menu-open {
	display: none;
}

body.jsg-nav-open .sa-menu .sa-menu-close {
	display: block;
}

@media (max-width: 860px) {
	.sa-nav {
		display: none;
	}

	.sa-menu {
		display: inline-flex;
	}

	body.jsg-nav-open .sa-nav {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 8px var(--sa-gutter) 16px;
		background: var(--jsg-header-bg);
		border-bottom: 1px solid rgba(37, 55, 70, 0.12);
		box-shadow: 0 18px 32px rgba(21, 57, 75, 0.14);
	}

	body.jsg-nav-open .sa-nav-list {
		flex-direction: column;
		align-items: stretch;
	}

	body.jsg-nav-open .sa-nav-list a {
		padding: 12px 14px;
		font-size: 16px;
	}
}

.sa-footer {
	background: var(--sa-navy);
	color: var(--sa-on-navy);
	font-size: 15.5px;
}

.sa-footer-inner {
	padding-top: 56px;
	padding-bottom: 28px;
}

.sa-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 36px 40px;
}

.sa-footer a,
.sa-footer a:hover {
	color: #ffffff;
}

.sa-footer-brand {
	margin: 0 0 8px;
	font-family: var(--jsg-font-heading);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	color: #ffffff;
}

.sa-footer-about {
	margin: 0 0 6px;
	max-width: 22em;
}

.sa-footer-book {
	display: inline-block;
	padding: 10px 0;
	font-weight: 600;
}

.sa-footer-label {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9fdaf5;
}

.sa-footer-label-list {
	margin-bottom: 4px;
}

.sa-footer-text {
	margin: 0;
}

.sa-footer-more {
	margin-top: 6px;
}

.sa-footer-phone {
	display: block;
	padding: 10px 0 2px;
	font-weight: 600;
}

.sa-footer-email {
	display: block;
	padding: 8px 0;
	overflow-wrap: anywhere;
}

.sa-footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sa-footer-menu a {
	display: block;
	padding: 9px 0;
}

.sa-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 24px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 14px;
	color: #bfe6f7;
}

.sa-footer-legal {
	margin: 0;
}

.sa-footer-privacy {
	display: inline-block;
	padding: 10px 0;
}

.jsg-btn,
.jsg-btn:hover {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--jsg-color-accent);
	color: var(--sa-ink);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.jsg-btn:hover {
	filter: brightness(1.08);
}

.sa-404 {
	background: var(--sa-pale);
}

.sa-404-inner {
	padding-top: clamp(64px, 8vw, 110px);
	padding-bottom: clamp(72px, 9vw, 130px);
}

.sa-404-eyebrow {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sa-link);
}

.sa-404-title {
	max-width: 16em;
	margin: 0 0 16px;
	font-family: var(--jsg-font-heading);
	font-weight: 700;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--sa-ink);
}

.sa-404-text {
	max-width: 34em;
	margin: 0 0 24px;
}

.sa-404-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.sa-404-links a,
.sa-404-links a:hover {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid rgba(37, 55, 70, 0.2);
	border-radius: 999px;
	background: #ffffff;
	color: var(--sa-ink);
	font-weight: 600;
	text-decoration: none;
}

.sa-404-links a:hover {
	border-color: var(--sa-ink);
}

.jsg-page,
.jsg-archive {
	padding-top: 56px;
	padding-bottom: 72px;
}

.jsg-page-title {
	font-family: var(--jsg-font-heading);
	font-size: clamp(32px, 3.6vw, 48px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--sa-ink);
	margin: 0 0 12px;
}

.jsg-post-meta {
	color: var(--jsg-color-muted);
	margin: 0 0 24px;
}

.jsg-entry-content {
	max-width: 760px;
}

.jsg-entry-content h2,
.jsg-entry-content h3 {
	font-family: var(--jsg-font-heading);
	letter-spacing: -0.01em;
	color: var(--sa-ink);
	margin-top: 2em;
}

.jsg-entry-content .alignwide {
	max-width: var(--jsg-container);
}

.jsg-entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.jsg-archive-item {
	padding: 24px 0;
	border-bottom: 1px solid rgba(37, 55, 70, 0.14);
}

.jsg-archive-title {
	margin: 0 0 6px;
	font-family: var(--jsg-font-heading);
}

.jsg-archive-title a {
	color: var(--sa-ink);
	text-decoration: none;
}

.jsg-archive-title a:hover {
	color: var(--sa-link);
}

.jsg-archive-header {
	margin: 0 0 12px;
}

.jsg-archive-date {
	font-size: 0.85rem;
	color: var(--jsg-color-muted);
	margin: 0 0 4px;
	letter-spacing: 0.02em;
}

.jsg-archive-excerpt {
	color: var(--jsg-color-muted);
}

.jsg-archive-readmore,
.jsg-single-back {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
}

.jsg-archive-readmore {
	margin-top: 8px;
	font-size: 0.95rem;
}

.jsg-single-back {
	margin-top: 40px;
}

.jsg-archive .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 24px 4px 0 0;
	border: 1px solid rgba(37, 55, 70, 0.2);
	border-radius: 10px;
	text-decoration: none;
	color: var(--sa-ink);
}

.jsg-archive .page-numbers.current,
.jsg-archive .page-numbers:hover {
	background: var(--jsg-color-accent);
	border-color: var(--jsg-color-accent);
	color: var(--sa-ink);
}

.wpcf7 {
	font-family: inherit;
}

.wpcf7 .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wpcf7 .wpcf7-form p {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.wpcf7 .wpcf7-form br {
	display: none;
}

.wpcf7 .wpcf7-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
	color: var(--sa-ink);
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #7b8d9a;
	border-radius: 12px;
	background: #ffffff;
	color: var(--sa-ink);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
}

.wpcf7 textarea {
	min-height: 140px;
	resize: vertical;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: var(--jsg-color-muted);
	opacity: 1;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: 3px solid var(--jsg-color-accent);
	outline-offset: 1px;
}

.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
	display: block;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: var(--jsg-color-accent);
	color: var(--sa-ink);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
	filter: brightness(1.08);
}

.wpcf7 .wpcf7-spinner {
	position: absolute;
	top: 15px;
	right: 16px;
	margin: 0;
}

.wpcf7 .wpcf7-not-valid {
	border-color: #b3261e;
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #b3261e;
}

.wpcf7 .wpcf7-form .wpcf7-response-output {
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #bfe0ef;
	border-radius: 12px;
	background: var(--sa-pale);
	color: var(--sa-ink);
	font-size: 15px;
	line-height: 1.5;
}

.wpcf7 .wpcf7-form.sent .wpcf7-response-output {
	border-color: var(--jsg-color-accent);
}

.wpcf7 .wpcf7-form.invalid .wpcf7-response-output,
.wpcf7 .wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7 .wpcf7-form.failed .wpcf7-response-output,
.wpcf7 .wpcf7-form.aborted .wpcf7-response-output,
.wpcf7 .wpcf7-form.spam .wpcf7-response-output {
	border-color: #e7b4b0;
	background: #fdf2f1;
	color: #8a1c15;
}
