/* Inspect & Prevent - Premium Styles */

:root {
    /* Color Palette */
    --clr-primary: #124a3c; /* Deep Forest Green */
    --clr-primary-light: #1b6855;
    --clr-primary-dark: #0a2d24;
    --clr-secondary: #f0fdf6; /* Minty very light bg */
    --clr-accent: #f97316; /* Vibrant Orange for CTA */
    --clr-accent-hover: #ea580c;
    
    --clr-text-main: #1f2937;
    --clr-text-muted: #4b5563;
    --clr-text-light: #9ca3af;
    --clr-bg-main: #ffffff;
    --clr-bg-alt: #f9fafb;
    --clr-border: #e5e7eb;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Layout & Shadow Tokens */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(249, 115, 22, 0.3);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography elements */
h1, h2, h3, h4 {
    color: var(--clr-primary-dark);
    line-height: 1.2;
    font-weight: 700;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background-color: white;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-secondary:hover {
    background-color: var(--clr-secondary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    order: 1;
}

.brand-inspect {
    color: var(--clr-primary);
}

.brand-prevent {
    color: var(--clr-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    width: 100%;
    order: 3;
    justify-content: center;
    margin-top: 1rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--clr-text-muted);
    transition: var(--transition-fast);
}

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

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

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

/* Hero Section */
.hero {
    position: relative;
    padding-top: 220px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--clr-secondary) 0%, var(--clr-bg-main) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--clr-accent);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--clr-accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-placeholder {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
}

.hero-image-placeholder:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

/* Page Header */
.page-header {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
}

/* Services */
.services {
    padding: 6rem 0;
    background-color: var(--clr-bg-alt);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

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

.service-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    overflow: hidden; /* Ensure banner corners follow card border-radius */
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-secondary);
}

.service-card-banner {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-card-content {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-icon-overlay {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    color: var(--clr-primary);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-link {
    color: var(--clr-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.service-link:hover {
    gap: 0.5rem;
    color: var(--clr-accent-hover);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
}

.about-image-inner {
    width: 100%;
    height: 500px;
    background-color: var(--clr-primary-light);
    border-radius: var(--radius-lg);
    background-image: url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: center;
}

.prepurchase-image-inner {
    background-image: url('assets/prepurchase.png');
}

.highlight-section {
    padding: 6rem 0;
    background: var(--clr-bg-alt);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--clr-accent);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.exp-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--clr-secondary);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.feature-item p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--clr-primary-dark);
    color: var(--clr-text-light);
    padding-top: 5rem;
}

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

.footer-brand p {
    margin: 1.5rem 0;
    max-width: 300px;
}

.contact-info p {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

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

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--clr-accent);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.05) translateY(-5px);
}

.tooltip-trigger {
    position: relative;
}

.chat-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--clr-primary-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    border-right: 2px solid var(--clr-accent);
}

.chat-toggle:hover .chat-tooltip {
    opacity: 1;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 550px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.chatbot-window.hidden {
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    background: var(--clr-primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    object-fit: cover;
    border: 2px solid var(--clr-primary-light);
}

.chat-header-info h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
}

.online-status {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 4px;
}

.online-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: var(--clr-bg-alt);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
}

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

.msg-bot {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 0;
    box-shadow: var(--shadow-sm);
    color: var(--clr-text-main);
}

.msg-user {
    background: var(--clr-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.msg-card {
    background: white;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    overflow: hidden;
}

.msg-card a {
    display: block;
    padding: 0.8rem;
    text-align: center;
    background: var(--clr-accent);
    color: white;
    font-weight: 600;
}

.chat-input-area {
    background: white;
    border-top: 1px solid var(--clr-border);
    padding: 1rem;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.chat-opt-btn {
    background: var(--clr-secondary);
    border: 1px solid var(--clr-primary-light);
    color: var(--clr-primary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-opt-btn:hover {
    background: var(--clr-primary);
    color: white;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
}

.chat-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.chat-form input:focus {
    border-color: var(--clr-primary);
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--clr-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-send:hover {
    background: var(--clr-primary-dark);
}

/* Typings indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 5px 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--clr-text-light);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-links, .phone-link {
        display: none;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .chatbot-window {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 85px;
        height: 500px;
    }
}

/* Logo Image Styles */
.brand-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 60px;
    filter: brightness(0) invert(1);
}
