/* Global Styles */
:root {
    --color-primary: #dcc1b0;
    /* Nude / Rose Gold Base */
    --color-secondary: #333333;
    /* Charcoal Gray */
    --color-accent: #b78a8e;
    /* Darker Rose */
    --color-background: #fdfdfd;
    /* Off-White */
    --color-surface: #ffffff;
    /* pure white */
    --color-text: #4a4a4a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-surface);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background-color: #000;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 20px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-surface);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.highlight {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.admin-link {
    color: var(--color-accent);
    font-weight: 700;
    border-bottom: 2px solid transparent;
}

.admin-link:hover {
    border-bottom: 2px solid var(--color-accent);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 85vh;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
    /* Fallback */
    background-image: url('../assets/hero.png');
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-surface);
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--color-surface);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Sections General */
.section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
}

/* Services */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials {
    background-color: #fffaf8;
    /* Very light subtle rose/warm white */
}

.testimonial-card {
    background: var(--color-surface);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.stars {
    color: #ffc107;
    /* Gold stars */
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info span {
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Modal Styling */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #000;
}

.booking-flow h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.step h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 1rem;
}

.professionals-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.pro-card {
    flex: 1;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.pro-card.selected {
    border-color: var(--color-accent);
    background-color: rgba(220, 193, 176, 0.1);
}

.pro-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.calendar-mockup {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
    margin-bottom: 15px;
}

.calendar-days span.faded {
    opacity: 0.3;
}

.calendar-days span.active {
    background-color: var(--color-secondary);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    margin: 0 auto;
}

.time-slots {
    display: flex;
    justify-content: space-between;
}

.time-btn {
    border: 1px solid #ddd;
    background: none;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
}

.time-btn:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.full-width {
    width: 100%;
}

/* Admin/Demo Sections */
.admin-showcase {
    background-color: var(--color-secondary);
    color: var(--color-surface);
}

.admin-showcase .section-title,
.admin-showcase .section-intro p {
    color: var(--color-surface);
}

.admin-showcase .section-title::after {
    background-color: var(--color-primary);
}

.section-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.tag {
    background-color: var(--color-accent);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}

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

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-box h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Phone Mockup */
.phone-mockup {
    width: 240px;
    height: 400px;
    background-color: #000;
    border: 8px solid #444;
    border-radius: 30px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    background-color: #f0f0f0;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.msg-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    max-width: 90%;
    line-height: 1.3;
}

.incoming {
    background-color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: #333;
}

.outgoing {
    background-color: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    color: #333;
}

/* CRM Dashboard Mockup */
.crm-dashboard {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.crm-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.crm-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.vip-badge {
    background-color: gold;
    color: #333;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

.crm-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat {
    text-align: center;
}

.stat .label {
    font-size: 0.7rem;
    color: #888;
    display: block;
}

.stat .value {
    font-weight: bold;
    font-size: 1.1rem;
}

.crm-notes h5 {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 5px;
}

.crm-notes ul li {
    font-size: 0.8rem;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 50px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid #444;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-info h3 {
    color: var(--color-primary);
}

.map-placeholder {
    width: 200px;
    height: 100px;
    background-color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #888;
    cursor: pointer;
}

.footer-social a {
    font-size: 1.5rem;
    margin-left: 15px;
    color: #fff;
}

.footer-social a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(183, 138, 142, 0.4);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(183, 138, 142, 0.6);
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.chatbot-window.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 16px;
    color: white;
    font-family: var(--font-heading);
}

.chatbot-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.chatbot-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.chatbot-message {
    display: flex;
    gap: 10px;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--color-secondary);
}

.message-content {
    max-width: 75%;
}

.message-content p {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    margin: 0 0 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    line-height: 1.5;
}

.user-message .message-content p {
    background: var(--color-secondary);
    color: white;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply {
    background: white;
    border: 1px solid var(--color-primary);
    color: var(--color-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.quick-reply:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 193, 176, 0.3);
}

.chatbot-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

#chatbot-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    padding: 12px 18px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}

#chatbot-input:focus {
    border-color: var(--color-primary);
}

.chatbot-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(183, 138, 142, 0.4);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

.chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    width: fit-content;
}

.chatbot-typing span {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.chatbot-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    /* Typography & Spacing */
    html {
        font-size: 14px;
        /* Slightly smaller base font */
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Navbar */
    .navbar {
        padding: 15px 5%;
    }

    .nav-links {
        display: none;
        /* JS toggles this to flex */
    }

    .menu-toggle {
        display: block;
    }

    /* Hero Section */
    .hero {
        height: 70vh;
        /* Reduce height on mobile */
        background-attachment: scroll;
        /* Mobile doesn't handle fixed well */
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto 2rem;
    }

    /* Services & Cards */
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        /* Allow smaller cards */
        gap: 20px;
    }

    .card {
        margin: 0 auto;
        /* Center single cards */
        width: 100%;
        max-width: 400px;
    }

    /* Features / Admin */
    .features-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
    }

    .phone-mockup {
        max-width: 100%;
        height: auto;
        aspect-ratio: 9/16;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-content>div {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social a {
        margin: 0 10px;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .professionals-grid {
        flex-direction: column;
    }

    .calendar-days span {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.9rem;
    }

    /* Chatbot */
    .chatbot-window {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        z-index: 10000;
    }

    .chatbot-header {
        padding-top: max(20px, env(safe-area-inset-top));
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }

    /* Quick replies scrolling */
    .quick-replies {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .quick-reply {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .time-slots {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .crm-stats {
        flex-direction: column;
        gap: 10px;
    }
}