/*
Theme Name: London Video Studio
Theme URI: https://londonvideostudio.co.uk
Author: London Video Studio
Author URI: https://londonvideostudio.co.uk
Description: A single-page block theme for London Video Studio — navy and gold, Montserrat and Inter. Every section, every word and every photo is editable from the WordPress Site Editor and block editor. No page builder required.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: london-video-studio
Tags: one-column, block-patterns, full-site-editing, custom-colors, custom-menu, editor-style, featured-images, block-styles, wide-blocks, sticky-post
*/

/* =========================================================
   1. Base
   ========================================================= */

html {
	scroll-behavior: smooth;
}

/* `clip` rather than `hidden`: `overflow-x: hidden` turns these into scroll
   containers, which silently breaks the sticky header. */
html,
body {
	max-width: 100%;
	overflow-x: clip;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: #daa63d;
	color: #0c1828;
}

.wp-block-image img {
	max-width: 100%;
	height: auto;
}

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

/* Inline colour highlights should tint the text, never the background. */
mark.has-inline-color {
	background-color: transparent;
}

/* Anchor links land below the sticky header. */
.lvs-section[id] {
	scroll-margin-top: 78px;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* =========================================================
   2. Header + navigation
   ========================================================= */

.lvs-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--wp--preset--color--navy);
	border-bottom: 1px solid rgba(218, 166, 61, 0.18);
}

.lvs-header .wp-block-site-logo,
.lvs-footer .wp-block-site-logo {
	flex-shrink: 0;
	line-height: 0;
}

.lvs-header .wp-block-site-logo img,
.lvs-footer .wp-block-site-logo img {
	height: auto;
	display: block;
}

.lvs-header__right {
	flex-shrink: 0;
}

/* The design switches to a hamburger at 860px, core switches at 600px.
   These two rules move the breakpoint without touching core files. */
@media (min-width: 600px) and (max-width: 859.98px) {

	.lvs-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.lvs-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

/* On phones the design shows: logo — gold button — hamburger. */
@media (max-width: 859.98px) {

	.lvs-header__right .lvs-header__nav {
		order: 3;
	}

	.lvs-header__right .lvs-header__cta {
		order: 2;
	}

	.lvs-header__cta .wp-block-button__link {
		font-size: 0.72rem;
		letter-spacing: 0.01em;
		padding: 9px 14px;
		white-space: nowrap;
	}
}

.lvs-header .wp-block-navigation__responsive-container-open {
	border: 1px solid rgba(218, 166, 61, 0.35);
	border-radius: 4px;
	width: 40px;
	height: 38px;
	align-items: center;
	justify-content: center;
	color: #eaecef;
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: clamp(2rem, 8vw, 4rem) clamp(20px, 5vw, 40px) clamp(24px, 6vw, 48px);
}

/* The desktop nav is right-aligned; inside the overlay the links go left,
   as they do in the design's dropdown. */
.lvs-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	justify-content: flex-start !important;
	align-items: flex-start !important;
	width: 100%;
	gap: 4px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 600;
	font-size: 1.35rem;
	padding: 14px 2px;
	width: 100%;
}

.wp-block-navigation__responsive-container-close {
	color: #eaecef;
}

/* =========================================================
   3. Hero
   ========================================================= */

.lvs-hero {
	/* Overrides the Cover block's inline min-height with the design's clamp. */
	min-height: clamp(560px, 86vh, 860px) !important;
	position: relative;
	overflow: hidden;
}

/* Second, vertical veil from the design (Cover only supports one overlay). */
.lvs-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 24, 40, 0.5) 0%, rgba(12, 24, 40, 0) 30%, rgba(12, 24, 40, 0.85) 100%);
	pointer-events: none;
	z-index: 1;
}

/* Keep the hero copy above both veils. Core ships a high-specificity rule for
   the inner container's z-index, so this one has to shout. */
.wp-block-cover.lvs-hero > .wp-block-cover__inner-container {
	position: relative;
	z-index: 3 !important;
}

.lvs-hero__copy {
	max-width: 760px;
	animation: lvsFade 0.7s ease both;
}

@keyframes lvsFade {

	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* =========================================================
   4. Measures (line-length limits taken from the design)
   ========================================================= */

.lvs-measure-16ch { max-width: 16ch; }
.lvs-measure-20ch { max-width: 20ch; }
.lvs-measure-24ch { max-width: 24ch; }
.lvs-measure-46ch { max-width: 46ch; }
.lvs-measure-600 { max-width: 600px; }
.lvs-measure-440 { max-width: 440px; }

/* A constrained layout centres anything narrower than its content width.
   The design left-aligns these, so the auto margin is cancelled. */
.lvs-hero__copy,
.lvs-measure-16ch,
.lvs-measure-20ch,
.lvs-measure-24ch,
.lvs-measure-46ch,
.lvs-measure-600 {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Card rows collapse empty tracks, as the design's auto-fit grid does. */
.lvs-autofit-260 {
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) !important;
}

.lvs-autofit-240 {
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)) !important;
}

/* =========================================================
   5. Photo grading — one consistent navy grade on every photo
   ========================================================= */

.lvs-grade {
	position: relative;
	isolation: isolate;
}

