/* Reset & Variables */
:root {
    --clay-light: #Fcfaf8;
    --clay-warm: #F5EEEB;
    --rose-brown: #EADBD5;
    --umber-deep: #3A2E2A;
    --umber-muted: #6D5953;
    --terracotta: #C4A49B;
    
    --font-heading: 'Playfair Display', 'Times New Roman', serif; /* Elegant serif as fallback */
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--umber-deep);
    background-color: var(--clay-light);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: normal;
    overflow-wrap: normal;
    -webkit-hyphens: none;
    hyphens: none;
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Interactive ambient light */
.ambient-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(234, 219, 213, 0.4), transparent 60%);
    z-index: -1;
    transition: transform 0.1s ease-out;
}

/* Navigation */
.nav-header {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(252, 250, 248, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(109, 89, 83, 0.1);
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 0;
}

.btn-outline {
    border: 1px solid var(--umber-muted);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--umber-deep);
    color: var(--clay-light);
    border-color: var(--umber-deep);
}

.btn-primary {
    display: inline-block;
    background: var(--umber-deep);
    color: var(--clay-light);
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--terracotta);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: var(--nav-height);
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    padding: 2rem 4rem 2rem 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--umber-muted);
    margin-bottom: 2rem;
    max-width: 450px;
}

.hero-visual {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.face-path {
    width: 60%;
    max-width: 300px;
    color: var(--terracotta);
    animation: pulse-path 6s infinite alternate ease-in-out;
}

.breathing-orb {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--rose-brown) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
    animation: breathe 8s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes pulse-path {
    0% { filter: drop-shadow(0 0 2px rgba(196, 164, 155, 0.4)); }
    100% { filter: drop-shadow(0 0 15px rgba(196, 164, 155, 0.8)); }
}

/* Philosophy */
.philosophy {
    padding: var(--spacing-xl) 0;
    background: var(--clay-warm);
    text-align: center;
}

.philosophy h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.philosophy p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--umber-muted);
}

/* Ritual Selector */
.ritual-selector-section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.selector-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 40px rgba(58, 46, 42, 0.05);
    overflow: hidden;
}

.selector-tabs {
    display: flex;
    flex-wrap: wrap;
    background: var(--clay-warm);
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    background: none;
    border: none;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--umber-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--umber-deep);
}

.tab-btn.active {
    color: var(--umber-deep);
    border-bottom-color: var(--terracotta);
    background: white;
}

.selector-content {
    padding: 3rem 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.ritual-card {
    transition: opacity 0.3s ease;
}

.ritual-card.fade-out {
    opacity: 0;
}

.ritual-name {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--terracotta);
}

.ritual-desc {
    font-size: 1.1rem;
    color: var(--umber-muted);
}

/* Service Menu */
.services-menu {
    padding: var(--spacing-xl) 0;
    background: var(--clay-warm);
}

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

.service-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 20px rgba(58, 46, 42, 0.03);
    border-top: 3px solid var(--rose-brown);
}

.service-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--umber-muted);
    font-size: 0.95rem;
}

/* Contact */
.contact-section {
    padding: var(--spacing-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--umber-muted);
    margin-bottom: 2rem;
}

.info-block {
    margin-bottom: 1.5rem;
}

.info-block strong {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--umber-muted);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.info-block span, .phone-link {
    font-size: 1.2rem;
}

.phone-link {
    color: var(--terracotta);
    font-weight: 500;
}

.contact-map {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(58, 46, 42, 0.05);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    background: #e5e3df; /* Map loading fallback */
}

.map-link {
    display: block;
    text-align: center;
    padding: 1rem;
    background: var(--clay-warm);
    font-size: 0.9rem;
    transition: background 0.3s;
}

.map-link:hover {
    background: var(--rose-brown);
}


/* Footer rules strictly applied */
.site-footer {
    background: var(--umber-deep);
    color: var(--clay-warm);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-brandline {
    opacity: 0.3;
    font-family: monospace;
    font-size: 0.75rem;
    margin-bottom: 3rem;
    text-align: center;
}

.peter-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(245, 238, 235, 0.1);
    padding-top: 2rem;
    gap: 1rem;
}

.peter-credit {
    font-weight: bold;
}

.peter-contact {
    display: flex;
    gap: 1rem;
}

.peter-contact a:hover {
    color: var(--terracotta);
}

.peter-note {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    color: rgba(245, 238, 235, 0.6);
}


/* Utilities & Animations: content visible by default, motion as enhancement */
.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.motion-ready .fade-in-up:not(.visible) {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(var(--nav-height) + 2rem);
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .nav-header {
        padding: 0 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .peter-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .ambient-light, .face-path, .breathing-orb, .fade-in-up {
        animation: none;
        transition: none;
        transform: none;
        opacity: 1;
    }
}

.seo-strip {
    padding: 1.2rem 0;
    background: #fff7f2;
    border-top: 1px solid rgba(109, 89, 83, 0.12);
    border-bottom: 1px solid rgba(109, 89, 83, 0.12);
    color: var(--umber-muted);
}

.seo-strip p {
    font-size: 0.95rem;
}

.contact-map {
    position: relative;
}

.map-label {
    position: absolute;
    left: 50%;
    top: 43%;
    transform: translate(-50%, -50%);
    background: rgba(252, 250, 248, 0.93);
    border: 1px solid rgba(196, 164, 155, 0.45);
    color: var(--umber-deep);
    padding: 0.9rem 1.1rem;
    text-align: center;
    box-shadow: 0 18px 60px rgba(58, 46, 42, 0.12);
    pointer-events: none;
}

.map-label span {
    color: var(--umber-muted);
    font-size: 0.85rem;
}
