/*
Theme Name: Pływanie Aqua Team
Theme URI: https://www.plywanie-aquateam.pl
Author: MAGENTUM Artur Wójcik
Description: Autorski motyw szkoły pływania Aqua Team.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plywanie-aqua-team
Tags: block-theme, full-site-editing, one-column
*/

/* ===== Hero ===== */
.hero {
	padding: 6rem 2rem;
}

.hero__eyebrow {
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.hero h1 {
	line-height: 1.15;
	margin-top: 0.75rem;
}

.hero__subtitle {
	margin-top: 0.5rem;
}

.hero__description {
	margin-top: 2rem;
	max-width: 34rem;
}

.hero .wp-block-buttons {
	margin-top: 2.5rem;
}

/* ===== Buttons ===== */
/* Outline button (on photo backgrounds) */
.button-outline .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--base);
}

/* ===== Stat cards ===== */
.stat-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--surface-strong);
	border-radius: var(--wp--custom--radius--card);
	padding: 2.5rem 2rem 3.5rem;
}

.stat-card__value {
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0;
}

.stat-card__label {
	margin-top: 1rem;
}

/* ===== Sections ===== */
.section-eyebrow {
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0;
}

.section-lead {
	margin-top: 0.75rem;
	/*max-width: 52rem;*/
}

/* ===== Group cards ===== */
.group-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--surface-strong);
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
}

.group-card__image {
	margin: 0;
}

.group-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.group-card__body {
	padding: 2rem 2rem 2.5rem;
}

.group-card__name {
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0;
}

.group-card__age {
	font-weight: 600;
	margin-top: 0.5rem;
}

.group-card__list {
	margin-top: 1.5rem;
	padding-left: 1.25rem;
}

.group-card__list li {
	margin-bottom: 0.75rem;
}

.group-card__list li::marker {
	color: var(--wp--preset--color--accent);
}

/* ===== Dark section ===== */
.section-lead--dark {
	color: rgba(255, 255, 255, 0.8);
}

/* ===== Why cards ===== */
.why-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--wp--custom--radius--card);
	padding: 2rem 1.75rem 2.5rem;
}

.why-card__number {
	font-weight: 700;
	margin: 0;
}

.why-card__title {
	margin-top: 1.25rem;
}

.why-card__text {
	color: rgba(255, 255, 255, 0.75);
	margin-top: 0.75rem;
}

/* ===== Pool gallery (mozaika) ===== */
.basen-gallery {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem !important;
}

.basen-gallery .wp-block-image {
	width: 100% !important;
	margin: 0 !important;
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
}

.basen-gallery .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Pierwsze zdjęcie: duży kafel 2×2 */
.basen-gallery .wp-block-image:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.basen-gallery .wp-block-image:not(:first-child) {
	aspect-ratio: 3 / 2;
}

/* Mobile: jedna kolumna */
@media (max-width: 781px) {
	.basen-gallery {
		grid-template-columns: 1fr;
	}
	.basen-gallery .wp-block-image:first-child {
		grid-column: auto;
		grid-row: auto;
	}
	.basen-gallery .wp-block-image {
		aspect-ratio: 3 / 2;
	}
}

/* ===== Schedule cards ===== */
.schedule-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--surface-strong);
	border-radius: var(--wp--custom--radius--card);
	padding: 2.5rem 2rem;
}

.schedule-card .wp-block-image {
	margin: 0;
}

.schedule-card img {
	display: block;
	width: 100%;
	height: auto;
}

/* ===== Price cards ===== */
.price-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--surface-strong);
	border-radius: var(--wp--custom--radius--card);
	padding: 2.5rem 2rem 3rem;
}

.price-card__value {
	text-transform: uppercase;
	margin: 0;
}

.price-card__label {
	margin-top: 1rem;
}

/* ===== Payment card ===== */
.payment-card {
	border-radius: var(--wp--custom--radius--card);
	padding: 2.5rem 2rem;
	height: 100%;
}

.payment-card__methods {
	font-weight: 700;
	margin-top: 1.5rem;
}

.payment-card__hint {
	color: rgba(255, 255, 255, 0.7);
	margin-top: 2rem;
}

.payment-card__number {
	font-weight: 700;
	letter-spacing: 1px;
	margin-top: 0.25rem;
}

/* ===== Discount card ===== */
.discount-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--surface-strong);
	border-radius: var(--wp--custom--radius--card);
	padding: 2.5rem 2rem;
	height: 100%;
}

.discount-card__title {
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0;
}

.discount-card__list {
	margin-top: 1.5rem;
	padding-left: 1.25rem;
}

.discount-card__list li {
	margin-bottom: 0.75rem;
}

.discount-card__list li::marker {
	color: var(--wp--preset--color--accent);
}