.lvs-grade img,
.lvs-grade .wp-block-cover__image-background {
	filter: saturate(0.76) contrast(1.03);
}

.lvs-grade::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #0c1828;
	mix-blend-mode: color;
	opacity: 0.4;
	z-index: 1;
	pointer-events: none;
}

.lvs-photo-ring {
	position: relative;
}

.lvs-photo-ring::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px rgba(218, 166, 61, 0.25);
	pointer-events: none;
	z-index: 2;
}

/* =========================================================
   6. Section details
   ========================================================= */

/* Gold diamond above each "how it works" card. */
.lvs-diamond::before {
	content: "";
	display: block;
	width: 11px;
	height: 11px;
	background: var(--wp--preset--color--gold);
	transform: rotate(45deg);
	margin-bottom: 22px;
}

/* "Bonus" pill. */
.lvs-badge {
	display: inline-block;
	background: rgba(218, 166, 61, 0.16);
	color: var(--wp--preset--color--gold);
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 700;
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 6px 11px;
	border-radius: 4px;
	line-height: 1;
	flex: 0 0 auto;
}

/* Email line with its small gold diamond. */
.lvs-email::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	background: var(--wp--preset--color--gold);
	transform: rotate(45deg);
	margin-right: 12px;
	vertical-align: middle;
	flex-shrink: 0;
}

.lvs-email a {
	color: var(--wp--preset--color--off-white);
}

.lvs-email a:hover {
	color: var(--wp--preset--color--gold);
}

/* The About columns swap order when they stack, so the photo sits on top. */
@media (max-width: 781px) {

	.lvs-wrap-reverse {
		flex-wrap: wrap-reverse !important;
	}
}

/* Footer. */
.lvs-footer {
	background: var(--wp--preset--color--navy-deep);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lvs-footer-legal {
	flex-basis: 100%;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Social / secondary links keep the slate colour until hovered. */
.lvs-social a {
	color: var(--wp--preset--color--light-slate);
}

.lvs-social a:hover,
.lvs-social a:focus {
	color: var(--wp--preset--color--gold);
}

/* The step-02 callout: photo flush to the panel edge, rounded corners clipped.
   Core pads any Columns block that has a background; the design does not. */
.lvs-callout {
	overflow: hidden;
}

.lvs-callout.has-background {
	padding: 0;
}

.lvs-callout__media {
	align-self: stretch;
}

.lvs-callout__media .wp-block-image,
.lvs-callout__media figure {
	height: 100%;
	margin: 0;
}

.lvs-callout__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
}

/* Gradient veils layered over the photos, matching the design. */
.lvs-veil::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	opacity: 0.63;
}

.lvs-veil-diagonal::after {
	background: linear-gradient(110deg, rgba(12, 24, 40, 0.28) 0%, rgba(12, 24, 40, 0.55) 100%);
}

.lvs-veil-down::after {
	background: linear-gradient(180deg, rgba(12, 24, 40, 0.12) 0%, rgba(12, 24, 40, 0.45) 100%);
}

.lvs-veil-down::after {
	border-radius: 10px;
}

/* "4 long-form expert videos a month" sits on a shared baseline. */
.lvs-baseline {
	align-items: baseline !important;
}

/* The Bonus line takes the remaining width next to its pill. */
.lvs-flex-fill {
	flex: 1 1 240px;
	min-width: 0;
}

/* =========================================================
   7. Buttons
   ========================================================= */

.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lvs-btn-glow .wp-block-button:not(.is-style-lvs-quiet) .wp-block-button__link {
	box-shadow: 0 10px 30px rgba(218, 166, 61, 0.22);
}

.lvs-btn-glow .wp-block-button:not(.is-style-lvs-quiet) .wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* "Quiet link" button style — the underlined secondary link in the hero. */
.wp-block-button.is-style-lvs-quiet .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--off-white);
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 500;
	font-size: 0.98rem;
	letter-spacing: normal;
	border-radius: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	padding: 14px 6px;
}

.wp-block-button.is-style-lvs-quiet .wp-block-button__link:hover,
.wp-block-button.is-style-lvs-quiet .wp-block-button__link:focus {
	background-color: transparent;
	color: var(--wp--preset--color--gold);
	border-bottom-color: var(--wp--preset--color--gold);
}

/* =========================================================
   8. Contact form
   ========================================================= */

.lvs-form {
	background: #101e30;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	padding: clamp(24px, 3vw, 36px);
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}

.lvs-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #9aa6b2;
}

.lvs-form input,
.lvs-form textarea {
	background: #0c1828;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	padding: 13px 14px;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	width: 100%;
	max-width: 100%;
}

.lvs-form textarea {
	resize: vertical;
	min-height: 96px;
}

.lvs-form input:focus,
.lvs-form textarea:focus {
	border-color: #daa63d;
	outline: none;
}

.lvs-form button {
	background: #daa63d;
	color: #0c1828;
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	padding: 15px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.lvs-form button:hover {
	background: #e8c169;
}

/* =========================================================
   9. Small-screen safety — nothing may force sideways scroll
   ========================================================= */

.wp-block-columns,
.wp-block-column,
.wp-block-group {
	min-width: 0;
}

@media (max-width: 599.98px) {

	.lvs-section .wp-block-columns {
		gap: var(--wp--preset--spacing--60);
	}
}
