/**
 * Cocooning Spa Pro – Main Stylesheet
 *
 * Uses CSS custom properties for theming.
 * Follows BEM naming convention.
 *
 * @package Cocooning_Spa_Pro
 */

/* ==========================================================================
   Custom Properties
   ========================================================================== */

:root {
	--csp-gold: #c9a84c;
	--csp-teal: #00c8c8;
	--csp-navy: #0a1628;
	--csp-navy-light: #0f1f38;
	--csp-text: #f8f4ee;
	--csp-text-muted: rgba(248, 244, 238, 0.75);
	--csp-border: rgba(201, 168, 76, 0.2);
	--csp-radius: 6px;
	--csp-transition: 0.3s ease;
	--csp-font-heading: 'Cormorant Garamond', Georgia, serif;
	--csp-font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--csp-container: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	background-color: var(--csp-navy);
	color: var(--csp-text);
	font-family: var(--csp-font-body);
	font-size: 1rem;
	line-height: 1.7;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--csp-gold);
	text-decoration: none;
	transition: color var(--csp-transition);
}

a:hover,
a:focus-visible {
	color: var(--csp-teal);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--csp-font-heading);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 1rem;
	color: var(--csp-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { margin: 0 0 1rem; }

/* ==========================================================================
   Layout
   ========================================================================== */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
}

.container {
	width: 100%;
	max-width: var(--csp-container);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	background: var(--csp-gold);
	color: var(--csp-navy);
	display: block;
	font-weight: 700;
	padding: 0.75rem 1.5rem;
	position: absolute;
	top: -100%;
	left: 6px;
	z-index: 100000;
	transition: top var(--csp-transition);
}

.skip-link:focus {
	top: 6px;
}

/* Focus ring */
:focus-visible {
	outline: 2px solid var(--csp-gold);
	outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 2rem;
	font-family: var(--csp-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	border: none;
	border-radius: var(--csp-radius);
	cursor: pointer;
	transition: all var(--csp-transition);
	text-decoration: none;
	line-height: 1;
}

.btn--primary {
	color: var(--csp-navy);
	background: linear-gradient(135deg, var(--csp-gold), #e2c06a, var(--csp-gold));
	background-size: 200% 200%;
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background-position: right center;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
	color: var(--csp-navy);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(10, 22, 40, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--csp-border);
	padding: 1rem 0;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.site-branding a,
.site-branding img {
	display: block;
	max-height: 50px;
	width: auto;
}

.site-title {
	font-family: var(--csp-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--csp-gold);
	margin: 0;
}

.site-title a {
	color: inherit;
}

/* Navigation */
.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2rem;
}

.main-navigation a {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--csp-text-muted);
	transition: color var(--csp-transition);
	padding: 0.5rem 0;
}

.main-navigation a:hover,
.main-navigation a:focus-visible,
.main-navigation .current-menu-item > a {
	color: var(--csp-gold);
}

/* Mobile toggle */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--csp-text);
	transition: all var(--csp-transition);
}

.hamburger {
	position: relative;
}

.hamburger::before,
.hamburger::after {
	content: '';
	position: absolute;
	left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.csp-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	background-color: var(--csp-navy);
}

.csp-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(10, 22, 40, 0.6),
		rgba(10, 22, 40, 0.4),
		rgba(10, 22, 40, 0.9)
	);
}

.csp-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 800px;
	padding: 2rem;
}

.csp-hero__logo {
	margin-bottom: 2rem;
}

.csp-hero__logo img {
	max-width: 280px;
	margin-inline: auto;
}

.csp-hero__title {
	font-family: var(--csp-font-heading);
	font-size: clamp(2.5rem, 6vw, 4rem);
	color: var(--csp-text);
	margin-bottom: 1rem;
	letter-spacing: 0.02em;
}

.csp-hero__badge {
	display: inline-block;
	font-size: 0.75rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--csp-gold);
	margin-bottom: 1.5rem;
}

.csp-hero__desc {
	font-size: 1.2rem;
	color: var(--csp-text-muted);
	margin-bottom: 1rem;
}

.csp-hero__tagline {
	font-size: 1rem;
	color: var(--csp-text-muted);
	margin-bottom: 2.5rem;
	max-width: 500px;
	margin-inline: auto;
}

.csp-hero__cta .btn {
	animation: csp-pulse 3s ease-in-out infinite;
}

