/*
Theme Name: 2R Software
Theme URI: https://github.com/ricardojriosr/selling-2r-software
Author: 2R Software LLC
Author URI: https://2rsoftware.com/
Description: A Gutenberg block theme foundation for 2R Software, with editable templates and locally hosted brand assets.
Version: 0.8.3
Requires at least: 7.0
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twor-software
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, wide-blocks, translation-ready
*/

/* Shared by the public site and the block editor. Global tokens live in theme.json. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
}

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

a {
	text-underline-offset: 0.2em;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 4px;
}

:where(h1, h2, h3, h4, p, li, a) {
	overflow-wrap: anywhere;
}

:where(h1, h2, h3) {
	text-wrap: balance;
}

.wp-site-blocks {
	padding-block: 0;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.twor-header {
	border-bottom: 1px solid rgb(255 255 255 / 15%);
}

.twor-header-row {
	min-height: 5.5rem;
	gap: 1rem 2rem;
}

.twor-brand {
	flex-shrink: 0;
	gap: 0.9rem;
}

.twor-brand .wp-block-image {
	margin: 0;
	line-height: 0;
}

.twor-brand img {
	display: block;
	width: 48px;
	height: auto;
}

.twor-header .wp-block-site-title a,
.twor-header .wp-block-navigation-item__content {
	text-decoration: none;
}

.twor-header .wp-block-navigation-item__content {
	padding-block: 0.6rem;
}

.twor-header .wp-block-navigation-item__content:hover {
	text-decoration: underline;
}

.twor-header .wp-block-navigation__responsive-container-open,
.twor-header .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}

.twor-hero {
	padding-block: clamp(4rem, 9vw, 8rem);
}

.twor-hero h1 {
	max-width: 17ch;
	margin-inline: auto;
}

.twor-hero .twor-intro {
	max-width: 58ch;
	margin-inline: auto;
}

.twor-eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.twor-section {
	padding-block: clamp(3rem, 6vw, 5rem);
	scroll-margin-top: 2rem;
}

.twor-service {
	height: 100%;
	border-top: 3px solid var(--wp--preset--color--brand-accent);
}

.twor-contact {
	border-top: 1px solid var(--wp--preset--color--line);
}

.twor-main {
	padding-block: clamp(2rem, 5vw, 4rem);
	min-height: 50vh;
}

.twor-footer {
	padding-block: 2rem;
}

.wp-block-button__link {
	min-height: 44px;
	transition: background-color 160ms ease, color 160ms ease;
}

.wp-block-post-featured-image img {
	border-radius: 5px;
}

.wp-block-query-pagination {
	flex-wrap: wrap;
	gap: 1rem;
}

.wp-block-search__input {
	min-width: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 5px;
}

.wp-block-search__button {
	min-height: 44px;
	border: 0;
	border-radius: 5px;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--base);
	font: inherit;
}

@media (max-width: 599px) {
	.twor-header-row {
		min-height: 4.75rem;
	}

	.twor-brand {
		gap: 0.65rem;
	}

	.twor-brand .wp-block-site-title {
		font-size: 1.125rem;
	}

	.twor-hero .wp-block-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.twor-hero .wp-block-button,
	.twor-hero .wp-block-button__link {
		width: 100%;
	}

	.twor-contact .wp-block-columns {
		gap: 1rem;
	}
}

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

	.wp-block-button__link {
		transition: none;
	}
}

/* Stage 6: the same editable block composition is styled in Gutenberg and on the site. */
.twor-section{padding:clamp(56px,8vw,104px) clamp(20px,4vw,48px);scroll-margin-top:90px}
.twor-section>.wp-block-group{max-width:1200px;margin-inline:auto}
.twor-header{position:relative;z-index:20;border-bottom:1px solid #ffffff20}
.twor-header-row{min-height:90px}.twor-brand img{width:44px}.twor-header .wp-block-navigation-item__content{min-height:44px;display:flex;align-items:center}
.twor-hero{background:#24395c;color:#fff;padding-top:clamp(48px,6vw,88px);padding-bottom:clamp(48px,6vw,88px);overflow:hidden}
.twor-hero-layout{gap:clamp(24px,4vw,64px);align-items:center}.twor-hero-layout>.wp-block-column{min-width:0}
.twor-hero h1{color:#fff;max-width:12ch;margin:16px 0 24px;line-height:1.06;letter-spacing:-.045em}
.twor-hero .twor-intro{max-width:44ch;margin:0 0 30px;color:#e1e8f3;font-size:clamp(1.05rem,1.6vw,1.2rem);line-height:1.65}
.twor-hero .twor-eyebrow{color:#b8c7df;font-size:.75rem;letter-spacing:.14em}
.twor-hero .wp-block-button:first-child .wp-block-button__link{background:#fff;color:#24395c;border-color:#fff}
.twor-hero .is-style-outline .wp-block-button__link{background:transparent;color:#fff;border-color:#b8c7df}
.twor-hero .wp-block-button__link:hover{background:#e8eef7;color:#24395c}.twor-hero-stack{font-size:.8125rem;letter-spacing:.07em;color:#b8c7df;margin-top:30px}
.twor-hero-art{margin:0;aspect-ratio:640/520;min-width:0}.twor-hero-art img{width:100%;display:block}
.twor-eyebrow{color:#3b5278;margin:0 0 16px;font-size:.75rem;letter-spacing:.14em}
.twor-section h2{margin:0 0 24px;letter-spacing:-.035em;max-width:21ch}.twor-section-intro{max-width:58ch;color:#4c5b70;margin:0 0 40px;font-size:1.125rem}
.twor-service-grid{gap:24px;margin-top:40px}.twor-service{border:1px solid #d6dfec;border-top:3px solid #5577b0;border-radius:12px;padding:30px;background:#f8fafc;display:flex;flex-direction:column;gap:16px}
.twor-service h3{margin:0;font-size:1.375rem}.twor-service p{margin:0}.twor-service p:last-child{margin-top:auto;padding-top:16px;font-size:.9375rem;font-weight:700}.twor-card-kicker{font-size:.6875rem;font-weight:700;letter-spacing:.12em;color:#4c5b70}
.twor-products{background:#f8fafc;border-block:1px solid #e8edf4}.twor-product-grid{gap:28px;margin-top:40px}.twor-product-preview{border:1px solid #d6dfec;border-radius:14px;overflow:hidden;background:#fff;height:100%}.twor-product-art{margin:0;aspect-ratio:680/380}.twor-product-art img{width:100%;height:100%;object-fit:cover;display:block}.twor-product-copy{padding:28px}.twor-product-copy h3{font-size:1.5rem;margin:12px 0}.twor-product-copy a,.twor-text-link{font-weight:700}.twor-text-link{margin-top:32px}
.twor-process>.wp-block-group>.wp-block-columns{gap:clamp(40px,8vw,140px)}.twor-steps{border-left:1px solid #b8c7df;padding-left:36px}.twor-step-number{font-size:.75rem;color:#5577b0;letter-spacing:.12em;margin-bottom:8px!important}.twor-steps h3{margin:0 0 10px}.twor-steps p{margin-top:0;margin-bottom:28px}.twor-steps p:last-child{margin-bottom:0}
.twor-faq{background:#f8fafc}.twor-faq>.wp-block-group{max-width:900px}.twor-faq details{border-bottom:1px solid #b8c7df;padding:24px 0}.twor-faq summary{font-size:1.125rem;font-weight:700;cursor:pointer;min-height:44px}.twor-faq details p{max-width:70ch;color:#4c5b70}
.twor-contact{border:0;background:#eef2f8}.twor-contact>.wp-block-group>.wp-block-columns{gap:clamp(32px,7vw,100px);align-items:start}.twor-contact h2{margin-top:16px}.twor-contact-services{font-size:.9375rem;color:#4c5b70;margin-top:32px}
.twor-footer{padding-top:64px;padding-bottom:24px;background:#24395c;color:#e1e8f3}.twor-footer h3{color:#fff;font-size:1.2rem;margin:0 0 20px}.twor-footer a{color:#fff}.twor-footer-grid{gap:48px}.twor-footer-grid p{margin-top:12px;font-size:.9375rem}.twor-footer-bottom{border-top:1px solid #ffffff29;margin-top:48px;padding-top:24px;display:flex;justify-content:space-between;gap:24px}.twor-footer-bottom p{font-size:.8125rem;margin:0}
.twor-badge{display:inline-block;padding:6px 12px;background:#e8eef7;color:#24395c;border-radius:4px;font-size:.8125rem;font-weight:700}.twor-product-note{padding:24px;border:1px solid #b8c7df;border-radius:12px;background:#f8fafc;margin-top:24px}.twor-product-note a{font-weight:700}.twor-product-note p{margin-top:0}
@media(min-width:782px){.twor-hero-layout>.wp-block-column:first-child{flex-basis:53%!important}.twor-hero-layout>.wp-block-column:last-child{flex-basis:47%!important}}
@media(max-width:781px){.twor-header-row{min-height:78px}.twor-hero-layout{gap:24px}.twor-hero h1{max-width:14ch}.twor-hero-art{max-width:540px;margin-inline:auto}.twor-service-grid{gap:18px}.twor-service{padding:26px}.twor-product-grid{gap:24px}.twor-footer-grid{gap:28px}.twor-steps{padding-left:24px}.twor-process>.wp-block-group>.wp-block-columns{gap:36px}}
@media(max-width:599px){.twor-brand .wp-block-site-title{font-size:1.15rem}.twor-hero .wp-block-buttons{gap:12px}.twor-section h2 br{display:none}.twor-header .wp-block-navigation__responsive-container.is-menu-open{padding:28px;background:#24395c}.twor-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{align-items:stretch;width:100%;gap:10px}.twor-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:1.5rem;min-height:56px}.twor-footer-bottom{flex-direction:column}.twor-product-copy{padding:24px}}

.wp-site-blocks>header{position:sticky;top:0;z-index:50}body.admin-bar .wp-site-blocks>header{top:32px}@media(max-width:782px){body.admin-bar .wp-site-blocks>header{top:46px}}

.twor-header{padding-block:0}

/* Original service pricing: editable core blocks, with native expandable lists. */
.twor-plans-inner{max-width:1200px;margin-inline:auto}
.twor-service-plans{border-top:1px solid #d6dfec;background:#fff}
.twor-bd-plans{background:#f8fafc}
.twor-service-plans h2{max-width:none}
.twor-service-plans h3{margin:40px 0 24px;font-size:1.5rem}
.twor-plan-grid{gap:24px;align-items:stretch}
.twor-plan-grid>.wp-block-column{min-width:0}
.twor-plan-card{height:100%;padding:28px;border:1px solid #b8c7df;border-top:4px solid #5577b0;border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:18px}
.twor-plan-card>*{margin:0}
.twor-plan-card h4{font-size:1.375rem;line-height:1.3;color:#24395c;min-height:3.6rem}
.twor-plan-price{font-size:1.125rem;color:#24395c;line-height:1.5}
.twor-plan-price strong{font-size:clamp(1.75rem,3vw,2.25rem);letter-spacing:-.025em}
.twor-plan-price span{font-size:1rem;color:#4c5b70;white-space:nowrap}
.twor-plan-commitment{font-size:.875rem;font-weight:700;color:#3b5278}
.twor-plan-features{border-block:1px solid #d6dfec;padding-block:12px;font-size:.9375rem}
.twor-plan-features summary{cursor:pointer;min-height:44px;align-content:center;font-weight:700;color:#24395c}
.twor-plan-features p{margin-top:16px;color:#4c5b70}
.twor-plan-features ul{padding-left:22px;margin-top:20px;line-height:1.65}
.twor-plan-features li{padding-left:4px;margin-block:10px}
.twor-plan-features li::marker{color:#3b5278}
.twor-plan-approval{font-size:.8125rem;color:#4c5b70;border-left:3px solid #b8c7df;padding-left:12px}
.twor-plan-card>.wp-block-buttons{margin-top:auto;padding-top:6px}
.twor-plan-checkout-note{font-size:.75rem;line-height:1.5;color:#4c5b70}
.twor-single-projects{background:#eef2f8}
.twor-single-projects .twor-plans-inner>p:not(.twor-eyebrow){max-width:78ch}
@media(min-width:782px) and (max-width:1023px){.twor-plan-grid{flex-wrap:wrap!important}.twor-plan-grid-3>.wp-block-column{flex-basis:calc(50% - 12px)!important;flex-grow:0}.twor-plan-grid-3>.wp-block-column:last-child{flex-basis:100%!important}}
@media(max-width:781px){.twor-plan-card{padding:24px}.twor-plan-grid{gap:20px}.twor-plan-price strong{font-size:1.875rem}}

/* Adjacent landing patterns share an edge; internal block spacing stays editable. */
.wp-block-post-content > .twor-section + .twor-section,
.wp-site-blocks > .twor-section + .twor-section { margin-block-start: 0; }
.twor-ready-hero { padding-block: clamp(3rem, 6vw, 5.5rem); }
.twor-ready-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.twor-page-hero { background: var(--wp--preset--color--brand-dark); color: white; }
.twor-plan-section:nth-of-type(odd) { background: #edf1f7; }
.twor-plan-section ul { columns: 2; column-gap: 3rem; padding-inline-start: 1.25rem; }
.twor-plan-section li { break-inside: avoid; margin-block: .6rem; }
.twor-privacy { position: fixed; inset: auto 1rem 1rem auto; width: min(32rem, calc(100% - 2rem)); background: white; color: #1c2636; border: 1px solid #b8c7df; padding: 1.25rem; border-radius: 12px; box-shadow: 0 8px 40px #1c263633; z-index: 9999; font-size: 14px; }
.twor-privacy[hidden] { display: none; }
.twor-privacy p { margin-top: 0; }
.twor-privacy button, .twor-privacy-open { min-height: 44px; border: 1px solid #3b5278; border-radius: 6px; background: #fff; color: #24395c; padding: .5rem .8rem; cursor: pointer; font: inherit; }
.twor-privacy button { margin: .25rem .25rem .25rem 0; }
.twor-privacy button:first-child { color: #fff; background: #24395c; }
.twor-privacy-open { position: fixed; bottom: .5rem; left: .5rem; z-index: 100; font-size: 12px; }
.twor-local-notice { padding: 1rem; background: #fff4cc; color: #302600; text-align: center; font-size: 14px; margin: 0; }
@media(max-width: 700px) { .twor-plan-section ul { columns: 1; } .twor-ready-hero { padding-block: 2.5rem; } }

/* Ready-site pages span the viewport while their content keeps the 2R measure. */
.twor-ready-hero p a:not(.wp-element-button){color:#e1e8f3;text-underline-offset:.2em}
.twor-ready-products{padding-block:clamp(40px,6vw,72px)}
.home .twor-process{padding-block:clamp(40px,6vw,72px);background:#edf1f7}
.twor-ready-products .products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:32px 0 0!important}
.twor-ready-products .products::before,.twor-ready-products .products::after{display:none!important}
.twor-ready-products .products li.product{float:none!important;width:auto!important;margin:0!important;padding:18px;border:1px solid #d6dfec;border-radius:14px;display:flex;flex-direction:column;background:white;box-shadow:0 8px 30px #24395c08}
.twor-ready-products .products li.product a img{width:100%;border-radius:8px}
.twor-ready-products .products li.product .woocommerce-loop-product__title{font-size:1.1rem;line-height:1.4;min-height:3em;letter-spacing:0}
.twor-ready-products .products li.product .button{margin-top:auto;text-align:center}
.twor-ready-products .products li.product .price{display:block;margin-bottom:20px;color:#24395c}
@media(max-width:1000px){.twor-ready-products .products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.twor-ready-products .products{grid-template-columns:minmax(0,1fr)}.twor-ready-products .products li.product .woocommerce-loop-product__title{min-height:0}}
.twor-ready-products ul.products li.product{padding:18px!important;box-sizing:border-box}
.twor-ready-products ul.products li.product .button{margin-top:auto!important}
.twor-ready-products ul.products li.product .woocommerce-loop-product__title{font-size:1.1rem!important;line-height:1.4!important;min-height:3em}

/* Original hero photos keep copy on solid backgrounds and reserve their image ratio. */
.twor-hero-photo{margin:0;aspect-ratio:3/2;width:100%;border-radius:16px;overflow:hidden;box-shadow:0 20px 54px #14263e33;background:#e5ebf3}
.twor-hero-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.twor-page-media .twor-hero-layout{align-items:center;gap:clamp(24px,4vw,64px)}
.twor-page-media .twor-hero-layout>.wp-block-column{min-width:0}
.twor-page-media h1{font-size:clamp(2.3rem,4.8vw,3.8rem);line-height:1.1;letter-spacing:-.035em;color:inherit}
.twor-page-media .twor-hero-layout p{max-width:54ch}
.twor-page-media .twor-contact-card{margin-top:clamp(32px,5vw,56px)}
.twor-catalog-hero{align-items:center;gap:clamp(24px,4vw,64px);margin-bottom:40px}
.twor-catalog-hero>.wp-block-column{min-width:0}
@media(max-width:781px){.twor-hero-photo{max-width:640px;margin-inline:auto;border-radius:12px}.twor-page-media .twor-hero-layout,.twor-catalog-hero{gap:24px}}
