/* ORMA Website Components */

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 400;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--purple-primary);
    color: var(--text-light);
    border: none;
}

.btn-cta {
    background-color: white;
    color: var(--purple-primary);
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    display: inline-block;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.btn-cta:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}


.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    color: var(--purple-primary);
    background-color: transparent;
    border: 1px solid var(--purple-primary);
    padding: 0.8rem 2rem;
    border-radius: 100px;
}

.btn-outline:hover {
    background-color: rgba(140, 83, 255, 0.1);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline-light:hover {
    background-color: white !important;
    color: var(--purple-primary) !important;
}

.btn-outline-light-alt {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline-light-alt:hover {
    background-color: white;
    color: var(--navy-dark);
}

.btn-ghost {
    color: var(--navy-dark);
    background-color: transparent;
    border: 1px solid var(--navy-dark);
    padding: 0.8rem 2.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-ghost:hover {
    background-color: rgba(28, 16, 63, 0.05);
}

/* Navigation */
nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem var(--container-padding) 2.5rem !important;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 100;
    /* Ensure links are always clickable above ambient dust */
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 400;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #1D1B20;
    font-family: 'Playfair Display', serif;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #1D1B20;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--purple-primary);
}

.nav-links a.nav-btn {
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a.nav-btn:hover {
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(140, 83, 255, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: #1D1B20;
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Footer (Mega CTA) */
.mega-cta {
    background-color: var(--navy-darker);
    color: white;
    padding: 15rem 0 5rem;
    /* Massive footer padding from SVG */
    position: relative;
    overflow: hidden;
    text-align: center;
}

.mega-cta h1 {
    color: white !important;
    font-size: clamp(3rem, 8vw, 6.5rem);
    margin-bottom: 4rem;
}

.mega-footer-bottom {
    margin-top: 10rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.9 !important;
    /* Increased for better visibility */
}

.mega-footer-links {
    display: flex;
    gap: 2rem;
}

.mega-footer-links a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
}


.mega-footer-links a:hover {
    opacity: 1;
    color: var(--purple-muted);
}

/* Unified Footer System */
.footer-bottom {
    margin-top: 10rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--purple-muted);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Light Footer Overrides (For FAQ/Privacy/Terms) */
.info-footer .footer-bottom {
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.info-footer .footer-nav a {
    color: var(--navy-dark);
}

.info-footer .footer-copyright {
    color: var(--navy-dark);
}

.info-footer .icon-instagram,
.info-footer .icon-facebook {
    filter: invert(0) brightness(0.2);
    /* Make icons dark for light pages */
    opacity: 0.6;
}

.info-footer .icon-instagram:hover,
.info-footer .icon-facebook:hover {
    opacity: 1;
    filter: none;
    /* Return to purple on hover */
}

.social-links-wrap {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.icon-instagram {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E");
}

.icon-facebook {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'%3E%3C/path%3E%3C/svg%3E");
}

/* Story social CTA */
.story-social-cta {
    text-align: center;
    background: linear-gradient(to bottom, transparent, var(--lilac-light));
    padding: 6rem 2rem;
    margin-top: 4rem;
    border-radius: 40px;
}

.story-social-cta p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
}

.story-social-cta .social-links-wrap {
    justify-content: center;
    gap: 2.5rem;
}

.story-social-cta .social-link {
    width: 32px;
    height: 32px;
}

.story-social-cta .icon-instagram {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238C53FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E");
}

.story-social-cta .icon-facebook {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238C53FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'%3E%3C/path%3E%3C/svg%3E");
}

/* Info Pages (FAQ, Privacy, Terms) */
.info-page-content {
    padding: 10rem 0 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.info-page-content h1 {
    margin-bottom: 3rem;
    color: var(--navy-darker);
}

.info-page-content h2 {
    margin: 3rem 0 1.5rem;
    color: var(--navy-dark);
    font-size: 2rem;
}

.info-page-content h3 {
    margin: 2.5rem 0 1rem;
    color: var(--purple-primary);
    font-size: 1.5rem;
}

.info-page-content p,
.info-page-content li {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.info-page-content ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.back-link {
    margin-bottom: 2rem;
    display: inline-block;
    text-decoration: none;
    color: var(--purple-primary);
    font-weight: 600;
}

.info-footer {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.info-footer .icon-instagram {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238C53FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E");
}

.info-footer .icon-facebook {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238C53FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'%3E%3C/path%3E%3C/svg%3E");
}

.info-footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.info-footer-links a {
    color: var(--purple-primary);
    text-decoration: none;
    font-weight: 500;
}

/* Quick Anchor Section */
.anchor-section {
    padding: 10rem 0;
    background-color: var(--lilac-bg);
}

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

.anchor-content {
    text-align: left;
}

.anchor-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.anchor-content .section-subtitle {
    text-align: left;
    margin-bottom: 2.5rem;
}

.anchor-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.anchor-features {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

.anchor-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--navy-dark);
}

.anchor-features li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--purple-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Widget Visual */
.widget-container {
    padding: 4rem;
    background: rgba(140, 83, 255, 0.05);
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.orma-widget {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 32px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.orma-widget:hover {
    transform: translateY(-5px) scale(1.02);
}

.widget-icon {
    width: 90px;
    height: 90px;
    fill: var(--purple-primary);
    filter: drop-shadow(0 0 10px rgba(140, 83, 255, 0.3));
    animation: widgetBreathe 4s ease-in-out infinite;
}

@keyframes widgetBreathe {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(140, 83, 255, 0.3));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(140, 83, 255, 0.6));
    }
}

@media (max-width: 992px) {
    .anchor-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .anchor-content,
    .anchor-content .section-title,
    .anchor-content .section-subtitle {
        text-align: center;
    }

    .anchor-features {
        justify-content: center;
    }
}

/* Mobile Navigation Dropdown */
@media (max-width: 768px) {
    nav.container {
        padding: 1.5rem var(--container-padding) !important;
        position: relative;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        /* Hide top links by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--lilac-lighter);
        flex-direction: column;
        padding: 2.5rem 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin: 0;
        border-radius: 0 0 24px 24px;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
        /* Show when toggled via JS */
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Standardized Footer Stacking */
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        margin-top: 5rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}