/*
Theme Name: Mobile SRL Editorial
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mobile-srl
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}
.wp-block-post-content > * + * {
	margin-block-start: 0;
}

:root {
	--site-bg: var(--wp--preset--color--background);
	--site-paper: var(--wp--preset--color--paper);
	--site-text: var(--wp--preset--color--text);
	--site-moss: var(--wp--preset--color--primary);
	--site-line: color-mix(in srgb, var(--site-text) 18%, transparent);
}

/* === typography === */
html { scroll-behavior: smooth; }
body { background: var(--site-bg); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.eyebrow, .section-label, .caption, .site-footer { font-size: var(--wp--preset--font-size--label); letter-spacing: .15em; text-transform: uppercase; }
.section-label { color: var(--site-moss); }

/* === header === */
.site-header { border-bottom: 1px solid var(--site-line); }
.site-header > .wp-block-group { min-height: 82px; gap: 24px; }
.site-branding { gap: 12px; }
.site-branding .wp-block-site-logo { flex: 0 0 auto; }
.site-branding .wp-block-site-logo img { width: 54px; height: 54px; object-fit: contain; }
.brand-copy { gap: 0; }
.brand-name { margin: 0; font-family: var(--wp--preset--font-family--playfair-display); font-size: 21px; letter-spacing: -.03em; line-height: 1.1; }
.brand-name a { color: var(--site-text); text-decoration: none; }
.brand-subline { margin: 4px 0 0; color: var(--site-moss); font-size: 9px; letter-spacing: .17em; text-transform: uppercase; line-height: 1.3; }
.site-header .wp-block-navigation { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.site-header .wp-block-navigation a { color: var(--site-text); text-decoration: none; }
.site-header .wp-block-navigation a:hover { color: var(--site-moss); }

/* === hero === */
.hero-intro { padding-block: clamp(58px, 9vw, 118px) clamp(36px, 5vw, 64px); }
.page-intro { padding-block: clamp(58px, 9vw, 118px) clamp(44px, 6vw, 76px); }
.page-intro h1 { max-width: 900px; line-height: 1.02; letter-spacing: -.035em; }
.page-intro .eyebrow { margin-bottom: 24px; }
.page-intro .hero-copy { max-width: 650px; font-size: clamp(1.1rem, 1.8vw, 1.32rem); }
.hero-intro .eyebrow { margin-bottom: 24px; }
.hero-intro h1 { max-width: 900px; line-height: 1.02; letter-spacing: -.035em; }
.hero-intro .hero-copy { max-width: 620px; font-size: clamp(1.1rem, 1.8vw, 1.32rem); }
.hero-actions { gap: 22px; margin-top: 28px; }
.hero-image { margin: 0; }
.hero-image img { width: 100%; max-height: 680px; object-fit: cover; object-position: center 44%; }
.caption { padding: 12px var(--wp--style--root--padding-left); color: color-mix(in srgb, var(--site-text) 65%, transparent); }

/* === evidence === */
.proof { padding-block: 42px; border-bottom: 1px solid var(--site-line); }
.proof-grid { gap: 18px; }
.proof-item { border-top: 1px solid var(--site-line); padding-top: 16px; }
.proof-item strong { display: block; font-family: var(--wp--preset--font-family--playfair-display); font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 400; }
.proof-item span { display: block; margin-top: 5px; font-size: 13px; color: color-mix(in srgb, var(--site-text) 72%, transparent); }

/* === interrupted bands === */
.reading-section { padding-block: clamp(68px, 9vw, 116px); }
.reading-section h2 { max-width: 700px; font-size: clamp(2.25rem, 4.5vw, 4rem); }
.wide-band { padding-block: clamp(44px, 7vw, 86px); padding-inline: var(--wp--style--root--padding-left); }
.wide-band > .wp-block-group { max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
.video-band { background: var(--site-text); color: var(--site-bg); }
.video-band h2 { color: var(--site-bg); }
.video-band .section-label { color: #c3cbb7; }
.video-band .video-copy { max-width: 640px; }
.video-band .wp-block-embed,
.video-band .wp-block-shortcode { margin-top: 28px; }
.video-band .wp-block-embed__wrapper,
.video-band .mobile-srl-youtube-embed { aspect-ratio: 16 / 9; }
.video-band iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-band .wp-block-image { margin-top: 28px; }
.video-band .wp-block-image img { width: 100%; max-height: 560px; object-fit: cover; }
.photo-band { padding: 0; }
.photo-band img { width: 100%; height: clamp(300px, 48vw, 650px); object-fit: cover; object-position: center 50%; }

/* === capability sequence === */
.capabilities { padding-block: clamp(70px, 9vw, 120px); }
.service-list { margin-top: 36px; border-top: 1px solid var(--site-line); }
.service-step { display: grid; grid-template-columns: 70px minmax(180px, .85fr) 1.15fr; gap: 26px; padding: 25px 0; border-bottom: 1px solid var(--site-line); align-items: start; }
.service-number { color: var(--site-moss); font-size: 12px; letter-spacing: .14em; }
.service-step h3 { margin: 0; font-family: var(--wp--preset--font-family--playfair-display); font-size: clamp(1.35rem, 2.3vw, 1.8rem); font-weight: 400; }
.service-step p { margin: 0; font-size: 15px; }
.service-step .technical { margin-top: 8px; color: color-mix(in srgb, var(--site-text) 72%, transparent); font-size: 13px; }
.process-note { margin-top: 24px; font-size: 13px; color: color-mix(in srgb, var(--site-text) 72%, transparent); }

/* === founder and reviews === */
.founder { background: var(--site-paper); }
.founder-copy { max-width: 640px; }
.founder-copy h2 { font-size: clamp(2.25rem, 4.5vw, 3.8rem); }
.founder-image > .wp-block-image img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.capability-photo-grid { gap: 12px; }
.capability-photo-grid .wp-block-image { margin: 0; }
.capability-photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 28px; margin-top: 36px; }
.review { position: relative; }
.review.is-style-testimonial-bubble { border: 1px solid var(--site-line); border-radius: 2px; background: var(--site-paper); padding: 24px 22px; }
.review.is-style-testimonial-bubble::before,
.review.is-style-testimonial-bubble::after { content: ""; position: absolute; left: 26px; bottom: -10px; width: 0; height: 0; border-style: solid; }
.review.is-style-testimonial-bubble::before { border-width: 10px 10px 0 0; border-color: var(--site-line) transparent transparent transparent; }
.review.is-style-testimonial-bubble::after { left: 27px; bottom: -8px; border-width: 8px 8px 0 0; border-color: var(--site-paper) transparent transparent transparent; }
.review blockquote { margin: 0; font-family: var(--wp--preset--font-family--playfair-display); font-size: 1.25rem; line-height: 1.45; }
.review cite { display: block; margin-top: 18px; font-family: var(--wp--preset--font-family--dm-sans); font-size: 11px; font-style: normal; letter-spacing: .14em; text-transform: uppercase; }

/* === contact and footer === */
.contact-band { background: var(--site-moss); color: var(--site-bg); }
.contact-band h2 { color: var(--site-bg); }
.contact-band .section-label { color: #e2e8db; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 90px); align-items: start; }
.contact-details { font-size: 15px; }
.contact-details a { color: inherit; }
.contact-band .wp-block-jetpack-contact-form { color: var(--site-text); background: var(--site-paper); padding: clamp(22px, 4vw, 42px); }
.contact-band .wp-block-jetpack-contact-form label { font-size: 13px; }
.contact-band .wp-block-jetpack-contact-form input, .contact-band .wp-block-jetpack-contact-form textarea { width: 100%; border: 1px solid var(--site-line); border-radius: 2px; background: white; padding: 12px; font: inherit; }
.contact-band .wp-block-jetpack-contact-form input:focus, .contact-band .wp-block-jetpack-contact-form textarea:focus { outline: 2px solid var(--site-moss); outline-offset: 2px; }
.site-footer { padding-block: 26px; border-top: 1px solid var(--site-line); letter-spacing: .04em; text-transform: none; }
.site-footer > .wp-block-group { gap: 12px 24px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--site-text); }

/* === responsive === */
@media (max-width: 760px) {
	.proof-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
	.service-step { grid-template-columns: 42px 1fr; gap: 12px 18px; }
	.service-step > .service-number { grid-column: 1; grid-row: 1; }
	.service-step > .wp-block-heading { grid-column: 2; }
	.service-step > .wp-block-group { grid-column: 2; }
	.review-grid { grid-template-columns: 1fr; gap: 24px; }
	.contact-grid { grid-template-columns: 1fr; }
	.hero-image img { height: 420px; }
}
@media (max-width: 480px) {
	.site-header > .wp-block-group { min-height: 68px; }
	.site-branding .wp-block-site-logo img { width: 46px; height: 46px; }
	.brand-name { font-size: 18px; }
	.brand-subline { font-size: 8px; }
	.site-header .wp-block-navigation { font-size: 10px; }
	.hero-image img { height: 330px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
