/*
Theme Name: Orbiting
Theme URI: https://oappst.com/
Author: Orbiting Apps Developers
Description: Lightweight block theme for Orbiting Apps Developers. Navy and gold, Sora and Figtree, no page builder.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orbiting
*/

/* ---------- Section rhythm: full-width bands sit flush, no gaps ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + *,
.wp-block-post-content > * + .alignfull { margin-block-start: 0; margin-block-end: 0; }
.oa-section-head { row-gap: 24px; }
.oa-section-head > .wp-block-group { max-width: 640px; }
.oa-section-head > .wp-block-group > * { margin-block: 0; }
.oa-section-head > .wp-block-group > * + * { margin-block-start: 14px; }
.oa-section-head > p { max-width: 420px; margin: 0; }
.oa-clients { border-bottom: 1px solid var(--wp--preset--color--line); }
.oa-work-band { border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }

/* ---------- Small text helpers ---------- */
.is-style-eyebrow,
.oa-eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
}
.has-navy-background-color .oa-eyebrow { color: var(--wp--preset--color--gold); }

/* ---------- Header ---------- */
.oa-header .wp-block-navigation a { color: #DCE3F2; text-decoration: none; font-weight: 500; }
.oa-header .wp-block-navigation a:hover { color: #FFFFFF; }
.oa-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--navy); color: #FFFFFF; }
.oa-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #FFFFFF; }
.oa-brand:hover { color: #FFFFFF; }
.oa-brand__name { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.oa-brand svg { width: 52px; height: 52px; flex: none; }
.oa-brand__name strong { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.oa-brand__name span { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #B8C2DA; margin-top: 2px; }
@media (max-width: 480px) { .oa-brand svg { width: 44px; height: 44px; } .oa-brand__name strong { font-size: 20px; } .oa-brand__name span { font-size: 12px; } }
.oa-phone a { color: #DCE3F2; text-decoration: none; font-weight: 600; }
.oa-phone a:hover { color: #FFFFFF; }
@media (max-width: 781px) { .oa-phone { display: none; } }
@media (max-width: 600px) { .oa-header .wp-block-buttons { display: none; } }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: #FFFFFF;
	border: 1.5px solid #3A4B75;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: #8FA2CF; background: transparent; color: #FFFFFF; }
.oa-btn-dark .wp-block-button__link { background: var(--wp--preset--color--navy); color: #FFFFFF; }
.oa-btn-dark .wp-block-button__link:hover { background: var(--wp--preset--color--blue); color: #FFFFFF; }

/* ---------- Hero ---------- */
.oa-hero .oa-lead { color: var(--wp--preset--color--haze); }
.oa-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: #B8C2DA; font-size: 15px; }
.oa-checks li { display: flex; align-items: center; gap: 8px; }
.oa-checks li::before {
	content: "";
	width: 18px; height: 18px; flex: none;
	background: var(--wp--preset--color--gold);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Orbit graphic: four services circling the brand */
.oa-orbit { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1; margin-inline: auto; }
.oa-orbit > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.oa-chip {
	position: absolute;
	display: flex; align-items: center; gap: 10px;
	background: #FFFFFF; color: var(--wp--preset--color--navy);
	border-radius: 14px; padding: 10px 16px;
	font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none;
	box-shadow: 0 10px 30px rgba(3, 10, 30, 0.35);
}
.oa-chip svg { width: 20px; height: 20px; flex: none; }
.oa-chip--top { left: 50%; top: 2%; transform: translateX(-50%); }
.oa-chip--right { right: 0; top: 46%; }
.oa-chip--bottom { left: 50%; bottom: 2%; transform: translateX(-50%); }
.oa-chip--left { left: 0; top: 46%; }
.oa-chip--it { right: 5%; bottom: 17%; }
.oa-orbit__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--wp--preset--color--navy); }
@media (max-width: 480px) { .oa-chip { font-size: 13px; padding: 8px 12px; gap: 6px; } .oa-chip svg { width: 16px; height: 16px; } }

/* ---------- Client strip ---------- */
.oa-clients p.oa-client { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 19px; color: #3B4763; margin: 0; }

/* ---------- Cards ---------- */
.oa-card { background: #FFFFFF; border: 1px solid var(--wp--preset--color--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; height: 100%; box-sizing: border-box; }
.oa-card > * { margin: 0 !important; }
.oa-card .oa-more { margin-top: auto !important; font-weight: 600; }
.oa-card .oa-more a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.oa-card ul { padding-left: 20px; color: #2B3756; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.oa-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--wp--preset--color--navy); display: flex; align-items: center; justify-content: center; }
.oa-icon svg { width: 28px; height: 28px; }

/* Work cards */
.oa-work { display: flex; flex-direction: column; gap: 18px; }
.oa-work > * { margin: 0 !important; }
.oa-work .wp-block-image img,
.oa-shot { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; border-radius: 18px; border: 1px solid #D5DCEA; }
.oa-shot { background: #E9EDF6; display: flex; align-items: center; justify-content: center; color: var(--wp--preset--color--muted); font-size: 15px; text-align: center; padding: 16px; box-sizing: border-box; }
.oa-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--blue); }
.oa-work .oa-more a { font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }

/* Work screenshots and app cards */
.oa-work .wp-block-image { margin: 0; }
.oa-work .wp-block-image img { box-shadow: 0 18px 40px -24px rgba(11, 23, 54, 0.45); }
.oa-apps-head { margin-top: 24px !important; }
.oa-apps-head > * { margin: 0; }
.oa-apps-head > * + * { margin-top: 8px; }
.oa-app { background: var(--wp--preset--color--mist); border: 1px solid var(--wp--preset--color--line); border-radius: 22px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.oa-app > * { margin: 0 !important; }
.oa-app .oa-phones { gap: 16px; margin-bottom: 10px !important; }
.oa-phones .wp-block-image { margin: 0; flex: none; }
.oa-phones .wp-block-image img { height: clamp(260px, 32vw, 360px); width: auto; max-width: 100%; border-radius: 22px; border: 1px solid #D5DCEA; box-shadow: 0 18px 40px -22px rgba(11, 23, 54, 0.55); }
.oa-app .wp-block-buttons { margin-top: 6px !important; }

/* "Your project could be next" tile in the work grid */
.oa-work-cta { border-radius: 18px; padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 100%; box-sizing: border-box; }
.oa-work-cta > * { margin: 0 !important; }
.oa-work-cta .wp-block-buttons { margin-top: 8px !important; }

/* Legal pages (Privacy, Terms): document-sized headings */
.wp-block-post-content > h2.wp-block-heading { font-size: clamp(22px, 2.4vw, 26px); margin-top: 44px; letter-spacing: -0.01em; }
.wp-block-post-content > ul.wp-block-list li + li { margin-top: 6px; }

/* Compact service cards, prose blocks, CTA band */
.oa-card--compact { gap: 12px; padding: 28px; }
.oa-card--compact .oa-icon { width: 48px; height: 48px; border-radius: 14px; }
.oa-card--compact .oa-icon svg { width: 24px; height: 24px; }
.oa-card--compact h3 { font-size: 20px; }
.oa-card--compact p { font-size: 16px; }
.oa-prose > * { margin-block: 0; }
.oa-prose > * + * { margin-block-start: 16px; }
.oa-hero-copy { max-width: 820px; }
.oa-hero-copy > * + * { margin-block-start: 24px; }
.oa-cta-band { row-gap: 20px; }
.oa-cta-band h2, .oa-cta-band p { margin: 0; }
.oa-cta-band .wp-block-group > * + * { margin-top: 8px; }

/* Process steps */
.oa-step { border-top: 2px solid var(--wp--preset--color--navy); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.oa-step > * { margin: 0 !important; }
.oa-step__num { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 15px; color: var(--wp--preset--color--blue); }

/* Why-us tiles (on navy) */
.oa-tile { background: var(--wp--preset--color--navy-light); border: 1px solid #24345C; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.oa-tile > * { margin: 0 !important; }
.oa-tile p { color: var(--wp--preset--color--haze); font-size: 16px; }

/* ---------- Contact ---------- */
.oa-contact-line a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 600; font-size: 19px; min-height: 44px; }
.oa-contact-line .oa-icon { width: 44px; height: 44px; border-radius: 12px; }
.oa-contact-line .oa-icon svg { width: 20px; height: 20px; }

.oa-form { background: #FFFFFF; border: 1px solid var(--wp--preset--color--line); border-radius: 22px; padding: clamp(24px, 4vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.oa-form__field { display: flex; flex-direction: column; gap: 8px; }
.oa-form__field--full, .oa-form__footer, .oa-form__notice { grid-column: 1 / -1; }
.oa-form label { font-weight: 600; font-size: 15px; }
.oa-form input, .oa-form select, .oa-form textarea {
	font: inherit; font-size: 16px; color: var(--wp--preset--color--ink);
	padding: 13px 14px; min-height: 48px; box-sizing: border-box;
	border: 1.5px solid #C5CDDD; border-radius: 12px; background: #FFFFFF;
}
.oa-form textarea { resize: vertical; min-height: 120px; }
.oa-form input:focus, .oa-form select:focus, .oa-form textarea:focus { outline: 3px solid rgba(232, 170, 60, 0.45); outline-offset: 1px; border-color: var(--wp--preset--color--blue); }
.oa-form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.oa-form__footer p { margin: 0; font-size: 14px; color: var(--wp--preset--color--muted); }
.oa-form button {
	font: inherit; font-weight: 600; font-size: 17px; cursor: pointer;
	background: var(--wp--preset--color--navy); color: #FFFFFF;
	border: 0; border-radius: 999px; padding: 15px 30px; min-height: 52px;
}
.oa-form button:hover { background: var(--wp--preset--color--blue); }
.oa-form__notice { border-radius: 12px; padding: 12px 16px; font-weight: 500; }
.oa-form__notice--error { background: #FDECEA; color: #8A1C12; }
.oa-req { color: #B42318; font-weight: 700; }
.oa-form__note { margin: 0; font-size: 14px; color: var(--wp--preset--color--muted); }
.oa-form__error { margin: 0; font-size: 14px; font-weight: 500; color: #B42318; }
.oa-form [aria-invalid="true"] { border-color: #D92D20; background: #FFFBFA; }
.oa-form__captcha input { max-width: 180px; }
.oa-form__footer p a { color: var(--wp--preset--color--blue); }
.oa-form button[disabled] { opacity: 0.7; cursor: progress; }

/* Links to live work beside the contact form */
.oa-worklinks { margin-top: 32px !important; }
.oa-worklinks h3 { font-size: 18px; margin: 0 0 10px; }
.oa-worklinks ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 20px; }
.oa-worklinks a { display: inline-flex; min-height: 40px; align-items: center; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--wp--preset--color--navy); }
.oa-worklinks a:hover { color: var(--wp--preset--color--blue); text-decoration: underline; }
.oa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.oa-footer ul { list-style: none; }
.oa-footer a { color: #B8C2DA; text-decoration: none; }
.oa-footer a:hover { color: #FFFFFF; }
.oa-footer .oa-footer__head { color: #FFFFFF; font-weight: 600; margin: 0; }

/* Keyboard focus that is always visible on dark and light */
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; }
