/* Touchstone Limited - Updated Stylesheet */
/* Clean, professional design matching the uploaded layout */


/* User Info Form for Chatbot */
.user-info-form {
    padding: 1rem;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1002;
}

.user-info-form p {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.user-info-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-info-form input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.user-info-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.user-info-form button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.user-info-form button:hover {
    background-color: var(--dark-gray);
}

/* Social Media Icons Styling */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

/* Click to call styling */
a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a[href^="tel:"]:hover {
    color: var(--primary-color);
}

/* Case Study Cards */
.case-study-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.case-study-image {
    height: 200px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

/* Newsletter subscription styling */
.newsletter-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.newsletter-form .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
}

.newsletter-form .btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

#chatbot-user-form {
    padding: 1.5rem !important;
    background: var(--secondary-color) !important;
    border-top: 1px solid var(--border-color) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

#chatbot-user-form input {
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    font-size: 1rem !important;
}

#chatbot-user-form button {
    background: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

#chatbot-user-form button:hover {
    background: var(--dark-gray) !important;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Override Bootstrap defaults */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* Navigation */
.navbar-brand {
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-logo {
    height: 65px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    margin-top: 76px; /* Account for fixed navbar */
}

.hero-title {
    line-height: 1.1;
}

.hero-subtitle {
    opacity: 0.9;
}

.hero-description {
    opacity: 0.8;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Why Choose Us Section */
.thinking-image img {
    max-width: 100%;
    height: auto;
}

.features-list ul li {
    font-size: 1rem;
    line-height: 1.6;
}

/* How We Work Section */
.brand-logo-item {
    min-height: 80px;
    transition: all 0.3s ease;
}

.brand-logo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.brand-logo-item img {
    transition: all 0.3s ease;
}

.brand-logo-item:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

/* What We Do Section */
.service-category {
    padding: 0;
}

.service-category h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-category ul li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--medium-gray);
}

/* Master Skills Section */
.master-class-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.master-class-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.master-class-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.master-class-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* FAQ Section */
.faq-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
}

.btn-light {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--light-gray);
    border-color: var(--light-gray);
    color: var(--primary-color);
}

.btn-outline-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-dark:hover {
    background-color: var(--dark-gray);
    border-color: var(--dark-gray);
}

/* Comment System Styles */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comment {
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.comment:hover {
    background: #f1f3f4;
    transform: translateY(-1px);
}

.comment-avatar {
    min-width: 50px;
}

.comment-form {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--secondary-color) 100%);
    border-bottom: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-content {
        padding: 2rem !important;
    }
    
    .hero-visual {
        padding: 2rem !important;
    }
    
    .brand-logos-grid .row {
        justify-content: center;
    }
    
    /* Chatbot Mobile Responsive */
    .chatbot-window {
        width: 90vw;
        height: 70vh;
        right: 5vw;
        left: 5vw;
        bottom: 90px;
    }
    
    .chatbot-toggle {
        right: 15px;
        bottom: 15px;
    }
    
    /* Comment System Mobile */
    .comment-form {
        padding: 1rem;
    }
    
    .comment-avatar {
        min-width: 40px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-content {
        padding: 1.5rem !important;
    }
    
    /* Chatbot Mobile Responsive */
    .chatbot-window {
        width: 95vw;
        height: 60vh;
        right: 2.5vw;
        left: 2.5vw;
        bottom: 80px;
    }
    
    .chatbot-toggle {
        right: 10px;
        bottom: 10px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Chatbot styles */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    color: var(--secondary-color);
}

.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    z-index: 1001;
}

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

.chatbot-header {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--light-gray);
}

.chatbot-input {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    background: var(--secondary-color);
}

.chatbot-input input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    outline: none;
    font-size: 0.9rem;
}

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

.chatbot-input button {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    background: var(--dark-gray);
}

/* Message styling */
.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background: var(--primary-color);
    color: var(--secondary-color);
    margin-left: auto;
    text-align: right;
}

.message.bot {
    background: var(--secondary-color);
    color: var(--dark-gray);
    border: 1px solid var(--border-color);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    max-width: 80%;
    margin-bottom: 1rem;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--medium-gray);
    border-radius: 50%;
    animation: typing 1.5s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 3rem 0 1rem;
    margin-top: 0;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Utility classes */
.bg-light {
    background-color: var(--light-gray) !important;
}

.text-muted {
    color: var(--medium-gray) !important;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
.chatbot-toggle:focus,
.chatbot-input button:focus,
.chatbot-input input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}