/*
Theme Name: SaptOne Theme
Theme URI: https://stratteam.com/
Author: SaptOne
Description: Custom WordPress theme for Strat Team Advisors.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: saptone
*/

:root {
	--saptone-blue: #3e5985;
	--saptone-blue-dark: #21334d;
	--saptone-text: #333333;
	--saptone-border: #eeeeee;
	--saptone-surface: #f5f5f5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font: 13px/1.5 Tahoma, Arial, sans-serif;
	color: var(--saptone-text);
	background: #ffffff url('images/swirl.png') repeat;
}

body {
	font-size: 13px;
	font-family: Tahoma, Arial, sans-serif;
	line-height: 1.5;
	color: #666666;
}

a { color: var(--saptone-blue); }
a:hover { color: var(--saptone-blue-dark); }
img { max-width: 100%; height: auto; }

.saptone-shell { width: 100%; max-width: 960px; margin: 0 auto; }

.site-header {
	background: transparent url('images/background.png') top center repeat-y;
	/* border-bottom: 1px solid #e7e7e7; */
  border-bottom: 0px solid #e7e7e7;
	padding-bottom: 20px;
}

.site-branding { padding: 10px 0; text-align: center; }
.site-title { margin: 0; font-size: 36px; line-height: 1.1; }
.site-title a { color: var(--saptone-blue); text-decoration: none; }
.site-description { margin: 6px 0 0; color: #666666; }
.custom-logo { display: inline-block; max-width: 100%; max-height: 115px; width: auto; }
.custom-logo-link { display: block; width: 100%; }
.site-branding .custom-logo { display: block; width: 100%; height: auto; max-height: none; margin: 0 auto; }
.menu-toggle { display: none; }
#saptone-primary-menu[hidden], .menu-toggle[hidden] { display: none; }
.menu-toggle-icon { display: grid; gap: 5px; width: 24px; }
.menu-toggle-icon span { display: block; height: 2px; background: currentColor; }

.main-navigation { width: 100%; max-width: 960px; margin: 0 auto; background: var(--saptone-blue); }
.main-navigation ul { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.main-navigation a {
	display: block;
	padding: 20px 35px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { background: var(--saptone-blue-dark); }

.site-content {
	padding: 0 0 5px;
	background: transparent url('images/background.png') top center repeat-y;
}
.entry-title { margin: 0 0 22px; color: var(--saptone-blue); font-size: 30px; line-height: 1.2; }
.entry-content { line-height: 1.2; }
.entry-content h2, .entry-content h3 { color: var(--saptone-blue); }
.entry-content img { display: block; margin: 1rem auto; }
.entry-content > h1:first-child { display: none; }
.slider-wrapper { margin: 0; }
.nivoSlider > p { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 8px; border: 1px solid var(--saptone-border); }

.about-page-layout { display: grid; grid-template-columns: 740px 200px; gap: 20px; }
.about-page-sidebar { padding-top: 12px; text-align: center; }
.privacy-page-layout { display: grid; grid-template-columns: minmax(0, 740fr) minmax(0, 200fr); gap: 20px; align-items: start; }
.privacy-page-layout > * { min-width: 0; }
.privacy-page-sidebar { padding: 10px; background: #f5f5f5 url('images/fancy_deboss.png') repeat; border: 1px solid #eee; }
.privacy-sidebar-image { display: block; width: 179px; max-width: 100%; height: auto; margin: 0 auto; }
.webinar-page-layout { display: grid; grid-template-columns: minmax(0, 740fr) minmax(0, 200fr); gap: 20px; align-items: start; }
.webinar-page-layout > * { min-width: 0; }
.webinar-page-sidebar { padding: 30px 10px 10px; background: #f5f5f5 url('images/fancy_deboss.png') repeat; border: 1px solid #eee; }
.webinar-page-sidebar img { display: block; width: 179px; max-width: 100%; height: auto; margin: 0 auto; }
.webinar-page-main { line-height: 20px; }
.webinar-page-main .wpcf7 form { width: 100%; max-width: none; padding: 0; border: 0; background: transparent; }
.webinar-page-main .wpcf7 form h3 { font-size: 20px; line-height: 20px; font-weight: 700; margin: 10px 0; }
.webinar-page-main .wpcf7 form label { font-size: 13px; font-weight: 400; margin: 0; }
.webinar-page-main .wpcf7 form p { margin: 0 0 10px; }
.webinar-page-main .wpcf7 form input:not([type="hidden"]):not([type="submit"]) { display: block; width: 242px; max-width: 100%; min-height: 25px; padding: 3px; border: 1px solid #ccc; background: #f5f5f5 url('images/fancy_deboss.png') repeat; }
.webinar-page-main .wpcf7 form input[type="submit"] { padding: 8px 10px; margin: 0; }
.webinar-enquiry-heading { color: #000 !important; font: bold 12px/1 serif; margin: 20px 0 10px; }
.webinar-page-main .webinar-banner img, .webinar-page-main .webinar-privacy img { margin: 0; }
.webinar-banner { margin: 20px 0; }
.webinar-privacy { margin: 20px 0 0; }
.about-profile-image { width: 178px; margin: 0 auto; }
.about-profile-name { margin-top: 6px; }
.about-profile-slider { width: 175px; margin: 14px auto 0; }

.saptone-hero { margin-bottom: 24px; }
.saptone-hero img { width: 100%; }
.saptone-cta {
	margin: 28px 0;
	padding: 18px 24px;
	background: #eef6ff;
	border: 1px solid #b8d1eb;
	text-align: center;
}
.saptone-button {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 4px;
	background: var(--saptone-blue-dark);
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
}

.saptone-form { max-width: 620px; padding: 20px; background: var(--saptone-surface); border: 1px solid var(--saptone-border); }
.wpcf7 form { max-width: 620px; padding: 20px; background: var(--saptone-surface); border: 1px solid var(--saptone-border); }
.saptone-form h2, .saptone-form h3 { margin-top: 0; color: var(--saptone-blue); line-height: 1.25; }
.wpcf7 form h2, .wpcf7 form h3 { margin-top: 0; color: var(--saptone-blue); line-height: 1.25; }
.saptone-form label { display: block; margin-bottom: 4px; font-weight: 700; }
.wpcf7 form label { display: block; margin-bottom: 4px; font-weight: 700; }
.saptone-form input, .saptone-form textarea, .saptone-form select { width: 100%; min-height: 25px; padding: 3px; border: 1px solid #ddd; color: #666; background: #fff; font: inherit; }
.wpcf7 form input, .wpcf7 form textarea, .wpcf7 form select { width: 100%; min-height: 25px; padding: 3px; border: 1px solid #ddd; color: #666; background: #fff; font: inherit; }
.wpcf7 form input[type="radio"], .wpcf7 form input[type="checkbox"] { width: auto; min-height: auto; padding: 0; border: 0; background: transparent; }
.wpcf7 form .wpcf7-list-item { display: block; margin: 0 0 8px; }
.wpcf7 form .wpcf7-list-item label { display: inline; margin: 0; font-weight: 400; }
.wpcf7 form p { margin: 10px 0; }
.wpcf7 form input[type="submit"] { width: auto; min-height: auto; padding: 6px 12px; margin: 0 0 15px; border: 0; border-radius: 0; color: #fff; background: #21334D; font: inherit; cursor: pointer; }
.wpcf7 form input[type="submit"]:hover { color: #fff; background: #21334D; }
.saptone-form textarea { resize: vertical; }
.wpcf7 form textarea { resize: vertical; }
.saptone-form fieldset { margin: 12px 0; padding: 8px; border: 1px solid #cccccc; }
.wpcf7 form fieldset { margin: 12px 0; padding: 8px; border: 1px solid #cccccc; }
.saptone-form legend { padding: 0 4px; font-weight: 700; }
.wpcf7 form legend { padding: 0 4px; font-weight: 700; }
.saptone-form .saptone-radio { font-weight: 400; }
.saptone-form .saptone-radio input { width: auto; min-height: 0; }
.request-page-layout { display: grid; grid-template-columns: 200px 740px; gap: 20px; }
.request-page-sidebar { padding: 10px; background: var(--saptone-surface); border: 1px solid var(--saptone-border); }
.request-page-sidebar img { display: block; width: 179px; margin: 0 auto 14px; }
.request-page-main .saptone-form { max-width: 505px; padding: 10px; background: transparent; border: 0; }
.request-page-main .wpcf7 form { width: 740px; max-width: 740px; padding: 0; background: transparent; border: 0; }
.request-page-main .wpcf7 form input:not([type="submit"]),
.request-page-main .wpcf7 form select,
.request-page-main .wpcf7 form textarea { width: 240px; }
.collaboration-request-layout { display: grid; grid-template-columns: 470px 470px; gap: 20px; }
.collaboration-request-main { padding: 10px; background: var(--saptone-surface); border: 1px solid var(--saptone-border); }
.collaboration-request-image { display: block; width: 435px; max-width: 435px; margin: 0 auto 14px; }
.collaboration-request-privacy { display: block; width: 448px; max-width: 448px; margin: 12px auto 0; }
.collaboration-request-form { padding: 10px; background: var(--saptone-surface); border: 1px solid var(--saptone-border); }
.collaboration-request-form .wpcf7 form { width: 448px; max-width: 448px; padding: 0; background: transparent; border: 0; }
.collaboration-request-form .wpcf7 form input:not([type="submit"]),
.collaboration-request-form .wpcf7 form select,
.collaboration-request-form .wpcf7 form textarea { width: 448px; max-width: 448px; }
.collaboration-request-form { background: #f5f5f5 url('images/fancy_deboss.png') repeat; border: 1px solid #eee; }
.collaboration-request-form .wpcf7 form fieldset { margin: 10px 0; padding: 0; border: 0; }
.collaboration-request-form .wpcf7 form input[type="radio"],
.collaboration-request-form .wpcf7 form input[type="checkbox"] { width: 13px !important; max-width: 13px; height: 13px; min-height: 0; margin: 0 5px 0 0; padding: 0; vertical-align: middle; }
.collaboration-request-form .wpcf7 form .wpcf7-list-item { display: block; width: auto; margin: 0 0 4px; }
.collaboration-request-form .wpcf7 form .wpcf7-list-item label { display: inline; font-weight: 400; }
.collaboration-request-form .wpcf7 form input[type="submit"] { color: #000; background: #ddd; }
.collaboration-request-form .wpcf7 form input[type="submit"]:hover { color: #000; background: #ccc; }
.saptone-honeypot { position: absolute; left: -9999px; }
.saptone-captcha { margin: 16px 0; }
.entry-content .saptone-captcha img { display: block; width: 84px; height: 28px; margin: 0 0 8px; }

/* Keep the original typography, but do not shrink nested spans that inherit
 * a paragraph's imported font size. Explicit inline styles still take priority.
 */
p { font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: small; }
p span { font-family: inherit; font-size: inherit; }

/* Match the original Find Out More HTML's text rhythm and list inset. */
.saptone-find-out-more .entry-content { line-height: 20px; }
.saptone-find-out-more .entry-content p { font-size: 16px; margin: 1em 0; }
.saptone-find-out-more .entry-content ul,
.saptone-find-out-more .entry-content ol { padding-left: 25px; }

.site-footer {
	padding: 18px 0;
	background: transparent url('images/background2.png') top center repeat-y;
	border-top: 0px solid var(--saptone-border);
	color: #555555;
	font-size: 13px;
	text-align: center;
}
.site-footer p { margin: 0; }

.saptone-error { max-width: 740px; margin: 24px auto; padding: 32px; background: var(--saptone-surface); border: 1px solid var(--saptone-border); text-align: center; }
.saptone-error-code { margin: 0 0 12px; color: var(--saptone-blue); font-size: 16px; font-weight: bold; }
.saptone-error .entry-title { margin-bottom: 16px; }
.saptone-error-message { max-width: 560px; margin: 0 auto 24px; font-size: 16px; line-height: 1.6; }
.saptone-error-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.saptone-error-actions a { min-height: 44px; padding: 12px 18px; }
.saptone-error-actions .saptone-button:hover { color: #fff; background: var(--saptone-blue); }
.saptone-error-contact:focus-visible { outline: 3px solid #bf7400; outline-offset: 2px; }
@media (max-width: 767px) {
	.saptone-error { margin: 12px auto; padding: 24px 16px; }
	.saptone-error-actions { flex-direction: column; }
	.saptone-error-actions a { width: 100%; }
}


.wpcf7 form.sent .wpcf7-response-output {
    white-space: pre-line;
}

/* Allow grid children and imported content to shrink with the viewport. */
.about-page-layout { grid-template-columns: minmax(0, 740fr) minmax(0, 200fr); }
.request-page-layout { grid-template-columns: minmax(0, 200fr) minmax(0, 740fr); }
.collaboration-request-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-page-layout > *, .request-page-layout > *, .collaboration-request-layout > * { min-width: 0; }
.entry-content, .site-footer { overflow-wrap: anywhere; }
.entry-content iframe, .entry-content video, .entry-content embed,
.entry-content object { max-width: 100%; }
.entry-content video { height: auto; }
.collaboration-request-image, .collaboration-request-privacy,
.request-page-main .wpcf7 form, .collaboration-request-form .wpcf7 form,
.collaboration-request-form .wpcf7 form input:not([type="submit"]),
.collaboration-request-form .wpcf7 form select,
.collaboration-request-form .wpcf7 form textarea { max-width: 100%; }
.saptone-form, .wpcf7, .wpcf7 form { min-width: 0; }
.saptone-form fieldset, .wpcf7 form fieldset { min-width: 0; }
.saptone-form legend, .wpcf7 form legend { max-width: 100%; }
.main-navigation a:focus-visible, .saptone-button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
	outline: 3px solid #bf7400;
	outline-offset: 2px;
}

@media (max-width: 991px) {
	.site-branding, .site-content > .saptone-shell, .site-footer > .saptone-shell { padding-left: 16px; padding-right: 16px; }
	.main-navigation a { padding: 15px 20px; }
	.site-branding { padding-bottom: 10px; }
	.custom-logo { height: auto; }
}

@media (max-width: 767px) {
	.site-branding { padding: 8px 4px; }
	.menu-toggle {
		display: flex; align-items: center; gap: 10px; min-height: 48px;
		margin-left: auto; padding: 12px 16px; border: 0;
		background: transparent; color: #fff; font: inherit; font-size: 16px; cursor: pointer;
	}
	.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--saptone-blue-dark); }
	body { font-size: 16px; }
	p { font-size: inherit; }
	.site-title { font-size: 28px; }
	.site-header { padding-bottom: 16px; }
	.main-navigation ul { flex-direction: column; }
	.main-navigation li { width: 100%; }
	.main-navigation a { min-height: 44px; padding: 12px 16px; font-size: 16px; }
	.main-navigation ul ul { padding-left: 16px; }
	.entry-title { font-size: 26px; }
	.about-page-layout, .request-page-layout, .collaboration-request-layout { grid-template-columns: minmax(0, 1fr); }
	.privacy-page-layout { grid-template-columns: minmax(0, 1fr); }
	.webinar-page-layout { grid-template-columns: minmax(0, 1fr); }
	.webinar-page-sidebar { width: 200px; max-width: 100%; margin: 0 auto; }
	.webinar-page-main .wpcf7 form label { font-size: 16px; }
	.webinar-page-main .wpcf7 form input:not([type="hidden"]):not([type="submit"]) { width: 100%; min-height: 44px; font-size: 16px; padding: 10px; }
	.privacy-page-sidebar { width: 200px; max-width: 100%; margin: 0 auto; }
	.request-page-main { grid-row: 1; }
	.about-page-sidebar { max-width: 240px; width: 100%; margin: 0 auto; }
	.saptone-cta { padding: 16px; }
	.saptone-form, .wpcf7 form { width: 100%; padding: 16px; }
	.request-page-main .wpcf7 form input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
	.request-page-main .wpcf7 form select,
	.request-page-main .wpcf7 form textarea { width: 100%; }
	.saptone-form input:not([type="radio"]):not([type="checkbox"]),
	.saptone-form select, .saptone-form textarea,
	.wpcf7 form input:not([type="radio"]):not([type="checkbox"]),
	.wpcf7 form select, .wpcf7 form textarea,
	.saptone-button { min-height: 44px; max-width: 100%; padding: 10px; font-size: 16px; }
	.saptone-form .saptone-radio, .wpcf7 form .wpcf7-list-item label { display: block; padding: 10px 0; }
	/* Constrain fixed-width wrappers retained from the HTML import. */
	.entry-content div:not(.nivo-slice):not(.nivo-box) { max-width: 100%; }
	.entry-content img:not(.nivoSlider img) { max-width: 100% !important; height: auto !important; }
	.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
	.site-footer { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
