﻿/*
Theme Name: Padel Galis UK
Theme URI: https://padelgalis.uk
Author: Digital Edge Strategies
Author URI: https://digitaledgestrategies.co.uk
Description: Block theme for Padel Galis UK, styled to match the Padel Galis brand in Figma: FK Grotesk type, electric blue, deep navy and white, big punchy headlines and pill buttons. Works with the Site Editor and WooCommerce.
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: padel-galis-uk
Tags: block-patterns, full-site-editing, custom-colors, custom-logo, editor-style, wide-blocks
*/

/* Most styling lives in theme.json. These rules cover what theme.json can't. */

/* Headlines: tight, punchy, like the social posts */
h1, h2, h3, .wp-block-heading {
	text-wrap: balance;
}

/* Pale blue accent words inside a heading: wrap text in <mark class="pg-accent"> or use the "Accent" highlight */
.pg-accent,
mark.pg-accent {
	background: none;
	color: var(--wp--preset--color--blue);
}
.has-navy-background-color .pg-accent,
.has-blue-background-color .pg-accent,
.wp-block-cover .pg-accent {
	color: var(--wp--preset--color--sky);
}
.wp-block-cover.pg-hero {
	border-radius: 0;
}
.pg-hero h5 {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

/* Photo cards and covers get the soft dark gradient used on the posts */
.is-style-pg-photo-gradient .wp-block-cover__background,
.wp-block-cover.is-style-pg-photo-gradient .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(20, 5, 40, 0.15) 0%, rgba(20, 5, 40, 0.55) 55%, rgba(20, 5, 40, 0.9) 100%) !important;
	opacity: 1 !important;
}

/* White pill button style (button block > Styles > White pill) */
.wp-block-button.is-style-pg-white .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--blue);
}
.wp-block-button.is-style-pg-white .wp-block-button__link:hover,
.wp-block-button.is-style-pg-white .wp-block-button__link:focus {
	background: var(--wp--preset--color--sky);
	color: var(--wp--preset--color--navy);
}

/* Arrow on buttons, as on "Swipe to find out" */
.wp-block-button.is-style-pg-arrow .wp-block-button__link::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.5em;
	transition: transform 0.2s ease;
}
.wp-block-button.is-style-pg-arrow .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* Cards */
.pg-card {
	border-radius: 18px;
	overflow: hidden;
}
.pg-card .wp-block-cover {
	border-radius: 18px;
}

/* Sticky header */
.pg-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .pg-header {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .pg-header {
		top: 46px;
	}
}

/* Navigation in the dark header */
.pg-header .wp-block-navigation a:hover,
.pg-header .wp-block-navigation a:focus {
	color: var(--wp--preset--color--sky);
}

.pg-header .wp-block-button__link {
	white-space: nowrap;
}

/* Links on dark backgrounds (footer, navy and blue sections) */
.has-navy-background-color a:not(.wp-block-button__link),
.has-blue-background-color a:not(.wp-block-button__link),
.has-blue-navy-gradient-background a:not(.wp-block-button__link),
.wp-block-cover a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--white);
}
.has-navy-background-color a:not(.wp-block-button__link):hover,
.has-blue-background-color a:not(.wp-block-button__link):hover,
.wp-block-cover a:not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--sky);
}
footer .wp-block-list,
footer ul {
	list-style: none;
	padding-left: 0;
}

/* Embedded video and imported images */
.wp-block-embed iframe {
	width: 100%;
}
.wp-block-image img {
	border-radius: 18px;
	height: auto;
}

/* Focus states */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--sky);
	outline-offset: 3px;
}

/* WooCommerce buttons follow the brand */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button:not(.is-link) {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

/* Small screens: keep big headlines readable */
@media (max-width: 600px) {
	.pg-hero h1 {
		font-size: clamp(2.4rem, 11vw, 3.4rem) !important;
	}
}
