/* Local Fonts */
@font-face {
    font-family: 'Manrope';
    src: url('./assets/fonts/manrope/Manrope-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('./assets/fonts/manrope/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('./assets/fonts/manrope/Manrope-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('./assets/fonts/manrope/Manrope-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('./assets/fonts/playfair-display/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('./assets/fonts/playfair-display/PlayfairDisplay-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('./assets/fonts/playfair-display/PlayfairDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    /* Color Palette */
    --primary: #111111;
    --secondary: #555555;
    --accent: #78716c;
    --background: #ffffff;
    --surface: #fafafa;
    --text-main: #111111;
    --text-muted: #737373;
    --border: #e5e5e5;

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Manrope', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Layout */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Typography Classes */
h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
}

p.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

/* Contact Box */
.contact-info {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border: 1px solid var(--border);
    margin-top: var(--spacing-lg);
    display: inline-block;
    text-align: left;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.contact-info a:hover {
    border-bottom-color: var(--primary);
}

/* Footer Links */
.footer-legal {
    padding: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    width: 100%;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* Organic Blobs - CSS Version */
.blobs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    opacity: 0.08;
}

.blob-top-right {
    top: -10%;
    right: -5%;
    fill: var(--primary);
    animation: drift 20s infinite ease-in-out alternate;
}

.blob-bottom-left {
    bottom: -10%;
    left: -10%;
    fill: #fcd34d;
    opacity: 0.1;
    animation: drift 25s infinite ease-in-out alternate-reverse;
}

@keyframes drift {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@media (max-width: 768px) {
    .blob {
        width: 90vw;
        height: 90vw;
    }
}

/* Easter Egg - Broken Heart & Plaster */
.easter-egg-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    width: 40px;
    height: 40px;
}

.broken-heart {
    width: 32px;
    height: 32px;
    color: var(--primary);
    /* Black/Dark Gray */
    opacity: 0.8;
    transition: all 0.5s ease;
    cursor: default;
}

.broken-heart.healed {
    opacity: 1;
    color: var(--error);
    /* Red when healed */
    /* filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.5)); */
    animation: heartBeat 1.2s infinite;
}

.plaster {
    position: absolute;
    /* Initial hidden position or specific placement */
    cursor: grab;
    width: 40px;
    height: 14px;
    background-color: #e5e5e5;
    /* Light gray/off-white for minimalist look, or distinct beige */
    background-color: #f3e5ab;
    /* Vanilla/Beige */
    border: 1px solid #d4b589;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transform: rotate(-15deg);
    display: none;
    /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 101;
}

.plaster:active {
    cursor: grabbing;
    transform: scale(1.05) rotate(-15deg);
}

.plaster::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    /* Dot in middle */
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

/* Utility Classes for Security (Removing inline styles) */
.legal-main {
    text-align: left;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
}

.emergency-note {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.emergency-number {
    color: var(--error);
    font-weight: 700;
}