/* Mind Core Fitness - Landing Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-color: #373737;
    --accent-color: #99313c;
    --background: #ffffff;
    --glow-color: rgba(55, 55, 55, 0.25);
    --glow-color-strong: rgba(55, 55, 55, 0.4);
}

body {
    background: var(--background);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-x: hidden;
}

.container {
    max-width: 580px;
    width: 100%;
    text-align: center;
}

/* Logo with refined grey glow */
.logo-wrapper {
    margin-bottom: 50px;
    opacity: 0;
    animation: logoReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: drop-shadow(0 0 40px var(--glow-color))
            drop-shadow(0 0 80px rgba(55, 55, 55, 0.15));
    animation: breathe 5s ease-in-out infinite;
    animation-delay: 1.2s;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes breathe {
    0%, 100% {
        filter: drop-shadow(0 0 25px rgba(55, 55, 55, 0.2))
                drop-shadow(0 0 50px rgba(55, 55, 55, 0.1));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 60px rgba(55, 55, 55, 0.45))
                drop-shadow(0 0 100px rgba(55, 55, 55, 0.25));
        transform: scale(1.05);
    }
}

/* Typewriter heading */
.question {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    color: var(--text-color);
    margin-bottom: 45px;
    min-height: 3em;
    line-height: 1.5;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.8s;
}

/* Word reveal animation */
.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: wordReveal 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes wordReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: block;
    padding: 18px 28px;
    background: var(--background);
    border: 1.5px solid rgba(55, 55, 55, 0.2);
    border-radius: 10px;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.option:hover {
    background: var(--text-color);
    color: #ffffff;
    border-color: var(--text-color);
    box-shadow: 0 8px 30px rgba(55, 55, 55, 0.2);
    transform: translateY(-2px);
}

.option:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(55, 55, 55, 0.15);
}

.option:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.option:focus:not(:focus-visible) {
    outline: none;
}

.option:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Contact Form Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-close:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.modal-close:focus:not(:focus-visible) {
    outline: none;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 8px;
    text-align: center;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid rgba(55, 55, 55, 0.2);
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(153, 49, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    padding: 16px 32px;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #b33a47;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(153, 49, 60, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.submit-btn:focus:not(:focus-visible) {
    outline: none;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 30px 24px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

.cookie-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-btn.accept {
    background: var(--accent-color);
    color: #ffffff;
}

.cookie-btn.accept:hover {
    background: #b33a47;
}

.cookie-btn.decline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn.decline:hover {
    border-color: #ffffff;
}

.cookie-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.cookie-btn:focus:not(:focus-visible) {
    outline: none;
}

.cookie-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.cookie-text a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.cookie-policy-details {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
}

.cookie-policy-details.show {
    display: block;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .logo {
        width: 220px;
        height: 220px;
    }

    .logo-wrapper {
        margin-bottom: 40px;
    }

    .question {
        margin-bottom: 35px;
    }

    .options {
        gap: 10px;
    }

    .option {
        padding: 16px 22px;
        font-size: 0.9rem;
    }
}

/* Accessibility - Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .logo-wrapper {
        animation: none;
        opacity: 1;
    }

    .logo {
        animation: none;
    }

    .word {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .option {
        transition: none;
    }

    .cookie-banner {
        transition: none;
    }

    .modal-overlay {
        transition: none;
    }

    .modal-content {
        transition: none;
    }

    .submit-btn {
        transition: none;
    }

    .form-group input,
    .form-group textarea {
        transition: none;
    }
}
