/* 
    Soluna Therapy and Wellness - Premium Design System
    Palette: Sophisticated Pink (Blush, Rose, Dusty, Soft Mauve)
    Accents: Warm Gold
*/

:root {
    /* Colors */
    --primary: #f75f99;
    /* Blush Pink */
    --primary-light: #f98eb7;
    --primary-dark: #f75f99;
    --secondary: #f75f99;
    /* Dusty Pink */
    --accent: #ec86ad;
    /* Warm Gold */
    --text-dark: #4a3b3d;
    --text-muted: #7d6a6d;
    --bg-soft: #fff9fa;
    --bg-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 10px 30px rgba(242, 167, 181, 0.15);
    --shadow-hover: 0 20px 40px rgba(242, 167, 181, 0.25);

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

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* --- Layout Elements --- */

section {
    padding: var(--section-padding);
    position: relative;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(242, 167, 181, 0.4);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(242, 167, 181, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(242, 167, 181, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(242, 167, 181, 0);
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 167, 181, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* --- Navigation --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.phone-link i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* --- Mobile Menu --- */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}


@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        gap: 3rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 2rem;
    }

    
    .nav-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .phone-link span {
        display: none;
    }
}

/* --- Floating Background Elements --- */

.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    top: -10%;
    right: -10%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* --- Hero Section --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px; /* Increased padding */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.badge i {
    color: var(--accent);
}

/* --- Form Styles --- */

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 12px;
    background: white;
    font-family: inherit;
    transition: var(--transition-smooth);
    outline: none;
    color: #000000 !important; /* Force black text */
}

select.form-input option {
    color: #000000 !important;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(242, 167, 181, 0.1);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 0.8rem;
    font-size: 0.8rem;
    background: white;
    padding: 0 0.5rem;
    color: var(--primary);
}

textarea.form-input {
    min-height: 120px;
}

textarea.form-input~.form-label {
    top: 1.5rem;
}

/* --- Sections Styles --- */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Cards --- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--primary-light);
}

.service-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--primary-light); /* Added border by default */
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.02);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* --- Condition Tags --- */

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.tag {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: default;
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* --- Accordion --- */

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 200px;
}

.faq-icon {
    transition: var(--transition-smooth);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* --- Final CTA --- */
.final-cta {
    background: linear-gradient(135deg, #fff5f7, #fce4e8) !important;
    text-align: center;
    padding: 80px 0;
}

.final-cta h2 {
    color: var(--primary-dark) !important;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.final-cta p {
    color: var(--text-muted) !important;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer --- */

footer {
    background: white;
    padding: 80px 0 30px;
    border-top: 1px solid var(--primary-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: block;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Animations --- */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .about-preview .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .about-preview .about-img {
        order: -1; /* Image first */
        margin-bottom: 2rem;
    }

    .about-preview .about-img img {
        width: 100%;
    }

    .hero-btns {
        flex-direction: column !important;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100% !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-img {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-img img {
        width: 90% !important;
        margin: 0 auto !important;
    }
    
    /* About Page Bio Section */
    .philosophy .hero-grid {
        display: flex;
        flex-direction: column;
    }
    
    .philosophy .philosophy-text {
        order: 2;
    }
    
    .philosophy .soluna-meaning {
        order: 3;
        margin-top: 2rem;
    }

    .page-hero {
        padding-bottom: 40px !important;
    }

    .philosophy {
        padding-top: 20px !important;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
    }
}

/* Center Contact Hero */
.contact-page-hero .hero-content {
    text-align: center !important;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-page-hero {
    padding-bottom: 20px !important; /* Reduced bottom padding */
    min-height: auto !important;
}