/*
Theme Name: Luxury Spa Barcelona
Theme URI: https://example.com
Author: Antigraviti
Author URI: https://example.com
Description: A custom Dark Elegance theme for an exclusive gentlemen and couples spa.
Version: 1.0
Text Domain: luxury-spa
*/

/* 
  Theme: Dark Elegance for Gentlemen & Couples Spa
  Colors: Matte Black, Charcoal Grey, Soft Gold, Warm Beige
*/

:root {
    /* Color Palette */
    --color-bg-primary: #121212;
    /* Matte Black */
    --color-bg-secondary: #0a0a0a;
    /* Deep Charcoal */
    --color-text-primary: #F5F5F5;
    /* Off-White */
    --color-text-secondary: #C0C0C0;
    /* Silver Grey */
    --color-accent: #C5A028;
    /* Deep Gold */
    --color-accent-hover: #E5C158;
    /* Brighter Gold */
    --color-beige: #E8DCC4;
    /* Warm Beige */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    scroll-behavior: smooth;
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 0;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    background: transparent;
    transition: all var(--transition-fast);
}

.btn:hover {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    text-shadow: none;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Header */
#header {
    position: absolute;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 600;
}

nav ul {
    display: flex;
    /* Simplified for theme, assuming WP Nav Menu structure matches or is styled */
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Make WP menu items behave like flex items */
.menu-main-menu-container ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

nav a:hover,
nav .current-menu-item a {
    color: var(--color-accent);
    opacity: 1;
}

.nav-cta a {
    /* Special class for 'Book Now' if added via WP Menu Classes */
    border: 1px solid var(--color-text-primary);
    padding: 0.5rem 1.5rem;
}

.nav-cta a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Mobile Menu Handling (Basic) */
@media(max-width: 768px) {

    nav ul,
    .menu-main-menu-container ul {
        display: none;
    }

    /* In a real theme, we'd add a hamburger menu toggle script here */
}


/* Hero Section */
#hero {
    position: relative;
    height: 90vh;
    /* Cinematic height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    /* Dim functionality handled by image or overlay */
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 4rem;
    padding: 0 1rem;
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--color-beige);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

/* Services Grid & Cards */
.service-card {
    position: relative;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(197, 160, 40, 0.2);
    transition: transform var(--transition-fast);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.service-img-wrapper {
    height: 300px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    color: var(--color-beige);
}

.price-tag {
    color: var(--color-accent);
    font-weight: 500;
    margin-top: 1rem;
    display: block;
}

/* Menu/Pricing Lists */
.menu-list {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.menu-item-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-beige);
}

.menu-item-info p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.menu-price {
    font-family: var(--font-body);
    color: var(--color-accent);
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Location/NAP */
.nap-block {
    background: #0f0f0f;
    padding: 3rem;
    border-left: 3px solid var(--color-accent);
}

.phone-large {
    font-size: 1.5rem;
    color: var(--color-accent);
    display: block;
    margin: 1rem 0;
}

/* Footer */
footer {
    padding: 4rem 0 6rem 0;
    /* Extra bottom padding for floating buttons */
    background: #050505;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    color: #777;
}

.footer-nav {
    margin-bottom: 2rem;
}

.footer-nav a {
    margin: 0 1rem;
    color: #aaa;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

/* --- Floating Conversion Tools --- */

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}