/* ===== Document cards ===== */
.doc-card {
	background: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--card);
	padding: 2.5rem 2rem;
	height: 100%;
}

.doc-card__title {
	margin: 0;
}

.doc-card__desc {
	margin-top: 1rem;
}

/* ===== FAQ ===== */
.faq-item {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--surface-strong);
	border-radius: var(--wp--custom--radius--card);
	padding: 1.75rem 2rem;
}

.faq-item[open] {
	background: var(--wp--preset--color--surface-strong);
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	font-size: var(--wp--preset--font-size--large);
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "+";
	color: var(--wp--preset--color--accent);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

.faq-item[open] summary::after {
	content: "−";
}

.faq-item > :not(summary) {
	margin-top: 1rem;
}

/* ===== Contact section ===== */
.contact-card {
	border-radius: var(--wp--custom--radius--card);
	padding: 2.5rem 2rem;
	height: 100%;
}

.contact-card__title {
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0;
}

.contact-card__list {
	list-style: none;
	padding-left: 0;
	margin-top: 2rem;
}

.contact-card__list li {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
	position: relative;
}

.contact-card__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold);
}

.contact-card__list a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.contact-card__list a:hover {
	text-decoration: underline;
}

.contact-card__location-label {
	margin-top: 2.5rem;
}

.contact-card__place {
	margin-top: 1rem;
}

.contact-card__address {
	color: rgba(255, 255, 255, 0.75);
	margin-top: 0.25rem;
}

.contact-card__photo {
	margin-top: 1.5rem;
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
}

.contact-card__photo img {
	display: block;
	width: 100%;
}

/* ===== Form card + Contact Form 7 ===== */
.form-card {
	background: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--card);
	padding: 2.5rem 2rem;
	height: 100%;
}

.form-card__title {
	margin: 0;
}

.form-card__lead {
	margin-top: 0.75rem;
}

.form-card .wpcf7 {
	margin-top: 1.5rem;
}

.form-card .wpcf7 input[type="text"],
.form-card .wpcf7 input[type="tel"],
.form-card .wpcf7 input[type="email"],
.form-card .wpcf7 textarea {
	width: 100%;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--text);
}

.form-card .wpcf7 input:focus,
.form-card .wpcf7 textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 0;
	border-color: var(--wp--preset--color--accent);
}

.form-card .wpcf7 textarea {
	min-height: 8rem;
	resize: vertical;
}

.form-card .wpcf7-acceptance .wpcf7-list-item {
	margin-left: 0;
}

.form-card .wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	border: none;
	border-radius: var(--wp--custom--radius--button);
	padding: 0.875rem 2rem;
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	margin-top: 1.25rem;
}

.form-card .wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--navy-light);
}

/* ===== Footer ===== */
.site-footer__logo {
	margin: 0;
	background: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--button);
	padding: 0.75rem;
}

.site-footer__logo img {
	display: block;
}

.site-footer__menu {
	margin: 0;
}

.site-footer__menu a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
	font-weight: 700;
	margin-left: 2rem;
}

.site-footer__menu a:first-child {
	margin-left: 0;
}

.site-footer__menu a:hover {
	text-decoration: underline;
}

.site-footer__contact {
	margin-top: 2.5rem;
}

.site-footer__contact,
.site-footer__contact a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.site-footer__contact a:hover {
	text-decoration: underline;
}

.site-footer__separator {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	margin-top: 3rem;
	width: 100%;
}

.site-footer__bottom {
	margin-top: 1.5rem;
}

.site-footer__copy,
.site-footer__site a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
}

.site-footer__site a:hover {
	text-decoration: underline;
}

/* Przyciski wypełnione — zawsze biały tekst */
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:visited {
	color: var(--wp--preset--color--base);
}
.wp-block-button.button-outline .wp-block-button__link {
	border: var(--wp--custom--button--border-width) solid currentColor;
	background: transparent;
	padding: calc(var(--wp--custom--button--padding-y) - var(--wp--custom--button--border-width))
	         calc(var(--wp--custom--button--padding-x) - var(--wp--custom--button--border-width));
}

/* Przyciski — płynne rozjaśnienie na hover */
.wp-block-button__link {
	transition: background-color 0.3s ease, border-color 0.3s ease,
	            color 0.3s ease;
}

/* Outline: delikatne wypełnienie na hover */
.wp-block-button.button-outline .wp-block-button__link:hover {
	background: color-mix(in srgb, currentColor 10%, transparent);
}

/* Szacunek dla ustawień systemowych użytkownika */
@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link {
		transition: none;
	}
}

.wp-block-button.is-style-accent .wp-block-button__link:hover {
	background-color: #3A9AC4; /* rozjaśniony accent */
}

/* Sekcja statystyk pod hero */
.stat-card {
	text-align: center;
}