@keyframes csp-pulse {
	0%, 100% { box-shadow: 0 0 12px rgba(201, 168, 76, 0.3); }
	50% { box-shadow: 0 0 28px rgba(201, 168, 76, 0.6); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.csp-section {
	padding: 5rem 0;
}

.csp-section--alt {
	background: var(--csp-navy-light);
}

.csp-section__title {
	text-align: center;
	margin-bottom: 3rem;
	color: var(--csp-text);
}

/* ==========================================================================
   Grid
   ========================================================================== */

.csp-grid {
	display: grid;
	gap: 2rem;
}

.csp-grid--3 {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.csp-grid--4 {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ==========================================================================
   Cards (Prestations)
   ========================================================================== */

.csp-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--csp-border);
	border-radius: var(--csp-radius);
	overflow: hidden;
	transition: all var(--csp-transition);
}

.csp-card:hover {
	border-color: var(--csp-gold);
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.csp-card__img img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.csp-card__body {
	padding: 1.5rem;
}

.csp-card__title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.csp-card__text {
	color: var(--csp-text-muted);
	font-size: 0.9rem;
}

.csp-card__price {
	color: var(--csp-gold);
	font-size: 1.25rem;
	font-weight: 700;
	margin-top: 1rem;
}

.csp-card__duration {
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--csp-text-muted);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.csp-testimonial {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--csp-border);
	border-radius: var(--csp-radius);
	padding: 2rem;
	margin: 0;
}

.csp-testimonial__stars {
	margin-bottom: 1rem;
}

.csp-testimonial__stars .star {
	font-size: 1.2rem;
}

.csp-testimonial__stars .filled {
	color: var(--csp-gold);
}

.csp-testimonial__stars .empty {
	color: rgba(255, 255, 255, 0.2);
}

.csp-testimonial__text {
	font-style: italic;
	color: var(--csp-text-muted);
	margin-bottom: 1.5rem;
	line-height: 1.8;
}

.csp-testimonial__footer {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.csp-testimonial__author {
	font-style: normal;
	font-weight: 600;
	color: var(--csp-text);
}

.csp-testimonial__date {
	font-size: 0.85rem;
	color: var(--csp-text-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.csp-faq__list {
	max-width: 800px;
	margin-inline: auto;
}

.csp-faq__item {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--csp-border);
	border-radius: var(--csp-radius);
	margin-bottom: 0.75rem;
	transition: border-color var(--csp-transition);
}

.csp-faq__item:hover,
.csp-faq__item[open] {
	border-color: var(--csp-gold);
}

.csp-faq__question {
	padding: 1.25rem 1.5rem;
	cursor: pointer;
	font-weight: 600;
	color: var(--csp-gold);
	list-style: none;
}

.csp-faq__question::-webkit-details-marker {
	display: none;
}

.csp-faq__question::after {
	content: '+';
	float: right;
	font-size: 1.25rem;
	transition: transform var(--csp-transition);
}

.csp-faq__item[open] .csp-faq__question::after {
	transform: rotate(45deg);
}

.csp-faq__answer {
	padding: 0 1.5rem 1.5rem;
	color: var(--csp-text-muted);
	line-height: 1.8;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.csp-gallery__item {
	margin: 0;
	border-radius: var(--csp-radius);
	overflow: hidden;
}

.csp-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--csp-transition);
}

.csp-gallery__item:hover img {
	transform: scale(1.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: rgba(0, 0, 0, 0.3);
	border-top: 1px solid var(--csp-border);
	padding: 4rem 0 2rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.footer-col h4 {
	color: var(--csp-gold);
	font-size: 1rem;
	margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
	color: var(--csp-text-muted);
	font-size: 0.9rem;
}

.footer-col a:hover {
	color: var(--csp-gold);
}

.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-menu li {
	margin-bottom: 0.5rem;
}

.csp-social-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 1rem;
}

.csp-social-links a {
	color: var(--csp-text-muted);
	font-size: 0.9rem;
}

.csp-social-links a:hover {
	color: var(--csp-gold);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
	color: var(--csp-text-muted);
	font-size: 0.85rem;
	margin: 0;
}

/* ==========================================================================
   Pages & Posts
   ========================================================================== */

.csp-page,
.csp-post {
	padding: 3rem 0;
}

.csp-page__title {
	margin-bottom: 2rem;
}

.csp-page__thumbnail {
	margin-bottom: 2rem;
	border-radius: var(--csp-radius);
	overflow: hidden;
}

.entry-content {
	max-width: 720px;
}

.entry-content p {
	color: var(--csp-text-muted);
	line-height: 1.8;
}

/* 404 */
.csp-404 {
	text-align: center;
	padding: 6rem 0;
}

/* ==========================================================================
   Forms (for Contact Form 7 / WPForms compatibility)
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--csp-border);
	border-radius: var(--csp-radius);
	color: var(--csp-text);
	font-family: var(--csp-font-body);
	font-size: 1rem;
	transition: border-color var(--csp-transition), box-shadow var(--csp-transition);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--csp-gold);
	box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--csp-gold);
	font-size: 0.9rem;
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--csp-navy); }
::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 168, 76, 0.5); }

/* ==========================================================================
   Selection
   ========================================================================== */

::selection {
	background: rgba(0, 200, 200, 0.25);
	color: var(--csp-text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--csp-navy);
		border-bottom: 1px solid var(--csp-border);
		padding: 1.5rem;
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 1rem;
	}

	.csp-hero {
		min-height: 80vh;
	}

	.csp-section {
		padding: 3rem 0;
	}

	.csp-grid--3 {
		grid-template-columns: 1fr;
	}

	.csp-grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.csp-grid--4 {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
	.site-header,
	.site-footer,
	.csp-hero__cta,
	.menu-toggle {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	a { color: #000; }
}
