/*
Theme Name: AYS
Theme URI: https://www.aysweb.com
Author: At Your Service Cincinnati, Ltd.
Description: Clean, minimalist block theme for AYS Business Management and Data Integration Consulting.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.3.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ays
*/

/* ---------- Header ---------- */
.ays-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.ays-brand { gap: 14px; align-items: center; }
.ays-brand .wp-block-image { margin: 0; }
.ays-brand img { display: block; height: 40px; width: auto; }
.ays-brand-name {
	margin: 0;
	padding-left: 14px;
	border-left: 1px solid #DADDE1;
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 15px;
	font-weight: 500;
	color: var(--wp--preset--color--muted);
}
.ays-header .wp-block-button__link { padding: 10px 18px; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Sections ---------- */
.ays-section { padding-top: var(--wp--preset--spacing--80); padding-bottom: var(--wp--preset--spacing--80); }
.ays-hero { padding-top: clamp(72px, 10vw, 120px); }
.ays-eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.ays-measure { max-width: 880px; }
.ays-lead { max-width: 640px; }
.ays-trust {
	margin-top: var(--wp--preset--spacing--70) !important;
	padding-top: 28px;
	border-top: 1px solid var(--wp--preset--color--line);
	gap: 16px 56px;
}
.ays-trust p { margin: 0; }
.ays-trust strong { font-weight: 600; color: var(--wp--preset--color--ink); }

/* Cards */
.ays-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: 36px;
	height: 100%;
	box-sizing: border-box;
}
.ays-card > * + * { margin-top: 12px; }
.ays-num { margin: 0; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--accent); }

/* Steps / values */
.ays-step { border-top: 2px solid var(--wp--preset--color--ink); padding-top: 24px; }
.ays-step h3 { font-size: 20px; margin: 0 0 10px; }
.ays-step p { margin: 0; }

/* Portraits */
.ays-portrait { margin: 0; }
.ays-portrait img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 30%;
	border-radius: 10px;
}
.ays-person-name { margin: 16px 0 0; font-weight: 600; }
.ays-person-role { margin: 2px 0 0; }

/* FAQ rows */
.ays-faq-row { padding: 24px 0; border-bottom: 1px solid #DADDE1; }
.ays-faq-row h3 { font-family: var(--wp--preset--font-family--inter); font-size: 18px; letter-spacing: 0; margin: 0 0 6px; }
.ays-faq-row p { margin: 0; }

/* Lists */
.ays-list { padding-left: 18px; color: var(--wp--preset--color--muted); font-size: 16px; }
.ays-list li + li { margin-top: 6px; }
.ays-label { font-family: var(--wp--preset--font-family--inter); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid #C9CDD2;
	padding: 13px 25px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--ink); background: transparent; }
.wp-block-button.ays-button-light > .wp-block-button__link { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }
.wp-block-button.ays-button-light > .wp-block-button__link:hover { background: var(--wp--preset--color--line); }
.wp-block-button__link { min-height: 44px; box-sizing: border-box; }

/* Dark sections */
.ays-dark a { color: var(--wp--preset--color--muted-on-dark); }
.ays-dark a:hover { color: var(--wp--preset--color--white); }
.ays-dark .ays-email a { text-decoration: underline; }
.ays-arrow-link a { color: var(--wp--preset--color--accent); font-weight: 500; }
.ays-inline-link a { color: var(--wp--preset--color--accent); text-decoration: underline; }

/* Footer */
.ays-footer { border-top: 1px solid #2A3036; font-size: 14px; }
.ays-footer img { display: block; height: 26px; width: auto; }
.ays-footer .wp-block-image { margin: 0; }
.ays-footer p { margin: 0; }
.ays-footer .wp-block-navigation a { color: var(--wp--preset--color--muted-on-dark); }
.ays-footer .wp-block-navigation a:hover { color: var(--wp--preset--color--white); }

/* Testimonials slot: hidden until it has content */
.ays-testimonials:empty { display: none; }

@media (max-width: 781px) {
	.ays-card { padding: 28px; }
}

/* Sections sit flush against each other */
.wp-site-blocks > * + *,
main.wp-block-group > .alignfull { margin-block-start: 0; }

/* FAQ accordion */
.ays-details { border-bottom: 1px solid #DADDE1; padding: 20px 0; margin: 0 !important; }
.ays-details:first-child { border-top: 1px solid #DADDE1; }
.ays-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	font-weight: 600;
	font-size: 18px;
	min-height: 44px;
	align-items: center;
}
.ays-details summary::-webkit-details-marker { display: none; }
.ays-details summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--wp--preset--color--accent); }
.ays-details[open] summary::after { content: "–"; }
.ays-details summary:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 4px; }
.ays-details > p { margin: 12px 0 4px; max-width: 680px; }

/* Contact form slot */
.ays-form-slot:not(:empty) { margin-top: 40px; }

/* ---------- Contact form (Gravity Forms) ---------- */
.ays-form-slot .gform_wrapper { margin: 0; }
.ays-form-slot input[type="text"],
.ays-form-slot input[type="email"],
.ays-form-slot input[type="tel"],
.ays-form-slot textarea {
	width: 100%;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	padding: 12px 14px;
	font: inherit;
	background: #fff;
}
.ays-form-slot input:focus,
.ays-form-slot textarea:focus { outline: 2px solid var(--wp--preset--color--accent, #0E5A5C); outline-offset: 1px; }
.ays-form-slot .gform_button,
.ays-form-slot input[type="submit"] {
	background: var(--wp--preset--color--accent, #0E5A5C);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 12px 22px;
	min-height: 44px;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.ays-form-fallback { color: var(--wp--preset--color--muted); }

/* ---------- Header on phones (v1.3.0) ---------- */
.ays-header-row { flex-wrap: nowrap !important; }
.ays-brand { min-width: 0; }
.ays-header-actions { flex-shrink: 0; }

/* "Contact us" appears as a menu item only inside the phone menu */
.ays-header .ays-nav-contact { display: none; }

@media (max-width: 599px) {
	.ays-header { padding-top: 14px !important; padding-bottom: 14px !important; }
	.ays-brand { gap: 10px; }
	.ays-brand img { height: 34px; }
	.ays-brand-name { font-size: 13px; line-height: 1.3; padding-left: 10px; }
	.ays-header .ays-header-cta { display: none; }
	.ays-header .wp-block-navigation__responsive-container-open { padding: 10px; margin-right: -10px; }
	.ays-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
}

/* Open phone menu: left-aligned, padded, larger tap targets */
.ays-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 20px 24px 32px !important;
	background: #fff;
}
.ays-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important;
	padding-top: 64px !important;
}
.ays-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 0 !important;
	width: 100%;
}
.ays-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.ays-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 16px 0 !important;
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 22px;
	font-weight: 500;
	text-align: left;
}
.ays-header .wp-block-navigation__responsive-container.is-menu-open .ays-nav-contact {
	display: block;
	border-bottom: 0;
	margin-top: 28px;
}
.ays-header .wp-block-navigation__responsive-container.is-menu-open .ays-nav-contact .wp-block-navigation-item__content {
	background: var(--wp--preset--color--accent, #0E5A5C);
	color: #fff;
	border-radius: 6px;
	padding: 14px 20px !important;
	text-align: center;
	font-size: 18px;
}
.ays-header .wp-block-navigation__responsive-container-close { top: 20px; right: 20px; }
.ays-header .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
